Function at 0x140008340
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, rdx
mov rdx, qword [rcx + 0x18]
cmp rdx, 0xffffffffffffffff
je 0x140008be8
mov r9, rcx
mov rsi, qword [rcx + 8]
lea r14, [rsi + 1]
mov rax, r14
shr rax, 3
mov r10, r14
and r10, 0xfffffffffffffff8
sub r10, rax
cmp rsi, 8
mov rax, r10
cmovb rax, rsi
movabs r8, 0x7ffffffffffffff0
mov rcx, rax
shr rcx, 1
cmp rdx, rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x30], r9
jae 0x1400083d9
mov qword [rsp + 0x68], r10
mov rbx, qword [r9]
mov rcx, r14
shr rcx, 4
xor eax, eax
test r14b, 0xf
setne al
add rax, rcx
je 0x14000871a
cmp rax, 1
jne 0x1400086b8
xor ecx, ecx
jmp 0x140008704
cmp rdx, rax
cmova rax, rdx
cmp rax, 7
jae 0x1400083f9
xor ecx, ecx
cmp rax, 3
setae cl
lea r12, [rcx*4 + 4]
jmp 0x140008447
movabs rcx, 0x1ffffffffffffffe
cmp rax, rcx
ja 0x140008be8
lea rcx, [rax*8 + 8]
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r12, 0xffffffffffffffff
shr r12, cl
inc r12
mov ecx, 0x18
mov rax, r12
mul rcx
jo 0x140008be8
mov r13, rax
cmp rax, 0xfffffffffffffff0
ja 0x140008be8
add r13, 0xf
and r13, 0xfffffffffffffff0
lea rbp, [r12 + 0x10]
mov rdx, r13
add rdx, rbp
jb 0x140008be8
cmp rdx, r8
ja 0x140008be8
movzx eax, byte [0x140112110]
xor ecx, ecx
call fcn.140036850
test rax, rax
je 0x140008be8
mov rbx, rax
lea rdi, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 9
cmovb rcx, rdi
mov qword [rsp + 0x38], rcx
add rbx, r13
mov rcx, rbx
mov dl, 0xff
mov r8, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008648
mov qword [rsp + 0x58], r14
mov rax, qword [rsp + 0x30]
mov r12, qword [rax]
movdqa xmm0, xmmword [r12]
pmovmskb r13d, xmm0
not r13d
lea rax, [r12 - 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [r15]
mov qword [rsp + 0x60], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov qword [rsp + 0x28], r12
mov r15, rcx
jmp 0x140008588
lea ecx, [r13 - 1]
and ecx, r13d
dec r15
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r8 + 0x10], al
not rbp
lea rax, [rbp*2]
add rax, rbp
not rdx
lea rdx, [rdx + rdx*2]
mov r9, qword [rsp + 0x28]
mov r8, qword [r9 + rax*8 + 0x10]
mov qword [rbx + rdx*8 + 0x10], r8
movdqu xmm0, xmmword [r9 + rax*8]
movdqu xmmword [rbx + rdx*8], xmm0
mov r13d, ecx
test r15, r15
je 0x14000863c
test r13w, r13w
jne 0x1400085b0
nop
movdqa xmm0, xmmword [r12 + 0x10]
add r12, 0x10
pmovmskb r13d, xmm0
add r14, 0x10
cmp r13d, 0xffff
je 0x140008590
not r13d
tzcnt ebp, r13d
add rbp, r14
mov rax, rbp
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rcx + rax*8 + 8]
mov r9, qword [rcx + rax*8 + 0x10]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
call fcn.140005620
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140008617
mov r8d, 0x10
nop dword [rax]
add rcx, r8
and rcx, rdi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140008600
tzcnt edx, edx
add rdx, rcx
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x140008530
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140008530
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x58]
jmp 0x140008655
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
sub rcx, qword [rsp + 0x50]
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
test rsi, rsi
movabs rdi, 0x7ffffffffffffff0
je 0x140008bd0
mov ecx, 0x18
mov rax, r14
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x140008bd0
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x1401120f0]
xor edx, edx
call fcn.14005177c
jmp 0x140008bd0
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x140055360]
nop
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x1400086d0
test al, 1
je 0x14000871a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x140055360]
movdqa xmmword [rbx + rcx], xmm0
cmp r14, 0x10
jae 0x14000873b
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
test r14, r14
jne 0x140008745
xor ecx, ecx
jmp 0x140008bb8
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs rdi, 0x736f6d6570736575
xor rdi, rax
movabs r13, 0x646f72616e646f6d
xor r13, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x38], rax
xor ecx, ecx
xor r11d, r11d
mov qword [rsp + 0x70], rsi
jmp 0x1400087c5
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, rsi
mov byte [rbx + r11], al
mov byte [rbx + rcx + 0x10], al
xor ecx, ecx
lea rax, [r11 + 1]
cmp r11, rsi
mov r11, rax
je 0x140008bab
cmp cl, byte [rbx + r11]
jno 0x1400087b5
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rcx, r11
not rcx
lea rcx, [rcx + rcx*2]
lea rcx, [rbx + rcx*8]
mov qword [rsp + 0x28], rcx
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], r11
mov rax, r11
neg rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
mov qword [rsp + 0x60], rax
jmp 0x140008833
mov r8, qword [rsp + 0x28]
mov rax, qword [r8 + 8]
movq qword [r8 + 8], xmm0
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [r8 + 0x10], rdx
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x60]
mov r14, qword [rax - 0x10]
mov r12, qword [rax - 8]
mov rax, r12
and rax, 0xfffffffffffffff8
je 0x1400088d0
mov r9, qword [rsp + 0x40]
mov r8, r13
mov r10, qword [rsp + 0x38]
xor r11d, r11d
mov rdx, rdi
mov rcx, qword [r14 + r11]
xor r10, rcx
add rdx, r8
rol r8, 0xd
add r9, r10
xor r8, rdx
rol r10, 0x10
xor r10, r9
rol rdx, 0x20
add r9, r8
add rdx, r10
rol r8, 0x11
xor r8, r9
rol r10, 0x15
rol r9, 0x20
xor r10, rdx
xor rdx, rcx
add r11, 8
cmp r11, rax
jb 0x140008860
mov ebp, r12d
and ebp, 7
cmp ebp, 4
jb 0x1400088ee
mov r15d, dword [r14 + r11]
mov eax, 4
mov ecx, eax
or ecx, 1
cmp ecx, ebp
jb 0x1400088fc
jmp 0x140008927
mov r10, qword [rsp + 0x38]
mov r8, r13
mov r9, qword [rsp + 0x40]
mov rdx, rdi
xor r11d, r11d
mov ebp, r12d
and ebp, 7
cmp ebp, 4
jae 0x1400088ae
xor r15d, r15d
xor eax, eax
mov ecx, eax
or ecx, 1
cmp ecx, ebp
jae 0x140008927
lea rcx, [r14 + rax]
mov rsi, r13
mov r13, rdi
movzx edi, word [r11 + rcx]
lea ecx, [rax*8]
shl rdi, cl
or r15, rdi
mov rdi, r13
mov r13, rsi
mov rsi, qword [rsp + 0x70]
or rax, 2
cmp eax, ebp
jae 0x140008950
add r11, rax
movzx r11d, byte [r14 + r11]
shl eax, 3
mov ecx, eax
shl r11, cl
or r15, r11
mov r11, qword [rsp + 0x48]
jmp 0x14000895a
test rbp, rbp
mov r11, qword [rsp + 0x48]
je 0x1400089ac
lea ecx, [rbp*8]
mov eax, 0xff
shl rax, cl
or rax, r15
cmp rbp, 7
jne 0x1400089c0
xor r10, rax
add rdx, r8
add r9, r10
rol r8, 0xd
rol r10, 0x10
xor r8, rdx
xor r10, r9
rol rdx, 0x20
add r9, r8
add rdx, r10
rol r8, 0x11
xor r8, r9
rol r10, 0x15
xor r10, rdx
rol r9, 0x20
xor rdx, rax
xor eax, eax
jmp 0x1400089c0
mov eax, 0xff
nop word cs:[rax + rax]
shl r12, 0x38
movabs rcx, 0x100000000000000
add r12, rcx
or r12, rax
xor r10, r12
add rdx, r8
rol r8, 0xd
add r9, r10
xor r8, rdx
rol r10, 0x10
xor r10, r9
rol rdx, 0x20
add r9, r8
add rdx, r10
rol r8, 0x11
xor r8, r9
rol r10, 0x15
rol r9, 0x20
xor r10, rdx
xor rdx, r12
xor r9, 0xff
add rdx, r8
add r9, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
rol rdx, 0x20
xor r10, r9
add r9, r8
rol r8, 0x11
add rdx, r10
xor r8, r9
rol r10, 0x15
xor r10, rdx
rol r9, 0x20
add rdx, r8
add r9, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
rol rdx, 0x20
xor r10, r9
add r9, r8
rol r8, 0x11
add rdx, r10
xor r8, r9
rol r10, 0x15
xor r10, rdx
rol r9, 0x20
add rdx, r8
add r9, r10
rol r8, 0xd
xor r8, rdx
rol r10, 0x10
xor r10, r9
add r9, r8
rol r8, 0x11
rol r10, 0x15
mov rax, r9
rol rax, 0x20
xor rax, r8
xor rax, r10
xor rax, r9
mov rcx, rsi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140008ad8
mov r9d, 0x10
mov r8, rcx
nop
add r8, r9
and r8, rsi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140008ac0
tzcnt edx, edx
add rdx, r8
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x140008af4
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rsi
cmp r9, 0x10
jb 0x1400087a0
mov rcx, rdx
not rcx
lea rcx, [rcx + rcx*2]
lea rcx, [rbx + rcx*8]
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x140008b80
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
mov r9, qword [rsp + 0x28]
mov rax, qword [r9]
mov r8, qword [rcx]
mov qword [r9], r8
mov qword [rcx], rax
movq xmm0, qword [rcx + 8]
cmp r9, rdx
jae 0x140008810
cmp rcx, qword [rsp + 0x58]
jmp 0x140008810
lea rax, [r11 - 0x10]
and rax, rsi
mov byte [rbx + r11], 0xff
mov byte [rbx + rax + 0x10], 0xff
mov rdx, qword [rsp + 0x28]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rcx], xmm0
jmp 0x1400087b3
cmp rsi, 8
mov rcx, qword [rsp + 0x68]
cmovb rcx, rsi
sub rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movabs rdi, 0x7ffffffffffffff0
add rdi, 0x11
mov rax, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2