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.18003f580
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 0x180039e87
mov rax, qword [0x180165fb0]
mov qword [rsp + 0x30], rax
cmp byte [0x180165fb7], r12b
je 0x180039e20
cmp dword [0x18016d018], 2
jl 0x180039de2
movdqa xmm4, xmmword [0x180166310]
mov eax, 4
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
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.4444444444444444]
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
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.4444444444444444]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
jmp 0x180039e20
lea r9, [rsp + 0x30]
mov r8d, r12d
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x34
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]
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 0x18003a0f4
lea r9, [rsp + 0x30]
jmp 0x18003a0e3
lea rax, [rbp + 0x48]
cmp r15, 0x10
cmovae rax, r14
cmp byte [rax + rcx - 1], 0x55
jne 0x18003a02e
mov rax, qword [str.a__FM_]
mov qword [rsp + 0x30], rax
cmp byte [str.__GYGP_], 0
je 0x18003a010
cmp dword [0x18016d018], 2
jl 0x180039fce
movdqa xmm4, xmmword [0x180166310]
mov eax, 4
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
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.4444444444444444]
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
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 0x18003a010
lea r9, [rsp + 0x30]
mov r8d, r12d
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x180039fe0
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18003a020
jmp 0x180039e39
lea rax, [rbp + 0x48]
cmp r15, 0x10
cmovae rax, r14
cmp byte [rcx + rax - 1], 0x59
jne 0x18003a0f4
mov eax, dword [str.mZCY_]
mov dword [rsp + 0x30], eax
movzx ecx, word [0x180165f74]
mov word [rsp + 0x34], cx
movzx eax, byte [0x180165f76]
mov byte [rsp + 0x30], 0x59
xor byte [rsp + 0x31], 0x35
xor byte [rsp + 0x32], 0x36
xor byte [rsp + 0x33], 0x37
xor cl, 0x38
mov byte [rsp + 0x34], cl
xor byte [rsp + 0x35], 0x39
xor al, 0x3a
mov byte [rsp + 0x36], al
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x18003a094
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x18003a0de
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 0x18003a0f4
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.18003f810
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 0x18003a145
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 0x18003a156
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.18003f810
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.18003f580
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 0x18003a22a
mov qword [rsp + 0x40], rax
cmp qword [rax + 0x20], rsi
jge 0x18003a216
mov dword [rsp + 0x48], r12d
mov rax, qword [rax + 0x10]
jmp 0x18003a224
mov dword [rsp + 0x48], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18003a200
cmp byte [rcx + 0x19], 0
jne 0x18003a23a
cmp rsi, qword [rcx + 0x20]
jge 0x18003a2c9
movabs rax, 0x276276276276276
cmp qword [0x18016da48], rax
je 0x18003a480
lea r12, [0x18016da40]
mov qword [rsp + 0x30], r12
xor r13d, r13d
mov qword [rsp + 0x38], r13
lea ecx, [r13 + 0x68]
call fcn.180040628
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.18003f9a0
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.18003f3d0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18003a329
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a323
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800401bc
nop
cmp r15, 0x10
jb 0x18003a364
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x18003a35b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a35b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1800401bc
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x18003a3a2
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a39d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a39d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800401bc
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x18003a3f0
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a3eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a3eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800401bc
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 0xf
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x18003a441
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003a43c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003a43c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800401bc
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180040020
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