Function at 0x14006d980
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.140021e20
mov rcx, qword [r14 + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x14006da17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov ebx, 0x19
jmp 0x14006dc88
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 0x14006dc51
mov rsi, rax
mov eax, r12d
mov qword [rsp + 0x40], rax
mov edi, r13d
test rbx, rbx
je 0x14006da9e
test r12d, r12d
je 0x14006da9e
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 0x14006da7a
add rcx, 2
cmp rcx, 0x40
je 0x14006da9e
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14006da8c
sub rdx, rbx
mov qword [rax + rcx*8 - 8], rdx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x14006da70
sub rdx, rbx
mov qword [rax + rcx*8], rdx
jmp 0x14006da70
mov r12, rbp
mov rbp, qword [0x1400fe640]
mov qword [rbp], rdi
mov rcx, r14
call fcn.140046f80
mov ebx, 8
test al, al
je 0x14006dc6d
mov rcx, qword [r14]
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400fe640]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14006dc68
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x14006dc75
mov rbp, qword [0x1400fd100]
mov rax, qword [rsp + 0x40]
mov qword [rbp], rax
mov rcx, r14
call fcn.140046f80
mov ebx, 8
test al, al
je 0x14006dc6d
mov rcx, qword [r14]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400fd100]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14006dc68
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x14006dc75
mov ecx, 0x40
call fcn.1400c11a0
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.140069c90
mov rbx, qword [r14 + 0x38]
mov qword [r14 + 0x38], rdi
test rbx, rbx
mov rbp, r12
je 0x14006dbb6
mov rcx, rbx
call fcn.140069d00
mov rcx, rbx
call fcn.1400c1280
mov rdi, qword [r14 + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r13d
mov r9d, 0x400
call fcn.140069e30
mov ebx, 4
test al, al
je 0x14006dc88
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 0x14006dcac
mov rax, qword [rsp + 0x48]
mov rdi, qword [0x1400fde88]
mov qword [rdi], rax
mov r9d, 8
mov rcx, r14
mov r8, rdi
call fcn.14006d8f0
mov qword [rdi], 0
test eax, eax
mov rsi, qword [rsp + 0xc8]
je 0x14006dcc3
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x14006dc88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x14006dc88
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 0x14006dcd8
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 0x14006dc88
mov rcx, r14
call fcn.1400471a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x14006dc88
call fcn.140076380
int3