Function at 0x180029270
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12, r9
mov rdi, r8
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov rsi, qword [rbp + 0xf0]
mov r14, qword [rbp + 0xf8]
mov r15, qword [rbp + 0x100]
mov r13, qword [rbp + 0x108]
test dl, dl
je 0x180029303
mov ecx, 1
call fcn.180029c40
mov rbx, rax
mov qword [rsp + 0x40], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call fcn.180023cb0
mov edx, 1
mov rcx, rbx
call fcn.180029c7c
mov r9, r13
mov r8, r15
mov rdx, r14
mov rcx, rsi
call fcn.180027b80
mov dword [rsp + 0x40], 0x4790a09
mov dword [rsp + 0x44], 0x3e383530
mov dword [rsp + 0x48], 0x522c3134
xor eax, eax
mov byte [rsp + 0x4c], al
xor esi, esi
mov edx, esi
nop word [rax + rax]
lea ecx, [rax + 0x55]
xor byte [rsp + rdx + 0x40], cl
inc eax
movsxd rdx, eax
cmp rdx, 0xc
jb 0x180029340
mov byte [rsp + 0x4c], sil
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x50000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [0x180038040], rax
mov r13d, esi
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
sar rcx, 5
test rcx, rcx
je 0x1800294c4
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov rcx, qword [rdi]
add rcx, rsi
mov rdx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1800293c6
mov rdx, qword [rcx]
mov r14, qword [rcx + 0x10]
mov r8, r14
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov r8, qword [r12]
add r8, rsi
mov rdx, r8
mov r15, qword [r8 + 0x18]
cmp r15, 0x10
jb 0x180029400
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbp + 0x74], r13d
mov dword [rbp + 0x70], r14d
movaps xmm0, xmmword [rbp - 0x10]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rbp]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm0, xmmword [rbp + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x60], xmm1
movaps xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [rbp + 0x70]
movsd qword [rbp - 0x30], xmm0
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x88
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x88
lea r8, [rsp + 0x50]
mov edx, 0x23dde0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc r13d
add rsi, 0x20
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
sar rcx, 5
movsxd rax, r13d
mov rbx, qword [0x180038040]
cmp rax, rcx
jb 0x1800293a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.18000a620
nop
mov rcx, r12
call fcn.18000a620
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180029c20
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret