Function at 0x140020fa0
Capabilities:
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15, r9
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x90], rcx
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x98], rax
xor r14d, r14d
cmp rdx, r14
je 0x140021003
mov r13, qword [rdx]
jmp 0x14002100a
lea r13, [0x14014f7a8]
mov edx, 0x105
lea rcx, [rsp + 0x58]
call fcn.140063580
nop
mov rdx, qword [rsp + 0x58]
mov r12, rdx
cmp rbx, r14
je 0x14002102c
cmp qword [rbx], r14
jne 0x14002103f
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, qword [rsp + 0x58]
cmp rbx, r14
je 0x140021065
cmp qword [rbx], r14
jne 0x140021053
mov rcx, rbx
call fcn.140071480
jmp 0x140021065
mov rdx, qword [rbx]
lea rcx, [rsp + 0x58]
call fcn.140071480
mov r12, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x60], eax
add eax, 0x14
mov dword [rsp + 0xa0], 0x18
mov qword [rsp + 0xa8], r14
mov esi, 1
mov dword [rsp + 0xb0], esi
mov qword [rsp + 0x68], r14
lea rbx, [rsp + 0x68]
cmp r15, r14
cmovne rbx, r15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 0x8000004
lea rdx, [rsp + 0xa0]
or rdi, 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp rax, rdi
cmove rax, r14
mov qword [rbx], rax
cmp rax, r14
jne 0x14002110b
mov rcx, qword [rsp + 0x68]
cmp rcx, r14
je 0x1400210fa
cmp rcx, rdi
je 0x1400210fa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x58]
call fcn.14005b520
mov eax, esi
jmp 0x14002130e
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x140021146
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140021141
cmp rcx, rdi
je 0x140021141
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140021302
movsxd rax, dword [rsp + 0x60]
mov dword [r14], eax
mov rbx, rax
mov r8, rax
mov rdx, qword [rsp + 0x90]
lea rcx, [r14 + 4]
call fcn.14010cd30
lea rcx, [rbx + r14 + 4]
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.14010c6c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov r8, qword [r8]
lea rdx, str._map:0x_p:_lu
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfW]
or r8d, 0xffffffff
lea rdx, str.PECMD_LOAD
lea rcx, [rsp + 0x50]
call fcn.1400712d0
nop
mov rbx, qword [rsp + 0x98]
xor edi, edi
cmp word [rbx], di
je 0x1400211f4
lea rdx, str.logs:_
lea rcx, [rsp + 0x50]
call fcn.140063600
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140063600
lea rdx, [0x1401432d8]
lea rcx, [rsp + 0x50]
call fcn.140063600
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x50]
call fcn.140063600
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140063600
cmp r15, rdi
je 0x14002124f
mov rdx, qword [rsp + 0x50]
mov rcx, rbp
call fcn.140071480
nop
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
je 0x140021248
cmp rcx, 0xffffffffffffffff
je 0x140021248
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esi, edi
jmp 0x140021302
mov qword [rsp + 0x78], rdi
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0xc0], 0x68
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rsp + 0xc8]
call fcn.14010c6c0
lea r11, [rsp + 0x78]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call fcn.1400cf400
cmp eax, edi
je 0x1400212de
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.14005b520
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
je 0x140021300
cmp rcx, 0xffffffffffffffff
je 0x140021300
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esi, edi
lea rcx, [rsp + 0x58]
call fcn.14005b520
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010bcc0
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret