Function at 0x4ee010
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 + 0x30], rax
inc rax
je 0x4ee98a
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 + 0x58], rcx
jbe 0x4ee08c
inc r8
cmp rax, r8
cmova r8, rax
cmp r8, 8
jae 0x4ee0be
xor eax, eax
cmp r8, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x4ee118
mov qword [rsp + 0x68], r8
mov r14, qword [rcx]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x4ee423
cmp rax, 1
jne 0x4ee3ac
xor edx, edx
jmp 0x4ee407
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r8, rax
jae 0x4ee98a
shl r8, 3
mov r14d, 1
cmp r8, 0xe
jb 0x4ee118
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 0x4ee98a
mov rsi, rax
add rsi, 0xf
and rsi, 0xfffffffffffffff0
lea r12, [r14 + 0x10]
mov r13, rsi
add r13, r12
jb 0x4ee98a
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
ja 0x4ee98a
test r13, r13
je 0x4ee19f
movzx eax, byte [0x009bf181]
mov rcx, qword [0x009bf100]
test rcx, rcx
jne 0x4ee183
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x4ee195
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 0x4ee1a4
mov rcx, r13
call fcn.0045a090
ud2
mov ebx, 0x10
mov qword [rsp + 0x38], 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 + 0x40], rcx
add rbx, rsi
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x30], 0
je 0x4ee34c
mov r13, qword [rsp + 0x28]
movdqa xmm0, xmmword [r13]
pmovmskb r12d, xmm0
not r12d
lea rax, [r13 - 0x18]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov r14, qword [rsp + 0x30]
jmp 0x4ee28f
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 + 0x28]
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 0x4ee34c
test r12w, r12w
jne 0x4ee2bf
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r13 + 0x10]
add r13, 0x10
pmovmskb r12d, xmm0
add rbp, 0x10
cmp r12d, 0xffff
je 0x4ee2a0
not r12d
tzcnt esi, r12d
add rsi, rbp
mov rax, rsi
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x60]
mov r8, qword [rcx + rax*8]
mov r9, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
call fcn.004ae7f0
mov rcx, rax
and rcx, r15
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x4ee327
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 0x4ee310
tzcnt edx, edx
add rdx, rcx
and rdx, r15
cmp byte [rbx + rdx], 0
js 0x4ee230
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x4ee230
mov rcx, qword [rsp + 0x40]
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], rcx
test rdi, rdi
je 0x4ee96b
mov ecx, 0x18
mov rax, qword [rsp + 0x38]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rdi, rax
cmp rdi, 0xffffffffffffffef
je 0x4ee96b
mov r8, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [0x009bf100]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x4ee96b
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x0086d6c0]
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 0x4ee3d0
test al, 1
je 0x4ee423
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rdx]
por xmm0, xmmword [0x0086d6c0]
movdqa xmmword [r14 + rdx], xmm0
cmp r15, 0x10
jae 0x4ee445
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, r15
call sub.msvcrt.dll_memmove
cmp rdi, 0xffffffffffffffff
jne 0x4ee450
xor ecx, ecx
jmp 0x4ee95d
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r15], xmm0
lea rax, [r14 - 0x18]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp]
mov rcx, qword [rbp + 8]
movabs rdx, 0x736f6d6570736575
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x646f72616e646f6d
xor rdx, rcx
mov qword [rsp + 0x48], rdx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x38], rax
xor r11d, r11d
jmp 0x4ee4d4
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 0x4ee958
cmp byte [r14 + r11], 0x80
jne 0x4ee4c4
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rbp, r14
sub rbp, rax
add rbp, 0xffffffffffffffe8
mov qword [rsp + 0x28], r11
mov rax, r11
neg rax
lea rax, [rax + rax*2]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x60], rax
nop
mov rax, qword [rsp + 0x60]
mov r12, qword [rax]
mov r15, qword [rax + 8]
mov rax, r15
and rax, 0xfffffffffffffff8
je 0x4ee5b0
mov r10, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov r11, qword [rsp + 0x38]
xor ebx, ebx
mov r8, qword [rsp + 0x50]
nop
add r8, r9
rol r9, 0xd
mov rcx, qword [r12 + rbx + 0x10]
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 0x4ee540
mov esi, r15d
and esi, 7
cmp esi, 3
jbe 0x4ee5d1
mov r13d, dword [r12 + rbx + 0x10]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x4ee5e2
jmp 0x4ee5fd
mov r11, qword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
mov r10, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
xor ebx, ebx
mov esi, r15d
and esi, 7
cmp esi, 3
ja 0x4ee58f
xor r13d, r13d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x4ee5fd
lea rcx, [rax + rbx]
movzx edx, word [r12 + rcx + 0x10]
lea ecx, [rax*8]
shl rdx, cl
or r13, rdx
or rax, 2
cmp rax, rsi
jae 0x4ee620
add rbx, rax
movzx edx, byte [r12 + rbx + 0x10]
shl eax, 3
mov ecx, eax
shl rdx, cl
or r13, rdx
jmp 0x4ee625
test rsi, rsi
je 0x4ee681
lea ecx, [rsi*8]
mov ebx, 0xff
shl rbx, cl
or rbx, r13
cmp rsi, 7
jne 0x4ee75f
mov ecx, 8
add r8, r9
rol r9, 0xd
sub rcx, rsi
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 0x4ee683
xor ecx, ecx
mov esi, 1
sub rsi, rcx
mov eax, esi
and eax, 7
and rsi, 0xfffffffffffffff8
cmp rcx, rsi
jae 0x4ee710
nop dword [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 0x4ee6a0
xor esi, esi
cmp rax, 4
setae sil
cmp eax, 4
mov ebx, 0
mov ecx, 0xff
cmovae rbx, rcx
shl rsi, 2
jmp 0x4ee714
xor ebx, ebx
xor esi, esi
mov rdx, rsi
lea ecx, [rsi*8]
mov r12d, 0xff
shl r12, cl
or rdx, 1
mov r13, rsi
or r13, 2
cmp rdx, rax
mov edx, 0
cmovae r12, rdx
cmovae r13, rsi
or r12, rbx
lea ecx, [r13*8]
mov ebx, 0xff
shl rbx, cl
cmp r13, rax
cmovae rbx, rdx
or rbx, r12
shl r15, 0x38
movabs rax, 0x100000000000000
add r15, rax
add r8, r9
rol r9, 0xd
or r15, rbx
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, rdi
movdqu xmm0, xmmword [r14 + rcx]
pmovmskb r8d, xmm0
mov r9, rcx
test r8d, r8d
mov r11, qword [rsp + 0x28]
jne 0x4ee88a
mov r10d, 0x10
mov r9, rcx
nop word cs:[rax + rax]
add r9, r10
and r9, rdi
movdqu xmm0, xmmword [r14 + r9]
pmovmskb r8d, xmm0
add r10, 0x10
test r8d, r8d
je 0x4ee870
tzcnt r8d, r8d
add r8, r9
and r8, rdi
cmp byte [r14 + r8], 0
js 0x4ee8aa
movdqa xmm0, xmmword [r14]
pmovmskb edx, xmm0
tzcnt r8d, edx
mov rdx, r11
sub rdx, rcx
mov r9, r8
sub r9, rcx
xor r9, rdx
and r9, rdi
cmp r9, 0x10
jb 0x4ee4b0
lea rcx, [r8*8]
lea rcx, [rcx + rcx*2]
neg rcx
add rcx, r14
add rcx, 0xffffffffffffffe8
movzx edx, byte [r14 + r8]
shr rax, 0x39
lea r9, [r8 - 0x10]
and r9, rdi
mov byte [r14 + r8], al
mov byte [r9 + r14 + 0x10], al
cmp dl, 0xff
je 0x4ee930
mov rax, qword [rbp]
mov rdx, qword [rcx]
mov qword [rbp], rdx
mov qword [rcx], rax
mov rax, qword [rbp + 8]
mov rdx, qword [rcx + 8]
mov qword [rbp + 8], rdx
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rcx + 0x10]
mov qword [rbp + 0x10], rdx
mov qword [rcx + 0x10], rax
jmp 0x4ee510
lea rax, [r11 - 0x10]
and rax, rdi
mov byte [r14 + r11], 0xff
mov byte [rax + r14 + 0x10], 0xff
mov rax, qword [rbp + 0x10]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rbp]
movdqu xmmword [rcx], xmm0
jmp 0x4ee4c4
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
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