Function at 0x140064d80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rdi, rdx
mov rbx, rcx
mov r13, rcx
mov qword [rsp + 0xd8], rcx
xor esi, esi
mov rcx, qword [rcx]
mov qword [rbx], rsi
test rcx, rcx
je 0x140064dbf
call fcn.14011460c
mov dword [rbx + 8], esi
mov eax, dword [rbx + 0x48]
cmp eax, 3
jne 0x140064ed8
mov rax, qword [rdi + 0x10]
cmp byte [rbx + 0x70], 0
je 0x140064e66
lea r14, [rax*2 + 4]
mov rcx, r14
call fcn.140114b30
mov rsi, rax
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x140064e13
mov rcx, qword [rbx]
mov qword [rbx], rsi
test rcx, rcx
je 0x140064e20
jmp 0x140064e1b
test rsi, rsi
je 0x140064e20
mov rcx, rsi
call fcn.14011460c
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400653a0
mov eax, 0xfeff
mov word [rcx], ax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064e41
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
add r8, r8
mov rcx, qword [rbx]
add rcx, 2
call fcn.140118050
mov eax, dword [rdi + 0x10]
lea eax, [rax*2 + 2]
mov dword [rbx + 8], eax
jmp 0x1400653a0
lea r14, [rax + rax]
mov rcx, r14
call fcn.140114b30
mov rsi, rax
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x140064e99
mov rcx, qword [rbx]
mov qword [rbx], rsi
test rcx, rcx
je 0x140064ea6
jmp 0x140064ea1
test rsi, rsi
je 0x140064ea6
mov rcx, rsi
call fcn.14011460c
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400653a0
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064ebf
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
add r8, r8
call fcn.140118050
mov eax, dword [rdi + 0x10]
add eax, eax
mov dword [rbx + 8], eax
jmp 0x1400653a0
cmp eax, 4
jne 0x14006514b
mov rax, qword [rdi + 0x10]
cmp byte [rbx + 0x70], 0
je 0x140064f73
lea r15, [rax*2 + 4]
mov rcx, r15
call fcn.140114b30
mov r14, rax
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x140064f26
mov rcx, qword [rbx]
mov qword [rbx], r14
test rcx, rcx
je 0x140064f33
jmp 0x140064f2e
test r14, r14
je 0x140064f33
mov rcx, r14
call fcn.14011460c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140064fdc
mov eax, 0xfeff
mov word [rcx], ax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064f54
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
add r8, r8
mov rcx, qword [rbx]
add rcx, 2
call fcn.140118050
mov eax, dword [rdi + 0x10]
lea eax, [rax*2 + 2]
jmp 0x140064fd9
lea r15, [rax + rax]
mov rcx, r15
call fcn.140114b30
mov r14, rax
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x58]
cmp rbx, rax
je 0x140064fa6
mov rcx, qword [rbx]
mov qword [rbx], r14
test rcx, rcx
je 0x140064fb3
jmp 0x140064fae
test r14, r14
je 0x140064fb3
mov rcx, r14
call fcn.14011460c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140064fdc
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140064fc8
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
add r8, r8
call fcn.140118050
mov eax, dword [rdi + 0x10]
add eax, eax
mov dword [rbx + 8], eax
mov r9, qword [rbx]
mov r10d, dword [rbx + 8]
shr r10d, 3
mov edx, esi
test r10d, r10d
je 0x1400650cd
cmp r10d, 8
jb 0x1400650cd
mov ecx, r10d
and ecx, 0x80000007
jge 0x14006500e
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r10d
sub eax, ecx
movsxd rcx, eax
movdqa xmm3, xmmword [0x140169dd0]
movdqa xmm4, xmmword [0x140169e10]
mov eax, 8
movd xmm2, eax
lea rax, [r9 + 0x20]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm0
pand xmm1, xmm4
psllq xmm1, xmm2
psrlq xmm0, xmm2
pand xmm0, xmm3
por xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm0
pand xmm1, xmm4
psllq xmm1, xmm2
psrlq xmm0, xmm2
pand xmm0, xmm3
por xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm0
pand xmm1, xmm4
psllq xmm1, xmm2
psrlq xmm0, xmm2
pand xmm0, xmm3
por xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm0
pand xmm1, xmm4
psllq xmm1, xmm2
psrlq xmm0, xmm2
pand xmm0, xmm3
por xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
add edx, 8
add rsi, 8
lea rax, [rax + 0x40]
cmp rsi, rcx
jl 0x140065033
movsxd r8, edx
mov r11d, r10d
cmp r8, r11
jge 0x14006510d
movabs rsi, 0xff00ff00ff00ff
mov rcx, qword [r9 + r8*8]
mov rdx, rcx
shr rdx, 8
mov rax, rcx
shl rax, 8
xor rdx, rax
and rdx, rsi
shl rcx, 8
xor rdx, rcx
mov qword [r9 + r8*8], rdx
inc r8
cmp r8, r11
jl 0x1400650e2
lea ecx, [r10*4]
mov edx, dword [rbx + 8]
shr rdx, 1
cmp rcx, rdx
jae 0x1400653a0
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r9 + rcx*2]
rol ax, 8
mov word [r9 + rcx*2], ax
inc rcx
cmp rcx, rdx
jl 0x140065130
jmp 0x1400653a0
cmp eax, 5
jne 0x1400652cd
mov rax, qword [rdi + 0x18]
mov r8, rdi
cmp byte [rbx + 0x70], 0
je 0x140065238
cmp rax, 8
jb 0x14006516e
mov r8, qword [rdi]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r15d, eax
lea ecx, [rax + 3]
movsxd r12, ecx
mov rcx, r12
call fcn.140114b30
mov r14, rax
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x60]
cmp rbx, rax
je 0x1400651ca
mov rcx, qword [rbx]
mov qword [rbx], r14
test rcx, rcx
je 0x1400651d7
jmp 0x1400651d2
test r14, r14
je 0x1400651d7
mov rcx, r14
call fcn.14011460c
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400653a0
movzx eax, word [0x140163b70]
mov word [rcx], ax
movzx eax, byte [0x140163b72]
mov byte [rcx + 2], al
mov rax, qword [rbx]
add rax, 3
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14006520b
mov r8, qword [rdi]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [rax + 2]
jmp 0x140065385
cmp rax, 8
jb 0x140065241
mov r8, qword [rdi]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
mov rcx, r15
call fcn.140114b30
mov r14, rax
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x68]
cmp rbx, rax
je 0x140065297
mov rcx, qword [rbx]
mov qword [rbx], r14
test rcx, rcx
je 0x1400652a4
jmp 0x14006529f
test r14, r14
je 0x1400652a4
mov rcx, r14
call fcn.14011460c
mov rax, qword [rbx]
test rax, rax
je 0x1400653a0
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400652bd
mov r8, qword [rdi]
mov ecx, 0xfde9
mov r9d, 0xffffffff
jmp 0x140065366
dec eax
cmp eax, 1
ja 0x1400653a0
mov r9d, dword [rdi + 0x10]
inc r9d
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400652ec
mov r8, qword [rdi]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
mov rcx, r15
call fcn.140114b30
mov r14, rax
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.140118720
lea rax, [rsp + 0x70]
cmp rbx, rax
je 0x14006533b
mov rcx, qword [rbx]
mov qword [rbx], r14
test rcx, rcx
je 0x140065348
jmp 0x140065343
test r14, r14
je 0x140065348
mov rcx, r14
call fcn.14011460c
mov rax, qword [rbx]
test rax, rax
je 0x1400653a0
mov r9d, dword [rdi + 0x10]
inc r9d
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140065364
mov r8, qword [rdi]
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [rax - 1]
mov dword [rbx + 8], ecx
cmp eax, r15d
je 0x1400653a0
mov rcx, qword [rbx]
mov qword [rbx], rsi
test rcx, rcx
je 0x14006539d
call fcn.14011460c
mov dword [rbx + 8], esi
jmp 0x1400653ba
lea rcx, [r13 + 0x10]
cmp qword [rbx], 0
je 0x1400653dc
cmp rcx, rdi
je 0x1400653eb
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1400653d7
mov rdi, qword [rdi]
mov rdx, rdi
jmp 0x1400653e6
xor r8d, r8d
lea rdx, [0x140162d5c]
call fcn.14004ca40
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret