Function at 0x436184
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff388
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x43671d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
push 0x4361e5
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 0x435e4c
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x436438
mov eax, 0x435e8c
mov dword [ebp - 0x24], eax
lea eax, [ebx + 5]
mov edx, dword [ebp - 0x24]
sub edx, eax
push edx
push 0x442f70
push 0xa
mov byte [ebp - 0xc78], 0xe9
lea edx, [ebp - 0xc78]
xor ecx, ecx
mov eax, ebx
call fcn.004360e0
test eax, eax
jne 0x4366c5
mov esi, 0x43cfa4
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004065b4
mov eax, 2
mov edx, eax
sub edx, eax
movzx edx, byte [esi + edx]
imul edx, eax
inc edx
mov dword [ebp - 0x54], edx
lea edx, [eax + 1]
cmp edx, dword [ebp - 0x54]
jg 0x43658b
cmp dword [ebp - 0x54], 0xff
jg 0x43658b
mov edx, eax
sub edx, eax
movzx ecx, byte [esi + edx]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 0x55], dl
mov ecx, eax
sub ecx, eax
add ecx, edx
mov ebx, dword [ebp - 0x54]
dec ebx
sub ebx, ecx
jl 0x43650c
inc ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x50]
lea ecx, [ebp + ecx - 0x774]
add edx, eax
cmp byte [esi + edx], 1
jne 0x4364ef
mov ebx, eax
dec ebx
mov edi, edx
sub edi, ebx
movzx ebx, byte [esi + edi]
add byte [ebp - 0x55], bl
jmp 0x4364fd
mov ebx, eax
dec ebx
mov edi, edx
sub edi, ebx
movzx ebx, byte [esi + edi]
sub byte [ebp - 0x55], bl
movzx ebx, byte [ebp - 0x55]
mov byte [ecx], bl
inc dword [ebp - 0x50]
inc ecx
dec dword [ebp - 0x5c]
jne 0x4364d7
mov edx, eax
sub dl, al
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0x774], dl
mov dword [ebp - 0x60], 2
xor ebx, ebx
lea ecx, [ebp - 0x974]
lea eax, [ebp - 0x774]
cmp byte [eax + ebx], 0
je 0x43655d
lea eax, [ebp - 0x774]
movzx eax, byte [eax + ebx]
lea edx, [ebx + 1]
add eax, edx
cdq
idiv dword [ebp - 0x60]
mov edx, ebx
inc edx
add ax, dx
mov word [ecx], ax
inc ebx
add ecx, 2
cmp ebx, 0x100
jne 0x436529
movzx eax, word [ebp - 0x60]
sub ax, word [ebp - 0x60]
mov word [ebp + ebx*2 - 0x974], ax
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x974]
mov ecx, pe_nt_image_headers32
call fcn.00406748
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.004065b4
mov esi, 0x43cff0
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.004065b4
mov eax, 2
mov edx, eax
sub edx, eax
movzx edx, byte [esi + edx]
imul edx, eax
inc edx
mov dword [ebp - 0x68], edx
lea edx, [eax + 1]
cmp edx, dword [ebp - 0x68]
jg 0x4366a8
cmp dword [ebp - 0x68], 0xff
jg 0x4366a8
mov edx, eax
sub edx, eax
movzx ecx, byte [esi + edx]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 0x69], dl
mov ecx, eax
sub ecx, eax
add ecx, edx
mov ebx, dword [ebp - 0x68]
dec ebx
sub ebx, ecx
jl 0x436629
inc ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x64]
lea ecx, [ebp + ecx - 0xa74]
add edx, eax
cmp byte [esi + edx], 1
jne 0x43660c
mov ebx, eax
dec ebx
mov edi, edx
sub edi, ebx
movzx ebx, byte [esi + edi]
add byte [ebp - 0x69], bl
jmp 0x43661a
mov ebx, eax
dec ebx
mov edi, edx
sub edi, ebx
movzx ebx, byte [esi + edi]
sub byte [ebp - 0x69], bl
movzx ebx, byte [ebp - 0x69]
mov byte [ecx], bl
inc dword [ebp - 0x64]
inc ecx
dec dword [ebp - 0x70]
jne 0x4365f4
mov edx, eax
sub dl, al
mov eax, dword [ebp - 0x64]
mov byte [ebp + eax - 0xa74], dl
mov dword [ebp - 0x74], 2
xor ebx, ebx
lea ecx, [ebp - 0xc74]
lea eax, [ebp - 0xa74]
cmp byte [eax + ebx], 0
je 0x43667a
lea eax, [ebp - 0xa74]
movzx eax, byte [eax + ebx]
lea edx, [ebx + 1]
add eax, edx
cdq
idiv dword [ebp - 0x74]
mov edx, ebx
inc edx
add ax, dx
mov word [ecx], ax
inc ebx
add ecx, 2
cmp ebx, 0x100
jne 0x436646
movzx eax, word [ebp - 0x74]
sub ax, word [ebp - 0x74]
mov word [ebp + ebx*2 - 0xc74], ax
lea eax, [ebp - 0x20]
lea edx, [ebp - 0xc74]
mov ecx, pe_nt_image_headers32
call fcn.00406748
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.004065b4
push 0x10
mov eax, dword [ebp - 0x1c]
call fcn.004065ec
push eax
mov eax, dword [ebp - 0x14]
call fcn.004065ec
push eax
push 0
call sub.user32.dll_MessageBoxW
jmp 0x436702
lea eax, [ebp - 0x28]
push eax
push 0x40
push 0xb
push 0x442f70
call sub.kernel32.dll_VirtualProtect
add ebx, 5
mov byte [0x442f75], 0xe9
mov dword [ebp - 0x2c], 0x442f76
mov eax, 0x442f75
add eax, 5
sub ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], ebx
mov eax, dword [0x43d008]
mov dword [eax], 0xabcdef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436724
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00406558
ret