Function at 0x14006d9e0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13d, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov rsi, qword [rsp + 0xc8]
mov r12d, dword [rsp + 0xc0]
mov rbp, qword [0x1400f7448]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [r12 + r13]
lea rdi, [rcx + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov rdx, rax
call fcn.140021e40
mov rcx, qword [r14 + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x14006da77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov ebx, 0x19
jmp 0x14006dce8
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14006dcb1
mov rsi, rax
mov eax, r12d
mov qword [rsp + 0x40], rax
mov edi, r13d
test rbx, rbx
je 0x14006dafe
test r12d, r12d
je 0x14006dafe
lea rcx, [rsi + rdi]
mov rdx, rbx
mov r8, qword [rsp + 0x40]
call sub.ntdll.dll_memcpy
lea rax, [rdi + rsi]
add rax, 8
xor ecx, ecx
jmp 0x14006dada
add rcx, 2
cmp rcx, 0x40
je 0x14006dafe
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14006daec
sub rdx, rbx
mov qword [rax + rcx*8 - 8], rdx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x14006dad0
sub rdx, rbx
mov qword [rax + rcx*8], rdx
jmp 0x14006dad0
mov r12, rbp
mov rbp, qword [0x1400fe6c0]
mov qword [rbp], rdi
mov rcx, r14
call fcn.140046fa0
mov ebx, 8
test al, al
je 0x14006dccd
mov rcx, qword [r14]
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400fe6c0]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14006dcc8
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x14006dcd5
mov rbp, qword [0x1400fd180]
mov rax, qword [rsp + 0x40]
mov qword [rbp], rax
mov rcx, r14
call fcn.140046fa0
mov ebx, 8
test al, al
je 0x14006dccd
mov rcx, qword [r14]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400fd180]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14006dcc8
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x14006dcd5
mov ecx, 0x40
call fcn.1400c1200
mov rdi, rax
mov rdx, qword [r14]
mov r8d, dword [r14 + 0x10]
mov r9, qword [r14 + 0x40]
mov qword [rsp + 0x20], r15
mov rcx, rax
call fcn.140069cf0
mov rbx, qword [r14 + 0x38]
mov qword [r14 + 0x38], rdi
test rbx, rbx
mov rbp, r12
je 0x14006dc16
mov rcx, rbx
call fcn.140069d60
mov rcx, rbx
call fcn.1400c12e0
mov rdi, qword [r14 + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r13d
mov r9d, 0x400
call fcn.140069e90
mov ebx, 4
test al, al
je 0x14006dce8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [r14]
mov rdx, qword [r14 + 0x28]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14006dd0c
mov rax, qword [rsp + 0x48]
mov rdi, qword [0x1400fdf08]
mov qword [rdi], rax
mov r9d, 8
mov rcx, r14
mov r8, rdi
call fcn.14006d950
mov qword [rdi], 0
test eax, eax
mov rsi, qword [rsp + 0xc8]
je 0x14006dd23
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x14006dce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x14006dce8
mov ebx, 0x39
mov qword [rbp], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov rbp, r12
mov rax, qword [rsp + 0x50]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x14006dd38
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1a
jmp 0x14006dce8
mov rcx, r14
call fcn.1400471c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x14006dce8
call fcn.1400763e0
int3