Function at 0x140169dd0
Capabilities:
Load ntoskrnl
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f4f08], eax
jle 0x140169e4f
lea rcx, [0x1401f4f08]
call fcn.14019e160
cmp dword [0x1401f4f08], 0xffffffff
jne 0x140169e4f
mov r8d, 1
xor edx, edx
lea rcx, [0x1401df058]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1401f4ef8], rax
lea rcx, [0x1401f4f08]
call fcn.14019e100
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f4f38], eax
jle 0x140169e9c
lea rcx, [0x1401f4f38]
call fcn.14019e160
cmp dword [0x1401f4f38], 0xffffffff
jne 0x140169e9c
mov rax, qword [0x1401f4ef8]
mov qword [0x1401f51d0], rax
lea rcx, [0x1401f4f38]
call fcn.14019e100
mov rax, qword [0x1401f51d0]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140169eb4
xor eax, eax
jmp 0x14016a4e8
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f5168], eax
jle 0x140169f12
lea rcx, [0x1401f5168]
call fcn.14019e160
cmp dword [0x1401f5168], 0xffffffff
jne 0x140169f12
mov rax, qword [0x1401f51d0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x1401f4ef8]
add rcx, rax
mov rax, rcx
mov qword [0x1401f5248], rax
lea rcx, [0x1401f5168]
call fcn.14019e100
mov rax, qword [0x1401f5248]
cmp dword [rax], 0x4550
je 0x140169f28
xor eax, eax
jmp 0x14016a4e8
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f4f3c], eax
jle 0x140169f7b
lea rcx, [0x1401f4f3c]
call fcn.14019e160
cmp dword [0x1401f4f3c], 0xffffffff
jne 0x140169f7b
mov rax, qword [0x1401f5248]
add rax, 0x108
mov qword [0x1401f5300], rax
lea rcx, [0x1401f4f3c]
call fcn.14019e100
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f52c0], eax
jle 0x140169fc8
lea rcx, [0x1401f52c0]
call fcn.14019e160
cmp dword [0x1401f52c0], 0xffffffff
jne 0x140169fc8
mov rax, qword [0x1401f5300]
mov qword [0x1401f4ee0], rax
lea rcx, [0x1401f52c0]
call fcn.14019e100
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f52d0], eax
jle 0x14016a019
lea rcx, [0x1401f52d0]
call fcn.14019e160
cmp dword [0x1401f52d0], 0xffffffff
jne 0x14016a019
mov rax, qword [0x1401f5248]
movzx eax, word [rax + 6]
mov word [0x1401f4ef0], ax
lea rcx, [0x1401f52d0]
call fcn.14019e100
mov byte [rsp + 0x168], 1
mov eax, 5
lea rcx, [rsp + 0x168]
call fcn.14016cea0
mov byte [rsp + 0x31], al
lea rcx, [0x1401f5164]
call fcn.140160430
movzx ecx, byte [rsp + 0x31]
xchg byte [rax], cl
movzx eax, cl
mov byte [rsp + 0x160], al
movzx eax, byte [rsp + 0x160]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
jne 0x14016a0d6
jmp 0x14016a07d
mov rax, qword [0x1401f5300]
add rax, 0x28
mov qword [0x1401f5300], rax
movzx eax, word [0x1401f4ef0]
imul rax, rax, 0x28
mov rcx, qword [0x1401f4ee0]
add rcx, rax
mov rax, rcx
cmp qword [0x1401f5300], rax
jae 0x14016a0d6
mov rax, qword [0x1401f5300]
mov rax, qword [0x1401f5300]
lea rcx, str.PAGE
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14016a0c9
inc rax
test dl, dl
jne 0x14016a0b6
xor eax, eax
jmp 0x14016a0ce
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14016a0d4
jmp 0x14016a0d6
jmp 0x14016a06b
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x1401f4ed4], eax
jle 0x14016a133
lea rcx, [0x1401f4ed4]
call fcn.14019e160
cmp dword [0x1401f4ed4], 0xffffffff
jne 0x14016a133
mov rax, qword [0x1401f5300]
mov eax, dword [rax + 0xc]
mov rcx, qword [0x1401f4ef8]
add rcx, rax
mov rax, rcx
mov qword [0x1401f5288], rax
lea rcx, [0x1401f4ed4]
call fcn.14019e100
lea rax, [rsp + 0x178]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [0x1401f5300]
mov eax, dword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [0x1401f5288]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x180], rax
mov edx, 0x17
lea rcx, [rsp + 0x188]
call fcn.140171310
mov qword [rsp + 0x40], 0
jmp 0x14016a1ac
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x17
jae 0x14016a215
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1d0]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x1d8]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov byte [rsp + 0x39], al
mov rax, qword [rsp + 0x40]
lea rax, [rsp + rax*2 + 0x188]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rsp + 0x38]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rsp + 0x39]
mov byte [rax + 1], cl
jmp 0x14016a19f
lea rax, [rsp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x33]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x35], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x36], al
mov eax, 0x17
imul rax, rax, 2
lea rax, [rsp + rax + 0x188]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x138], rax
xor eax, eax
imul rax, rax, 2
lea rax, [rsp + rax + 0x188]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x178]
add rax, qword [rsp + 0x180]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x150], rax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x140]
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x170]
call fcn.140171370
mov rax, qword [rsp + 0x178]
add rax, qword [rsp + 0x180]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
cmp qword [rsp + 0x170], rax
jne 0x14016a4a7
mov dword [rsp + 0x48], 1
jmp 0x14016a4af
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x37], al
movzx eax, byte [rsp + 0x37]
test eax, eax
je 0x14016a4cc
mov qword [rsp + 0x50], 0
jmp 0x14016a4e3
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14019dfb0
add rsp, 0x1c0
pop rdi
ret