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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 4], edi
je 0x418754
mov dword [eax], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x41875e
mov dword [eax], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x418768
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x432220], eax
je 0x418782
mov eax, 0x10dd
pop edi
add esp, 0xc
ret 0x14
mov eax, dword [0x432224]
cmp eax, edi
jne 0x418a4d
mov ecx, dword [esp + 0x14]
cmp ecx, edi
jne 0x4187a3
mov eax, 6
pop edi
add esp, 0xc
ret 0x14
push esi
mov esi, dword [ecx]
cmp esi, edi
jne 0x4187c2
mov eax, 6
pop esi
mov dword [0x432224], eax
mov dword [0x432228], ecx
pop edi
add esp, 0xc
ret 0x14
mov al, byte [esi]
cmp al, 0xff
push ebx
push ebp
mov dword [esp + 0x14], edi
mov bl, 0x25
jne 0x4187ea
cmp byte [esi + 1], bl
jne 0x4187ea
mov ebp, dword [esi + 2]
mov edx, ebp
mov ecx, esi
call fcn.00417db0
test al, al
je 0x4187fe
mov ebp, dword [ebp]
jmp 0x418800
cmp al, 0xeb
jne 0x4187fe
movsx eax, byte [esi + 1]
lea esi, [eax + esi + 2]
cmp byte [esi], 0xe9
jne 0x4187fe
add esi, dword [esi + 1]
mov ebp, esi
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x41880e
mov dword [esp + 0x24], esi
jmp 0x418853
mov al, byte [esi]
cmp al, 0xff
jne 0x418831
cmp byte [esi + 1], bl
jne 0x418831
mov ebx, dword [esi + 2]
mov edx, ebx
mov ecx, esi
call fcn.00417db0
test al, al
je 0x41884f
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
jmp 0x418853
cmp al, 0xeb
jne 0x41884f
movsx edx, byte [esi + 1]
mov cl, byte [edx + esi + 2]
cmp cl, 0xe9
lea eax, [edx + esi + 2]
jne 0x418849
add eax, dword [eax + 1]
mov dword [esp + 0x24], eax
jmp 0x418853
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
jne 0x41886d
mov eax, dword [0x43221c]
test eax, eax
jne 0x4189ec
jmp 0x4189c7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x418877
mov dword [eax], ebp
mov eax, dword [esp + 0x30]
test eax, eax
je 0x418881
mov dword [eax], ecx
push 0x18
call fcn.0041964d
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4188a0
mov dword [esp + 0x10], 8
jmp 0x4189c7
call fcn.00418fa0
mov eax, ebp
call fcn.00417f70
mov edi, eax
test edi, edi
jne 0x4188bf
mov dword [esp + 0x10], 8
jmp 0x4189c7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4188c9
mov dword [eax], edi
mov esi, ebp
xor ebx, ebx
lea ecx, [ecx]
lea eax, [esp + 0x2c]
push eax
push 0
push esi
lea ecx, [ebx + edi]
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], 0
call fcn.00418ba0
mov esi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x418923
mov edx, dword [esp + 0x30]
mov ebx, esi
push edx
sub ebx, ebp
call fcn.00417eb0
add esp, 4
test eax, eax
jne 0x418923
cmp ebx, 5
jl 0x4188d0
cmp ebx, 0x12
jbe 0x418942
mov dword [esp + 0x10], 6
jmp 0x4189c7
cmp ebx, 5
jge 0x418911
mov eax, dword [0x43221c]
test eax, eax
mov dword [esp + 0x10], 9
jne 0x4189d0
jmp 0x4189c7
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], eax
lea edx, [edi + 0x17]
lea eax, [ebx + edi]
lea ecx, [ebx + ebp]
mov dword [edi + 0x18], ecx
lea esi, [eax + 5]
mov byte [edx], bl
mov byte [eax], 0xe9
inc eax
sub ecx, esi
mov dword [eax], ecx
push edx
add eax, 4
push eax
call fcn.00417e70
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x40
push ebx
push ebp
mov dword [esp + 0x28], 0
call esi
test eax, eax
je 0x4189bd
mov ecx, ebp
call fcn.004181e0
mov ebx, eax
test ebx, ebx
je 0x418a1c
cmp word [ebx + 0x1c], 0x6544
je 0x418a1c
lea edx, [esp + 0x2c]
push edx
push 0x40
push 0x40
push ebx
mov dword [esp + 0x3c], 0
call esi
test eax, eax
jne 0x418a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [0x432224], eax
test edi, edi
je 0x4189db
mov ecx, edi
call fcn.004181b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4189ec
push eax
call fcn.00419648
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop esi
mov dword [0x432228], ecx
pop edi
add esp, 0xc
ret 0x14
mov word [ebx + 0x1c], 0x6544
mov word [ebx + 0x1e], 0x6f74
mov word [ebx + 0x20], 0x7275
mov word [ebx + 0x22], 0x2173
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], ebp
mov dword [eax + 8], edx
mov edx, dword [0x432230]
mov dword [eax + 4], 0
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x432230], eax
xor eax, eax
pop esi
pop edi
add esp, 0xc
ret 0x14