Function at 0x1400d5f80
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 r8, qword [rcx + 0x18]
mov rax, r8
inc rax
je 0x1400d688b
mov r12, rdx
mov rbp, qword [rcx + 8]
lea rsi, [rbp + 1]
mov rdx, rsi
shr rdx, 3
mov r9, rsi
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp rbp, 8
cmovb r9, rbp
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], r8
jbe 0x1400d5fff
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x1400d6031
xor eax, eax
cmp r9, 4
setae al
lea rdi, [rax*4 + 4]
jmp 0x1400d609d
mov qword [rsp + 0x68], r9
mov r14, qword [rcx]
mov rcx, rsi
shr rcx, 4
xor eax, eax
test sil, 0xf
setne al
add rax, rcx
je 0x1400d6330
cmp rax, 1
jne 0x1400d62c3
xor ecx, ecx
jmp 0x1400d6318
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r9, rax
jae 0x1400d688b
shl r9, 3
mov edi, 1
cmp r9, 0xe
jb 0x1400d609d
movabs r8, 0x7fffffffffffffe
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
cmp rdi, r8
ja 0x1400d688b
inc rdi
mov r15, rdi
shl r15, 5
lea r14, [rdi + 0x10]
mov r13, r15
add r13, r14
jb 0x1400d688b
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
ja 0x1400d688b
test r13, r13
je 0x1400d610f
movzx eax, byte [0x1403f6a90]
mov rcx, qword [0x1403f6548]
test rcx, rcx
jne 0x1400d60f3
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400d6105
mov rcx, rax
mov qword [0x1403f6548], rax
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x1400d6114
mov rcx, r13
call fcn.140150410
ud2
mov ebx, 0x10
mov qword [rsp + 0x38], rsi
lea rsi, [rdi - 1]
mov rax, rdi
shr rax, 3
mov r13, rdi
and r13, 0xfffffffffffffff8
sub r13, rax
cmp rdi, 9
cmovb r13, rsi
add rbx, r15
mov rcx, rbx
mov dl, 0xff
mov r8, r14
call sub.msvcrt.dll_memset
sub r13, qword [rsp + 0x40]
cmp rbp, 0xffffffffffffffff
je 0x1400d6281
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x28]
mov r14, qword [rax]
lea r15, [r14 - 0x20]
mov r13, qword [r12]
mov r12, qword [r12 + 8]
xor edi, edi
jmp 0x1400d61cb
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rsi
mov byte [rbx + rdx], al
mov byte [rcx + rbx + 0x10], al
mov rax, rdi
not rax
shl rax, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [r14 + rax]
movdqu xmm1, xmmword [r14 + rax + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
lea rax, [rdi + 1]
cmp rdi, rbp
mov rdi, rax
je 0x1400d624c
cmp byte [r14 + rdi], 0
js 0x1400d61bb
mov rax, rdi
shl rax, 5
mov rcx, r15
sub rcx, rax
mov r8, qword [rcx]
mov r9, qword [rcx + 0x10]
mov rcx, r13
mov rdx, r12
call fcn.140021c80
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1400d6227
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1400d6210
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x1400d6180
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1400d6180
mov rax, qword [rsp + 0x28]
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
test rbp, rbp
mov rax, qword [rsp + 0x38]
je 0x1400d686c
shl rax, 5
add rbp, rax
cmp rbp, 0xffffffffffffffef
jne 0x1400d62aa
jmp 0x1400d686c
mov rax, qword [rsp + 0x28]
mov r14, qword [rax]
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r13
mov rax, qword [rsp + 0x38]
shl rax, 5
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x1400d686c
sub r14, rax
mov rcx, qword [0x1403f6548]
xor edx, edx
mov r8, r14
call fcn.140302ad4
jmp 0x1400d686c
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x140307ac0]
nop word [rax + 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 0x1400d62e0
test al, 1
je 0x1400d6330
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rcx]
por xmm0, xmmword [0x140307ac0]
movdqa xmmword [r14 + rcx], xmm0
cmp rsi, 0x10
jae 0x1400d6352
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, rsi
call sub.msvcrt.dll_memmove
cmp rbp, 0xffffffffffffffff
jne 0x1400d635d
xor ecx, ecx
jmp 0x1400d685e
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + rsi], xmm0
lea rax, [r14 - 0x20]
mov qword [rsp + 0x70], rax
mov rax, qword [r12]
mov rcx, qword [r12 + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x60], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
xor edi, edi
jmp 0x1400d63e4
shr rax, 0x39
lea rcx, [rdi - 0x10]
and rcx, rbp
mov byte [r14 + rdi], al
mov byte [rcx + r14 + 0x10], al
lea rax, [rdi + 1]
cmp rdi, rbp
mov rdi, rax
je 0x1400d6859
cmp byte [r14 + rdi], 0x80
jne 0x1400d63d4
mov rsi, rdi
not rsi
shl rsi, 5
add rsi, r14
mov rax, rdi
shl rax, 5
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x38]
mov r13, qword [rax]
mov r12, qword [rax + 0x10]
mov rax, r12
and rax, 0xfffffffffffffff8
je 0x1400d64c0
mov r10, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
xor ebx, ebx
mov r8, qword [rsp + 0x60]
nop
add r8, r9
rol r9, 0xd
mov rcx, qword [r13 + 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 0x1400d6450
mov r15d, r12d
and r15d, 7
cmp r15d, 3
jbe 0x1400d64e3
mov edi, dword [r13 + rbx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r15
jb 0x1400d64f3
jmp 0x1400d650e
mov r11, qword [rsp + 0x48]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
xor ebx, ebx
mov r15d, r12d
and r15d, 7
cmp r15d, 3
ja 0x1400d64a1
xor edi, edi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r15
jae 0x1400d650e
lea rcx, [rax + rbx]
movzx edx, word [r13 + rcx]
lea ecx, [rax*8]
shl rdx, cl
or rdi, rdx
or rax, 2
cmp rax, r15
jae 0x1400d6530
add rbx, rax
movzx edx, byte [r13 + rbx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rdi, rdx
jmp 0x1400d6535
test r15, r15
je 0x1400d6592
lea ecx, [r15*8]
mov ebx, 0xff
shl rbx, cl
or rbx, rdi
cmp r15, 7
jne 0x1400d666f
mov ecx, 8
add r8, r9
rol r9, 0xd
sub rcx, r15
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 0x1400d6594
xor ecx, ecx
mov edi, 1
sub rdi, rcx
mov eax, edi
and eax, 7
and rdi, 0xfffffffffffffff8
cmp rcx, rdi
jae 0x1400d6620
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 0x1400d65b0
xor edi, edi
cmp rax, 4
setae dil
cmp eax, 4
mov ebx, 0
mov ecx, 0xff
cmovae rbx, rcx
shl rdi, 2
jmp 0x1400d6624
xor ebx, ebx
xor edi, edi
mov rdx, rdi
lea ecx, [rdi*8]
mov r15d, 0xff
shl r15, cl
or rdx, 1
mov r13, rdi
or r13, 2
cmp rdx, rax
mov edx, 0
cmovae r15, rdx
cmovae r13, rdi
or r15, rbx
lea ecx, [r13*8]
mov ebx, 0xff
shl rbx, cl
cmp r13, rax
cmovae rbx, rdx
or rbx, r15
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, rbp
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
jne 0x1400d679a
mov r10d, 0x10
mov r9, rcx
nop word cs:[rax + rax]
add r9, r10
and r9, rbp
movdqu xmm0, xmmword [r14 + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x1400d6780
tzcnt r8d, r8d
add r8, r9
and r8, rbp
cmp byte [r14 + r8], 0
js 0x1400d67ba
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, rbp
cmp r9, 0x10
jb 0x1400d63c0
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, rbp
mov byte [r14 + r8], al
mov byte [r9 + r14 + 0x10], al
cmp dl, 0xff
je 0x1400d6830
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rcx]
movups xmmword [rsi], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [rsi + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [rsi + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x1400d6420
lea rax, [rdi - 0x10]
and rax, rbp
mov byte [r14 + rdi], 0xff
mov byte [rax + r14 + 0x10], 0xff
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rsi + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x1400d63d4
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
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.1401503d0
ud2