Function at 0x4049b7
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov byte [ebp - 0x80], 0
xor eax, eax
mov dword [ebp - 0x7f], eax
mov dword [ebp - 0x7b], eax
mov dword [ebp - 0x77], eax
mov word [ebp - 0x73], ax
mov byte [ebp - 0x71], al
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x80]
push edx
push 0x64
mov eax, dword [ebp + 8]
push eax
call fcn.004061a4
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x64], eax
push 0xf8
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x404a1d
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0x4550
je 0x404a24
xor eax, eax
jmp 0x404ec6
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x64]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x28
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov ax, word [edx + 6]
mov edx, dword [ebp - 0xc]
imul edx, eax
add ecx, edx
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0x58], 0
jmp 0x404a79
mov cx, word [ebp - 0x58]
add cx, 1
mov word [ebp - 0x58], cx
mov edx, dword [ebp - 0x58]
and edx, 0xffff
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cx, word [eax + 6]
cmp edx, ecx
jae 0x404b14
mov edx, dword [ebp - 0x58]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx + eax + 0x10]
cmp dword [ebp - 0x50], edx
jae 0x404ae5
mov edx, dword [ebp - 0x58]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x50], edx
mov edx, dword [ebp - 0x58]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0x88]
cmp eax, dword [ecx + edx + 0xc]
jne 0x404b0f
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
mov dword [ebp - 0x10], ecx
jmp 0x404a6d
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x50]
xor edx, edx
div dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
xor edx, edx
div dword [ebp - 0x48]
test edx, edx
je 0x404b3e
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
imul ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
push 0x40
push 0x1000
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x404b83
push 0x10
push 0x4014e8
push 0x4014f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404ec6
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406f60
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x58], 0
jmp 0x404bc0
mov dx, word [ebp - 0x58]
add dx, 1
mov word [ebp - 0x58], dx
mov eax, dword [ebp - 0x58]
and eax, 0xffff
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x404c30
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.00406f60
add esp, 0xc
jmp 0x404bb4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x68]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
add eax, 0xf8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x68]
mov dword [0x415088], ecx
cmp dword [ebp - 0x10], 0
je 0x404ca0
call fcn.00404f1c
cmp eax, 1
jne 0x404ca0
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x14]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0
jne 0x404cde
push 0x8000
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x401508
push 0x401510
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404ec6
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x64]
add ecx, dword [edx + 0x34]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x404d0c
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x68]
mov dword [ebp - 8], eax
jmp 0x404d38
push 0x8000
push 0
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x40152c
push 0x401534
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404ec6
mov edx, 1
test edx, edx
je 0x404ea4
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x404d5c
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x404d5c
jmp 0x404ea4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [0x415088]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x404d8b
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x404d96
jmp 0x404ec4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x404dae
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x68]
mov dword [ebp - 0x88], edx
jmp 0x404dbd
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x68]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x88]
cmp dword [ecx], 0
je 0x404e96
mov dword [ebp - 0x8c], 0x80000000
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
and eax, dword [ebp - 0x8c]
test eax, eax
je 0x404e1a
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x84]
mov dword [ecx], eax
jmp 0x404e41
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x84]
mov dword [ecx], eax
cmp dword [ebp - 0x84], 0
jne 0x404e73
push 0x8000
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x40154c
push 0x401554
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404ec6
mov eax, dword [ebp - 0x84]
add eax, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x88]
add ecx, 4
mov dword [ebp - 0x88], ecx
jmp 0x404dcc
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x404d38
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004039f0
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [0x415080], edx
mov eax, 1
jmp 0x404ec6
jmp 0x404e96
mov esp, ebp
pop ebp
ret