Function at 0x140046550
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
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x28], rax
add rdx, rax
jb 0x140047012
mov r14, r8
mov rsi, rcx
mov r13, qword [rcx + 8]
lea r8, [r13 + 1]
mov rax, r8
shr rax, 3
mov rdi, r8
and rdi, 0xfffffffffffffff8
sub rdi, rax
cmp r13, 8
cmovb rdi, r13
mov rax, rdi
shr rax, 1
cmp rdx, rax
mov qword [rsp + 0x30], rcx
jbe 0x1400465d4
inc rdi
cmp rdx, rdi
cmova rdi, rdx
cmp rdi, 8
jae 0x140046601
xor eax, eax
cmp rdi, 4
setae al
lea r12, [rax*4 + 4]
jmp 0x140046664
mov rbx, qword [rsi]
mov rcx, r8
shr rcx, 4
xor eax, eax
test r8b, 0xf
setne al
add rax, rcx
je 0x14004691a
cmp rax, 1
jne 0x1400468aa
xor ecx, ecx
jmp 0x140046904
mov rax, rdi
shr rax, 0x3d
jne 0x140047012
shl rdi, 3
mov r12d, 1
cmp rdi, 0xe
jb 0x140046664
movabs rcx, 0x2492492492492493
mov rax, rdi
mul rcx
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 2
dec rdi
bsr rcx, rdi
not ecx
mov r12, 0xffffffffffffffff
shr r12, cl
movabs rax, 0xffffffffffffffe
cmp r12, rax
ja 0x140047012
inc r12
mov rbp, r12
shl rbp, 4
lea rbx, [r12 + 0x10]
mov r15, rbp
add r15, rbx
jb 0x140047012
movabs rax, 0x7ffffffffffffff1
cmp r15, rax
jae 0x140047012
test r15, r15
je 0x1400466d7
movzx eax, byte [0x1400b9d30]
mov rcx, qword [0x1400b9ca0]
test rcx, rcx
jne 0x1400466bc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400466cf
mov rcx, rax
mov qword [0x1400b9ca0], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1400466dc
mov rcx, r15
call fcn.14000d840
mov edi, 0x10
lea rsi, [r12 - 1]
mov rax, r12
shr rax, 3
mov rcx, r12
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r12, 9
cmovb rcx, rsi
mov qword [rsp + 0x38], rcx
add rdi, rbp
mov rcx, rdi
mov dl, 0xff
mov r8, rbx
call fcn.140044640
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x28], 0
je 0x14004684c
mov rbx, qword [rsp + 0x20]
lea rax, [rbx - 0x10]
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [rbx]
pmovmskb r12d, xmm0
not r12d
movups xmm6, xmmword [r14]
xor ebp, ebp
mov r14, qword [rsp + 0x28]
jmp 0x140046794
lea ecx, [r12 - 1]
and ecx, r12d
dec r14
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rsi
mov byte [rdi + rdx], al
mov byte [r8 + rdi + 0x10], al
mov rax, qword [rsp + 0x20]
sub rax, r15
shl rdx, 4
neg rdx
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmmword [rdi + rdx - 0x10], xmm0
mov r12d, ecx
test r14, r14
je 0x14004684c
test r12w, r12w
jne 0x1400467be
nop word [rax + rax]
movdqa xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pmovmskb r12d, xmm0
add rbp, 0x10
cmp r12d, 0xffff
je 0x1400467a0
not r12d
tzcnt r15d, r12d
add r15, rbp
shl r15, 4
mov rax, qword [rsp + 0x40]
sub rax, r15
mov rdx, qword [rax]
mov r8, qword [rax + 8]
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.140011720
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140046827
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rdi + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140046810
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rdi + rdx], 0
js 0x140046750
movdqa xmm0, xmmword [rdi]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140046750
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, qword [rsp + 0x30]
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
test r13, r13
je 0x140046ff2
mov rax, r13
shl rax, 4
add r13, rax
cmp r13, 0xffffffffffffffdf
je 0x140046ff2
mov r8, qword [rsp + 0x20]
sub r8, rax
add r8, 0xfffffffffffffff0
mov rcx, qword [0x1400b9ca0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140046ff2
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x140049630]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x1400468d0
test al, 1
je 0x14004691a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x140049630]
movdqa xmmword [rbx + rcx], xmm0
cmp r8, 0x10
jae 0x140046939
lea rcx, [rbx + 0x10]
mov rdx, rbx
call fcn.140043ec0
cmp r13, 0xffffffffffffffff
jne 0x140046943
xor eax, eax
jmp 0x140046fe9
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r8], xmm0
mov qword [rsp + 0x48], rdi
movdqu xmm1, xmmword [r14]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [str.uespemosarenegylmodnarodsetybdet................eeeeeeeeeeeeeeee_]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x140049650]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x20], xmm2
movq qword [rsp + 0x40], xmm0
movq qword [rsp + 0x38], xmm1
pshufd xmm2, xmm0, 0xee
movq r10, xmm2
xor ebp, ebp
jmp 0x1400469b4
shr rdi, 0x39
lea rax, [rbp - 0x10]
and rax, r13
mov byte [rbx + rbp], dil
mov byte [rax + rbx + 0x10], dil
lea rax, [rbp + 1]
cmp rbp, r13
mov rbp, rax
je 0x140046fdf
cmp byte [rbx + rbp], 0x80
jne 0x1400469a4
mov rax, rbp
shl rax, 4
mov rsi, rbx
sub rsi, rax
lea r12, [rsi - 0x10]
nop dword [rax + rax]
mov r14, qword [rsi - 0x10]
mov rdx, qword [rsi - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x140046a80
mov rax, r10
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
xor r11d, r11d
mov r8, qword [rsp + 0x40]
nop word [rax + rax]
add r8, rdi
rol rdi, 0xd
mov r9, qword [r14 + r11]
xor rdi, r8
rol r8, 0x20
xor r15, r9
add rax, r15
rol r15, 0x10
xor r15, rax
add r8, r15
rol r15, 0x15
add rax, rdi
rol rdi, 0x11
xor rdi, rax
rol rax, 0x20
xor r15, r8
xor r8, r9
add r11, 8
cmp r11, rcx
jb 0x140046a00
movq xmm3, r15
movq xmm2, rdi
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov edi, edx
and edi, 7
cmp edi, 3
jbe 0x140046a95
mov r8d, dword [r14 + r11]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jb 0x140046aa6
jmp 0x140046ac0
movdqa xmm3, xmm0
movdqa xmm2, xmm1
xor r11d, r11d
mov edi, edx
and edi, 7
cmp edi, 3
ja 0x140046a69
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rdi
jae 0x140046ac0
lea rcx, [rax + r11]
movzx r15d, word [r14 + rcx]
lea ecx, [rax*8]
shl r15, cl
or r8, r15
or rax, 2
cmp rax, rdi
jae 0x140046ae0
add r11, rax
movzx r11d, byte [r14 + r11]
shl eax, 3
mov ecx, eax
shl r11, cl
or r8, r11
jmp 0x140046ae9
test rdi, rdi
je 0x140046bc8
lea ecx, [rdi*8]
mov r15d, 0xff
shl r15, cl
or r15, r8
cmp rdi, 7
jne 0x140046cea
mov eax, 8
sub rax, rdi
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r15
movq xmm4, rcx
movdqa xmm5, xmm2
punpcklqdq xmm5, xmm4
paddq xmm3, xmm5
movq rcx, xmm3
rol rcx, 0x20
movdqa xmm4, xmm5
psrlq xmm4, 0x30
movdqa xmm6, xmm2
psrlq xmm6, 0x33
shufps xmm6, xmm4, 0xe4
psllq xmm5, 0x10
psllq xmm2, 0xd
shufps xmm2, xmm5, 0xe4
orps xmm2, xmm6
pxor xmm2, xmm3
pshufd xmm3, xmm3, 0xee
movq xmm4, rcx
punpcklqdq xmm3, xmm4
paddq xmm3, xmm2
movdqa xmm4, xmm2
psrlq xmm4, 0x2f
movdqa xmm5, xmm2
psrlq xmm5, 0x2b
movsd xmm5, xmm4
movdqa xmm4, xmm2
psllq xmm4, 0x11
psllq xmm2, 0x15
movsd xmm2, xmm4
orpd xmm2, xmm5
xorpd xmm2, xmm3
movq rcx, xmm3
rol rcx, 0x20
pshufd xmm3, xmm3, 0xee
movq r8, xmm3
xor r8, r15
movq xmm4, rcx
movq xmm3, r8
punpcklqdq xmm3, xmm4
jmp 0x140046bca
xor eax, eax
mov ecx, 1
sub rcx, rax
mov r14d, ecx
and r14d, 7
and rcx, 0xfffffffffffffff8
cmp rax, rcx
jae 0x140046ca0
movq r8, xmm3
pshufd xmm4, xmm2, 0xee
movq r15, xmm4
movq rdi, xmm2
pshufd xmm2, xmm3, 0xee
movq r11, xmm2
nop word cs:[rax + rax]
add r8, rdi
rol rdi, 0xd
xor rdi, r8
rol r8, 0x20
xor r15, 0xff
add r11, r15
rol r15, 0x10
xor r15, r11
add r8, r15
rol r15, 0x15
add r11, rdi
rol rdi, 0x11
xor rdi, r11
rol r11, 0x20
xor r15, r8
xor r8, 0xff
add rax, 8
cmp rax, rcx
jb 0x140046c10
movq xmm3, r15
movq xmm2, rdi
punpcklqdq xmm2, xmm3
movq xmm4, r11
movq xmm3, r8
punpcklqdq xmm3, xmm4
xor eax, eax
cmp r14, 4
setae al
cmp r14d, 4
mov r8d, 0
mov ecx, 0xff
cmovae r8, rcx
shl rax, 2
jmp 0x140046ca5
xor r8d, r8d
xor eax, eax
mov r9, rax
or r9, 1
lea ecx, [rax*8]
mov r15d, 0xff
shl r15, cl
mov rcx, rax
or rcx, 2
cmp r9, r14
mov r9d, 0
cmovae r15, r9
cmovae rcx, rax
or r15, r8
cmp rcx, r14
jae 0x140046cea
shl ecx, 3
mov eax, 0xff
shl rax, cl
or r15, rax
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq r11, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, r15
paddq xmm2, xmm3
rol rcx, 0xd
movq r14, xmm2
xor rcx, r14
rol r14, 0x20
xor r11, rdx
add rax, r11
rol r11, 0x10
xor r11, rax
add r14, r11
rol r11, 0x15
add rax, rcx
rol rcx, 0x11
xor r11, r14
xor rcx, rax
rol rax, 0x20
xor r14, rdx
add r14, rcx
rol rcx, 0xd
xor rcx, r14
rol r14, 0x20
xor rax, 0xff
add rax, r11
rol r11, 0x10
xor r11, rax
add r14, r11
rol r11, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r11, r14
add r14, rcx
rol rcx, 0xd
xor rcx, r14
rol r14, 0x20
add rax, r11
rol r11, 0x10
xor r11, rax
add r14, r11
rol r11, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor r11, r14
add r14, rcx
rol rcx, 0xd
add rax, r11
rol r11, 0x10
xor r11, rax
rol r11, 0x15
xor rcx, r14
add rax, rcx
rol rcx, 0x11
mov rdi, rax
rol rdi, 0x20
xor rdi, rcx
xor rdi, r11
xor rdi, rax
mov rax, r13
and rax, rdi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x140046e27
mov r8d, 0x10
mov rdx, rax
nop word [rax + rax]
add rdx, r8
and rdx, r13
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x140046e10
tzcnt ecx, ecx
add rcx, rdx
and rcx, r13
cmp byte [rbx + rcx], 0
js 0x140046e43
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, rbp
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, r13
cmp r8, 0x10
jb 0x140046990
mov rax, rcx
shl rax, 4
neg rax
add rax, rbx
add rax, 0xfffffffffffffff0
movzx edx, byte [rbx + rcx]
shr rdi, 0x39
lea r8, [rcx - 0x10]
and r8, r13
mov byte [rbx + rcx], dil
mov byte [r8 + rbx + 0x10], dil
cmp dl, 0xff
je 0x140046fc0
movzx ecx, byte [r12]
movzx edx, byte [rax]
mov byte [r12], dl
mov byte [rax], cl
movzx ecx, byte [r12 + 1]
movzx edx, byte [rax + 1]
mov byte [r12 + 1], dl
mov byte [rax + 1], cl
movzx ecx, byte [r12 + 2]
movzx edx, byte [rax + 2]
mov byte [r12 + 2], dl
mov byte [rax + 2], cl
movzx ecx, byte [r12 + 3]
movzx edx, byte [rax + 3]
mov byte [r12 + 3], dl
mov byte [rax + 3], cl
movzx ecx, byte [r12 + 4]
movzx edx, byte [rax + 4]
mov byte [r12 + 4], dl
mov byte [rax + 4], cl
movzx ecx, byte [r12 + 5]
movzx edx, byte [rax + 5]
mov byte [r12 + 5], dl
mov byte [rax + 5], cl
movzx ecx, byte [r12 + 6]
movzx edx, byte [rax + 6]
mov byte [r12 + 6], dl
mov byte [rax + 6], cl
movzx ecx, byte [r12 + 7]
movzx edx, byte [rax + 7]
mov byte [r12 + 7], dl
mov byte [rax + 7], cl
movzx ecx, byte [r12 + 8]
movzx edx, byte [rax + 8]
mov byte [r12 + 8], dl
mov byte [rax + 8], cl
movzx ecx, byte [r12 + 9]
movzx edx, byte [rax + 9]
mov byte [r12 + 9], dl
mov byte [rax + 9], cl
movzx ecx, byte [r12 + 0xa]
movzx edx, byte [rax + 0xa]
mov byte [r12 + 0xa], dl
mov byte [rax + 0xa], cl
movzx ecx, byte [r12 + 0xb]
movzx edx, byte [rax + 0xb]
mov byte [r12 + 0xb], dl
mov byte [rax + 0xb], cl
movzx ecx, byte [r12 + 0xc]
movzx edx, byte [rax + 0xc]
mov byte [r12 + 0xc], dl
mov byte [rax + 0xc], cl
movzx ecx, byte [r12 + 0xd]
movzx edx, byte [rax + 0xd]
mov byte [r12 + 0xd], dl
mov byte [rax + 0xd], cl
movzx ecx, byte [r12 + 0xe]
movzx edx, byte [rax + 0xe]
mov byte [r12 + 0xe], dl
mov byte [rax + 0xe], cl
movzx ecx, byte [r12 + 0xf]
movzx edx, byte [rax + 0xf]
mov byte [r12 + 0xf], dl
mov byte [rax + 0xf], cl
jmp 0x1400469d0
lea rcx, [rbp - 0x10]
and rcx, r13
mov byte [rbx + rbp], 0xff
mov byte [rcx + rbx + 0x10], 0xff
movdqu xmm2, xmmword [r12]
movdqu xmmword [rax], xmm2
jmp 0x1400469a4
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x28]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000001
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14000d800
int3