Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r13
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r15, qword [rbp + 0x58]
mov rbx, rcx
mov qword [rbp - 0x58], rcx
mov r10, r8
mov rcx, qword [rbp + 0x68]
mov r13d, edx
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x60], edx
test dl, 0xf
je 0x14000209b
mov esi, 1
jmp 0x1400024e4
lea eax, [r9 - 0x10]
test eax, 0xffffffe7
jne 0x1400024df
cmp r9d, 0x28
je 0x1400024df
test rcx, rcx
jne 0x1400020c7
cmp dword [rbp + 0x60], r13d
jae 0x1400020d9
lea esi, [rcx + 3]
jmp 0x1400024e4
lea eax, [rdx - 0x10]
cmp dword [rbp + 0x60], eax
jae 0x1400020d9
mov esi, 3
jmp 0x1400024e4
mov qword [rsp + 0xc0], rdi
lea rcx, [rbp - 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x78], r12
xor eax, eax
mov qword [rsp + 0x70], r14
mov r8d, r9d
mov qword [rbp - 0x20], rax
mov rdx, r10
movups xmmword [rbp - 0x30], xmm0
call fcn.140001c10
mov r8, r15
lea rcx, [rbp - 0x30]
mov rdx, rbx
call fcn.140001f30
mov r8, qword [rbp + 0x50]
xor esi, esi
lea r12d, [rsi + 0x10]
test r8, r8
je 0x140002175
lea rax, [r8 + 0xf]
lea rcx, [r15 + 0xf]
cmp r15, rax
ja 0x140002163
cmp rcx, r8
jb 0x140002163
sub r8, r15
lea rcx, [rsi + r15]
mov edx, r12d
sub rdx, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140002150
jmp 0x140002175
movdqu xmm0, xmmword [r15]
movdqu xmm1, xmmword [r8]
xorps xmm1, xmm0
movdqu xmmword [r15], xmm1
mov r14d, r13d
shr r14d, 4
dec r14d
cmp r14d, 1
jbe 0x140002240
mov esi, r12d
lea r13d, [r14 - 1]
mov r12, rbx
nop dword [rax]
nop word [rax + rax]
movsxd rax, esi
lea rcx, [rbp - 0x30]
lea rdi, [rax + r15]
lea rbx, [rax + r12]
mov r8, rdi
mov rdx, rbx
call fcn.140001f30
movzx eax, byte [rbx - 0x10]
add esi, 0x10
xor byte [rdi], al
movzx eax, byte [rbx - 0xf]
xor byte [rdi + 1], al
movzx eax, byte [rbx - 0xe]
xor byte [rdi + 2], al
movzx eax, byte [rbx - 0xd]
xor byte [rdi + 3], al
movzx eax, byte [rbx - 0xc]
xor byte [rdi + 4], al
movzx eax, byte [rbx - 0xb]
xor byte [rdi + 5], al
movzx eax, byte [rbx - 0xa]
xor byte [rdi + 6], al
movzx eax, byte [rbx - 9]
xor byte [rdi + 7], al
movzx eax, byte [rbx - 8]
xor byte [rdi + 8], al
movzx eax, byte [rbx - 7]
xor byte [rdi + 9], al
movzx eax, byte [rbx - 6]
xor byte [rdi + 0xa], al
movzx eax, byte [rbx - 5]
xor byte [rdi + 0xb], al
movzx eax, byte [rbx - 4]
xor byte [rdi + 0xc], al
movzx eax, byte [rbx - 3]
xor byte [rdi + 0xd], al
movzx eax, byte [rbx - 2]
xor byte [rdi + 0xe], al
movzx eax, byte [rbx - 1]
xor byte [rdi + 0xf], al
sub r13, 1
jne 0x1400021a0
mov r13d, dword [rbp - 0x60]
xor esi, esi
lea r12d, [rsi + 0x10]
shl r14d, 4
xorps xmm0, xmm0
mov edi, r14d
mov qword [rbp - 0x60], rdi
movups xmmword [rbp - 0x40], xmm0
cmp r13d, 0x10
jbe 0x1400023f5
mov rax, qword [rbp - 0x28]
mov r13, qword [rbp - 0x58]
mov ecx, dword [r14 + r13]
xor ecx, dword [rax - 0x10]
mov edx, dword [r14 + r13 + 4]
mov r8d, dword [r14 + r13 + 8]
mov r9d, dword [r14 + r13 + 0xc]
xor edx, dword [rax - 0xc]
xor r8d, dword [rax - 8]
xor r9d, dword [rax - 4]
mov dword [rbp - 0x40], ecx
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x3c], edx
mov dword [rbp - 0x38], r8d
mov dword [rbp - 0x34], r9d
call fcn.140001440
lea rcx, [rbp - 0x40]
call fcn.140001300
mov rdi, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x30]
sub rdi, rbx
sar rdi, 4
sub rdi, 2
je 0x140002320
mov r14, rdi
shl r14, 4
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r14 + rbx]
lea rcx, [rbp - 0x40]
xor dword [rbp - 0x40], eax
mov eax, dword [r14 + rbx + 4]
xor dword [rbp - 0x3c], eax
mov eax, dword [r14 + rbx + 8]
xor dword [rbp - 0x38], eax
mov eax, dword [r14 + rbx + 0xc]
xor dword [rbp - 0x34], eax
call fcn.140001570
lea rcx, [rbp - 0x40]
call fcn.140001440
lea rcx, [rbp - 0x40]
call fcn.140001300
mov rbx, qword [rbp - 0x30]
lea r14, [r14 - 0x10]
sub rdi, 1
jne 0x1400022d0
nop dword [rax + rax]
mov edx, dword [rbp - 0x40]
mov r8d, dword [rbp - 0x3c]
mov r9d, dword [rbp - 0x38]
mov r10d, dword [rbp - 0x34]
xor edx, dword [rbx]
xor r8d, dword [rbx + 4]
xor r9d, dword [rbx + 8]
xor r10d, dword [rbx + 0xc]
mov rdi, qword [rbp - 0x60]
mov r14d, dword [rbp + 0x60]
mov dword [rbp - 0x40], edx
mov dword [rbp - 0x3c], r8d
lea eax, [rdi - 0x10]
mov dword [rbp - 0x38], r9d
xor dl, byte [rax + r13]
mov ecx, eax
movzx eax, byte [rax + r13 + 1]
mov dword [rbp - 0x34], r10d
movaps xmm0, xmmword [rbp - 0x40]
xor r8b, byte [rcx + r13 + 4]
xor r9b, byte [rcx + r13 + 8]
xor r10b, byte [rcx + r13 + 0xc]
movdqa xmmword [rbp - 0x40], xmm0
xor byte [rbp - 0x3f], al
movzx eax, byte [rcx + r13 + 2]
xor byte [rbp - 0x3e], al
movzx eax, byte [rcx + r13 + 3]
xor byte [rbp - 0x3d], al
movzx eax, byte [rcx + r13 + 5]
xor byte [rbp - 0x3b], al
movzx eax, byte [rcx + r13 + 6]
xor byte [rbp - 0x3a], al
movzx eax, byte [rcx + r13 + 7]
xor byte [rbp - 0x39], al
movzx eax, byte [rcx + r13 + 9]
xor byte [rbp - 0x37], al
movzx eax, byte [rcx + r13 + 0xa]
xor byte [rbp - 0x36], al
movzx eax, byte [rcx + r13 + 0xb]
xor byte [rbp - 0x35], al
movzx eax, byte [rcx + r13 + 0xd]
xor byte [rbp - 0x33], al
movzx eax, byte [rcx + r13 + 0xe]
xor byte [rbp - 0x32], al
movzx eax, byte [rbp - 0x31]
xor al, byte [rcx + r13 + 0xf]
mov byte [rbp - 0x31], al
mov byte [rbp - 0x40], dl
mov byte [rbp - 0x3c], r8b
mov byte [rbp - 0x38], r9b
mov byte [rbp - 0x34], r10b
jmp 0x14000241d
mov r8d, r13d
lea rcx, [rbp - 0x40]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov r14d, dword [rbp + 0x60]
xor edx, edx
mov r8d, r14d
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [rbp - 0x31]
mov rbx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x50]
mov rcx, rdi
test rdx, rdx
je 0x140002482
movzx r8d, al
sub r12d, r8d
mov dword [rdx], r8d
cmp r8d, 0x10
ja 0x14000247b
mov edx, esi
test al, al
je 0x140002458
nop
mov eax, 0xf
sub eax, edx
movzx ecx, byte [rbp + rax - 0x40]
cmp ecx, r8d
jne 0x14000247b
inc edx
cmp edx, r8d
jb 0x140002440
lea eax, [rdi + r12]
cmp r14d, eax
jb 0x140002474
mov ecx, edi
lea rdx, [rbp - 0x40]
add rcx, r15
mov r8d, r12d
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000248b
mov esi, 3
jmp 0x14000248b
mov esi, 4
jmp 0x14000248b
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rcx + r15], xmm0
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0xc0]
test rbx, rbx
je 0x1400024e4
mov rdx, qword [rbp - 0x20]
mov rax, rbx
sub rdx, rbx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x1400024d5
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140002b4c
jmp 0x1400024e4
mov esi, 2
mov eax, esi
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140002af0
add rsp, 0x80
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret