Function at 0x18002b790
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x180367120]
test rax, rax
jne 0x18002ba26
mov ecx, dword [0x18015c440]
mov edx, 0x77
movups xmm0, xmmword [0x18015c430]
movzx eax, word [0x18015c444]
mov dword [rbp + 7], ecx
xor ax, 0x3e
xor word [rbp + 9], 0x3d
xor cx, 0x3c
movups xmmword [rbp - 9], xmm0
xor word [rbp - 7], 0x35
xor word [rbp - 5], 0x36
xor word [rbp - 3], 0x37
xor word [rbp - 1], 0x38
xor word [rbp + 1], 0x39
xor word [rbp + 3], 0x3a
xor word [rbp + 5], 0x3b
mov word [rbp + 7], cx
lea rcx, [rbp - 9]
mov word [rbp - 9], dx
mov word [rbp + 0xb], ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9, rax
test rax, rax
je 0x18002ba18
cmp byte [0x18015c565], 0
mov eax, dword [0x18015c560]
movups xmm0, xmmword [str.zAcD_KiHKK_]
mov dword [rbp + 0x1d], eax
movzx eax, word [0x18015c564]
movups xmmword [rbp + 0xd], xmm0
mov word [rbp + 0x21], ax
je 0x18002b9ff
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x18002b9c5
movdqa xmm0, xmmword [0x180160230]
lea rdx, [rbp + 0x11]
movdqa xmm5, xmmword [0x1801600f0]
mov eax, 4
movdqa xmm4, xmmword [0x1801602d0]
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x180160130]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, dword [rbp - 0x19]
movaps xmmword [rsp + 0x60], xmm8
movd xmm8, eax
nop
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180160210]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180160210]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x18002b8b0
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x16
jge 0x18002b9ff
movsxd rax, ecx
lea r8, [rbp + 0xd]
add r8, rax
nop
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x34
add dl, cl
inc ecx
xor byte [r8 - 1], dl
cmp ecx, 0x16
jl 0x18002b9d0
lea rdx, [rbp + 0xd]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180367120], rax
test rax, rax
jne 0x18002ba26
mov eax, 1
add rsp, 0x90
pop rbp
ret
mov rdx, qword [0x180367128]
test rdx, rdx
jne 0x18002ba49
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
mov qword [0x180367128], rax
mov rax, qword [0x180367120]
mov ecx, 0x1337
call rax
add rsp, 0x90
pop rbp
ret