Function at 0x5608f8
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.005608d4
test al, al
jne 0x56092b
push 0x560c38
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
jmp 0x560c2d
mov eax, dword [0x586584]
call fcn.0042d4a4
push ebp
push 0x560c26
push dword fs:[0]
mov dword fs:[0], esp
cmp dword [0x586590], 0
jle 0x560987
cmp dword [0x58658c], 0
je 0x560987
cmp dword [0x586588], 0
je 0x560987
inc dword [0x586590]
mov eax, dword [0x58658c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [0x586588]
mov dword [eax], edx
call fcn.004045b0
jmp 0x560c2d
test ebx, ebx
je 0x560c0e
mov eax, ebx
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x560c0e
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x560c0e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00402ce0
mov eax, dword [ebp - 0xc]
add eax, 0x18
add eax, dword [ebp - 0x18]
sub eax, ebx
mov edx, dword [ebp - 0xc]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jb 0x560a56
inc esi
mov edx, 0x560c48
mov eax, dword [ebp - 0x10]
call fcn.0040a39c
test eax, eax
jne 0x560a19
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
call fcn.00402ce0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebp - 0x10], eax
dec esi
jne 0x560a02
cmp dword [ebp - 0x14], 0
je 0x560bca
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
add eax, ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x560adf
mov eax, 8
jmp 0x560ac2
add esi, eax
mov dx, word [esi]
movzx ecx, dx
shr ecx, 0xc
and cx, 0xf
and dx, 0xfff
mov word [ebp - 0x46], dx
sub cx, 3
jne 0x560abf
movzx edx, word [ebp - 0x46]
mov ecx, dword [ebp - 0x1c]
add edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
sub edx, dword [ecx + 0x34]
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], edx
add eax, 2
mov esi, dword [ebp - 0x1c]
mov edx, esi
add edx, 4
cmp eax, dword [edx]
jb 0x560a79
mov edx, dword [ebp - 0x1c]
add edx, 4
mov edx, dword [edx]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0x20]
ja 0x560a72
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x560bca
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jmp 0x560bbe
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov edi, eax
test edi, edi
jne 0x560b46
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x560b46
call fcn.004045b0
jmp 0x560c2d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
jmp 0x560bad
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
mov eax, esi
and eax, 0x7fffffff
cmp esi, eax
je 0x560b6d
mov bl, 1
and esi, 0x7fffffff
test bl, bl
jne 0x560b89
add esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x2c]
add eax, 2
push eax
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
jmp 0x560b93
push esi
push edi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
add eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x560b53
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x560b06
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
mov esi, dword [ebp - 0x18]
add ebx, esi
push 0
push 1
push esi
call ebx
test al, al
jne 0x560be7
call fcn.004045b0
jmp 0x560c2d
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov dword [0x586590], 1
mov eax, dword [ebp - 8]
mov dword [0x58658c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x586588], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x560c2d
mov eax, dword [0x586584]
call fcn.0042d4ac
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret