Function at 0x436173
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
push 1
push 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4361d4
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x436539
mov dword [ebp - 0x1c], esp
push str.ZwOpenProcess
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436208
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x436517
mov dword [ebp - 0x1c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436234
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x40
push 0x1000
push 0x18
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x43626d
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x436517
mov dword [ebp - 0x1c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436299
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x9dc
call fcn.004575f0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.00454f50
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4362ed
add eax, 8
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x436310
push 6
call fcn.004547fa
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x436320
push ebx
call fcn.004547ee
add esp, 4
cmp dword [ebp - 0x10], 4
jne 0x4364c6
mov dword [ebp - 0x1c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436349
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x40
push 0x1000
push 8
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x436382
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4364c6
mov dword [ebp - 0x1c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4363ae
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x198
call fcn.00454f50
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4363e6
add eax, 8
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x436409
push 6
call fcn.004547fa
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x436419
push ebx
call fcn.004547ee
add esp, 4
cmp dword [ebp - 0x10], 4
jne 0x436475
mov dword [ebp - 0x1c], esp
push 0
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436457
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x24], eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 0x1f0fff
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.00436547
mov dword [ebp - 0x1c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436494
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x8000
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4364c6
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x1c], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4364e5
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x8000
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x436517
push 6
call fcn.004547fa
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x436539
push 6
call fcn.004547fa
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x436541
mov esp, ebp
pop ebp
ret 4