Function at 0x5439c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x643bac], 0
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, dword [eax]
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x3d8], 0
jne 0x543a1e
push 0x643bb0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x643bac], 1
push 0x643bb0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.00544030
mov esi, eax
push edi
mov dword [ebp - 0x3e4], esi
call fcn.00544030
mov dword [ebp - 0x3f4], eax
xor edi, edi
lea eax, [ebp - 0x3d0]
push 1
push eax
call fcn.005444b0
add esp, 0x10
test eax, eax
je 0x543dff
mov edi, edi
push 0x26
push esi
push 0
lea eax, [ebp - 0x3d0]
push esi
push eax
call fcn.00544390
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x543ab3
mov eax, dword [ecx + 0x11c]
cmp eax, 0x105
je 0x543ab3
cmp eax, 0x101
je 0x543ab3
cmp eax, 0x102
je 0x543ab3
cmp eax, 0x103
je 0x543ab3
cmp eax, 0x104
je 0x543ab3
mov eax, dword [ecx + 0x128]
add edi, eax
add esi, eax
cmp edi, 5
jb 0x543a60
lea eax, [ebp - 0x3d0]
push eax
call fcn.00544370
add esp, 4
cmp edi, 5
jb 0x543dff
mov esi, dword [ebp - 0x3e4]
push edi
push esi
call fcn.00544070
add esp, 8
mov dword [ebp - 0x3d8], 0
cmp esi, 0x80000000
jae 0x543b00
lea eax, [esi + 0x7ff80000]
mov esi, 1
mov dword [ebp - 0x3d4], eax
jmp 0x543b10
mov dword [ebp - 0x3d4], 0xfff80000
add esi, 0x80010000
xor eax, eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x400], eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x3d4]
jae 0x543dfa
push 0x1c
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x543bd2
cmp dword [ebp - 0x42c], 0x10000
jne 0x543bbc
mov eax, dword [ebp - 0x430]
cmp eax, 0x70
jb 0x543bc2
mov ecx, dword [ebp - 0x404]
cmp eax, ecx
jb 0x543bc2
lea eax, [ecx - 1]
xor edx, edx
add eax, esi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x70
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x3d8], eax
test eax, eax
jne 0x543be0
mov eax, dword [ebp - 0x430]
mov esi, dword [ebp - 0x43c]
add esi, eax
cmp esi, dword [ebp - 0x3d4]
jb 0x543b61
mov eax, dword [ebp - 0x3d8]
test eax, eax
je 0x543dfa
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x3e0]
push ecx
push 0x40
push 0x70
push eax
mov dword [ebp - 0x3dc], eax
call esi
mov ecx, dword [ebp - 0x3d8]
mov eax, dword [0x643bc8]
inc dword [0x643bcc]
mov dword [0x643bc8], ecx
mov dword [ecx], eax
lea eax, [ebp - 0x3e0]
push eax
push dword [ebp - 0x3e0]
push 0x70
push ecx
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp - 0x3e4]
mov edx, eax
mov ecx, dword [ebp - 0x3dc]
lea eax, [ebp - 0x3e0]
push eax
push 0x40
push edi
push esi
push edx
mov dword [ebp - 0x3d4], edx
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3d8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x543dd9
mov ecx, dword [ebp - 0x3dc]
lea eax, [ebp - 0x3ec]
push eax
push 0x40
push 0x70
push ecx
push dword [ebp - 0x3d4]
mov dword [ebp - 0x3d8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x543db0
mov ecx, dword [ebp - 0x3dc]
xor edx, edx
mov dword [ebp - 0x3d8], ecx
lea esi, [ecx + 0x50]
mov dword [ebp - 0x3f8], esi
lea eax, [ecx + 0x30]
mov esi, dword [ebp - 0x3e4]
mov dword [ebp - 0x3e8], esi
mov esi, eax
sub dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3f0], eax
mov ecx, dword [ebp - 0x3e8]
lea eax, [edx + esi]
mov cl, byte [ecx + eax]
mov byte [eax], cl
mov eax, dword [ebp - 0x3f8]
mov byte [eax + edx], cl
inc edx
cmp edx, edi
jb 0x543cd3
mov esi, dword [ebp - 0x3e4]
lea eax, [edi + esi]
push eax
mov eax, dword [ebp - 0x3f0]
add eax, edi
push eax
call fcn.00543970
mov edx, dword [ebp - 0x3f4]
add esp, 8
mov ecx, edx
mov eax, esi
sub ecx, esi
sub eax, edx
cmp edx, esi
push edx
cmovae eax, ecx
cmp eax, 0x7fff0000
jbe 0x543d55
mov esi, dword [ebp - 0x3dc]
add esi, 0x10
push esi
call fcn.00543970
sub eax, dword [ebp - 0x3dc]
add esp, 8
sub eax, 0x10
push eax
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
mov esi, dword [ebp - 0x3e4]
push esi
call fcn.00543970
mov ecx, dword [ebp - 0x3dc]
add esp, 8
mov edx, dword [ebp - 0x3f4]
mov eax, ecx
push edi
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x3fc]
mov dword [eax + 8], edi
mov dword [eax + 4], esi
lea eax, [ecx + 0x30]
push eax
push dword [ebp - 0x3d4]
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x3ec]
push eax
push dword [ebp - 0x3ec]
mov eax, dword [ebp - 0x3dc]
push 0x70
push eax
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x3e0]
push eax
push dword [ebp - 0x3e0]
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x3dc]
cmp dword [eax + 4], 0
jne 0x543dfa
push 1
push eax
call fcn.005442f0
add esp, 8
mov dword [ebp - 0x3d8], 0
call fcn.00543fa0
push 0x643bb0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x3d8], eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0055c3a9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret