Function at 0x140012c60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x19], rcx
xor ebx, ebx
mov dword [rbp - 0x75], ebx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov r12, 0xffffffffffffffff
lea r14, [0x140051468]
mov eax, dword [rcx + rax]
cmp dword [0x1400512b0], eax
jle 0x140012ecf
lea rcx, [0x1400512b0]
call fcn.14003c6e0
cmp dword [0x1400512b0], r12d
jne 0x140012ecf
movups xmm0, xmmword [str.ppppppppppppppp]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [0x1400452b0]
movups xmmword [rbp - 0x59], xmm1
movups xmm0, xmmword [0x1400452c0]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [0x1400452d0]
movups xmmword [rbp - 0x39], xmm1
movzx eax, byte [0x1400452e0]
mov byte [rbp - 0x29], al
mov r8d, ebx
cmp dword [0x140050090], 2
jl 0x140012e47
movdqa xmm4, xmmword [0x140045b50]
movdqa xmm3, xmmword [0x140045c50]
movdqa xmm5, xmmword [str.7777]
movdqa xmm0, xmmword [0x140045c60]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 0x65]
movdqa xmm6, xmmword [0x140045c40]
mov edx, dword [rbp - 9]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x40
jl 0x140012d60
cmp r8d, 0x41
jge 0x140012e80
movsxd rax, r8d
lea r9, [rbp - 0x69]
add r9, 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, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x41
jl 0x140012e51
xorps xmm0, xmm0
movups xmmword [0x140051468], xmm0
mov qword [0x140051478], rbx
mov qword [0x140051480], rbx
lea rax, [rbp - 0x69]
mov r8, r12
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140012ea0
lea rdx, [rbp - 0x69]
mov rcx, r14
call fcn.14001d0c0
lea rcx, [0x14003fcb0]
call fcn.14003ca50
nop
lea rcx, [0x1400512b0]
call fcn.14003c674
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov dword [rbp - 0x75], 1
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rbx
mov ecx, 0x400
call fcn.14003c5c0
mov qword [rbp + 7], rax
lea rsi, [rax + 0x400]
mov qword [rbp + 0x17], rsi
movdqa xmm0, xmmword [0x140045c80]
mov ecx, 8
nop word [rax + rax]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x140012f20
mov qword [rbp + 0xf], rsi
mov r9, rbx
mov r8d, 2
nop dword [rax]
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 - 2]
movsx rcx, byte [r9 + rax]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 - 1]
movsx rcx, byte [r9 + rax + 1]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
movsx rcx, byte [r9 + rax + 2]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], r8d
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 1]
movsx rcx, byte [r9 + rax + 3]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 2]
movsx rcx, byte [r9 + rax + 4]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 3]
movsx rcx, byte [r9 + rax + 5]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 4]
movsx rcx, byte [r9 + rax + 6]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 5]
movsx rcx, byte [r9 + rax + 7]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 6]
movsx rcx, byte [r9 + rax + 8]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 7]
movsx rcx, byte [r9 + rax + 9]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 8]
movsx rcx, byte [r9 + rax + 0xa]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 9]
movsx rcx, byte [r9 + rax + 0xb]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 0xa]
movsx rcx, byte [r9 + rax + 0xc]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 0xb]
movsx rcx, byte [r9 + rax + 0xd]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 0xc]
movsx rcx, byte [r9 + rax + 0xe]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
mov rax, r14
cmp qword [0x140051480], 0xf
cmova rax, qword [0x140051468]
lea edx, [r8 + 0xd]
movsx rcx, byte [r9 + rax + 0xf]
mov rax, qword [rbp + 7]
mov dword [rax + rcx*4], edx
add r8d, 0x10
lea r9, [r9 + 0x10]
lea eax, [r8 - 2]
cmp eax, 0x40
jl 0x140012f60
mov esi, 0xfffffff8
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x1400131c8
mov rcx, qword [r15]
mov rdx, rcx
jmp 0x1400131cb
mov rdx, r15
mov r14, rcx
mov r15, qword [r15 + 0x10]
add r15, rdx
cmp rcx, r15
mov rcx, qword [rbp + 7]
je 0x14001322c
nop
movzx eax, byte [r14]
mov edx, dword [rcx + rax*4]
cmp edx, 0xffffffff
je 0x14001322c
shl ebx, 6
add ebx, edx
add esi, 6
js 0x140013224
mov eax, ebx
mov ecx, esi
sar eax, cl
mov byte [rbp - 0x79], al
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140013211
mov byte [rdx], al
inc qword [rdi + 8]
jmp 0x14001321d
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.1400227b0
sub esi, 8
mov rcx, qword [rbp + 7]
inc r14
cmp r14, r15
jne 0x1400131e0
test rcx, rcx
je 0x140013269
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013264
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013264
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003c604
mov rax, rdi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14003c5a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret