Function at 0x4b38e0
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 + 0x18]
mov qword [rsp + 0x28], rax
inc rax
je 0x4b414e
mov rbp, rdx
mov rdi, qword [rcx + 8]
lea r15, [rdi + 1]
mov rdx, r15
shr rdx, 3
mov r8, r15
and r8, 0xfffffffffffffff8
sub r8, rdx
cmp rdi, 8
cmovb r8, rdi
mov rdx, r8
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x38], rcx
jbe 0x4b395c
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x4b398e
xor eax, eax
cmp r8, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x4b39e8
mov qword [rsp + 0x60], r8
mov r14, qword [rcx]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x4b3cf3
cmp rax, 1
jne 0x4b3c7c
xor edx, edx
jmp 0x4b3cd7
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r8, rax
jae 0x4b414e
shl r8, 3
mov r14d, 1
cmp r8, 0xe
jb 0x4b39e8
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 r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x18
mov rax, r14
mul rcx
jo 0x4b414e
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea r12, [r14 + 0x10]
mov r13, rsi
add r13, r12
jb 0x4b414e
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
ja 0x4b414e
test r13, r13
je 0x4b3a6f
movzx eax, byte [0x009bf181]
mov rcx, qword [0x009bf100]
test rcx, rcx
jne 0x4b3a53
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x4b3a65
mov rcx, rax
mov qword [0x009bf100], rax
xor edx, edx
mov r8, r13
call sub.KERNEL32.dll_HeapAlloc
mov rbx, rax
test rax, rax
jne 0x4b3a74
mov rcx, r13
call fcn.0045a090
ud2
mov ebx, 0x10
mov qword [rsp + 0x40], r15
lea r15, [r14 - 1]
mov rax, r14
shr rax, 3
mov rcx, r14
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r14, 9
cmovb rcx, r15
mov qword [rsp + 0x48], rcx
add rbx, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x28], 0
je 0x4b3c1c
mov r13, qword [rsp + 0x20]
movdqa xmm0, xmmword [r13]
pmovmskb r12d, xmm0
not r12d
lea rax, [r13 - 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x50], rax
xor ebp, ebp
mov r14, qword [rsp + 0x28]
jmp 0x4b3b5f
lea ecx, [r12 - 1]
and ecx, r12d
dec r14
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r15
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
shl rsi, 3
lea rax, [rsi + rsi*2]
mov r8, qword [rsp + 0x20]
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, rbx
sub rdx, rax
neg rax
movdqu xmm0, xmmword [r8 - 0x18]
movdqu xmmword [rbx + rax - 0x18], xmm0
mov rax, qword [r8 - 8]
mov qword [rdx - 8], rax
mov r12d, ecx
test r14, r14
je 0x4b3c1c
test r12w, r12w
jne 0x4b3b8f
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r13 + 0x10]
add r13, 0x10
pmovmskb r12d, xmm0
add rbp, 0x10
cmp r12d, 0xffff
je 0x4b3b70
not r12d
tzcnt esi, r12d
add rsi, rbp
mov rax, rsi
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rcx + rax*8]
mov r9, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
call fcn.004ae4c0
mov rcx, rax
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x4b3bf7
mov r8d, 0x10
nop word [rax + rax]
add rcx, r8
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x4b3be0
tzcnt edx, edx
add rdx, rcx
and rdx, r15
cmp byte [rbx + rdx], 0
js 0x4b3b00
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x4b3b00
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], rcx
test rdi, rdi
je 0x4b412f
mov ecx, 0x18
mov rax, qword [rsp + 0x40]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rdi, rax
cmp rdi, 0xffffffffffffffef
je 0x4b412f
mov r8, qword [rsp + 0x20]
sub r8, rax
mov rcx, qword [0x009bf100]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x4b412f
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x0086d4f0]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r8]
por xmm1, xmm0
movdqa xmmword [r14 + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x4b3ca0
test al, 1
je 0x4b3cf3
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rdx]
por xmm0, xmmword [0x0086d4f0]
movdqa xmmword [r14 + rdx], xmm0
cmp r15, 0x10
jae 0x4b3d15
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, r15
call sub.msvcrt.dll_memmove
cmp rdi, 0xffffffffffffffff
jne 0x4b3d20
xor ecx, ecx
jmp 0x4b4121
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r15], xmm0
mov rax, qword [rbp]
mov r10, qword [rbp + 8]
movabs rbp, 0x736f6d6570736575
xor rbp, rax
movabs rcx, 0x646f72616e646f6d
xor rcx, r10
add rbp, rcx
rol rcx, 0xd
lea rdx, [r14 - 0x18]
mov qword [rsp + 0x68], rdx
xor rcx, rbp
rol rbp, 0x20
movabs rdx, 0x6c7967656e657261
mov qword [rsp + 0x50], rcx
rol rcx, 0x11
mov qword [rsp + 0x40], rcx
xor rdx, rax
mov qword [rsp + 0x48], rdx
xor r11d, r11d
mov qword [rsp + 0x70], rdi
jmp 0x4b3db4
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, rdi
mov byte [r14 + r11], al
mov byte [rcx + r14 + 0x10], al
lea rax, [r11 + 1]
cmp r11, rdi
mov r11, rax
je 0x4b411c
cmp byte [r14 + r11], 0x80
jne 0x4b3da4
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rcx, r14
sub rcx, rax
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], r11
mov rax, r11
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x58], rax
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
mov r11, qword [rax]
mov r15, qword [rax + 8]
mov rdx, r10
xor rdx, r15
movabs rax, 0x7465646279746573
xor rdx, rax
mov rax, qword [rsp + 0x48]
lea r12, [rax + rdx]
rol rdx, 0x10
xor rdx, r12
add r12, qword [rsp + 0x50]
mov r13, r12
rol r13, 0x20
lea rbx, [rdx + rbp]
xor r12, qword [rsp + 0x40]
rol rdx, 0x15
xor rdx, rbx
xor rbx, r15
mov rax, r15
xor r9d, r9d
and rax, 0xfffffffffffffff8
je 0x4b3ea4
nop word [rax + rax]
add rbx, r12
rol r12, 0xd
mov rcx, qword [r11 + r9 + 0x10]
xor r12, rbx
rol rbx, 0x20
xor rdx, rcx
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add rbx, rdx
rol rdx, 0x15
add r13, r12
rol r12, 0x11
xor r12, r13
rol r13, 0x20
xor rdx, rbx
xor rbx, rcx
add r9, 8
cmp r9, rax
jb 0x4b3e60
mov r8d, r15d
and r8d, 7
cmp r8d, 3
jbe 0x4b3ed0
mov esi, dword [r11 + r9 + 0x10]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r8
jb 0x4b3ee0
jmp 0x4b3f0c
xor esi, esi
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r8
jae 0x4b3f0c
lea rcx, [rax + r9]
mov rdi, rbp
mov rbp, r10
movzx r10d, word [r11 + rcx + 0x10]
lea ecx, [rax*8]
shl r10, cl
or rsi, r10
mov r10, rbp
mov rbp, rdi
mov rdi, qword [rsp + 0x70]
or rax, 2
cmp rax, r8
jae 0x4b3f25
add r9, rax
movzx r8d, byte [r11 + r9 + 0x10]
shl eax, 3
mov ecx, eax
shl r8, cl
or rsi, r8
mov r11, qword [rsp + 0x20]
shl r15, 0x38
movabs rax, 0x800000000000000
add r15, rax
add rbx, r12
rol r12, 0xd
or r15, rsi
xor r12, rbx
rol rbx, 0x20
xor rdx, r15
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add rbx, rdx
rol rdx, 0x15
add r13, r12
rol r12, 0x11
xor rdx, rbx
xor r12, r13
rol r13, 0x20
xor rbx, r15
add rbx, r12
rol r12, 0xd
xor r12, rbx
rol rbx, 0x20
xor r13, 0xff
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add rbx, rdx
rol rdx, 0x15
add r13, r12
rol r12, 0x11
xor r12, r13
rol r13, 0x20
xor rdx, rbx
add rbx, r12
rol r12, 0xd
xor r12, rbx
rol rbx, 0x20
add r13, rdx
rol rdx, 0x10
xor rdx, r13
add rbx, rdx
rol rdx, 0x15
add r13, r12
rol r12, 0x11
xor r12, r13
rol r13, 0x20
xor rdx, rbx
add rbx, r12
rol r12, 0xd
add r13, rdx
rol rdx, 0x10
xor rdx, r13
rol rdx, 0x15
xor r12, rbx
add r13, r12
rol r12, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r12
xor rax, rdx
xor rax, r13
mov rcx, rax
and rcx, rdi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x4b4048
mov r9d, 0x10
mov r8, rcx
nop word [rax + rax]
add r8, r9
and r8, rdi
movdqu xmm0, xmmword [r14 + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x4b4030
tzcnt edx, edx
add rdx, r8
and rdx, rdi
cmp byte [r14 + rdx], 0
js 0x4b4066
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rdi
cmp r9, 0x10
jb 0x4b3d90
lea rcx, [rdx*8]
lea rcx, [rcx + rcx*2]
neg rcx
add rcx, r14
add rcx, 0xffffffffffffffe8
movzx r8d, byte [r14 + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [r14 + rdx], al
mov byte [r9 + r14 + 0x10], al
cmp r8b, 0xff
je 0x4b40f0
mov r8, qword [rsp + 0x30]
mov rax, qword [r8]
mov rdx, qword [rcx]
mov qword [r8], rdx
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
mov qword [rcx + 8], rax
mov rax, qword [r8 + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [r8 + 0x10], rdx
mov qword [rcx + 0x10], rax
jmp 0x4b3e00
lea rax, [r11 - 0x10]
and rax, rdi
mov byte [r14 + r11], 0xff
mov byte [rax + r14 + 0x10], 0xff
mov rdx, qword [rsp + 0x30]
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rcx], xmm0
jmp 0x4b3da4
mov rcx, qword [rsp + 0x60]
sub rcx, qword [rsp + 0x28]
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.0045a050
ud2