Function at 0x405a60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 0x5a4d
mov dword [ebp - 0x10], eax
cmp word [esi], cx
jne 0x405c87
mov ebx, dword [esi + 0x3c]
mov ecx, 0x14c
add ebx, esi
mov dword [ebp - 4], ebx
cmp word [ebx + 4], cx
jne 0x405c87
push 4
push 0x3000
push dword [ebx + 0x50]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push dword [ebx + 0x50]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [ebx + 0x54]
test edi, edi
je 0x405ae3
xor ecx, ecx
test edx, edx
je 0x405ae3
mov al, byte [ecx + esi]
mov byte [ecx + edi], al
inc ecx
cmp ecx, edx
jb 0x405ad8
movzx ecx, word [ebx + 0x14]
xor eax, eax
add ecx, ebx
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 8], ecx
cmp dx, word [ebx + 6]
jae 0x405b45
nop dword [eax]
movzx eax, ax
lea ebx, [eax + eax*4]
mov esi, dword [ecx + ebx*8 + 0x28]
test esi, esi
je 0x405b35
mov edx, dword [ecx + ebx*8 + 0x2c]
mov ebx, dword [ecx + ebx*8 + 0x24]
add edx, dword [ebp - 0x18]
add ebx, edi
je 0x405b35
test edx, edx
je 0x405b35
xor ecx, ecx
test esi, esi
je 0x405b32
mov al, byte [ecx + edx]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x405b27
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
inc eax
mov dword [ebp - 0xc], eax
cmp ax, word [ebx + 6]
jb 0x405b00
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0xa0]
add eax, edi
mov dword [ebp - 0x20], eax
mov eax, edi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xa4]
mov dword [ebp - 0xc], eax
je 0x405bc7
test eax, eax
je 0x405bc7
xor esi, esi
test eax, eax
je 0x405bc7
mov dword [ebp - 0x18], 0x1000
nop word [eax + eax]
lea ebx, [ecx + esi]
add esi, 8
mov edx, dword [ebx + edi + 4]
sub edx, 8
shr edx, 1
je 0x405bc0
lea eax, [ecx + esi]
add esi, 2
movzx eax, word [eax + edi]
cmp ax, word [ebp - 0x18]
jb 0x405bb8
mov ecx, dword [ebp - 0x10]
and eax, 0xfff
add eax, dword [ebx + edi]
add dword [eax + edi], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xa0]
sub edx, 1
jne 0x405b91
mov eax, dword [ebp - 0xc]
cmp esi, eax
jb 0x405b80
mov ebx, dword [ebp - 4]
cmp dword [ebx + 0x84], 0
mov eax, dword [ebx + 0x80]
je 0x405c4d
cmp dword [eax + edi + 0xc], 0
lea esi, [eax + edi]
mov dword [ebp - 0x10], esi
je 0x405c4d
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call ecx
mov edx, dword [esi]
mov esi, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
lea ecx, [edx + edi]
test ecx, ecx
lea ebx, [esi + edi]
cmovne esi, edx
add esi, edi
mov eax, dword [esi]
test eax, eax
je 0x405c38
jns 0x405c1e
movzx eax, ax
jmp 0x405c23
add eax, 2
add eax, edi
push eax
push dword [ebp - 0xc]
call dword [ebp - 8]
add esi, 4
mov dword [ebx], eax
add ebx, 4
mov eax, dword [esi]
test eax, eax
jne 0x405c17
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add esi, 0x14
mov dword [ebp - 0x10], esi
cmp dword [esi + 0xc], 0
jne 0x405bf4
mov ebx, dword [ebp - 4]
cmp dword [ebx + 0xc4], 0
mov esi, dword [ebx + 0xc0]
je 0x405c76
mov esi, dword [esi + edi + 0xc]
test esi, esi
je 0x405c76
mov eax, dword [esi]
test eax, eax
je 0x405c76
push 0
push 1
push edi
call eax
add esi, 4
jne 0x405c64
push 0
push 1
push edi
call dword [ebp - 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret