Function at 0x140069590
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 [0x1400f6380]
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.14001f570
mov rcx, qword [r14 + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x140069627
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov ebx, 0x19
jmp 0x140069898
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 0x140069861
mov rsi, rax
mov eax, r12d
mov qword [rsp + 0x40], rax
mov edi, r13d
test rbx, rbx
je 0x1400696ae
test r12d, r12d
je 0x1400696ae
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 0x14006968a
add rcx, 2
cmp rcx, 0x40
je 0x1400696ae
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x14006969c
sub rdx, rbx
mov qword [rax + rcx*8 - 8], rdx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x140069680
sub rdx, rbx
mov qword [rax + rcx*8], rdx
jmp 0x140069680
mov r12, rbp
mov rbp, qword [0x1400fd040]
mov qword [rbp], rdi
mov rcx, r14
call fcn.140042e70
mov ebx, 8
test al, al
je 0x14006987d
mov rcx, qword [r14]
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400fd040]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140069878
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x140069885
mov rbp, qword [0x1400fbaf0]
mov rax, qword [rsp + 0x40]
mov qword [rbp], rax
mov rcx, r14
call fcn.140042e70
mov ebx, 8
test al, al
je 0x14006987d
mov rcx, qword [r14]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400fbaf0]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140069878
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x140069885
mov ecx, 0x40
call fcn.1400c03b0
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.1400657a0
mov rbx, qword [r14 + 0x38]
mov qword [r14 + 0x38], rdi
test rbx, rbx
mov rbp, r12
je 0x1400697c6
mov rcx, rbx
call fcn.140065810
mov rcx, rbx
call fcn.1400c0490
mov rdi, qword [r14 + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r13d
mov r9d, 0x400
call fcn.140065940
mov ebx, 4
test al, al
je 0x140069898
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 0x1400698bc
mov rax, qword [rsp + 0x48]
mov rdi, qword [0x1400fc890]
mov qword [rdi], rax
mov r9d, 8
mov rcx, r14
mov r8, rdi
call fcn.140069500
mov qword [rdi], 0
test eax, eax
mov rsi, qword [rsp + 0xc8]
je 0x1400698d3
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x140069898
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x140069898
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 0x1400698e8
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 0x140069898
mov rcx, r14
call fcn.140043090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x140069898
call fcn.140072349
int3