Function at 0x140160a60
Capabilities:
Create thread
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [rsp + 0xa0], 0
jne 0x140160a83
xor eax, eax
jmp 0x140160d84
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140160ad7
xor eax, eax
jmp 0x140160d84
mov dword [rsp + 0x30], 0
jmp 0x140160aeb
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x30], eax
jge 0x140160b80
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x18]
mov eax, dword [rcx + rax + 0x10]
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0xa0]
mov rdx, qword [rdx + 0x18]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0xa0]
add rcx, qword [rdx]
movsxd rdx, dword [rsp + 0x30]
imul rdx, rdx, 0x28
mov r8, qword [rsp + 0xa0]
mov r8, qword [r8 + 0x18]
mov edx, dword [r8 + rdx + 0xc]
mov r8, qword [rsp + 0x38]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x58], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x58]
mov rcx, rax
call fcn.14016f990
jmp 0x140160ae1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
call fcn.140160230
test eax, eax
jne 0x140160ba1
xor eax, eax
jmp 0x140160d84
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x28]
call fcn.140160460
test eax, eax
jne 0x140160bd2
xor eax, eax
jmp 0x140160d84
mov rax, qword [rsp + 0xa0]
mov r8, qword [rax + 0x18]
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
call fcn.140160710
test eax, eax
jne 0x140160bff
xor eax, eax
jmp 0x140160d84
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x40]
cmp dword [rax + 4], 0
je 0x140160c50
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x40]
cmp dword [rax], 0
je 0x140160c50
cmp qword [rsp + 0xa8], 0
je 0x140160c50
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x40]
call fcn.140160950
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x38]
cmp dword [rax + 4], 0
je 0x140160ccb
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
mov ecx, dword [rcx + 4]
xor edx, edx
mov eax, ecx
mov ecx, 0xc
div rcx
mov rcx, qword [rsp + 0x60]
mov r8, rcx
mov edx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
movzx eax, al
test eax, eax
jne 0x140160ccb
xor eax, eax
jmp 0x140160d84
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x48], 0
je 0x140160d70
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x78]
cmp qword [rsp + 0x40], 0
je 0x140160d56
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140160d6e
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140160d84
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
call qword [rsp + 0x80]
add rsp, 0x98
ret