Function at 0x140056900
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 [0x1400e00c0]
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.14000ad60
mov rcx, qword [r14 + 0x28]
lea rax, [rcx + 1]
cmp rax, 1
ja 0x140056997
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov ebx, 0x19
jmp 0x140056c08
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 0x140056bd1
mov rsi, rax
mov eax, r12d
mov qword [rsp + 0x40], rax
mov edi, r13d
test rbx, rbx
je 0x140056a1e
test r12d, r12d
je 0x140056a1e
lea rcx, [rsi + rdi]
mov rdx, rbx
mov r8, qword [rsp + 0x40]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
lea rax, [rdi + rsi]
add rax, 8
xor ecx, ecx
jmp 0x1400569fa
add rcx, 2
cmp rcx, 0x40
je 0x140056a1e
mov rdx, qword [rax + rcx*8 - 8]
test rdx, rdx
je 0x140056a0c
sub rdx, rbx
mov qword [rax + rcx*8 - 8], rdx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x1400569f0
sub rdx, rbx
mov qword [rax + rcx*8], rdx
jmp 0x1400569f0
mov r12, rbp
mov rbp, qword [0x1400e4840]
mov qword [rbp], rdi
mov rcx, r14
call fcn.14002fec0
mov ebx, 8
test al, al
je 0x140056bed
mov rcx, qword [r14]
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400e4840]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140056be8
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x140056bf5
mov rbp, qword [0x1400e3300]
mov rax, qword [rsp + 0x40]
mov qword [rbp], rax
mov rcx, r14
call fcn.14002fec0
mov ebx, 8
test al, al
je 0x140056bed
mov rcx, qword [r14]
mov qword [rsp + 0x20], rdi
mov rbx, qword [0x1400e3300]
mov r9d, 8
mov rdx, rbx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140056be8
cmp qword [rsp + 0x48], 8
mov qword [rbx], 0
mov ebx, 0x3a
jne 0x140056bf5
mov ecx, 0x40
call fcn.1400aa7c0
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.140052c10
mov rbx, qword [r14 + 0x38]
mov qword [r14 + 0x38], rdi
test rbx, rbx
mov rbp, r12
je 0x140056b36
mov rcx, rbx
call fcn.140052c80
mov rcx, rbx
call fcn.1400aa8a0
mov rdi, qword [r14 + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r13d
mov r9d, 0x400
call fcn.140052db0
mov ebx, 4
test al, al
je 0x140056c08
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 0x140056c2c
mov rax, qword [rsp + 0x48]
mov rdi, qword [0x1400e4088]
mov qword [rdi], rax
mov r9d, 8
mov rcx, r14
mov r8, rdi
call fcn.140056870
mov qword [rdi], 0
test eax, eax
mov rsi, qword [rsp + 0xc8]
je 0x140056c43
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x140056c08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x140056c08
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 0x140056c58
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 0x140056c08
mov rcx, r14
call fcn.1400300e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x140056c08
call fcn.14005fbe0
int3