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

Disassembly:
jmp 0x140051ab0
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, [0x140097c3a]
call fcn.140021040
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.140020b7c
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 0x140051bd8
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x140051bd8
mov dword [rbp + 4], 0xc00000bb
jmp 0x140051eb0
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 0x140051c18
jmp 0x140051eb0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
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 0x140051c7f
mov dword [rbp + 4], 0x40000015
jmp 0x140051eb0
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 0x140051cb2
jmp 0x140051eb0
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 0x140051d02
mov dword [rbp + 4], 0xc00000e9
jmp 0x140051eb0
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 0x140051d83
jmp 0x140051eb0
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 0x140051dc7
mov dword [rbp + 4], 0xc00000e9
jmp 0x140051eb0
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 0x140051de9
jmp 0x140051eb0
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 0x140051e5c
jmp 0x140051eb0
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.1400207c6
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbp + 0x450]
mov rcx, qword [rbp + 0x1d8]
mov qword [rax], rcx
xor eax, eax
test eax, eax
jne 0x140051b1c
cmp dword [rbp + 4], 0
jge 0x140051ecd
cmp qword [rbp + 0x1d8], 0
je 0x140051ecd
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x68], 0
je 0x140051ede
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x1e0], 0
je 0x140051ef5
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14007cf40]
call fcn.140020d66
mov eax, edi
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret