Function at 0x140049470
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], r9
mov qword [rsp + 0x50], r8
mov r12, qword [rcx + 0x18]
add rdx, r12
jb 0x140049d4f
mov rbp, qword [rcx + 8]
lea rdi, [rbp + 1]
mov rax, rdi
shr rax, 3
mov r8, rdi
and r8, 0xfffffffffffffff8
sub r8, rax
cmp rbp, 8
cmovb r8, rbp
mov rax, r8
shr rax, 1
cmp rdx, rax
mov qword [rsp + 0x38], rcx
jbe 0x1400494ee
inc r8
cmp rdx, r8
cmova r8, rdx
cmp r8, 8
jae 0x140049525
xor eax, eax
cmp r8, 4
setae al
lea rsi, [rax*4 + 4]
jmp 0x14004957c
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x58], r12
mov rbx, qword [rcx]
mov rcx, rdi
shr rcx, 4
xor eax, eax
test dil, 0xf
setne al
add rax, rcx
je 0x1400497f1
cmp rax, 1
jne 0x140049782
xor edx, edx
jmp 0x1400497d7
mov rax, r8
shr rax, 0x3d
jne 0x140049d4f
shl r8, 3
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
movabs rax, 0xffffffffffffffe
cmp rsi, rax
ja 0x140049d4f
inc rsi
mov r14, rsi
shl r14, 4
lea rbx, [rsi + 0x10]
mov r13, r14
add r13, rbx
jb 0x140049d4f
movabs rax, 0x7ffffffffffffff1
cmp r13, rax
jae 0x140049d4f
mov qword [rsp + 0x40], rdi
movzx eax, byte [0x1400ddbf0]
xor ecx, ecx
mov rdx, r13
call fcn.1400360e0
test rax, rax
je 0x140049d54
mov rdi, rax
lea r15, [rsi - 1]
mov rax, rsi
shr rax, 3
mov r13, rsi
and r13, 0xfffffffffffffff8
sub r13, rax
cmp rsi, 9
cmovb r13, r15
add rdi, r14
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call fcn.14003bf30
test r12, r12
je 0x14004972d
mov qword [rsp + 0x60], r13
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
movdqa xmm0, xmmword [rbx]
pmovmskb esi, xmm0
not esi
lea rax, [rbx - 0x10]
mov qword [rsp + 0x48], rax
xor r13d, r13d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x58], r12
jmp 0x140049670
lea ecx, [rsi - 1]
and ecx, esi
dec r12
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r15
mov byte [rdi + rdx], al
mov byte [rdi + r8 + 0x10], al
mov rax, qword [rsp + 0x28]
sub rax, r14
shl rdx, 4
neg rdx
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmmword [rdi + rdx - 0x10], xmm0
mov esi, ecx
test r12, r12
je 0x14004971c
test si, si
jne 0x14004969b
nop word cs:[rax + rax]
movdqa xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pmovmskb esi, xmm0
add r13, 0x10
cmp esi, 0xffff
je 0x140049680
not esi
tzcnt r14d, esi
add r14, r13
shl r14, 4
mov rax, qword [rsp + 0x48]
sub rax, r14
mov r8, qword [rax]
mov r9, qword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
call fcn.14000dd80
mov rcx, rax
and rcx, r15
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1400496f7
mov r8d, 0x10
nop
add rcx, r8
and rcx, r15
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1400496e0
tzcnt edx, edx
add rdx, rcx
and rdx, r15
cmp byte [rdi + rdx], 0
js 0x140049630
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140049630
mov rax, qword [rsp + 0x38]
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
jmp 0x14004973a
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
sub r13, r12
mov qword [rax], rdi
mov qword [rax + 8], r15
mov qword [rax + 0x10], r13
test rbp, rbp
je 0x14004981e
mov rax, qword [rsp + 0x40]
shl rax, 4
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x1400ddb68]
xor edx, edx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14004d7f0]
nop word [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x1400497a0
test al, 1
je 0x1400497f1
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x14004d7f0]
movdqa xmmword [rbx + rdx], xmm0
cmp rdi, 0x10
jae 0x14004982f
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rdi
call fcn.14003b7b0
test rdi, rdi
jne 0x140049838
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rdi], xmm0
lea rax, [rbx - 0x10]
mov qword [rsp + 0x60], rax
movabs r13, 0x736f6d6570736575
mov rdx, qword [rsp + 0x50]
xor r13, rdx
movabs rax, 0x646f72616e646f6d
mov rcx, qword [rsp + 0x30]
xor rax, rcx
mov qword [rsp + 0x28], 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
mov qword [rsp + 0x70], rbp
jmp 0x1400498c2
shr rax, 0x39
lea rcx, [rsi - 0x10]
and rcx, rbp
mov byte [rbx + rsi], al
mov byte [rbx + rcx + 0x10], al
lea rax, [rsi + 1]
cmp rsi, rbp
mov rsi, rax
je 0x14004980b
cmp byte [rbx + rsi], 0x80
jne 0x1400498b2
mov qword [rsp + 0x30], rsi
mov rax, rsi
shl rax, 4
mov r12, rbx
sub r12, rax
add r12, 0xfffffffffffffff0
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov qword [rsp + 0x50], rcx
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
mov rdi, qword [rax]
mov rdx, qword [rax + 8]
mov rax, rdx
and rax, 0xfffffffffffffff8
je 0x140049990
mov r10, qword [rsp + 0x48]
mov r9, qword [rsp + 0x28]
mov r11, qword [rsp + 0x40]
xor esi, esi
mov r8, r13
nop dword [rax]
mov rcx, qword [rdi + rsi]
xor r11, rcx
add r8, r9
rol r9, 0xd
add r10, r11
xor r9, r8
rol r11, 0x10
xor r11, r10
rol r8, 0x20
add r10, r9
add r8, r11
rol r9, 0x11
xor r9, r10
rol r11, 0x15
rol r10, 0x20
xor r11, r8
xor r8, rcx
add rsi, 8
cmp rsi, rax
jb 0x140049920
mov r15d, edx
and r15d, 7
cmp r15d, 4
jb 0x1400499b1
mov r14d, dword [rdi + rsi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r15
jb 0x1400499c2
jmp 0x1400499e7
mov r11, qword [rsp + 0x40]
mov r9, qword [rsp + 0x28]
mov r10, qword [rsp + 0x48]
mov r8, r13
xor esi, esi
mov r15d, edx
and r15d, 7
cmp r15d, 4
jae 0x140049970
xor r14d, r14d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r15
jae 0x1400499e7
lea rcx, [rdi + rax]
mov rbp, r13
movzx r13d, word [rsi + rcx]
lea ecx, [rax*8]
shl r13, cl
or r14, r13
mov r13, rbp
mov rbp, qword [rsp + 0x70]
or rax, 2
cmp rax, r15
jae 0x140049a10
add rsi, rax
movzx esi, byte [rdi + rsi]
shl eax, 3
mov ecx, eax
shl rsi, cl
or r14, rsi
mov rsi, qword [rsp + 0x30]
jmp 0x140049a1a
test r15, r15
mov rsi, qword [rsp + 0x30]
je 0x140049a6d
lea ecx, [r15*8]
mov eax, 0xff
shl rax, cl
or rax, r14
cmp r15, 7
jne 0x140049a80
xor r11, rax
add r8, r9
add r10, r11
rol r9, 0xd
rol r11, 0x10
xor r9, r8
xor r11, r10
rol r8, 0x20
add r10, r9
add r8, r11
rol r9, 0x11
xor r9, r10
rol r11, 0x15
xor r11, r8
rol r10, 0x20
xor r8, rax
xor eax, eax
jmp 0x140049a80
mov eax, 0xff
nop word cs:[rax + rax]
shl rdx, 0x38
movabs rcx, 0x100000000000000
add rdx, rcx
or rdx, rax
xor r11, rdx
add r8, r9
rol r9, 0xd
add r10, r11
xor r9, r8
rol r11, 0x10
xor r11, r10
rol r8, 0x20
add r10, r9
add r8, r11
rol r9, 0x11
xor r9, r10
rol r11, 0x15
rol r10, 0x20
xor r11, r8
xor r8, rdx
xor r10, 0xff
add r8, r9
add r10, r11
rol r9, 0xd
xor r9, r8
rol r11, 0x10
rol r8, 0x20
xor r11, r10
add r10, r9
rol r9, 0x11
add r8, r11
xor r9, r10
rol r11, 0x15
xor r11, r8
rol r10, 0x20
add r8, r9
add r10, r11
rol r9, 0xd
xor r9, r8
rol r11, 0x10
rol r8, 0x20
xor r11, r10
add r10, r9
rol r9, 0x11
add r8, r11
xor r9, r10
rol r11, 0x15
xor r11, r8
rol r10, 0x20
add r8, r9
add r10, r11
rol r9, 0xd
xor r9, r8
rol r11, 0x10
xor r11, r10
add r10, r9
rol r9, 0x11
rol r11, 0x15
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 edx, xmm0
mov r8, rcx
test edx, edx
jne 0x140049b98
mov r9d, 0x10
mov r8, rcx
nop
add r8, r9
and r8, rbp
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x140049b80
tzcnt edx, edx
add rdx, r8
and rdx, rbp
cmp byte [rbx + rdx], 0
js 0x140049bb4
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, rsi
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rbp
cmp r9, 0x10
jb 0x1400498a0
mov rcx, rdx
shl rcx, 4
neg rcx
add rcx, rbx
add rcx, 0xfffffffffffffff0
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rbp
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x140049d30
movzx eax, byte [r12]
movzx edx, byte [rcx]
mov byte [r12], dl
mov byte [rcx], al
movzx eax, byte [r12 + 1]
movzx edx, byte [rcx + 1]
mov byte [r12 + 1], dl
mov byte [rcx + 1], al
movzx eax, byte [r12 + 2]
movzx edx, byte [rcx + 2]
mov byte [r12 + 2], dl
mov byte [rcx + 2], al
movzx eax, byte [r12 + 3]
movzx edx, byte [rcx + 3]
mov byte [r12 + 3], dl
mov byte [rcx + 3], al
movzx eax, byte [r12 + 4]
movzx edx, byte [rcx + 4]
mov byte [r12 + 4], dl
mov byte [rcx + 4], al
movzx eax, byte [r12 + 5]
movzx edx, byte [rcx + 5]
mov byte [r12 + 5], dl
mov byte [rcx + 5], al
movzx eax, byte [r12 + 6]
movzx edx, byte [rcx + 6]
mov byte [r12 + 6], dl
mov byte [rcx + 6], al
movzx eax, byte [r12 + 7]
movzx edx, byte [rcx + 7]
mov byte [r12 + 7], dl
mov byte [rcx + 7], al
movzx eax, byte [r12 + 8]
movzx edx, byte [rcx + 8]
mov byte [r12 + 8], dl
mov byte [rcx + 8], al
movzx eax, byte [r12 + 9]
movzx edx, byte [rcx + 9]
mov byte [r12 + 9], dl
mov byte [rcx + 9], al
movzx eax, byte [r12 + 0xa]
movzx edx, byte [rcx + 0xa]
mov byte [r12 + 0xa], dl
mov byte [rcx + 0xa], al
movzx eax, byte [r12 + 0xb]
movzx edx, byte [rcx + 0xb]
mov byte [r12 + 0xb], dl
mov byte [rcx + 0xb], al
movzx eax, byte [r12 + 0xc]
movzx edx, byte [rcx + 0xc]
mov byte [r12 + 0xc], dl
mov byte [rcx + 0xc], al
movzx eax, byte [r12 + 0xd]
movzx edx, byte [rcx + 0xd]
mov byte [r12 + 0xd], dl
mov byte [rcx + 0xd], al
movzx eax, byte [r12 + 0xe]
movzx edx, byte [rcx + 0xe]
mov byte [r12 + 0xe], dl
mov byte [rcx + 0xe], al
movzx eax, byte [r12 + 0xf]
movzx edx, byte [rcx + 0xf]
mov byte [r12 + 0xf], dl
mov byte [rcx + 0xf], al
jmp 0x1400498f0
lea rax, [rsi - 0x10]
and rax, rbp
mov byte [rbx + rsi], 0xff
mov byte [rbx + rax + 0x10], 0xff
movdqu xmm0, xmmword [r12]
movdqu xmmword [rcx], xmm0
jmp 0x1400498b2
call fcn.140013440
mov rcx, r13
call fcn.140013480
int3