Function at 0x140051900
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14042a740]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
call fcn.1400302c0
call fcn.140031180
call fcn.140012dc0
call fcn.14000c660
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
lea rsi, [rbp + 0x5f]
movabs rcx, 0xff00ff00ff00ff00
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], rsi
mov rbx, qword [rsi]
mov rax, rbx
xor rax, rcx
mov qword [rbp - 0x19], rax
mov qword [rsi], 0
mov rax, qword [0x14042ae38]
mov ecx, 0x2d
call rax
nop
mov qword [rsi], rbx
mov rcx, qword [0x14042af10]
test al, 1
je 0x1400519a6
cmp byte [rcx + 8], 0
sete al
mov byte [rcx + 8], al
cmp byte [rcx + 9], 0
sete al
mov byte [rcx + 9], al
movss xmm6, dword [0x1400636b8]
cmp byte [rcx + 0x8e], 0
je 0x140051a50
call fcn.14000c930
mov rbx, rax
movss xmm0, dword [0x1404283b0]
movss dword [rbp - 0x19], xmm0
movss xmm1, dword [0x1404283b4]
movss dword [rbp - 0x15], xmm1
movss xmm0, dword [0x1404283b8]
movss dword [rbp - 0x11], xmm0
mov dword [rbp - 0xd], 0x3f800000
lea rcx, [rbp - 0x19]
call fcn.140009d20
mov r9d, eax
mov rcx, qword [0x14042af10]
movd xmm2, dword [rcx + 0x88]
cvtdq2ps xmm2, xmm2
mov eax, dword [rcx + 4]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rcx]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp - 0x29], xmm0
movss dword [rbp - 0x25], xmm1
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 0x3b
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.14001df20
mov rcx, qword [0x14042af00]
call fcn.14004ae90
movaps xmm0, xmmword [0x1400650c0]
movups xmmword [rbp - 1], xmm0
mov rax, qword [0x14042af10]
cmp byte [rax + 8], 0
je 0x140051a8a
mov dword [rbp - 1], 0
mov dword [rbp + 3], 0x3f800000
mov rcx, rdi
call fcn.140053450
call fcn.14000ccd0
mov eax, dword [0x14006a8e8]
mov dword [rbp - 0x21], eax
movzx eax, word [0x14006a8ec]
mov word [rbp - 0x1d], ax
movzx eax, byte [0x14006a8ee]
movsd xmm0, qword [str._UTOII2_b]
mov byte [rbp - 0x1b], al
movsd qword [rbp - 0x29], xmm0
xor r8d, r8d
cmp dword [0x14042a790], 2
jl 0x140051bcb
movdqa xmm4, xmmword [0x14006ad70]
movdqa xmm2, xmmword [0x140068e60]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14006acc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006acd0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
movd xmm0, dword [str._UTOII2_b]
xorps xmm2, xmm0
movd dword [rbp - 0x29], xmm2
movdqa xmm3, xmmword [0x14006acb0]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14006acc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14006acd0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.9999999999999999]
movd xmm0, dword [rbp - 0x25]
xorps xmm2, xmm0
movd dword [rbp - 0x25], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x29]
add r9, 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, 0x39
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x140051be0
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
lea rax, [rbp - 0x29]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140051c30
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0xf]
call fcn.140001370
nop
call fcn.14000c660
mov rdi, rax
lea rbx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rbx, qword [rbp + 0xf]
lea rcx, [rbp - 1]
call fcn.140009d20
mov dword [rbp - 0x29], 0x420c0000
mov dword [rbp - 0x25], 0x42340000
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, eax
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.140021d00
call fcn.140014f20
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
mov rcx, qword [0x14042ad38]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x14042ad48]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [0x14042ad38]
mov rax, qword [rcx]
lea r8, [rbp + 0x2f]
mov rdx, qword [0x14042ad48]
call qword [rax + 0x190]
call fcn.14000c900
mov rcx, rax
call fcn.140030300
mov rcx, qword [0x14042ad40]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [rax + 0x40]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140051d35
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051d30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051d30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005e40c
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14005e880
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret