Function at 0x1400fb230
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x888]
sub rsp, 0x960
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x850], rax
mov r14, rcx
mov qword [rbp - 0x78], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor esi, esi
mov qword [rsp + 0x68], rsi
mov dword [rbp - 0x80], 0x104
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x220]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
lea r8, [0x1403232c8]
mov edx, 0x104
lea rcx, [rbp + 0x220]
call fcn.14029a500
lea r8, [rbp + 0x220]
mov edx, 0x104
lea rcx, [rbp + 0x430]
call fcn.1402980d8
lea r8, [0x14032967c]
mov edx, 0x104
lea rcx, [rbp + 0x430]
call fcn.14029a500
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
or r15, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
cmp rax, r15
je 0x1400fb461
test byte [rbp - 0x30], 0x10
je 0x1400fb43f
movzx ecx, word [rbp - 4]
movzx eax, word [rbp - 2]
cmp cx, word [0x140322fd0]
jne 0x1400fb339
cmp ax, word [0x140322fd2]
je 0x1400fb43f
cmp cx, word [0x14032968c]
jne 0x1400fb35c
cmp ax, word [0x14032968e]
jne 0x1400fb35c
movzx eax, word [rbp]
cmp ax, word [0x140329690]
je 0x1400fb43f
lea rcx, [rbp - 4]
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400fb363
lea rdx, [rbp + 0x220]
mov rcx, r15
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400fb380
add ecx, 2
add eax, ecx
movsxd rbx, eax
lea rcx, [rbx + rbx]
call fcn.140298640
mov r14, rax
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x220]
mov rdx, rbx
mov rcx, rax
call fcn.1402980d8
lea r8, [rbp - 4]
mov rdx, rbx
mov rcx, r14
call fcn.14029a500
lea rax, [rsp + 0x40]
cmp rax, rdi
jae 0x1400fb410
lea rax, [rsp + 0x40]
cmp r12, rax
ja 0x1400fb410
lea rbx, [rsp + 0x40]
sub rbx, r12
sar rbx, 3
cmp rdi, rsi
jne 0x1400fb402
lea rcx, [rsp + 0x58]
call fcn.1400bae00
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rdi, rdi
je 0x1400fb436
mov rax, qword [r12 + rbx*8]
mov qword [rdi], rax
jmp 0x1400fb436
cmp rdi, rsi
jne 0x1400fb42e
lea rcx, [rsp + 0x58]
call fcn.1400bae00
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rdi, rdi
je 0x1400fb436
mov qword [rdi], r14
add rdi, 8
mov qword [rsp + 0x60], rdi
lea rdx, [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400fb311
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rbp - 0x78]
mov eax, dword [0x1403fe5f0]
lea rsi, vtable.Core::Win32::RegistryKey.0
test al, 1
jne 0x1400fb499
or eax, 1
mov dword [0x1403fe5f0], eax
mov qword [0x1403fe5d0], rsi
mov qword [0x1403fe5d8], 0xffffffff80000003
lea rcx, [0x1402de010]
call fcn.140299c6c
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov rcx, qword [0x1403fe5d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r13, [0x140323de0]
test eax, eax
jne 0x1400fb70b
lea ecx, [rax + 0x10]
call fcn.14029806c
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1400fb70b
mov rcx, qword [rsp + 0x40]
mov qword [rax], rsi
mov qword [rax + 8], rcx
mov qword [rsp + 0x70], r13
xor eax, eax
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rdx, str.Startup
mov rcx, rbx
call fcn.1400d5720
test al, al
je 0x1400fb6ec
xor r8d, r8d
lea rdx, str._USERPROFILE_
lea rcx, [rsp + 0x70]
call fcn.1401eb700
test al, al
je 0x1400fb6ec
xor ecx, ecx
mov r13d, ecx
sub rdi, r12
sar rdi, 3
test rdi, rdi
je 0x1400fb6e5
lea rax, [r14 + 0xa08]
mov r14, r12
mov r12, rax
jmp 0x1400fb566
xor ecx, ecx
mov rsi, qword [r14]
test rsi, rsi
jne 0x1400fb577
mov ebx, ecx
mov qword [rsp + 0x50], rsi
jmp 0x1400fb597
mov rbx, r15
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400fb580
mov qword [rsp + 0x50], 0
test ebx, ebx
jne 0x1400fb5a5
lea rax, [0x140323de0]
mov qword [rsp + 0x48], rax
jmp 0x1400fb5ca
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ea290
nop
mov r8d, 0xd
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x70]
call fcn.1401eaef0
nop
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x68]
call fcn.1400d1690
nop
cmp dword [rbp - 0x50], 0
jle 0x1400fb60e
mov rcx, qword [rbp - 0x58]
call fcn.140298600
nop
cmp dword [rsp + 0x50], 0
jle 0x1400fb61f
mov rcx, qword [rsp + 0x48]
call fcn.140298600
mov rsi, qword [rbp - 0x68]
test rsi, rsi
jne 0x1400fb633
xor eax, eax
mov ebx, eax
mov qword [rsp + 0x38], rax
jmp 0x1400fb64b
mov rbx, r15
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1400fb636
xor eax, eax
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400fb659
lea rax, [0x140323de0]
mov qword [rsp + 0x30], rax
jmp 0x1400fb67e
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
movzx eax, byte [0x1403fdd77]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.1400e9d70
nop
cmp dword [rsp + 0x38], 0
jle 0x1400fb6ba
mov rcx, qword [rsp + 0x30]
call fcn.140298600
nop
cmp dword [rbp - 0x60], 0
jle 0x1400fb6c9
mov rcx, qword [rbp - 0x68]
call fcn.140298600
inc r13d
add r14, 8
movsxd rax, r13d
cmp rax, rdi
jb 0x1400fb564
mov r12, qword [rsp + 0x58]
mov rbx, qword [rbp - 0x70]
lea r13, [0x140323de0]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x78], 0
jle 0x1400fb70b
mov rcx, qword [rsp + 0x70]
call fcn.140298600
lea rax, [rbp + 0x640]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov edx, 0x4018
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400fb7cf
lea rax, [rbp + 0x640]
nop dword [rax]
inc r15
cmp word [rax + r15*2], 0
jne 0x1400fb740
mov qword [rsp + 0x38], 0
test r15d, r15d
jne 0x1400fb760
mov qword [rsp + 0x30], r13
jmp 0x1400fb78a
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd r9, r15d
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x640]
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, r15d
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
mov rcx, qword [rbp - 0x78]
add rcx, 0xa08
movzx eax, byte [0x1403fdd77]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x30]
lea rdx, [rbp - 0x48]
call fcn.1400e9d70
nop
cmp dword [rsp + 0x38], 0
jle 0x1400fb7cf
mov rcx, qword [rsp + 0x30]
call fcn.140298600
nop
test r12, r12
je 0x1400fb7dc
mov rcx, r12
call fcn.1402012c0
mov al, 1
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x960]
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