Function at 0x180007750
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r13
push r14
lea rbp, [rsp - 0xca8]
sub rsp, 0xda8
mov rax, qword [0x180033008]
xor rax, rsp
mov qword [rbp + 0xc90], rax
mov r13d, dword [rbp + 0xcf8]
mov r14, rcx
lea rcx, [rbp - 0x10]
xor edx, edx
mov r8d, 0x208
call fcn.18000bdf0
xor edx, edx
lea rcx, [rbp + 0x200]
mov r8d, 0x208
call fcn.18000bdf0
xor edx, edx
lea rcx, [rbp + 0x670]
mov r8d, 0x618
call fcn.18000bdf0
xor edx, edx
lea rcx, [rbp + 0x410]
mov r8d, 0x258
call fcn.18000bdf0
xor esi, esi
mov dword [rsp + 0x5c], 0x104
lea r8, str.2235625B_050A_45CC_B626_CC5E6884B1EB
mov dword [rsp + 0x58], esi
lea rdx, str.CLSID_sSettings
lea rcx, [rbp + 0x410]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x410]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180007b79
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.Path
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x180007b73
mov qword [rsp + 0xdd8], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0xde0], rdi
lea rdx, str.Custom
mov edi, dword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
add edi, 2
xor r8d, r8d
mov qword [rsp + 0xde8], r12
inc rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800078a9
mov eax, dword [rsp + 0x58]
add rdi, rax
mov ebx, esi
cmp dword [r14 + 0x24], ebx
jbe 0x1800078d4
mov rcx, qword [r14 + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
add rdi, 3
mov eax, eax
add rdi, rax
inc ebx
cmp ebx, dword [r14 + 0x24]
jb 0x1800078b1
lea r12, [rdi + rdi]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x18000792e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
mov rdi, qword [rsp + 0xde0]
mov rbx, qword [rsp + 0xdd8]
mov r12, qword [rsp + 0xde8]
mov rcx, qword [rbp + 0xc90]
xor rcx, rsp
call fcn.1800086e0
add rsp, 0xda8
pop r14
pop r13
pop rsi
pop rbp
ret
mov word [rax], si
lea rdx, str.Path
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x10]
mov qword [rsp + 0xda0], r15
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x18002de80]
mov word [rbp + 0x1f6], si
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x18002de80]
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, str.Custom
lea rax, [rbp + 0x200]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180007a06
lea rdx, [0x18002de84]
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [r14 + 0xb10], 0x501
mov eax, 0x64
mov r15d, 4
mov ebx, esi
cmova r15d, eax
cmp dword [r14 + 0x24], ebx
jbe 0x180007b5b
nop word [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.18000bdf0
lea rdx, [rbp + 0x670]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
cmp ebx, dword [r14 + 0x24]
jae 0x180007ab5
cmp esi, r15d
jae 0x180007ab5
mov rcx, qword [r14 + 0x30]
lea r8, [rbp - 0x10]
mov r9d, 0x104
mov edx, ebx
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
lea rdx, [0x18002de88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x18002de80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
inc ebx
inc esi
cmp ebx, dword [r14 + 0x24]
jb 0x180007a63
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x68]
call fcn.18000bdf0
xor esi, esi
mov dword [rsp + 0x60], 0x68
lea rax, [rbp - 0x30]
mov dword [rbp - 0x64], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov word [rbp - 0x60], r13w
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov rdx, rdi
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180007b51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x180007b51
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor r9d, r9d
mov dword [rsp + 0x28], r13d
mov r8, rdi
mov qword [rsp + 0x20], rsi
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp ebx, dword [r14 + 0x24]
jb 0x180007a40
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r15, qword [rsp + 0xda0]
xor eax, eax
jmp 0x1800078f9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x180007911