Function at 0x1400525c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov r13d, r9d
mov r12, r8
xor ebx, ebx
mov dword [rbp + 0x7f], ebx
mov r14d, ebx
mov rax, qword gs:[0x60]
mov qword [rbp - 0x69], rax
movups xmm3, xmmword [0x1400d7a60]
movups xmmword [rbp - 0x61], xmm3
movdqa xmm7, xmmword [0x1400c2ed0]
mov r15d, dword [0x1400e1258]
movdqa xmm0, xmm3
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140052809
mov r8d, ebx
cmp r15d, 2
jl 0x1400527d0
movdqa xmm4, xmmword [0x1400d7b70]
movdqa xmm5, xmmword [0x1400d7b60]
movdqa xmm6, xmmword [0x1400c9560]
movdqa xmm2, xmmword [0x1400c2e60]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd eax, xmm3
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rbp - 0x61], xmm2
movdqa xmm2, xmmword [0x1400c2e70]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [rbp - 0x5d]
xorps xmm2, xmm0
movd dword [rbp - 0x5d], xmm2
movdqa xmm3, xmmword [0x1400c2e80]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm6
movd xmm0, dword [rbp - 0x59]
xorps xmm3, xmm0
movd dword [rbp - 0x59], xmm3
movdqa xmm2, xmmword [0x1400c2e90]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [rbp - 0x55]
xorps xmm2, xmm0
movd dword [rbp - 0x55], xmm2
jmp 0x140052809
lea r9, [rbp - 0x61]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x1400527e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
lea rax, [rbp - 0x61]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x140052826
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x21]
call fcn.140001620
nop
lea rsi, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rsi, qword [rbp - 0x21]
movsd xmm0, qword [0x1400d7a50]
movsd qword [rbp - 0x61], xmm0
movzx eax, word [0x1400d7a58]
mov word [rbp - 0x59], ax
cmp byte [0x1400d7a59], 0
je 0x140052894
mov byte [rbp - 0x61], 0x6e
xor byte [rbp - 0x60], 0x37
xor byte [rbp - 0x5f], 0x38
xor byte [rbp - 0x5e], 0x39
xor byte [rbp - 0x5d], 0x3a
xor byte [rbp - 0x5c], 0x3b
xor byte [rbp - 0x5b], 0x3c
xor byte [rbp - 0x5a], 0x3d
xor byte [rbp - 0x59], 0x3e
xor byte [rbp - 0x58], 0x3f
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
lea rax, [rbp - 0x61]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400528b0
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140001620
nop
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rdx, qword [rbp - 0x41]
mov r8, rsi
lea rcx, [0x1400e14d8]
call fcn.140050b40
mov rsi, rax
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x140052926
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052921
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052921
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14005297d
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052970
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052970
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x21], 0
test rsi, rsi
je 0x140053083
lea r8d, [r13 + 0x10]
xor edx, edx
mov rcx, qword [rbp - 0x69]
mov rcx, qword [rcx + 0x30]
call rsi
mov rsi, rax
test rax, rax
je 0x14005307e
mov eax, dword [rbp + 0x6f]
mov dword [rsi], eax
mov qword [rsi + 4], rbx
mov dword [rsi + 0xc], r13d
movups xmm6, xmmword [0x1400d7a70]
movups xmmword [rbp - 0x61], xmm6
movsd xmm0, qword [0x1400d7a80]
movsd qword [rbp - 0x51], xmm0
movzx eax, byte [0x1400d7a88]
mov byte [rbp - 0x49], al
mov r8d, ebx
cmp r15d, 2
jl 0x140052c4c
movdqa xmm4, xmmword [0x1400d7b70]
movdqa xmm5, xmmword [0x1400d7b60]
movdqa xmm3, xmmword [0x1400c2e60]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov ecx, dword [0x1400c9560]
movd xmm0, ecx
paddb xmm3, xmm0
movd eax, xmm6
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rbp - 0x61], xmm3
movdqa xmm2, xmmword [0x1400c2e70]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x5d]
xorps xmm2, xmm1
movd dword [rbp - 0x5d], xmm2
movdqa xmm3, xmmword [0x1400c2e80]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm1, dword [rbp - 0x59]
xorps xmm3, xmm1
movd dword [rbp - 0x59], xmm3
movdqa xmm2, xmmword [0x1400c2e90]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x55]
xorps xmm2, xmm1
movd dword [rbp - 0x55], xmm2
movdqa xmm3, xmmword [0x1400c2ea0]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm1, dword [rbp - 0x51]
xorps xmm3, xmm1
movd dword [rbp - 0x51], xmm3
movdqa xmm2, xmmword [0x1400c2eb0]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x4d]
xorps xmm2, xmm1
movd dword [rbp - 0x4d], xmm2
mov r8d, 0x18
mov eax, r8d
lea r9, [rbp - 0x61]
add r9, rax
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, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x19
jl 0x140052c60
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
lea rax, [rbp - 0x61]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140052ca6
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x21]
call fcn.140001620
nop
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdx, qword [rbp - 0x21]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea eax, [r13 + 0x10]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, 0x4c
lea rcx, [0x1400e14c8]
call fcn.14004d7a0
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x140052d31
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140052d2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052d2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x21], 0
mov r14d, dword [rsi + 0xc]
test r12, r12
je 0x140052d5a
mov r8d, r14d
lea rdx, [rsi + 0x10]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [0x1400d7aa0]
movsd qword [rbp - 0x61], xmm0
mov ecx, dword [0x1400d7aa8]
mov dword [rbp - 0x59], ecx
cmp byte [0x1400d7aab], 0
je 0x140052ef5
cmp r15d, 2
jl 0x140052ec4
movdqa xmm4, xmmword [0x1400d7b70]
movdqa xmm5, xmmword [0x1400d7b60]
movdqa xmm3, xmmword [0x1400c2e60]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x1400c9560]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [0x1400d7aa0]
xorps xmm3, xmm0
movd dword [rbp - 0x61], xmm3
movdqa xmm2, xmmword [0x1400c2e70]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x5d]
xorps xmm2, xmm1
movd dword [rbp - 0x5d], xmm2
movdqa xmm3, xmmword [0x1400c2e80]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm1, ecx
xorps xmm3, xmm1
movd dword [rbp - 0x59], xmm3
jmp 0x140052ef5
lea r8, [rbp - 0x61]
nop dword [rax + rax]
mov eax, 0x51eb851f
mul ebx
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x36
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xc
jl 0x140052ed0
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
lea rax, [rbp - 0x61]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140052f10
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.140001620
nop
lea rbx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0xf
cmova rbx, qword [rbp - 0x41]
movsd xmm0, qword [0x1400d7a90]
movsd qword [rbp - 0x61], xmm0
movzx eax, word [0x1400d7a98]
mov word [rbp - 0x59], ax
cmp byte [0x1400d7a99], 0
je 0x140052f7f
mov byte [rbp - 0x61], 0x6e
xor byte [rbp - 0x60], 0x37
xor byte [rbp - 0x5f], 0x38
xor byte [rbp - 0x5e], 0x39
xor byte [rbp - 0x5d], 0x3a
xor byte [rbp - 0x5c], 0x3b
xor byte [rbp - 0x5b], 0x3c
xor byte [rbp - 0x5a], 0x3d
xor byte [rbp - 0x59], 0x3e
xor byte [rbp - 0x58], 0x3f
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
lea rax, [rbp - 0x61]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140052f92
mov r8, rdi
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x21]
call fcn.140001620
nop
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdx, qword [rbp - 0x21]
mov r8, rbx
lea rcx, [0x1400e14d8]
call fcn.140050b40
mov rbx, rax
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14005300a
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053005
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053005
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x140053061
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053054
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053054
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059504
movdqa xmm0, xmmword [0x1400c2e50]
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x41], 0
test rbx, rbx
je 0x140053083
mov r8, rsi
xor edx, edx
mov rax, qword [rbp - 0x69]
mov rcx, qword [rax + 0x30]
call rbx
mov eax, r14d
jmp 0x140053085
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret