Function at 0x180001730
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180044040]
xor rax, rsp
mov qword [rbp + 0x37], rax
movups xmm0, xmmword [0x1800377d8]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [0x1800377e8]
movups xmmword [rbp - 0x39], xmm1
movups xmm0, xmmword [0x1800377f8]
movups xmmword [rbp - 0x29], xmm0
movsd xmm0, qword [0x180037808]
movsd qword [rbp - 0x19], xmm0
mov eax, dword [0x180037810]
mov dword [rbp - 0x11], eax
movzx eax, word [0x180037814]
mov word [rbp - 0xd], ax
movzx eax, byte [0x180037816]
mov byte [rbp - 0xb], al
xor r14d, r14d
mov ecx, r14d
cmp dword [0x180044090], 2
jl 0x1800018f2
movdqa xmm5, xmmword [0x18003dad0]
movdqa xmm4, xmmword [0x18003db80]
movdqa xmm6, xmmword [0x18003db00]
movdqa xmm0, xmmword [str.4444444444444444]
movdqa xmmword [rbp + 0x17], xmm0
lea rdx, [rbp - 0x45]
mov r8d, dword [rbp + 0x17]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18003db40]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18003db40]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x38
jl 0x1800017f0
cmp ecx, 0x3f
jge 0x18000192c
movsxd rax, ecx
lea r8, [rbp - 0x49]
add r8, rax
nop dword [rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x3f
jl 0x180001900
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], r14b
lea rax, [rbp - 0x49]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x180001950
mov edi, r14d
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
idiv ebx
movsxd rax, edx
movzx r9d, byte [rbp + rax - 0x49]
mov rcx, qword [rbp + 7]
mov rdx, qword [rbp + 0xf]
cmp rcx, rdx
jae 0x18000199f
lea rax, [rcx + 1]
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
cmp rdx, 0xf
cmova rax, qword [rbp - 9]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800019a8
lea rcx, [rbp - 9]
call fcn.180006d40
inc edi
cmp edi, 0x10
jb 0x180001960
lea rcx, [rbp - 9]
mov r8, qword [rbp - 9]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
cmova rcx, r8
mov rsi, qword [rbp + 7]
add rsi, rcx
lea rdi, [rbp - 9]
cmp rdx, 0xf
cmova rdi, r8
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov ebx, 7
cmp rdi, rsi
jne 0x1800019f1
mov word [rbp + 0x17], r14w
jmp 0x180001b05
sub rsi, rdi
mov qword [rbp + 0x2f], rbx
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
ja 0x180001bc4
cmp rsi, rbx
jbe 0x180001aba
mov rbx, rsi
or rbx, 7
cmp rbx, rax
jbe 0x180001a33
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x180001a62
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x180001bbe
add rcx, rcx
cmp rcx, 0x1000
jb 0x180001a99
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180001bbe
mov rcx, rax
call fcn.1800355e8
mov rcx, rax
test rax, rax
je 0x180001b40
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x2f], rbx
jmp 0x180001abe
test rcx, rcx
je 0x180001aad
call fcn.1800355e8
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x2f], rbx
jmp 0x180001abe
mov rax, r14
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x2f], rbx
jmp 0x180001abe
mov rax, qword [rbp + 0x17]
lea r8, [rbp + 0x17]
cmp rbx, 7
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x180001af4
nop word [rax + rax]
movsx eax, byte [rdi]
mov word [rcx], ax
lea rcx, [rcx + 2]
lea rdi, [rdi + 1]
sub rdx, 1
jne 0x180001ae0
mov word [r8 + rsi*2], r14w
mov rdx, qword [rbp + 0xf]
mov r8, qword [rbp - 9]
mov rbx, qword [rbp + 0x2f]
lea rdi, [rbp + 0x17]
mov rcx, qword [rbp + 0x17]
cmp rbx, 7
cmova rdi, rcx
jbe 0x180001b54
lea rdx, [rbx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001b47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001b47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800355e0
mov rdx, qword [rbp + 0xf]
mov r8, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x180001b8d
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x180001b85
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001b85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1800355e0
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800355c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
call fcn.180001190
nop
call fcn.180001230
int3