Function at 0x14001bf38
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14003f008]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov r15, rdx
mov qword [rdx], rbx
mov esi, 0x2000
mov ecx, esi
lea edx, [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__aligned_malloc]
mov rdi, rax
test rax, rax
jne 0x14001bf8b
lea ebp, [rbx + 8]
jmp 0x14001c1ba
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r14d, 1
mov dword [rdi], 0x66676572
lea rsi, [rdi + 0x1000]
mov dword [rdi + 4], r14d
mov ebp, 0x1000
mov dword [rdi + 8], r14d
mov r8d, ebp
mov qword [rdi + 0xc], rbx
mov rcx, rsi
mov dword [rdi + 0x14], r14d
xor edx, edx
mov qword [rdi + 0x18], 5
mov dword [rdi + 0x20], r14d
mov dword [rdi + 0x28], ebx
mov dword [rdi + 0x2c], r14d
mov dword [rdi + 0x90], ebx
mov dword [rdi + 0x1fc], ebx
call sub.msvcrt.dll_memset
mov qword [rsi], 0x6e696268
lea r12d, [r14 + 0x1f]
mov dword [rsi + 8], ebp
lea rcx, [rsp + 0x20]
mov qword [rsi + 0x14], rbx
mov dword [rdi + 0x24], r12d
mov dword [rsi + 0x24], 0x6b6e
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x20]
lea ebp, [r14 + 7]
mov dword [rsi + 0x28], eax
lea r9, [0x14002bfd0]
mov eax, dword [rsp + 0x24]
lea rcx, [rsp + 0x28]
mov dword [rsi + 0x2c], eax
mov r8, rdi
or eax, 0xffffffff
mov dword [rsi + 0x30], ebx
mov dword [rsi + 0x34], eax
mov edx, ebp
mov qword [rsi + 0x38], rbx
mov dword [rsi + 0x40], eax
mov dword [rsi + 0x44], eax
mov dword [rsi + 0x48], ebx
mov dword [rsi + 0x4c], eax
mov dword [rsi + 0x50], eax
mov dword [rsi + 0x54], eax
mov dword [rsi + 0x6c], ebx
mov qword [rsi + 0x5c], rbx
mov word [rsi + 0x58], bx
mov dword [rsi + 0x64], ebx
call fcn.14001fc1c
movzx ebx, ax
lea rcx, [rsi + 0x70]
mov r8d, ebx
lea rdx, [rsp + 0x28]
call sub.msvcrt.dll_memcpy
cmp bx, bp
jae 0x14001c089
or word [rsi + 0x26], r12w
jmp 0x14001c092
mov eax, 0xffdf
and word [rsi + 0x26], ax
mov word [rsi + 0x6c], bx
mov eax, dword [rdi + 0x14]
sub eax, r14d
movzx r14d, bx
shl eax, 0xc
add eax, dword [rdi + 0x18]
cmp eax, 2
sbb ecx, ecx
add r14d, 0x4f
and ecx, ebp
add ecx, ebp
add r14d, ecx
lea eax, [rcx - 1]
not eax
and r14d, eax
mov eax, r14d
mov r13d, r14d
neg eax
mov dword [rsi + 0x20], eax
mov ecx, dword [rdi + 0x24]
add ecx, r14d
mov dword [rsi + 0x50], ecx
call fcn.140021060
mov r12, rax
test rax, rax
je 0x14001c1ac
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
lea rcx, [rsi + 0x38]
mov dword [r14 + rsi + 0x30], 1
mov ebx, eax
add rcx, r13
mov eax, 0x6b73
mov r8d, ebx
mov rdx, r12
mov word [r14 + rsi + 0x24], ax
call sub.msvcrt.dll_memcpy
mov dword [r14 + rsi + 0x34], ebx
mov r8d, 1
mov edx, dword [rdi + 0x24]
add edx, r14d
mov dword [r14 + rsi + 0x2c], edx
mov dword [r14 + rsi + 0x28], edx
lea edx, [rbx + 0x17]
mov ecx, dword [rdi + 0x14]
sub ecx, r8d
shl ecx, 0xc
add ecx, dword [rdi + 0x18]
cmp ecx, 2
mov ecx, 0xfe0
sbb eax, eax
and eax, ebp
add eax, ebp
add edx, eax
dec eax
not eax
and edx, eax
sub ecx, edx
mov eax, edx
neg eax
sub ecx, r14d
mov dword [r14 + rsi + 0x20], eax
mov eax, edx
add rax, r13
mov dword [rax + rsi + 0x20], ecx
xor eax, eax
mov dword [rdi + 0x28], 0x1000
mov rcx, rdi
lea edx, [rax + 0x7f]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
sub rdx, r8
jne 0x14001c17a
cmp eax, 0xffffffff
mov ecx, 0xfffffffe
cmove eax, ecx
test eax, eax
cmove eax, r8d
mov dword [rdi + 0x1fc], eax
mov qword [r15], rdi
xor edi, edi
xor ebp, ebp
mov rcx, r12
call qword [sym.imp.msvcrt.dll__aligned_free]
test rdi, rdi
je 0x14001c1ba
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__aligned_free]
mov eax, ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140027ea0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret