Function at 0x140046730
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc98]
sub rsp, 0xd70
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0xc60], rax
mov r12, rcx
mov qword [rbp - 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x68], r15
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsiexplore.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400467bf
mov r14, qword [rbp - 0x68]
jmp 0x1400467f5
mov qword [rbp - 0x70], r15
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.IE.AssocFile.HTM_shellopencommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140046b3e
mov r14, qword [rbp - 0x70]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], r15d
mov word [rbp + 0x460], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x462]
call fcn.1400c8db0
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], 0x800
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, [0x140133728]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x1400469bf
mov eax, dword [rbp - 0x78]
dec eax
cmp eax, 1
ja 0x1400469bf
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1400468a7
test al, 1
jne 0x1400469bf
shr rax, 1
cmp word [rbp + rax*2 + 0x45e], 0
je 0x1400468af
jmp 0x1400469bf
mov word [rbp + 0x460], r15w
lea rax, [rbp + 0x460]
mov rsi, rdi
nop dword [rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x1400468c0
test esi, esi
jne 0x14004692f
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400469bf
cmp dword [rdx + 0x10], 0
jge 0x140046903
cmp dword [rbx - 0xc], 0
jge 0x1400468f6
mov ecx, 0x80070057
call fcn.140001930
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x1400469bf
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046913
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov r14, qword [rsp + 0x60]
jmp 0x1400469bf
mov r13d, dword [rbx - 0x10]
lea r15, [rbp + 0x460]
sub r15, rbx
sar r15, 1
test esi, esi
jns 0x14004694f
mov ecx, 0x80070057
call fcn.140001930
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140046971
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140002330
mov rbx, qword [rsp + 0x50]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140046995
lea r8, [rbx + r15*2]
call fcn.1400c419c
jmp 0x1400469a1
lea r8, [rbp + 0x460]
call fcn.1400c4298
cmp esi, dword [rbx - 0xc]
jg 0x1400469b4
mov dword [rbx - 0x10], esi
xor r15d, r15d
mov word [r13 + rbx], r15w
jmp 0x1400469bf
mov ecx, 0x80070057
call fcn.140001930
int3
test r14, r14
je 0x1400469d2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
mov eax, dword [0x1401a9d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 0xf
jne 0x140046a22
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401a9d80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401a9d80], ecx
mov eax, dword [rbx - 0x10]
test eax, eax
jns 0x140046a34
mov ecx, 0x80070057
call fcn.140001930
int3
cmp word [rbx], 0x22
jne 0x140046af0
cmp eax, 1
jge 0x140046a47
mov eax, edi
jmp 0x140046a66
lea rcx, [rbx + 2]
lea rdx, [0x1401386c4]
call fcn.1400c4670
test rax, rax
jne 0x140046a60
mov eax, edi
jmp 0x140046a66
sub rax, rbx
sar rax, 1
lea r9d, [rax - 1]
mov r8d, 1
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000ed70
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140046ad3
cmp dword [rbx + 0x10], 0
jl 0x140046ac4
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140046ac4
call fcn.140002390
mov rsi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140046ab9
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140046ad3
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046aeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx - 0x18]
call fcn.140002390
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x48], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140046b20
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140046e0d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r15
jmp 0x140046e0d
mov eax, dword [0x1401a9d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 7
jne 0x140046b90
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rcx, [rsp + 0x40]
call fcn.140025df0
nop
mov rax, qword [rsp + 0x40]
mov edx, dword [rax - 0x10]
test edx, edx
je 0x140046c7f
lea ecx, [rdx - 1]
test ecx, ecx
js 0x140046c74
cmp ecx, edx
jg 0x140046c74
movsxd rcx, ecx
cmp word [rax + rcx*2], 0x5c
je 0x140046bdf
mov r8d, 1
lea rdx, [0x140135e30]
lea rcx, [rsp + 0x40]
call fcn.14000f920
lea r8, [0x1401386c8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140019610
nop
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, r15d
cmp rax, 0xffffffffffffffff
setne cl
test ecx, ecx
je 0x140046c59
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x78]
add rcx, 0xffffffffffffffe8
call fcn.140002390
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x48], 1
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046c54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140046df3
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046c7f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140046c7f
mov ecx, 0x80070057
call fcn.140001930
int3
lea rcx, [rbp - 0x60]
call fcn.140026170
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x40]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140046ce2
cmp dword [rbx + 0x10], 0
jl 0x140046cd3
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140046cd3
call fcn.140002390
mov rsi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140046cc8
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x140046ce2
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140002240
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046cfa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
je 0x140046ddc
lea r9d, [rcx - 1]
test r9d, r9d
js 0x140046dd1
cmp r9d, ecx
jg 0x140046dd1
movsxd rcx, r9d
cmp word [rax + rcx*2], 0x5c
je 0x140046d41
mov r8d, 1
lea rdx, [0x140135e30]
lea rcx, [rsp + 0x40]
call fcn.14000f920
lea r8, [0x1401386c8]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140019610
nop
lea rdx, [rbp + 0x210]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, r15d
cmp rax, 0xffffffffffffffff
setne cl
test ecx, ecx
je 0x140046db7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp - 0x80]
add rcx, 0xffffffffffffffe8
call fcn.140002390
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x48], 1
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046db5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140046df3
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046ddc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140046ddc
mov ecx, 0x80070057
call fcn.140001930
int3
lea rdx, [0x140133728]
mov rcx, r12
call fcn.140002090
mov dword [rsp + 0x48], 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046e0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, r12
mov dword [rsp + 0x68], r15d
mov rcx, qword [rbp + 0xc60]
xor rcx, rsp
call fcn.1400c3970
lea r11, [rsp + 0xd70]
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