Function at 0x180039c00
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.180039b20
nop
mov rdx, qword [rbx + 0x30]
lea rcx, [rbp + 0x28]
call fcn.180039b20
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.18003ef40
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]
lea edx, [r12 + 1]
cmp byte [rcx + rax - 1], 0x54
jne 0x180039e87
mov rax, qword [str.lKUKTD]
mov qword [rsp + 0x30], rax
cmp byte [str._mWSJIX], r12b
je 0x180039e1f
cmp dword [0x18016d018], 2
jl 0x180039de2
movdqa xmm4, xmmword [0x180166160]
movd xmm6, edx
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x1801660e0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180166110]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166150]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180166170]
movd xmm0, dword [rsp + 0x30]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x180166100]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180166110]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166150]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180166170]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
jmp 0x180039e1f
lea r9, [rsp + 0x30]
mov r8d, r12d
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180039df0
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180039e30
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180039e7d
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 0x18003a0e4
lea r9, [rsp + 0x30]
jmp 0x18003a0d3
lea rax, [rbp + 0x48]
cmp r15, 0x10
cmovae rax, r14
cmp byte [rax + rcx - 1], 0x55
jne 0x18003a01e
mov rax, qword [0x180165eb8]
mov qword [rsp + 0x30], rax
cmp byte [0x180165ebf], 0
je 0x18003a000
cmp dword [0x18016d018], 2
jl 0x180039fc9
movdqa xmm4, xmmword [0x180166160]
movd xmm6, edx
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x1801660e0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180166110]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166150]
packuswb xmm2, xmm2
mov eax, dword [0x180166170]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x30]
xorps xmm2, xmm1
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x180166100]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180166110]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180166150]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x34]
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
jmp 0x18003a000
lea r9, [rsp + 0x30]
mov r8d, r12d
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180039fd1
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18003a010
jmp 0x180039e39
lea rax, [rbp + 0x48]
cmp r15, 0x10
cmovae rax, r14
cmp byte [rcx + rax - 1], 0x59
jne 0x18003a0e4
mov eax, dword [0x180165e6c]
mov dword [rsp + 0x30], eax
movzx ecx, word [0x180165e70]
mov word [rsp + 0x34], cx
movzx eax, byte [0x180165e72]
mov byte [rsp + 0x30], 0x59
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor cl, 0x3c
mov byte [rsp + 0x34], cl
xor byte [rsp + 0x35], 0x3d
xor al, 0x3e
mov byte [rsp + 0x36], al
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x18003a084
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x18003a0ce
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 0x18003a0e4
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.18003f1d0
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 0x18003a135
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 0x18003a146
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.18003f1d0
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.18003ef40
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 [0x1801660b0]
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 [0x18016da38]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r12d
mov rcx, rbx
cmp byte [rax + 0x19], 0
jne 0x18003a21a
mov qword [rsp + 0x40], rax
cmp qword [rax + 0x20], rsi
jge 0x18003a206
mov dword [rsp + 0x48], r12d
mov rax, qword [rax + 0x10]
jmp 0x18003a214
mov dword [rsp + 0x48], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18003a1f0
cmp byte [rcx + 0x19], 0
jne 0x18003a22a
cmp rsi, qword [rcx + 0x20]
jge 0x18003a2b9
movabs rax, 0x276276276276276
cmp qword [0x18016da40], rax
je 0x18003a470
lea r12, [0x18016da38]
mov qword [rsp + 0x30], r12
xor r13d, r13d
mov qword [rsp + 0x38], r13
lea ecx, [r13 + 0x68]
call fcn.18003ffc8
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.18003f360
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.18003ed90
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18003a319
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a313
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a313
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003fb5c
nop
cmp r15, 0x10
jb 0x18003a354
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x18003a34b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a34b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.18003fb5c
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x18003a392
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a38d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a38d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003fb5c
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x18003a3e0
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a3db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a3db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003fb5c
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x18003a431
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a42c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a42c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003fb5c
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18003f9c0
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.180039970
nop
int3