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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc20]
sub rsp, 0xd20
mov rax, qword [0x14000a2a8]
xor rax, rsp
mov qword [rbp + 0xc10], rax
mov r14, rcx
mov dword [rsp + 0x78], 0x200
mov rsi, rdx
mov ecx, 0x20119
xor edx, edx
mov r15d, 0x20019
cmp dword [rbp + 0xc80], edx
mov rax, r9
mov r12, r8
mov qword [rsp + 0x58], rdx
cmovne r15d, ecx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
mov edi, edx
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x50], edx
test r14, r14
je 0x140005fd5
cmp word [r14], dx
je 0x140005fd5
test rax, rax
je 0x140005fd5
cmp word [r9], dx
je 0x140005fd5
lea rcx, [rsp + 0x58]
mov r9d, r15d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005fda
test r12, r12
je 0x140005d25
cmp word [r12], cx
je 0x140005d25
mov rdx, qword [str.shell]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005fda
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005fda
mov rdx, qword [0x14000c230]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov r9d, r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r15d, r15d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005fdd
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov dword [rsp + 0x54], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov ecx, r15d
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ecx, dword [rsp + 0x54]
mov edx, 0x80000000
mov r8d, 0x80070002
lea eax, [rbx + rdx]
test edx, eax
jne 0x140005cb8
cmp ebx, r8d
jne 0x140005fdd
cmp ebx, r8d
je 0x140005cd0
test ebx, ebx
js 0x140005d28
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140005cd0
cmp dword [rsp + 0x50], 2
ja 0x140005d28
mov rdx, qword [0x14000c258]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x54], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005fdd
cmp dword [rsp + 0x50], r15d
ja 0x140005d28
mov ebx, 0x80004005
jmp 0x140005fdd
xor r15d, r15d
test rsi, rsi
je 0x140005d33
cmp word [rsi], r15w
jne 0x140005d7d
mov edx, 3
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x140005d7a
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
lea rsi, [rbp + 0x10]
mov ebx, r15d
test eax, eax
cmovs rsi, r14
jmp 0x140005d7d
mov rsi, r14
cmp dword [rbp + 0xc80], r15d
je 0x140005f7a
cmp qword [rsp + 0x60], r15
je 0x140005f73
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140005f73
lea rdx, [rax + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140005dbf
mov ebx, 0x8007000e
jmp 0x140005fdd
mov r8d, dword [rsp + 0x50]
xor edx, edx
add r8, 2
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x54]
xor edx, edx
call fcn.140004094
mov ebx, eax
test eax, eax
js 0x140005fdd
cmp word [rdi], r15w
je 0x140005f73
lea rdx, [0x14000983c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140005e47
mov ecx, 0x73
mov r9, rsi
mov word [rax + 2], cx
mov r8, rdi
lea rcx, [rbp + 0x410]
mov edx, 0x400
call fcn.1400064f4
cmp eax, 0xffffffff
jne 0x140005ed1
jmp 0x140005d1b
mov r14d, 0x400
cmp dword [rsp + 0x50], r14d
jae 0x140005f73
mov r9d, dword [rsp + 0x50]
lea rcx, [rbp + 0x410]
mov r8, rdi
mov edx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
jne 0x140005d1b
lea r8, [0x140009844]
mov edx, r14d
lea rcx, [rbp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140005d1b
mov r8, rsi
lea rcx, [rbp + 0x410]
mov edx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140005d1b
lea r8, [0x14000984c]
mov edx, r14d
lea rcx, [rbp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140005d1b
mov esi, 0x68
lea rcx, [rbp - 0x60]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [0x14000a240]
lea eax, [rsi - 0x67]
mov dword [rbp - 0x24], eax
lea rdx, [rbp + 0x410]
mov word [rbp - 0x20], ax
xor r9d, r9d
lea rax, [rbp - 0x80]
mov dword [rbp - 0x60], esi
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x60]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005f51
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rbp - 0x80]
cmp rcx, 0xffffffffffffffff
je 0x140005f61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140005fdd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005fdd
mov ebx, 0x8000ffff
jmp 0x140005fdd
mov r14d, 0x70
lea rcx, [rbp - 0x60]
mov r8d, r14d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea eax, [r14 - 0x6f]
mov dword [rbp - 0x60], r14d
mov dword [rbp - 0x30], eax
lea rcx, [rbp - 0x60]
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x5c], 0x103
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140005fdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140005fdd
mov ebx, 0x80070057
xor r15d, r15d
xor ecx, ecx
call fcn.140003310
mov rcx, rdi
call fcn.140003310
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000601d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x58]
test ecx, ecx
cmovns rax, r15
mov qword [rsp + 0x58], rax
jmp 0x140006022
mov edi, 0x80070000
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000604c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x68]
test ecx, ecx
cmovns rax, r15
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140006076
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x70]
test ecx, ecx
cmovns rax, r15
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140006086
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xc10]
xor rcx, rsp
call fcn.140006dd0
add rsp, 0xd20
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret