Function at 0x424579
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x42abd0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x174], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
mov edi, ecx
push 0x40
mov dword [ebp - 0x180], eax
mov ebx, edx
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x190], edi
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
push 0x40
lea eax, [ebp - 0x16c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x424b02
cmp dword [ebp - 0x178], 0x40
jb 0x424b02
push 0xf8
lea eax, [ebp - 0x12c]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
push 0xf8
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x130]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x424b02
cmp dword [ebp - 0x178], 0xf8
jb 0x424b02
mov eax, 0x10b
cmp word [ebp - 0x114], ax
je 0x424659
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x424b02
movzx ecx, word [ebp - 0x118]
mov eax, dword [ebp - 0x130]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x5c], esi
xor ecx, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x170], esi
cmp cx, word [ebp - 0x126]
jae 0x424717
lea edx, [ebx + eax]
mov dword [ebp - 0x184], edx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x178]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push edx
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x424b02
cmp dword [ebp - 0x178], 0x28
jb 0x424b02
cmp dword [ebp - 0x54], esi
jne 0x4246ec
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0xac], ecx
jb 0x4246ec
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx]
cmp dword [ebp - 0xac], eax
jae 0x4246ec
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp - 0x184]
inc ecx
movzx eax, word [ebp - 0x126]
add edx, 0x28
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x184], edx
cmp ecx, eax
jb 0x42468f
mov eax, dword [ebp - 0xa8]
xor edx, edx
push 0x14
pop ecx
div ecx
mov edi, eax
mov eax, dword [ebp - 0x180]
mul ecx
mov ecx, eax
cmp edx, esi
ja 0x424b02
jb 0x424743
cmp ecx, 0xffffffff
ja 0x424b02
imul eax, edi, 0x14
mov dword [ebp - 0x170], eax
add eax, ecx
cmp eax, ecx
jb 0x424b02
lea edi, [eax + 7]
and edi, 0xfffffff8
cmp edi, eax
jb 0x424b02
mov ecx, dword [ebp - 0x180]
mov eax, ecx
push 0x10
pop edx
mul edx
cmp edx, esi
ja 0x424b02
jb 0x424784
cmp eax, 0xffffffff
ja 0x424b02
add eax, edi
mov dword [ebp - 0x18c], eax
cmp eax, edi
jb 0x424b02
mov dword [ebp - 0x17c], eax
mov edx, esi
test ecx, ecx
je 0x4247e6
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax + edx*4]
lea eax, [ecx + 1]
mov dword [ebp - 0x198], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4247b2
sub ecx, dword [ebp - 0x198]
lea eax, [ecx + 4]
and eax, 0xfffffffc
add eax, dword [ebp - 0x17c]
cmp eax, dword [ebp - 0x17c]
jb 0x424b02
inc edx
mov dword [ebp - 0x17c], eax
cmp edx, dword [ebp - 0x180]
jb 0x4247a0
push eax
call fcn.004262c8
pop ecx
push dword [ebp - 0x17c]
mov dword [ebp - 0x188], eax
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [ebp - 0x108]
add esp, 0xc
add eax, ebx
mov edx, ebx
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x110]
add eax, dword [ebp - 0x100]
cmp ebx, eax
jae 0x424825
mov edx, eax
push dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x190]
call fcn.004243ac
mov dword [ebp - 0x1ac], eax
test eax, eax
je 0x424af6
mov ecx, dword [ebp - 0xac]
mov edx, eax
sub edx, ebx
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x194], edx
test ecx, ecx
je 0x4248a9
lea eax, [ebp - 0x178]
push eax
imul eax, dword [ebp - 0x180], 0x14
push dword [ebp - 0x170]
add eax, dword [ebp - 0x188]
push eax
lea eax, [ecx + ebx]
push eax
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x424af6
mov eax, dword [ebp - 0x170]
cmp dword [ebp - 0x178], eax
jb 0x424af6
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], esi
cmp dword [ebp - 0x180], esi
jbe 0x424a22
mov eax, dword [ebp - 0x188]
lea ecx, [eax + 4]
mov dword [ebp - 0x170], ecx
lea ecx, [edx + edi]
mov dword [ebp - 0x19c], ecx
lea ecx, [eax + 4]
add ecx, edi
mov edi, dword [ebp - 0x18c]
mov dword [ebp - 0x184], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x174]
mov dword [ebp - 0x1a4], ecx
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x17c]
push dword [ecx]
sub edx, edi
add edi, eax
mov ecx, edi
mov dword [ebp - 0x1a8], edx
call fcn.004241cb
test eax, eax
js 0x424af6
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x424943
test edi, edi
je 0x424943
jmp 0x424937
cmp byte [edi], 0x3f
jne 0x424935
cmp byte [edi + 1], 0x3f
je 0x42493e
dec eax
inc edi
cmp eax, 2
jae 0x42492a
jmp 0x424943
mov word [edi], 0x3233
mov ecx, dword [ebp - 0x170]
mov edi, dword [ebp - 0x19c]
mov dword [ecx - 4], edi
cmp dword [ebp + 0xc], esi
jne 0x42495c
xor eax, eax
inc eax
jmp 0x42496b
mov eax, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x174]
mov eax, dword [edx + eax]
mov edx, dword [ebp - 0x184]
add eax, 0x80000000
mov dword [edx - 4], eax
lea eax, [edi + 8]
mov dword [edx], esi
mov dword [ecx + 0xc], eax
cmp dword [ebp + 0xc], esi
jne 0x42498b
xor eax, eax
inc eax
jmp 0x42499a
mov eax, dword [ebp - 0x1a4]
mov edi, dword [ebp - 0x174]
mov eax, dword [edi + eax]
mov edi, dword [ebp - 0x18c]
add eax, 0x80000000
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x194]
mov dword [edx + 8], esi
add eax, edi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x174]
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4249c6
add dword [ebp - 0x19c], 0x10
sub ecx, edx
add dword [ebp - 0x184], 0x10
add dword [ebp - 0x170], 0x14
lea eax, [ecx + 4]
mov ecx, dword [ebp - 0x174]
and eax, 0xfffffffc
add ecx, 4
add edi, eax
mov dword [ebp - 0x174], ecx
mov eax, dword [ebp - 0x198]
inc eax
mov dword [ebp - 0x18c], edi
cmp eax, dword [ebp - 0x180]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x188]
jb 0x4248f9
jmp 0x424a28
mov edi, dword [ebp - 0x18c]
push esi
push edi
push dword [ebp - 0x188]
mov edi, dword [ebp - 0x190]
push dword [ebp - 0x1ac]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x424af6
cmp dword [ebp - 0x54], esi
jne 0x424a64
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x50], eax
jmp 0x424a6a
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x40
push dword [ebp - 0xd8]
mov dword [ebp - 0xac], ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x424af6
push esi
push 0x40
lea eax, [ebp - 0x16c]
mov dword [ebp - 0xd4], esi
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x424af6
push esi
push 0xf8
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x130]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x424af6
lea eax, [ebp - 0x1a0]
push eax
push dword [ebp - 0x1a0]
push dword [ebp - 0xd8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x424af6
xor esi, esi
inc esi
push dword [ebp - 0x188]
call fcn.00425aba
pop ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425660
leave
ret 0xc