Function at 0x180039c10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x18016d010]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r13, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0xd8]
mov rdx, qword [rbx + 0x28]
lea rcx, [rbp + 0x70]
call fcn.180039b30
nop
mov rdx, qword [rbx + 0x30]
lea rcx, [rbp + 0x28]
call fcn.180039b30
nop
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
xor r12d, r12d
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], r12b
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x48]
call fcn.18003f690
nop
lea rax, [rbp + 0x48]
mov r14, qword [rbp + 0x48]
mov r15, qword [rbp + 0x60]
cmp r15, 0x10
cmovae rax, r14
mov rcx, qword [rbp + 0x58]
cmp byte [rcx + rax - 1], 0x54
jne 0x180039ea7
mov rax, qword [0x180166008]
mov qword [rsp + 0x30], rax
cmp byte [0x18016600f], r12b
je 0x180039e43
cmp dword [0x18016d018], 2
jl 0x180039dfa
movdqa xmm4, xmmword [0x180166330]
mov eax, 5
movd xmm6, eax
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x1801661c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801661f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166230]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.2222222222222222]
movd xmm0, dword [rsp + 0x30]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x1801661e0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801661f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166230]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.2222222222222222]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
jmp 0x180039e43
lea r9, [rsp + 0x30]
mov r8d, r12d
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180039e10
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x180039e50
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180039e9d
lea rax, [rcx + rdi]
mov qword [rbp + 0x18], rax
lea rbx, [rbp + 8]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 8]
add rbx, rcx
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
jmp 0x18003a114
lea r9, [rsp + 0x30]
jmp 0x18003a103
lea rax, [rbp + 0x48]
cmp r15, 0x10
cmovae rax, r14
cmp byte [rax + rcx - 1], 0x55
jne 0x18003a04e
mov rax, qword [str.g__DCR]
mov qword [rsp + 0x30], rax
cmp byte [str.9fA_EN], 0
je 0x18003a033
cmp dword [0x18016d018], 2
jl 0x180039ff6
movdqa xmm4, xmmword [0x180166330]
mov eax, 5
movd xmm6, eax
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x1801661c0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801661f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166230]
packuswb xmm2, xmm2
mov eax, dword [str.2222222222222222]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x30]
xorps xmm2, xmm1
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x1801661e0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801661f0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166230]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x34]
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
jmp 0x18003a033
lea r9, [rsp + 0x30]
mov r8d, r12d
nop
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x18003a000
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x18003a040
jmp 0x180039e59
lea rax, [rbp + 0x48]
cmp r15, 0x10
cmovae rax, r14
cmp byte [rcx + rax - 1], 0x59
jne 0x18003a114
mov eax, dword [0x180165f20]
mov dword [rsp + 0x30], eax
movzx ecx, word [0x180165f24]
mov word [rsp + 0x34], cx
movzx eax, byte [0x180165f26]
mov byte [rsp + 0x30], 0x59
xor byte [rsp + 0x31], 0x33
xor byte [rsp + 0x32], 0x34
xor byte [rsp + 0x33], 0x35
xor cl, 0x36
mov byte [rsp + 0x34], cl
xor byte [rsp + 0x35], 0x37
xor al, 0x38
mov byte [rsp + 0x36], al
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x18003a0b4
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x18003a0fe
lea rax, [rdi + rcx]
mov qword [rbp + 0x18], rax
lea rbx, [rbp + 8]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 8]
add rbx, rcx
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
jmp 0x18003a114
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.18003f920
mov rdi, qword [rbp + 0x38]
lea r9, [rbp + 0x28]
cmp qword [rbp + 0x40], 0x10
cmovae r9, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x18003a165
lea rax, [rdi + rcx]
mov qword [rbp + 0x18], rax
lea rbx, [rbp + 8]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 8]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x18003a176
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.18003f920
movss xmm7, dword [rsi + 0x1c]
movss xmm6, dword [rsi + 0x20]
movsd xmm0, qword [r13]
movsd qword [rsp + 0x58], xmm0
mov eax, dword [r13 + 8]
mov dword [rsp + 0x60], eax
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x68]
call fcn.18003f690
nop
movss dword [rbp - 0x30], xmm6
movsd xmm1, qword [rsp + 0x58]
movsd qword [rbp - 0x28], xmm1
mov edi, dword [rsp + 0x60]
mov dword [rbp - 0x20], edi
movups xmm3, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x18], xmm3
movups xmm2, xmmword [rsp + 0x78]
movdqa xmm0, xmmword [0x180166190]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
movss dword [rbp - 0x70], xmm7
movss dword [rbp - 0x68], xmm6
movaps xmm8, xmm1
movsd qword [rbp - 0x60], xmm1
mov dword [rbp - 0x58], edi
movups xmmword [rbp - 0x50], xmm3
movups xmmword [rbp - 0x40], xmm2
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rbx, qword [0x18016da40]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r12d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x18003a24a
mov qword [rsp + 0x40], rax
cmp qword [rax + 0x20], rsi
jge 0x18003a236
mov dword [rsp + 0x48], r12d
mov rax, qword [rax + 0x10]
jmp 0x18003a244
mov dword [rsp + 0x48], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18003a220
cmp byte [rcx + 0x19], 0
jne 0x18003a25a
cmp rsi, qword [rcx + 0x20]
jge 0x18003a2e9
movabs rax, 0x276276276276276
cmp qword [0x18016da48], rax
je 0x18003a4a0
lea r12, [0x18016da40]
mov qword [rsp + 0x30], r12
xor r13d, r13d
mov qword [rsp + 0x38], r13
lea ecx, [r13 + 0x68]
call fcn.180040738
nop
mov qword [rax + 0x20], rsi
mov dword [rax + 0x28], r13d
mov dword [rax + 0x30], r13d
xor ecx, ecx
mov qword [rax + 0x38], rcx
mov dword [rax + 0x40], ecx
xorps xmm0, xmm0
movups xmmword [rax + 0x48], xmm0
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0xf
mov byte [rax + 0x48], cl
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], cx
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x30], xmm0
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.18003fab0
mov rcx, rax
xor r12d, r12d
movss dword [rcx + 0x28], xmm7
movss dword [rcx + 0x30], xmm6
movsd qword [rcx + 0x38], xmm8
mov dword [rcx + 0x40], edi
add rcx, 0x48
lea rdx, [rbp - 0x50]
call fcn.18003f4e0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18003a349
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a343
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800402cc
nop
cmp r15, 0x10
jb 0x18003a384
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x18003a37b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a37b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1800402cc
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x18003a3c2
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a3bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a3bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800402cc
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x18003a410
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a40b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a40b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800402cc
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x18003a461
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a45c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a45c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800402cc
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180040130
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180039980
nop
int3