Function at 0x140029610
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13, rcx
mov qword [rsp + 0x58], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1400d0f20
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140029745
mov ecx, dword [0x1401bdd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
cmp r8d, 3
jne 0x14002970d
lea ecx, [rsi + 0x28]
call fcn.1400cb128
mov rbx, rax
call fcn.1400cc4a0
add eax, dword [0x1401bdd80]
mov dword [rbx + rsi*4], eax
inc rsi
cmp rsi, 0xa
jl 0x1400296e5
mov ecx, dword [rbx + 0x24]
mov dword [0x1401bdd80], ecx
mov rcx, rbx
call fcn.1400cc208
lea rcx, [rdi - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x30], 1
lock add dword [rdi - 8], 0xffffffff
jg 0x140029a9d
mov rcx, qword [rdi - 0x18]
mov r8, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140029a9d
lea rdx, str.SHGetFolderPathW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140029861
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 8
jne 0x14002982a
mov ecx, esi
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, esi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc esi
cmp esi, 0x100
jl 0x140029790
mov dword [0x1401bdd80], r8d
lea rcx, [rdi - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x30], 1
lock add dword [rdi - 8], 0xffffffff
jg 0x140029a9d
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140029a9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
call rbx
or r15, 0xffffffffffffffff
test eax, eax
jns 0x1400298a1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 0x27]
xor ecx, ecx
call rbx
test eax, eax
js 0x140029a74
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
lea rax, [rsp + 0x60]
test rax, 0xffffffffffff0000
jne 0x1400298fa
movzx esi, cx
mov ecx, esi
call fcn.1400019e0
test rax, rax
je 0x140029a05
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002690
mov rbx, qword [rsp + 0x40]
jmp 0x140029a05
lea rax, [rsp + 0x60]
mov r14, r15
inc r14
cmp word [rax + r14*2], 0
jne 0x140029902
test r14d, r14d
jne 0x140029971
lea rdx, [rbx - 0x18]
mov r14, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140029a05
cmp dword [rdx + 0x10], 0
jge 0x140029945
cmp dword [rbx - 0xc], 0
jge 0x14002993a
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x140029a05
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140029955
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov rdi, qword [rsp + 0x38]
jmp 0x140029a05
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x48], eax
lea r12, [rsp + 0x60]
sub r12, rbx
sar r12, 1
test r14d, r14d
jns 0x140029993
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x1400299b7
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140002490
mov rbx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x48]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, rax
movsxd rax, r14d
ja 0x1400299e1
add rax, rax
lea r8, [rbx + r12*2]
mov r12, rax
mov r9, rax
call fcn.1400cc30c
jmp 0x1400299f2
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x60]
call fcn.1400cc4cc
cmp r14d, dword [rbx - 0xc]
jg 0x140029a92
mov dword [rbx - 0x10], r14d
mov word [r12 + rbx], si
lea rsi, [rbx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rsi, rdi
je 0x140029a5c
cmp dword [rdi + 0x10], 0
jl 0x140029a4a
mov rax, qword [rdi]
cmp qword [rsi], rax
jne 0x140029a4a
mov rcx, rsi
call fcn.1400024f0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140029a3f
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140029a5c
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400023a0
nop
lock add dword [rsi + 0x10], 0xffffffff
jg 0x140029a6f
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x38]
lea rcx, [rdi - 0x18]
call fcn.1400024f0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x30], 1
jmp 0x140029843
mov ecx, 0x80070057
call fcn.140001920
nop
mov rax, r13
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400cbae0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret