Function at 0x40aa20
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x40dba1], 0
movq xmm0, qword [str._FWXY]
mov ax, word [0x40dba0]
push esi
mov dword [ebp - 8], 0
movq qword [ebp - 0x18], xmm0
mov word [ebp - 0x10], ax
je 0x40aaa3
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, byte [ebp - 0xc]
shl cl, 3
sub al, cl
mov ecx, dword [ebp - 0xc]
add al, 0x31
xor byte [ebp + ecx - 0x18], al
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 0xa
jl 0x40aa70
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40ac68
cmp byte [0x40ddcd], 0
movups xmm0, xmmword [0x40ddb4]
mov cx, word [0x40ddcc]
mov word [ebp - 0x1c], cx
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [0x40ddc4]
movq qword [ebp - 0x24], xmm0
je 0x40ac33
xor ecx, ecx
cmp dword [0x410470], 2
jl 0x40ac06
movaps xmm0, xmmword [0x40de30]
movaps xmm4, xmmword [0x40ddd0]
movaps xmm3, xmmword [0x40de70]
movaps xmm5, xmmword [0x40ddf0]
movups xmm6, xmmword [0x40de10]
movaps xmmword [ebp - 0x50], xmm0
mov edx, dword [ebp - 0x50]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x34]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + ecx - 0x34], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x30]
xorps xmm2, xmm0
movd dword [ebp + ecx - 0x30], xmm2
add ecx, 8
cmp ecx, 0x18
jl 0x40ab20
cmp ecx, 0x1a
jge 0x40ac33
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, al
shl dl, 3
sub dl, al
mov al, cl
shl dl, 3
sub al, dl
add al, 0x31
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0x1a
jl 0x40ac06
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ac68
push 0
push 4
lea eax, [ebp - 8]
push eax
push 7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x40ac68
cmp dword [ebp - 8], eax
je 0x40ac68
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040bba7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret