Function at 0x140004f70
Capabilities:
Access peb ldr_data
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
add rcx, 0x20
cmp dword [0x140008100], 0
mov qword [rsp + 0x98], rcx
je 0x1400054e0
mov rax, qword [rcx]
mov qword [r11 - 0x38], r14
mov r14, qword [rax]
cmp r14, rcx
je 0x1400054db
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
xor esi, esi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x40], r15
nop
mov rcx, qword [r14 + 0x50]
call fcn.140004c90
mov r12, qword [r14 + 0x20]
mov r13, rax
mov qword [rsp + 0x88], rsi
mov rbp, rsi
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0x80], esi
test rax, rax
je 0x1400053c4
test r12, r12
je 0x1400053c4
movsxd rdi, dword [r12 + 0x3c]
add rdi, r12
cmp dword [rdi], 0x4550
jne 0x1400053c4
movzx r15d, word [rdi + 0x14]
mov rcx, qword [r14 + 0x50]
add r15, 0x18
add r15, rdi
call fcn.1400014c0
cmp eax, 0x1c630b02
je 0x1400053c4
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 0x1400050b2
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 0x1400050e8
nop
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea rcx, [r15 + rcx*8]
call fcn.1400014c0
cmp eax, 0xf205493c
je 0x1400051bd
movzx eax, word [rdi + 6]
inc ebx
inc rsi
cmp ebx, eax
jl 0x1400050c0
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x1400053c2
test rcx, rcx
je 0x1400053c2
test rbp, rbp
je 0x1400053c2
mov rax, qword [rbp]
cmp qword [rcx], rax
jne 0x1400053c2
mov rdx, qword [0x1400080e8]
mov ecx, dword [0x1400080e0]
call fcn.140005770
lea rax, [rsp + 0x80]
mov r9d, 4
lea r8, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
call fcn.14000579c
mov ebx, eax
test eax, eax
jns 0x140005271
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 0x140005267
mov edx, 0x5c
lea rcx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
call fcn.140002650
test rax, rax
je 0x140005200
mov edx, 0x5c
lea rcx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
call fcn.140002650
inc rax
jmp 0x140005207
lea rax, [rsi + rsi*4]
mov edx, dword [r15 + rax*8 + 8]
mov qword [rsp + 0x88], rdx
mov qword [0x1400081b0], rdx
mov ecx, dword [r15 + rax*8 + 0xc]
add rcx, r12
mov qword [rsp + 0x90], rcx
mov qword [0x1400081b8], rcx
mov ebp, dword [r15 + rax*8 + 0xc]
add rbp, r13
mov qword [0x1400081c0], rbp
jmp 0x1400050f8
lea rax, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
mov dword [rsp + 0x20], 0xa9
lea rdx, str._n_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]
jmp 0x1400053d0
mov r14, qword [r14]
xor esi, esi
jmp 0x1400053d0
mov r8, qword [rsp + 0x88]
mov rdx, rbp
mov rcx, qword [rsp + 0x90]
call fcn.1400025b0
mov rdx, qword [0x1400080e8]
mov ecx, dword [0x1400080e0]
call fcn.140005770
mov r9d, dword [rsp + 0x80]
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffffffffffff
call fcn.14000579c
mov ebx, eax
test eax, eax
jns 0x140005351
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 0x140005267
mov edx, 0x5c
lea rcx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
call fcn.140002650
test rax, rax
je 0x140005336
mov edx, 0x5c
lea rcx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
call fcn.140002650
inc rax
mov dword [rsp + 0x20], 0xb5
lea rdx, str._n_t____NtProtectVirtualMemory_2__Failed_With_Error:_0x_0.8X____s._d__n
jmp 0x140005216
lea rax, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
mov dword [rsp + 0x20], 0xb5
lea rdx, str._n_t____NtProtectVirtualMemory_2__Failed_With_Error:_0x_0.8X____s._d__n
jmp 0x140005216
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 0x1400053c2
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]
jmp 0x1400053d0
xor esi, esi
mov r14, qword [r14]
test r13, r13
je 0x1400054aa
mov rdx, qword [0x1400080c8]
mov ecx, dword [0x1400080c0]
call fcn.140005770
mov rdx, r13
mov rcx, 0xffffffffffffffff
call fcn.14000579c
mov ebx, eax
test eax, eax
jns 0x1400054aa
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 0x1400054aa
mov edx, 0x5c
lea rcx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
call fcn.140002650
test rax, rax
je 0x14000544d
mov edx, 0x5c
lea rcx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
call fcn.140002650
inc rax
jmp 0x140005454
lea rax, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerUnhook.c
mov r9, rax
mov dword [rsp + 0x20], 0xc8
mov r8d, ebx
lea rdx, str._n_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 + 0x98]
jne 0x140004fd0
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x40]
add rsp, 0x78
ret