Function at 0x140021140
Capabilities:
Allocate or change rwx memory
Create process on windows
Map section object
Resume thread

Disassembly:
jmp 0x140053c60
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov dword [rbp + 0x44], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0x148], 0
mov rax, qword [rbp + 0x450]
mov qword [rax], 0
mov edx, 0x68
lea rcx, [rbp + 0x210]
call fcn.140021b9f
nop
mov dword [rbp + 0x210], 0x68
mov qword [rbp + 0x1d8], 0
mov qword [rbp + 0x1e0], 0
mov rax, qword [rbp + 0x430]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x88]
lea rax, [rcx + rax + 4]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, 0x14
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x38]
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x14c
je 0x140053d8a
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x140053d8a
mov dword [rbp + 4], 0xc00000bb
jmp 0x140054065
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0x40
lea r9, [rbp + 0x168]
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140053dca
jmp 0x140054065
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x24
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x448]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140053e32
mov dword [rbp + 4], 0x40000015
jmp 0x140054065
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rbp + 0x188]
xor edx, edx
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140053e65
jmp 0x140054065
mov dword [rbp + 0x24], 0x10
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x190]
add rcx, rax
mov rax, rcx
lea rcx, [rbp + 0x148]
mov qword [rsp + 0x20], rcx
mov r9d, 8
lea r8, [rbp + 0xe8]
mov rdx, rax
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140053eb5
mov dword [rbp + 4], 0xc00000e9
jmp 0x140054065
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x38]
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rcx, [rbp + 0x128]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x108]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140053f36
jmp 0x140054065
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x38]
lea rcx, [rbp + 0x148]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rbp + 0x108]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140053f7a
mov dword [rbp + 4], 0xc00000e9
jmp 0x140054065
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140053f9c
jmp 0x140054065
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x38]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x128]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0xe8]
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14005400f
jmp 0x140054065
mov eax, dword [rbp + 0x440]
mov rcx, qword [rbp + 0xc8]
mov ecx, dword [rcx + 0x10]
mov rdx, qword [rbp + 0x108]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rbp + 0x438]
call fcn.1400217df
nop
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov rax, qword [rbp + 0x450]
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
xor eax, eax
test eax, eax
jne 0x140053ccd
cmp dword [rbp + 4], 0
jge 0x140054083
cmp qword [rbp + 0x1d8], 0
je 0x140054083
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x68], 0
je 0x140054095
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x1e0], 0
je 0x1400540ad
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x140080330]
call fcn.140021d8e
mov eax, edi
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret