Function at 0x41b189
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
push ebx
push esi
mov esi, 0x150
push esi
xor ebx, ebx
lea eax, [ebp - 0x2e4]
push ebx
push eax
call fcn.00402220
push dword [ebp + 8]
mov dword [ebp - 0x2e4], esi
call fcn.0041abbb
mov esi, eax
push 0x40
lea eax, [ebp - 0x9c]
push ebx
push eax
mov dword [ebp - 0x20], esi
call fcn.00402220
add esp, 0x1c
lea eax, [ebp - 0x9c]
push ebx
push 0x40
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b749
push edi
push 0x10
pop ecx
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0x2d0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x20]
mov eax, 0x5a4d
mov dword [ebp - 0x2e0], esi
cmp word [ebp - 0x9c], ax
jne 0x41b748
mov edi, 0xf8
push edi
lea eax, [ebp - 0x194]
push ebx
push eax
call fcn.00402220
add esp, 0xc
lea eax, [ebp - 0x194]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x60]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b748
cmp dword [ebp - 0x194], 0x4550
push 0x3e
pop ecx
lea esi, [ebp - 0x194]
lea edi, [ebp - 0x290]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x20]
lea eax, [ecx + edi]
mov dword [ebp - 0x2dc], eax
jne 0x41b748
cmp dword [ebp - 0x114], ebx
je 0x41b748
movzx eax, word [ebp - 0x180]
mov esi, dword [ebp + 8]
add eax, 0x18
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp cx, word [ebp - 0x18e]
jae 0x41b33d
lea edx, [eax + edi]
mov dword [ebp - 0x10], edx
push 0xa
pop ecx
push ebx
xor eax, eax
lea edi, [ebp - 0x5c]
push 0x28
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b748
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0xbc], ebx
jne 0x41b30f
mov ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x114], ecx
jb 0x41b30f
lea eax, [edx + ecx]
cmp dword [ebp - 0x114], eax
jae 0x41b30f
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
add eax, edx
mov edx, dword [ebp - 0x10]
cmp ecx, eax
cmovb ecx, eax
movzx eax, word [ebp - 0x18e]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
inc ecx
add edx, 0x28
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
cmp ecx, eax
jb 0x41b2c1
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x194]
push eax
push edi
push esi
call fcn.0041aa1d
mov ecx, dword [ebp + 0x10]
movzx eax, ax
mov edx, ecx
imul edx, edx, 0x14
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x110]
add eax, 7
mov dword [ebp - 8], edx
add edx, eax
and edx, 0xfffffff8
mov eax, ecx
shl eax, 4
add eax, edx
add esp, 0xc
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov edx, ebx
test ecx, ecx
je 0x41b3b4
mov ebx, dword [ebp + 0xc]
mov edi, eax
mov ecx, dword [ebx + edx*4]
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b391
sub ecx, dword [ebp - 0x24]
lea eax, [ecx + 4]
and eax, 0xfffffffc
add edi, eax
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41b388
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor ebx, ebx
push eax
call fcn.0040170b
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41b748
push dword [ebp - 0x14]
push ebx
push eax
call fcn.00402220
mov ecx, dword [ebp - 0x174]
add ecx, dword [ebp - 0x170]
push dword [ebp - 0x14]
add ecx, dword [ebp - 0x178]
mov eax, edi
add ecx, dword [ebp - 0x168]
add ecx, edi
cmp edi, ecx
cmovb eax, ecx
push eax
push esi
call fcn.0041ab1c
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x41b73f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x114]
push 0x40
push dword [ebp - 0x110]
add eax, edi
push eax
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x2d4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41b73f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x24]
sub eax, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
push ebx
push dword [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x114]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b73f
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x14
jbe 0x41b53c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
lea eax, [ecx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
add edx, eax
add eax, 4
add eax, ecx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, ebx
mov edi, dword [ebp + 0xc]
push dword [edi + eax*4]
mov eax, dword [ebp - 0x14]
sub eax, edx
push eax
lea eax, [edx + ecx]
push eax
call fcn.0041acdf
mov edi, dword [ebp - 0x20]
test eax, eax
js 0x41b73f
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [ecx - 4], eax
mov dword [edx - 4], 0x80000001
mov dword [edx], ebx
add eax, 8
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], 0x80000001
mov dword [edx + 8], ebx
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp - 0x30]
mov ecx, dword [eax + ecx*4]
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b506
sub ecx, dword [ebp - 0x18]
add dword [ebp - 0x2c], 0x10
add dword [ebp - 0x10], 0x10
lea eax, [ecx + 4]
and eax, 0xfffffffc
add edx, eax
mov eax, dword [ebp - 0x30]
push 0x14
pop ecx
add dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp + 0x10]
jb 0x41b4a2
mov eax, dword [ebp - 0x110]
xor edx, edx
div dword [ebp - 0x28]
mov ecx, ebx
mov edx, eax
add edx, dword [ebp + 0x10]
je 0x41b564
mov eax, dword [ebp - 0x1c]
cmp dword [eax], ebx
jne 0x41b55c
cmp dword [eax + 0x10], ebx
je 0x41b564
inc ecx
add eax, 0x14
cmp ecx, edx
jb 0x41b553
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41b73f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b63d
cmp dword [ebp - 0xa8], 0
je 0x41b63d
push ebx
push 0x14
pop ecx
push ecx
lea ecx, [ebp - 0x48]
push ecx
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b73f
mov ecx, dword [ebp - 4]
add ecx, edi
lea eax, [ecx + 0x10]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x198], eax
and eax, 0xfffffffe
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x14
pop eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41b73f
push ebx
push 0x14
pop eax
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41b73f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x14
pop eax
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41b73f
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x140]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41b73f
push ebx
xor eax, eax
push 0x40
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x9c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41b73f
push ebx
push 0xf8
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp - 0x60]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41b73f
lea eax, [ebp - 0x194]
push eax
push edi
push esi
call fcn.0041aa1d
mov ecx, dword [ebp - 0x34]
movzx eax, ax
mov dx, ax
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dx, cx
sbb eax, eax
neg eax
add ax, cx
mov cx, word [ebp - 0x80]
sub dx, ax
cmp cx, dx
push ebx
push 0x40
sbb eax, eax
neg eax
add ax, dx
sub cx, ax
lea eax, [ebp - 0x9c]
push eax
push edi
push esi
mov word [ebp - 0x80], cx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x41b73f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x140]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41b73f
lea eax, [ebp - 0x194]
push eax
push edi
push esi
call fcn.0041aa1d
add esp, 0xc
cmp word [ebp - 0x34], ax
jne 0x41b73f
push 0x150
lea eax, [ebp - 0x2e4]
push eax
push 0x420868
push esi
call fcn.0041ae5e
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
push dword [ebp - 0x1c]
call fcn.0040177f
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret