Function at 0x4060a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x40635b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp byte [ebp - 1], 0
je 0x4060ea
mov ebx, 0x4067c0
sub ebx, 0x40678c
jmp 0x4060f5
mov ebx, 0x406788
sub ebx, 0x406760
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.00403374
mov eax, dword [ebp - 0x20]
call fcn.00405af0
mov esi, eax
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x4126e4], eax
cmp dword [0x4126e4], 0
je 0x406340
push 0x40
push 0x1000
push ebx
push 0
mov eax, dword [0x4126e4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x4126f0], eax
push 4
push 0x1000
mov eax, dword [0x4127c4]
call fcn.0040471c
inc eax
push eax
push 0
mov eax, dword [0x4126e4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x4126f4], eax
cmp dword [0x4126f4], 0
je 0x40633c
cmp dword [0x4126f0], 0
je 0x40633c
lea edx, [ebp - 0x24]
mov eax, 0x406374
call fcn.00404c04
mov eax, dword [ebp - 0x24]
call fcn.004035bc
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
lea edx, [ebp - 0x28]
mov eax, 0x40638c
call fcn.00404c04
mov eax, dword [ebp - 0x28]
call fcn.004035bc
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov edi, eax
lea edx, [ebp - 0x2c]
mov eax, 0x4063a0
call fcn.00404c04
mov eax, dword [ebp - 0x2c]
call fcn.004035bc
push eax
push esi
call sub.kernel32.dll_GetProcAddress
call fcn.00405cc4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x30]
mov eax, 0x4063b8
call fcn.00404c04
mov eax, dword [ebp - 0x30]
call fcn.004035bc
push eax
push edi
call sub.kernel32.dll_GetProcAddress
call fcn.00405cc4
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x34]
mov eax, 0x4063d0
call fcn.00404c04
mov eax, dword [ebp - 0x34]
call fcn.004035bc
push eax
push esi
call sub.kernel32.dll_GetProcAddress
call fcn.00405cc4
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x38]
mov eax, 0x4063ec
call fcn.00404c04
mov eax, dword [ebp - 0x38]
call fcn.004035bc
push eax
push esi
call sub.kernel32.dll_GetProcAddress
call fcn.00405cc4
mov dword [ebp - 0x18], eax
mov eax, dword [0x4126ec]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4127c4]
call fcn.0040471c
inc eax
push eax
mov eax, dword [0x4127c4]
push eax
mov eax, dword [0x4126f4]
push eax
mov eax, dword [0x4126e4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
test esi, esi
je 0x40633c
cmp byte [ebp - 1], 0
je 0x4062a2
mov edx, esi
mov eax, 0x40678c
mov ecx, ebx
call fcn.00402598
jmp 0x4062b0
mov edx, esi
mov eax, 0x406760
mov ecx, ebx
call fcn.00402598
mov edx, ebx
sub edx, 5
test edx, edx
jl 0x40631f
inc edx
xor ecx, ecx
mov eax, esi
add eax, ecx
mov edi, dword [eax]
cmp edi, 0x11111111
jne 0x4062de
cmp byte [ebp - 1], 0
je 0x4062d7
mov edi, dword [ebp - 0x14]
mov dword [eax], edi
jmp 0x40631b
mov edi, dword [ebp - 0xc]
mov dword [eax], edi
jmp 0x40631b
cmp edi, 0x22222222
jne 0x4062f0
mov edi, dword [0x4126f4]
mov dword [eax], edi
jmp 0x40631b
cmp edi, 0x33333333
jne 0x4062ff
mov edi, dword [ebp - 0x10]
mov dword [eax], edi
jmp 0x40631b
cmp edi, 0x44444444
jne 0x40630e
mov edi, dword [ebp - 0x1c]
mov dword [eax], edi
jmp 0x40631b
cmp edi, 0x55555555
jne 0x40631b
mov edi, dword [ebp - 0x18]
mov dword [eax], edi
inc ecx
dec edx
jne 0x4062bc
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov eax, dword [0x4126f0]
push eax
mov eax, dword [0x4126e4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push esi
call sub.kernel32.dll_GlobalFree
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406362
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.004031a0
ret