Function at 0x140052480
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 qword [rsp + 0x30], r8
mov qword [rsp + 0x58], rdx
mov r12, qword [rcx + 0x18]
mov rax, r12
inc rax
je 0x140052d9c
mov rsi, qword [rcx + 8]
lea r8, [rsi + 1]
mov rdx, r8
shr rdx, 3
mov r9, r8
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp rsi, 8
cmovb r9, rsi
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x38], rcx
jbe 0x140052501
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x140052538
xor eax, eax
cmp r9, 4
setae al
lea rdi, [rax*4 + 4]
jmp 0x1400525a4
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x60], r12
mov r14, qword [rcx]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x140052850
cmp rax, 1
jne 0x1400527e2
xor ecx, ecx
jmp 0x140052838
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r9, rax
jae 0x140052d9c
shl r9, 3
mov edi, 1
cmp r9, 0xe
jb 0x1400525a4
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov rdi, 0xffffffffffffffff
shr rdi, cl
movabs rax, 0x7fffffffffffffe
cmp rdi, rax
ja 0x140052d9c
inc rdi
mov r15, rdi
shl r15, 5
lea r14, [rdi + 0x10]
mov rbp, r15
add rbp, r14
jb 0x140052d9c
movabs rax, 0x7ffffffffffffff0
cmp rbp, rax
ja 0x140052d9c
test rbp, rbp
mov qword [rsp + 0x48], r8
je 0x1400525f9
movzx eax, byte [0x1401b51a8]
xor ecx, ecx
mov rdx, rbp
call fcn.14003e800
mov rbx, rax
test rax, rax
jne 0x1400525fe
mov rcx, rbp
call fcn.14000da50
mov ebx, 0x10
lea r13, [rdi - 1]
mov rax, rdi
shr rax, 3
mov rbp, rdi
and rbp, 0xfffffffffffffff8
sub rbp, rax
cmp rdi, 9
cmovb rbp, r13
add rbx, r15
mov rcx, rbx
mov dl, 0xff
mov r8, r14
call sub.msvcrt.dll_memset
test r12, r12
je 0x14005278d
mov qword [rsp + 0x40], rbp
mov rax, qword [rsp + 0x38]
mov r14, qword [rax]
movdqa xmm0, xmmword [r14]
pmovmskb r15d, xmm0
not r15d
lea rax, [r14 - 0x20]
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov qword [rsp + 0x60], r12
mov rdi, r12
mov qword [rsp + 0x28], r14
jmp 0x1400526c4
lea ecx, [r15 - 1]
and ecx, r15d
dec rdi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r13
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
not r12
shl r12, 5
not rdx
shl rdx, 5
mov rax, qword [rsp + 0x28]
movdqu xmm0, xmmword [rax + r12]
movdqu xmm1, xmmword [rax + r12 + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r15d, ecx
test rdi, rdi
je 0x14005277c
test r15w, r15w
jne 0x1400526ef
nop word [rax + rax]
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb r15d, xmm0
add rbp, 0x10
cmp r15d, 0xffff
je 0x1400526d0
not r15d
tzcnt r12d, r15d
add r12, rbp
mov rax, r12
shl rax, 5
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
call fcn.140043e60
mov rcx, rax
and rcx, r13
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140052757
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r13
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140052740
tzcnt edx, edx
add rdx, rcx
and rdx, r13
cmp byte [rbx + rdx], 0
js 0x140052670
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140052670
mov rax, qword [rsp + 0x38]
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x40]
jmp 0x14005279a
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
sub rbp, r12
mov qword [rax], rbx
mov qword [rax + 8], r13
mov qword [rax + 0x10], rbp
test rsi, rsi
mov rax, qword [rsp + 0x48]
je 0x140052d7d
shl rax, 5
add rsi, rax
cmp rsi, 0xffffffffffffffef
je 0x140052d7d
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x1401b5178]
xor edx, edx
call fcn.140053cc4
jmp 0x140052d7d
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1400590c0]
nop dword [rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rcx]
por xmm1, xmm0
movdqa xmmword [r14 + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140052800
test al, 1
je 0x140052850
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rcx]
por xmm0, xmmword [0x1400590c0]
movdqa xmmword [r14 + rcx], xmm0
cmp r8, 0x10
jae 0x14005286f
lea rcx, [r14 + 0x10]
mov rdx, r14
call sub.msvcrt.dll_memmove
cmp rsi, 0xffffffffffffffff
jne 0x14005287a
xor ecx, ecx
jmp 0x140052d6f
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r8], xmm0
lea rax, [r14 - 0x20]
mov qword [rsp + 0x70], rax
movabs rax, 0x736f6d6570736575
mov rdx, qword [rsp + 0x58]
xor rax, rdx
mov qword [rsp + 0x28], rax
movabs rax, 0x646f72616e646f6d
mov rcx, qword [rsp + 0x30]
xor rax, rcx
mov qword [rsp + 0x50], rax
movabs rax, 0x6c7967656e657261
xor rax, rdx
mov qword [rsp + 0x48], rax
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x40], rax
xor edi, edi
jmp 0x140052904
shr rax, 0x39
lea rcx, [rdi - 0x10]
and rcx, rsi
mov byte [r14 + rdi], al
mov byte [rcx + r14 + 0x10], al
lea rax, [rdi + 1]
cmp rdi, rsi
mov rdi, rax
je 0x140052d6a
cmp byte [r14 + rdi], 0x80
jne 0x1400528f4
mov rbp, rdi
not rbp
shl rbp, 5
add rbp, r14
mov rax, rdi
shl rax, 5
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], rdi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
mov r15, qword [rax + 8]
mov r12, qword [rax + 0x10]
mov rax, r12
and rax, 0xfffffffffffffff8
je 0x1400529e0
mov r10, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r11, qword [rsp + 0x40]
xor ebx, ebx
mov r8, qword [rsp + 0x28]
add r8, r9
rol r9, 0xd
mov rcx, qword [r15 + rbx]
xor r9, r8
rol r8, 0x20
xor r11, rcx
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
xor r8, rcx
add rbx, 8
cmp rbx, rax
jb 0x140052970
mov r13d, r12d
and r13d, 7
cmp r13d, 4
jb 0x140052a03
mov edi, dword [r15 + rbx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r13
jb 0x140052a13
jmp 0x140052a2d
mov r11, qword [rsp + 0x40]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x48]
mov r8, qword [rsp + 0x28]
xor ebx, ebx
mov r13d, r12d
and r13d, 7
cmp r13d, 4
jae 0x1400529c0
xor edi, edi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r13
jae 0x140052a2d
lea rcx, [rax + rbx]
movzx edx, word [r15 + rcx]
lea ecx, [rax*8]
shl rdx, cl
or rdi, rdx
or rax, 2
cmp rax, r13
jae 0x140052a50
add rbx, rax
movzx edx, byte [r15 + rbx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rdi, rdx
jmp 0x140052a55
test r13, r13
je 0x140052ab2
lea ecx, [r13*8]
mov ebx, 0xff
shl rbx, cl
or rbx, rdi
cmp r13, 7
jne 0x140052b88
mov ecx, 8
add r8, r9
rol r9, 0xd
sub rcx, r13
xor r9, r8
rol r8, 0x20
xor r11, rbx
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
xor r11, r8
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r8, rbx
jmp 0x140052ab4
xor ecx, ecx
mov edi, 1
sub rdi, rcx
mov eax, edi
and eax, 7
and rdi, 0xfffffffffffffff8
cmp rcx, rdi
jae 0x140052b40
nop word [rax + rax]
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r11, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
xor r8, 0xff
add rcx, 8
cmp rcx, rdi
jb 0x140052ad0
xor edi, edi
cmp rax, 4
setae dil
cmp eax, 4
mov r15d, 0
mov ecx, 0xff
cmovae r15, rcx
shl rdi, 2
jmp 0x140052b45
xor r15d, r15d
xor edi, edi
mov rdx, rdi
or rdx, 1
lea ecx, [rdi*8]
mov ebx, 0xff
shl rbx, cl
mov rcx, rdi
or rcx, 2
cmp rdx, rax
mov edx, 0
cmovae rbx, rdx
cmovae rcx, rdi
or rbx, r15
cmp rcx, rax
jae 0x140052b88
shl ecx, 3
mov eax, 0xff
shl rax, cl
or rbx, rax
mov rdi, qword [rsp + 0x30]
shl r12, 0x38
movabs rax, 0x100000000000000
add r12, rax
add r8, r9
rol r9, 0xd
or r12, rbx
xor r9, r8
rol r8, 0x20
xor r11, r12
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r11, r8
xor r9, r10
rol r10, 0x20
xor r8, r12
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r10, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add r8, r11
rol r11, 0x15
add r10, r9
rol r9, 0x11
xor r9, r10
rol r10, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
add r10, r11
rol r11, 0x10
xor r11, r10
rol r11, 0x15
xor r9, r8
add r10, r9
rol r9, 0x11
mov rax, r10
rol rax, 0x20
xor rax, r9
xor rax, r11
xor rax, r10
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
jne 0x140052caa
mov r10d, 0x10
mov r9, rcx
nop
add r9, r10
and r9, rsi
movdqu xmm0, xmmword [r14 + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x140052c90
tzcnt r8d, r8d
add r8, r9
and r8, rsi
cmp byte [r14 + r8], 0
js 0x140052cca
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt r8d, edx
mov rdx, rdi
sub rdx, rcx
mov r9, r8
sub r9, rcx
xor r9, rdx
and r9, rsi
cmp r9, 0x10
jb 0x1400528e0
mov rcx, r8
not rcx
shl rcx, 5
add rcx, r14
movzx edx, byte [r14 + r8]
shr rax, 0x39
lea r9, [r8 - 0x10]
and r9, rsi
mov byte [r14 + r8], al
mov byte [r9 + r14 + 0x10], al
cmp dl, 0xff
je 0x140052d40
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rcx]
movups xmmword [rbp], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rbp + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rbp + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x140052940
lea rax, [rdi - 0x10]
and rax, rsi
mov byte [r14 + rdi], 0xff
mov byte [rax + r14 + 0x10], 0xff
movdqu xmm0, xmmword [rbp]
movdqu xmm1, xmmword [rbp + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x1400528f4
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14000da10
int3