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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406a2d
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x64], ecx
push 0xf8
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x404520
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0x4550
je 0x404527
xor eax, eax
jmp 0x40499b
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x64]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x28
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0xc]
imul eax, ecx
add edx, eax
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], 0
mov word [ebp - 0x58], 0
jmp 0x40457c
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
jae 0x404615
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x10]
cmp dword [ebp - 0x50], eax
jae 0x4045e7
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x58]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x88]
cmp ecx, dword [edx + eax + 0xc]
jne 0x404610
mov edx, dword [ebp - 0x58]
and edx, 0xffff
mov dword [ebp - 0x10], edx
jmp 0x404570
lea eax, [ebp - 0x4c]
push eax
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 0x40463f
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
imul edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push 0x40
push 0x1000
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x404684
push 0x10
push 0x401474
push 0x40147c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40499b
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040c840
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x58], 0
jmp 0x4046c1
mov ax, word [ebp - 0x58]
add ax, 1
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
mov edx, dword [ebp - 0x64]
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jge 0x404735
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.0040c840
add esp, 0xc
jmp 0x4046b5
mov ecx, dword [ebp + 0xc]
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
mov ecx, dword [ebp - 0x64]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x68]
mov dword [0x40ff24], edx
cmp dword [ebp - 0x10], 0
je 0x4047a6
call fcn.004049f1
cmp eax, 1
jne 0x4047a6
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx + 0x14]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov dword [eax + edx + 0x14], ecx
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0
jne 0x4047e4
push 0x8000
push 0
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x401494
push 0x40149c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40499b
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x64]
add edx, dword [eax + 0x34]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x80]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404812
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x68]
mov dword [ebp - 8], ecx
jmp 0x40483e
push 0x8000
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4014b8
push 0x4014c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40499b
mov eax, 1
test eax, eax
je 0x404979
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
jne 0x404862
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jne 0x404862
jmp 0x404979
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [0x40ff24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x404891
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40489c
jmp 0x404999
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
je 0x4048b1
mov edx, dword [ebp - 8]
mov eax, dword [edx]
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
jmp 0x4048bd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x68]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x68]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x78]
cmp dword [edx], 0
je 0x40496b
mov dword [ebp - 0x7c], 0x80000000
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
and ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x404904
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x74]
mov dword [edx], eax
jmp 0x404925
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
add edx, 2
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
cmp dword [ebp - 0x74], 0
jne 0x404954
push 0x8000
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4014d8
push 0x4014e0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40499b
mov eax, dword [ebp - 0x74]
add eax, 4
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x78]
add ecx, 4
mov dword [ebp - 0x78], ecx
jmp 0x4048c9
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x40483e
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004038c0
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [0x40ff1c], edx
mov eax, 1
jmp 0x40499b
jmp 0x40496b
mov esp, ebp
pop ebp
ret