Function at 0x140036260
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 rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
inc rax
je 0x140036a23
mov r15, rdx
mov rbx, rcx
mov rbp, qword [rcx]
lea r14, [rbp + 1]
mov rcx, r14
shr rcx, 3
mov rdx, r14
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp rbp, 8
cmovb rdx, rbp
mov rcx, rdx
shr rcx, 1
cmp rax, rcx
jbe 0x1400362dd
inc rdx
cmp rax, rdx
cmova rdx, rax
cmp rdx, 8
jae 0x14003635b
xor eax, eax
cmp rdx, 4
setae al
lea rsi, [rax*4 + 4]
jmp 0x1400363ad
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x30], rbx
test r14, r14
je 0x1400369f5
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 0x18]
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx]
por xmm0, xmmword [0x1400385a0]
movdqa xmmword [rbx], xmm0
cmp r14, 0x11
jb 0x14003633d
mov eax, 0x10
movdqa xmm0, xmmword [0x1400385a0]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rax]
por xmm1, xmm0
movdqa xmmword [rbx + rax], xmm1
add rax, 0x10
jb 0x14003633d
cmp rax, r14
jb 0x140036320
cmp r14, 0x10
jae 0x1400365b1
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r14
call fcn.140027800
jmp 0x1400365bb
mov rax, rdx
shr rax, 0x3d
jne 0x140036a23
mov r8, rdx
shl r8, 3
mov esi, 1
cmp r8, 0xe
jb 0x1400363ad
movabs rcx, 0x2492492492492493
mov rax, r8
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov rsi, 0xffffffffffffffff
shr rsi, cl
inc rsi
mov ecx, 0x30
mov rax, rsi
mul rcx
jo 0x140036a23
mov rdi, rax
lea r12, [rsi + 0x10]
mov r13, rax
add r13, r12
jb 0x140036a23
je 0x14003640e
mov rcx, qword [0x1400b4028]
test rcx, rcx
jne 0x1400363f4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140036404
mov rcx, rax
mov qword [0x1400b4028], rax
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x140036413
mov rcx, r13
call fcn.140011b60
ud2
mov eax, 0x10
mov r13, rsi
dec rsi
mov rcx, r13
shr rcx, 3
and r13, 0xfffffffffffffff8
sub r13, rcx
cmp rsi, 8
cmovb r13, rsi
add rdi, rax
mov rcx, rdi
mov dl, 0xff
mov r8, r12
call fcn.140027eb0
sub r13, qword [rsp + 0x40]
test r14, r14
je 0x140036570
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rbx
mov r12, qword [rbx + 0x18]
mov r13, qword [r15]
mov r15, qword [r15 + 8]
lea r14, [r12 - 0x30]
xor ebx, ebx
jmp 0x1400364cd
shr rax, 0x39
lea rcx, [rdx - 0x10]
and rcx, rsi
mov byte [rdi + rdx], al
mov byte [rcx + rdi + 0x10], al
mov rax, rbx
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, r12
sub rcx, rax
shl rdx, 4
lea rax, [rdx + rdx*2]
mov rdx, rdi
sub rdx, rax
neg rax
movdqu xmm0, xmmword [rcx - 0x30]
movdqu xmm1, xmmword [rcx - 0x20]
movups xmm2, xmmword [rcx - 0x10]
movdqu xmmword [rdi + rax - 0x30], xmm0
movups xmmword [rdx - 0x10], xmm2
movdqu xmmword [rdx - 0x20], xmm1
lea rax, [rbx + 1]
cmp rbx, rbp
mov rbx, rax
je 0x14003654c
cmp byte [r12 + rbx], 0
js 0x1400364c1
mov rax, rbx
neg rax
lea rax, [rax + rax*2]
shl rax, 4
mov r8, qword [r14 + rax + 8]
mov r9, qword [r14 + rax + 0x10]
mov rcx, r13
mov rdx, r15
call fcn.1400110e0
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140036527
mov r8d, 0x10
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140036510
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x140036470
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140036470
mov rax, qword [rsp + 0x30]
mov qword [rax], rsi
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov qword [rax + 0x18], rdi
test rbp, rbp
mov r14, qword [rsp + 0x28]
jne 0x14003657f
jmp 0x140036a08
mov r12, qword [rbx + 0x18]
mov qword [rbx], rsi
mov qword [rbx + 8], r13
mov qword [rbx + 0x18], rdi
mov ecx, 0x30
mov rax, r14
mul rcx
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x140036a08
sub r12, rax
mov rcx, qword [0x1400b4028]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140036a08
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r14], xmm0
lea rax, [rbx - 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
movabs r12, 0x736f6d6570736575
xor r12, rax
movabs r15, 0x646f72616e646f6d
xor r15, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x48], rax
xor r10d, r10d
mov qword [rsp + 0x70], rbp
jmp 0x140036643
shr rax, 0x39
lea rcx, [r10 - 0x10]
and rcx, rbp
mov byte [rbx + r10], al
mov byte [rcx + rbx + 0x10], al
lea rax, [r10 + 1]
cmp r10, rbp
mov r10, rax
je 0x1400369f5
cmp byte [rbx + r10], 0x80
jne 0x140036633
mov rax, r10
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, rbx
sub rcx, rax
add rcx, 0xffffffffffffffd0
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x28], r10
mov rax, r10
neg rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x38]
mov r10, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov edi, edx
and edi, 7
mov rax, rdx
and rax, 0xfffffffffffffff8
je 0x140036720
mov r13, qword [rsp + 0x50]
mov r9, r15
mov r11, qword [rsp + 0x48]
xor esi, esi
mov r8, r12
nop dword [rax]
add r8, r9
rol r9, 0xd
mov rcx, qword [r10 + rsi]
xor r9, r8
rol r8, 0x20
xor r11, rcx
add r13, r11
rol r11, 0x10
xor r11, r13
add r8, r11
rol r11, 0x15
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor r11, r8
xor r8, rcx
add rsi, 8
cmp rsi, rax
jb 0x1400366c0
cmp edi, 3
jbe 0x140036737
mov r14d, dword [r10 + rsi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x140036748
jmp 0x140036773
mov r11, qword [rsp + 0x48]
mov r9, r15
mov r13, qword [rsp + 0x50]
mov r8, r12
xor esi, esi
cmp edi, 3
ja 0x140036708
xor eax, eax
xor r14d, r14d
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x140036773
lea rcx, [rax + rsi]
mov rbp, r15
mov r15, r12
movzx r12d, word [r10 + rcx]
lea ecx, [rax*8]
shl r12, cl
or r14, r12
mov r12, r15
mov r15, rbp
mov rbp, qword [rsp + 0x70]
or rax, 2
cmp rax, rdi
jae 0x140036790
add rsi, rax
movzx r10d, byte [r10 + rsi]
shl eax, 3
mov ecx, eax
shl r10, cl
or r14, r10
inc rdx
jmp 0x140036798
inc rdx
test rdi, rdi
je 0x1400367ef
mov r10, qword [rsp + 0x28]
lea ecx, [rdi*8]
mov eax, 0xff
shl rax, cl
or rax, r14
cmp rdi, 7
jne 0x140036800
add r8, r9
rol r9, 0xd
xor r11, rax
xor r9, r8
rol r8, 0x20
add r13, r11
rol r11, 0x10
xor r11, r13
add r8, r11
rol r11, 0x15
xor r11, r8
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor r8, rax
xor eax, eax
jmp 0x140036800
mov eax, 0xff
mov r10, qword [rsp + 0x28]
nop dword [rax]
shl rdx, 0x38
add r8, r9
rol r9, 0xd
or rdx, rax
xor r9, r8
rol r8, 0x20
xor r11, rdx
add r13, r11
rol r11, 0x10
xor r11, r13
add r8, r11
rol r11, 0x15
add r13, r9
rol r9, 0x11
xor r11, r8
xor r9, r13
rol r13, 0x20
xor r8, rdx
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
xor r13, 0xff
add r13, r11
rol r11, 0x10
xor r11, r13
add r8, r11
rol r11, 0x15
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
xor r9, r8
rol r8, 0x20
add r13, r11
rol r11, 0x10
xor r11, r13
add r8, r11
rol r11, 0x15
add r13, r9
rol r9, 0x11
xor r9, r13
rol r13, 0x20
xor r11, r8
add r8, r9
rol r9, 0xd
add r13, r11
rol r11, 0x10
xor r11, r13
rol r11, 0x15
xor r9, r8
add r13, r9
rol r9, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r9
xor rax, r11
xor rax, r13
mov rcx, rax
and rcx, rbp
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140036918
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rbp
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140036900
tzcnt edx, edx
add rdx, r8
and rdx, rbp
cmp byte [rbx + rdx], 0
js 0x140036934
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r10
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rbp
cmp r9, 0x10
jb 0x140036620
mov rcx, rdx
shl rcx, 4
lea r8, [rcx + rcx*2]
mov rcx, rbx
sub rcx, r8
add rcx, 0xffffffffffffffd0
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rbp
mov byte [rbx + rdx], al
mov byte [r9 + rbx + 0x10], al
cmp r8b, 0xff
je 0x1400369c0
mov rax, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rcx]
movups xmmword [rax], xmm1
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rcx + 0x10], xmm0
movdqu xmm0, xmmword [rax + 0x20]
movdqu xmm1, xmmword [rcx + 0x20]
movdqu xmmword [rax + 0x20], xmm1
movdqu xmmword [rcx + 0x20], xmm0
jmp 0x140036690
lea rax, [r10 - 0x10]
and rax, rbp
mov byte [rbx + r10], 0xff
mov byte [rax + rbx + 0x10], 0xff
mov rax, qword [rsp + 0x58]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm2
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x140036633
mov rcx, qword [rsp + 0x60]
sub rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], rcx
movabs rax, 0x8000000000000001
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140011b10
ud2