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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4a7030], eax
je 0x42c58f
mov eax, 0x10dd
jmp 0x42c77b
mov eax, dword [0x4a7034]
cmp eax, edi
jne 0x42c77b
push ebx
push esi
mov esi, dword [0x4a70e0]
cmp esi, edi
jne 0x42c5bf
push 6
pop eax
mov dword [0x4a7034], eax
mov dword [0x4a7038], 0x4a70e0
jmp 0x42c779
mov dword [ebp - 0x6c], edi
call fcn.0042be45
mov ebx, eax
mov esi, 0x412c90
mov dword [ebp - 0x68], ebx
call fcn.0042be45
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x42c5ee
cmp dword [0x4a702c], edi
jne 0x42c721
jmp 0x42c6ff
push 0x18
call fcn.0044ca20
pop ecx
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x42c609
mov dword [ebp - 0x64], 8
jmp 0x42c6ff
mov eax, ebx
call fcn.0042bf24
mov edi, eax
test edi, edi
je 0x42c5fd
mov esi, ebx
xor ebx, ebx
and dword [ebp - 0x64], 0
lea edx, [ebp - 0x64]
xor ecx, ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], esi
call fcn.0042c908
lea eax, [ebx + edi]
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.0042c930
cmp dword [ebp - 0x64], 0
mov esi, eax
jne 0x42c659
mov ecx, dword [ebp - 0x78]
mov ebx, esi
sub ebx, dword [ebp - 0x68]
call fcn.0042be87
test eax, eax
jne 0x42c659
cmp ebx, 5
jl 0x42c61a
cmp ebx, 5
jge 0x42c677
cmp dword [0x4a702c], 0
mov dword [ebp - 0x64], 9
jne 0x42c707
jmp 0x42c6ff
cmp ebx, 0x12
jbe 0x42c685
mov dword [ebp - 0x64], 6
jmp 0x42c6ff
mov eax, dword [ebp - 0x68]
lea ecx, [ebx + eax]
mov eax, dword [ebp - 0x70]
lea edx, [ebx + edi]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], ecx
lea eax, [edi + 0x17]
lea esi, [edx + 5]
mov byte [eax], bl
sub ecx, esi
mov byte [edx], 0xe9
mov dword [edx + 1], ecx
lea ecx, [edx + 5]
call fcn.0042be23
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push 0x40
push ebx
push dword [ebp - 0x68]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x42c6f6
push dword [ebp - 0x68]
call fcn.0042c117
mov esi, eax
pop ecx
test esi, esi
je 0x42c74d
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x42c74d
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
push 0x40
push 0x40
push esi
call ebx
test eax, eax
jne 0x42c729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [0x4a7034], eax
test edi, edi
je 0x42c712
mov esi, edi
call fcn.0042c0fa
cmp dword [ebp - 0x6c], 0
je 0x42c721
push dword [ebp - 0x6c]
call fcn.0044bdaa
pop ecx
mov eax, dword [ebp - 0x64]
jmp 0x42c5b0
mov eax, 0x6544
mov word [esi + 0x1c], ax
mov eax, 0x6f74
mov word [esi + 0x1e], ax
mov eax, 0x7275
mov word [esi + 0x20], ax
mov eax, 0x2173
mov word [esi + 0x22], ax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
and dword [eax + 4], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0x4a70e0
mov dword [eax + 0x10], edi
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x4a7040]
mov dword [eax], ecx
mov dword [0x4a7040], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0044bf82
leave
ret