Function at 0x140016230
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movups xmm0, xmmword [str.zAuE_XNhULZ___a_D]
movzx eax, byte [0x14001a328]
xor r15d, r15d
mov edi, dword [0x14001c018]
mov rsi, rcx
movdqa xmm6, xmmword [0x14001a4e0]
mov ecx, r15d
mov qword [rbp + 0xf], rdx
mov qword [rbp + 0x17], r8
mov byte [rbp - 0x19], al
movups xmmword [rbp - 0x29], xmm0
cmp edi, 2
jl 0x1400163b6
movdqa xmm0, xmmword [0x14001a500]
lea rdx, [rbp - 0x25]
movdqa xmm4, xmmword [0x14001a4b0]
movdqa xmm3, xmmword [0x14001a510]
movdqa xmm5, xmmword [0x14001a4d0]
movdqa xmmword [rbp - 0x39], xmm0
mov r8d, dword [rbp - 0x39]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400162d0
cmp ecx, 0x11
jge 0x1400163ed
movsxd rax, ecx
lea r8, [rbp - 0x29]
add r8, rax
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x34
xor byte [r8 - 1], al
cmp ecx, 0x11
jl 0x1400163c0
mov rcx, qword [0x14001c140]
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x14001a343], r15b
mov r14, rax
movups xmm0, xmmword [0x14001a330]
mov ecx, dword [0x14001a340]
mov dword [rbp - 1], ecx
movups xmmword [rbp - 0x11], xmm0
je 0x140016591
mov r8d, r15d
cmp edi, 2
jl 0x140016549
movdqa xmm0, xmmword [0x14001a500]
lea rcx, [rbp - 0xd]
movdqa xmm4, xmmword [0x14001a4b0]
movdqa xmm3, xmmword [0x14001a510]
movdqa xmm5, xmmword [0x14001a4d0]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, dword [rbp - 0x39]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa 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 [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa 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 [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140016460
cmp r8d, 0x14
jge 0x140016591
movsxd rax, r8d
lea r9, [rbp - 0x11]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x140016560
mov rcx, qword [0x14001c140]
lea rdx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x14001a34f], r15b
mov rbx, rax
mov rcx, qword [str.zAu_WJ__zApE_lRNIK__f.7_G]
mov qword [rbp - 0x39], rcx
je 0x1400166e1
cmp edi, 2
jl 0x1400166a0
movdqa xmm3, xmmword [0x14001a4b0]
movdqa xmm2, xmmword [0x14001a4c0]
movdqa xmm1, xmm3
movdqa xmm4, xmmword [0x14001a510]
movdqa xmm0, xmm3
mov eax, dword [0x14001a500]
punpckhdq xmm0, xmm3
punpckldq xmm1, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x39]
pmulld xmm0, xmmword [0x14001a4d0]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
xorps xmm3, xmm1
movdqa xmm1, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movd dword [rbp - 0x39], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x35]
pmulld xmm0, xmmword [0x14001a4d0]
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x35], xmm2
jmp 0x1400166e1
lea r9, [rbp - 0x39]
mov r8d, r15d
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x1400166b0
mov rcx, qword [0x14001c140]
lea rdx, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r14, r14
je 0x140016776
mov rcx, qword [rbp + 0x17]
mov r9, rsi
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
mov edx, 0x1fffff
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 7]
mov qword [rbp + 7], r15
call r14
test eax, eax
js 0x14001674e
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14001674e
call rdi
mov al, 1
jmp 0x140016778
mov r9d, 0x8000
lea rdx, [rbp + 0xf]
xor r8d, r8d
mov rcx, rsi
call rbx
test eax, eax
js 0x140016776
mov r9d, 0x8000
lea rdx, [rbp + 0x17]
xor r8d, r8d
mov rcx, rsi
call rbx
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140018dd0
mov rbx, qword [rsp + 0x118]
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret