Function at 0x404319
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.00405c14
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 0x40437f
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0x4550
je 0x404386
xor eax, eax
jmp 0x404828
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 0x4043db
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 0x404476
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 0x404447
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 0x404471
mov ecx, dword [ebp - 0x58]
and ecx, 0xffff
mov dword [ebp - 0x10], ecx
jmp 0x4043cf
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 0x4044a0
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 0x4044e5
push 0x10
push 0x4014bc
push 0x4014c4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404828
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040bcb0
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x58], 0
jmp 0x404522
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 0x404592
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.0040bcb0
add esp, 0xc
jmp 0x404516
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 [0x411344], ecx
cmp dword [ebp - 0x10], 0
je 0x404602
call fcn.0040487e
cmp eax, 1
jne 0x404602
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 0x404640
push 0x8000
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4014dc
push 0x4014e4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404828
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 0x40466e
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x68]
mov dword [ebp - 8], eax
jmp 0x40469a
push 0x8000
push 0
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x401500
push 0x401508
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404828
mov edx, 1
test edx, edx
je 0x404806
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4046be
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x4046be
jmp 0x404806
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [0x411344]
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 0x4046ed
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 0x4046f8
jmp 0x404826
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x404710
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x68]
mov dword [ebp - 0x88], edx
jmp 0x40471f
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 0x4047f8
mov dword [ebp - 0x8c], 0x80000000
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
and eax, dword [ebp - 0x8c]
test eax, eax
je 0x40477c
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 0x4047a3
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 0x4047d5
push 0x8000
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x401520
push 0x401528
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404828
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 0x40472e
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x40469a
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004033f0
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [0x41133c], edx
mov eax, 1
jmp 0x404828
jmp 0x4047f8
mov esp, ebp
pop ebp
ret