Function at 0x140006e90
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140047020]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov r12d, ecx
mov qword [rbp - 0x30], rdx
mov r15, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140006ecc
mov r15, qword [rdx]
lea rcx, [0x140040674]
call fcn.14001a04c
lea rdx, str.___Injection_from_path
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
lea rdx, str.___Opening__s
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
mov rdx, r15
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 3]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140006f6c
lea rdx, str.____Unable_to_open_target_Dll.
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
jmp 0x140007030
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.1400109bc
mov rsi, rax
lea rdx, str.___Reading__s
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
mov rdx, r15
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140006fea
lea rdx, str.____Unable_to_read_DLL_file.
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007028
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5a4d
cmp word [rsi], ax
je 0x140007192
lea rcx, str.__does_not_look_like_a_valid_DLL___n
call fcn.140001570
lea rdx, str.____Invalid_DLL
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
mov rcx, rsi
call fcn.140010944
xor edx, edx
mov cl, 0x5b
call fcn.140002320
mov byte [rbp - 0x28], al
mov edx, 1
mov cl, 0x2d
call fcn.140002320
mov byte [rbp - 0x27], al
mov edx, 2
mov cl, 0x5d
call fcn.140002320
mov byte [rbp - 0x26], al
mov edx, 3
mov cl, 0x20
call fcn.140002320
mov byte [rbp - 0x25], al
mov edx, 4
mov cl, 0x49
call fcn.140002320
mov byte [rbp - 0x24], al
mov edx, 5
mov cl, 0x6e
call fcn.140002320
mov byte [rbp - 0x23], al
mov edx, 6
mov cl, 0x6a
call fcn.140002320
mov byte [rbp - 0x22], al
mov edx, 7
mov cl, 0x65
call fcn.140002320
mov byte [rbp - 0x21], al
mov edx, 8
mov cl, 0x63
call fcn.140002320
mov byte [rbp - 0x20], al
mov edx, 9
mov cl, 0x74
call fcn.140002320
mov byte [rbp - 0x1f], al
mov edx, 0xa
mov cl, 0x69
call fcn.140002320
mov byte [rbp - 0x1e], al
mov edx, 0xb
mov cl, 0x6f
call fcn.140002320
mov byte [rbp - 0x1d], al
mov edx, 0xc
mov cl, 0x6e
call fcn.140002320
mov byte [rbp - 0x1c], al
mov edx, 0xd
mov cl, 0x20
call fcn.140002320
mov byte [rbp - 0x1b], al
mov edx, 0xe
mov cl, 0x66
call fcn.140002320
mov byte [rbp - 0x1a], al
mov edx, 0xf
mov cl, 0x61
call fcn.140002320
mov byte [rbp - 0x19], al
mov edx, 0x10
mov cl, 0x69
call fcn.140002320
mov byte [rbp - 0x18], al
mov edx, 0x11
mov cl, 0x6c
call fcn.140002320
mov byte [rbp - 0x17], al
mov edx, 0x12
mov cl, 0x65
call fcn.140002320
mov byte [rbp - 0x16], al
mov edx, 0x13
mov cl, 0x64
call fcn.140002320
mov byte [rbp - 0x15], al
xor eax, eax
mov byte [rbp - 0x14], al
mov r8, r13
lea edx, [rax + 0x13]
xor byte [rbp + r8 - 0x28], dl
inc eax
movsxd r8, eax
cmp r8, 0x14
jb 0x140007161
mov byte [rbp - 0x14], r13b
lea rdx, [rbp - 0x28]
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
jmp 0x1400071c1
lea rdx, str.___DLL_Loaded
lea rcx, [0x14008bae0]
call fcn.14000b650
mov rcx, rax
call fcn.14000b900
mov r8, rsi
mov edx, r12d
call fcn.14000d950
mov rcx, rsi
call fcn.140010944
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400071f7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400071f2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000722a
mov rcx, r8
call fcn.140010944
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400105f0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001a74c
int3