Function at 0x14004c780
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 r15, qword [rcx + 0x18]
mov rax, r15
inc rax
je 0x14004d078
mov rbp, qword [rcx + 8]
lea r8, [rbp + 1]
mov rdx, r8
shr rdx, 3
mov r9, r8
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp rbp, 8
cmovb r9, rbp
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x38], rcx
jbe 0x14004c801
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x14004c838
xor eax, eax
cmp r9, 4
setae al
lea rsi, [rax*4 + 4]
jmp 0x14004c89a
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x60], r15
mov rbx, qword [rcx]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x14004cb41
cmp rax, 1
jne 0x14004cad3
xor edx, edx
jmp 0x14004cb27
mov rax, r9
shr rax, 0x3d
jne 0x14004d078
shl r9, 3
mov esi, 1
cmp r9, 0xe
jb 0x14004c89a
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 rsi, 0xffffffffffffffff
shr rsi, cl
movabs rax, 0x7fffffffffffffe
cmp rsi, rax
ja 0x14004d078
inc rsi
mov r14, rsi
shl r14, 5
lea rbx, [rsi + 0x10]
mov r13, r14
add r13, rbx
jb 0x14004d078
movabs rax, 0x7ffffffffffffff1
cmp r13, rax
jae 0x14004d078
test r13, r13
mov qword [rsp + 0x48], r8
je 0x14004c8ef
movzx eax, byte [0x14006dc58]
xor ecx, ecx
mov rdx, r13
call fcn.14002fb40
mov rdi, rax
test rax, rax
jne 0x14004c8f4
mov rcx, r13
call fcn.14000c550
mov edi, 0x10
lea r12, [rsi - 1]
mov rax, rsi
shr rax, 3
mov r13, rsi
and r13, 0xfffffffffffffff8
sub r13, rax
cmp rsi, 9
cmovb r13, r12
add rdi, r14
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call fcn.14003b780
test r15, r15
je 0x14004ca7d
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
movdqa xmm0, xmmword [rbx]
pmovmskb r14d, xmm0
not r14d
lea rax, [rbx - 0x20]
mov qword [rsp + 0x50], rax
xor r13d, r13d
mov qword [rsp + 0x60], r15
mov rsi, r15
mov qword [rsp + 0x28], rbx
jmp 0x14004c9b4
lea ecx, [r14 - 1]
and ecx, r14d
dec rsi
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r12
mov byte [rdi + rdx], al
mov byte [r8 + rdi + 0x10], al
not r15
shl r15, 5
not rdx
shl rdx, 5
mov rax, qword [rsp + 0x28]
movdqu xmm0, xmmword [rax + r15]
movdqu xmm1, xmmword [rax + r15 + 0x10]
movdqu xmmword [rdi + rdx + 0x10], xmm1
movdqu xmmword [rdi + rdx], xmm0
mov r14d, ecx
test rsi, rsi
je 0x14004ca6c
test r14w, r14w
jne 0x14004c9de
nop word [rax + rax]
movdqa xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pmovmskb r14d, xmm0
add r13, 0x10
cmp r14d, 0xffff
je 0x14004c9c0
not r14d
tzcnt r15d, r14d
add r15, r13
mov rax, r15
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.140039220
mov rcx, rax
and rcx, r12
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14004ca47
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r12
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14004ca30
tzcnt edx, edx
add rdx, rcx
and rdx, r12
cmp byte [rdi + rdx], 0
js 0x14004c960
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14004c960
mov rax, qword [rsp + 0x38]
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x40]
jmp 0x14004ca8a
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
sub r13, r15
mov qword [rax], rdi
mov qword [rax + 8], r12
mov qword [rax + 0x10], r13
test rbp, rbp
mov rax, qword [rsp + 0x48]
je 0x14004d05d
shl rax, 5
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x14004d05d
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x14006dbc8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14004d05d
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r9d, r9d
movdqa xmm0, xmmword [0x14004e800]
nop dword [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r9]
por xmm1, xmm0
movdqa xmmword [rbx + r9], xmm1
lea rdx, [r9 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r9 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r9 + 0x10], xmm1
mov r9, rdx
add rcx, 0xfffffffffffffffe
jne 0x14004caf0
test al, 1
je 0x14004cb41
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x14004e800]
movdqa xmmword [rbx + rdx], xmm0
cmp r8, 0x10
jae 0x14004cb60
lea rcx, [rbx + 0x10]
mov rdx, rbx
call fcn.14003b0e0
cmp rbp, 0xffffffffffffffff
jne 0x14004cb6a
xor ecx, ecx
jmp 0x14004d04f
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r8], xmm0
lea rax, [rbx - 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 esi, esi
jmp 0x14004cbf2
shr rax, 0x39
lea rcx, [rsi - 0x10]
and rcx, rbp
mov byte [rbx + rsi], al
mov byte [rcx + rbx + 0x10], al
lea rax, [rsi + 1]
cmp rsi, rbp
mov rsi, rax
je 0x14004d04a
cmp byte [rbx + rsi], 0x80
jne 0x14004cbe2
mov r13, rsi
not r13
shl r13, 5
add r13, rbx
mov rax, rsi
shl rax, 5
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], rsi
nop
mov rax, qword [rsp + 0x58]
mov r14, qword [rax + 8]
mov r15, qword [rax + 0x10]
mov rax, r15
and rax, 0xfffffffffffffff8
je 0x14004ccc0
mov r10, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r11, qword [rsp + 0x40]
xor edi, edi
mov r8, qword [rsp + 0x28]
add r8, r9
rol r9, 0xd
mov rcx, qword [r14 + rdi]
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 rdi, 8
cmp rdi, rax
jb 0x14004cc50
mov r12d, r15d
and r12d, 7
cmp r12d, 4
jb 0x14004cce3
mov esi, dword [r14 + rdi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r12
jb 0x14004ccf3
jmp 0x14004cd0d
mov r11, qword [rsp + 0x40]
mov r9, qword [rsp + 0x50]
mov r10, qword [rsp + 0x48]
mov r8, qword [rsp + 0x28]
xor edi, edi
mov r12d, r15d
and r12d, 7
cmp r12d, 4
jae 0x14004cca0
xor esi, esi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r12
jae 0x14004cd0d
lea rcx, [rax + rdi]
movzx edx, word [r14 + rcx]
lea ecx, [rax*8]
shl rdx, cl
or rsi, rdx
or rax, 2
cmp rax, r12
jae 0x14004cd30
add rdi, rax
movzx edx, byte [r14 + rdi]
shl eax, 3
mov ecx, eax
shl rdx, cl
or rsi, rdx
jmp 0x14004cd35
test r12, r12
je 0x14004cd92
lea ecx, [r12*8]
mov edi, 0xff
shl rdi, cl
or rdi, rsi
cmp r12, 7
jne 0x14004ce68
mov ecx, 8
add r8, r9
rol r9, 0xd
sub rcx, r12
xor r9, r8
rol r8, 0x20
xor r11, rdi
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, rdi
jmp 0x14004cd94
xor ecx, ecx
mov esi, 1
sub rsi, rcx
mov eax, esi
and eax, 7
and rsi, 0xfffffffffffffff8
cmp rcx, rsi
jae 0x14004ce20
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, rsi
jb 0x14004cdb0
xor esi, esi
cmp rax, 4
setae sil
cmp eax, 4
mov r14d, 0
mov ecx, 0xff
cmovae r14, rcx
shl rsi, 2
jmp 0x14004ce25
xor r14d, r14d
xor esi, esi
mov rdx, rsi
or rdx, 1
lea ecx, [rsi*8]
mov edi, 0xff
shl rdi, cl
mov rcx, rsi
or rcx, 2
cmp rdx, rax
mov edx, 0
cmovae rdi, rdx
cmovae rcx, rsi
or rdi, r14
cmp rcx, rax
jae 0x14004ce68
shl ecx, 3
mov eax, 0xff
shl rax, cl
or rdi, rax
mov rsi, qword [rsp + 0x30]
shl r15, 0x38
movabs rax, 0x100000000000000
add r15, rax
add r8, r9
rol r9, 0xd
or r15, rdi
xor r9, r8
rol r8, 0x20
xor r11, r15
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, r15
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 [rbx + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
jne 0x14004cf8a
mov r10d, 0x10
mov r9, rcx
nop
add r9, r10
and r9, rbp
movdqu xmm0, xmmword [rbx + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x14004cf70
tzcnt r8d, r8d
add r8, r9
and r8, rbp
cmp byte [rbx + r8], 0
js 0x14004cfa9
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt r8d, edx
mov rdx, rsi
sub rdx, rcx
mov r9, r8
sub r9, rcx
xor r9, rdx
and r9, rbp
cmp r9, 0x10
jb 0x14004cbd0
mov rcx, r8
not rcx
shl rcx, 5
add rcx, rbx
movzx edx, byte [rbx + r8]
shr rax, 0x39
lea r9, [r8 - 0x10]
and r9, rbp
mov byte [rbx + r8], al
mov byte [r9 + rbx + 0x10], al
cmp dl, 0xff
je 0x14004d020
movups xmm0, xmmword [r13]
movups xmm1, xmmword [rcx]
movups xmmword [r13], xmm1
movups xmmword [rcx], xmm0
movdqu xmm0, xmmword [r13 + 0x10]
movdqu xmm1, xmmword [rcx + 0x10]
movdqu xmmword [r13 + 0x10], xmm1
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x14004cc20
lea rax, [rsi - 0x10]
and rax, rbp
mov byte [rbx + rsi], 0xff
mov byte [rax + rbx + 0x10], 0xff
movdqu xmm0, xmmword [r13]
movdqu xmm1, xmmword [r13 + 0x10]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmmword [rcx], xmm0
jmp 0x14004cbe2
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], 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.14000c510
int3