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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc28]
sub rsp, 0xd28
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0xc10], rax
mov r12d, dword [rbp + 0xc90]
xor r13d, r13d
mov r14, rcx
mov qword [rsp + 0x58], r13
mov eax, r12d
mov qword [rsp + 0x68], r13
neg eax
mov qword [rsp + 0x70], r13
mov r10, r9
mov qword [rsp + 0x60], r13
sbb esi, esi
mov dword [rsp + 0x50], r13d
and esi, 0x100
mov dword [rsp + 0x78], 0x200
add esi, 0x20019
lea ecx, [r13 + 1]
mov r15, r8
mov rdi, rdx
test r14, r14
je 0x140005799
mov eax, r13d
cmp word [r14], r13w
jne 0x14000579b
mov eax, ecx
test eax, eax
je 0x1400057a9
mov ebx, 0x80070057
jmp 0x140005c82
test r10, r10
je 0x1400057b7
mov eax, r13d
cmp word [r9], r13w
jne 0x1400057b9
mov eax, ecx
test eax, eax
jne 0x14000579f
lea rax, [rsp + 0x58]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r10
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005c82
test r15, r15
je 0x140005801
mov eax, r13d
cmp word [r15], r13w
jne 0x140005806
mov eax, 1
test eax, eax
jne 0x14000597e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.shell
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005c82
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005c82
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400097f0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
mov esi, 0x80070000
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005c82
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], r13
xor edx, edx
mov dword [rsp + 0x54], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov ecx, r13d
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ecx, dword [rsp + 0x54]
mov edx, 0x80000000
lea r8d, [rsi + 2]
lea eax, [rbx + rdx]
test edx, eax
jne 0x140005909
cmp ebx, r8d
jne 0x140005c82
cmp ebx, r8d
je 0x14000592d
mov edx, 1
test ebx, ebx
js 0x140005983
lea eax, [rcx - 1]
mov ecx, r13d
cmp eax, edx
setbe cl
test ecx, ecx
je 0x14000592d
cmp dword [rsp + 0x50], 2
ja 0x140005983
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], r13
lea rdx, [0x1400097f0]
mov dword [rsp + 0x54], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005c82
cmp dword [rsp + 0x50], r13d
ja 0x14000597e
mov ebx, 0x80004005
jmp 0x140005c82
mov edx, 1
test rdi, rdi
je 0x140005991
mov eax, r13d
cmp word [rdi], r13w
jne 0x140005993
mov eax, edx
test eax, eax
cmovne rdi, r13
test rdi, rdi
jne 0x1400059e6
lea edx, [rdi + 3]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_UrlIsW]
test eax, eax
je 0x1400059e3
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 rdi, [rbp + 0x10]
mov ebx, r13d
test eax, eax
cmovs rdi, r14
jmp 0x1400059e6
mov rdi, r14
test r12d, r12d
je 0x140005c2c
cmp qword [rsp + 0x60], r13
je 0x140005c25
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140005c25
lea rdx, [rax + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x140005a24
mov ebx, 0x8007000e
jmp 0x140005c82
mov r8d, dword [rsp + 0x50]
xor edx, edx
add r8, 2
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
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], rsi
xor edx, edx
mov dword [rsp + 0x54], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov r14d, 0x8000ffff
or ebx, 0x80070000
mov r12d, 1
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140005c1a
mov eax, dword [rsp + 0x54]
dec eax
cmp eax, r12d
ja 0x140005aa7
cmp dword [rsp + 0x50], 2
jae 0x140005a99
mov ebx, r14d
jmp 0x140005aa7
mov eax, dword [rsp + 0x50]
cmp word [rax + rsi - 2], r13w
cmovne ebx, r14d
test ebx, ebx
js 0x140005c1a
cmp word [rsi], r13w
jne 0x140005abd
mov ebx, r14d
jmp 0x140005c1a
lea rdx, [0x1400099cc]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140005b05
mov ecx, 0x73
mov r9, rdi
mov word [rax + 2], cx
mov r8, rsi
lea rcx, [rbp + 0x410]
mov edx, 0x400
call fcn.140006974
cmp eax, 0xffffffff
jne 0x140005b7b
mov ebx, 0x80004005
jmp 0x140005c1a
mov r15d, 0x400
cmp dword [rsp + 0x50], r15d
jae 0x140005ab5
mov r9d, dword [rsp + 0x50]
lea rcx, [rbp + 0x410]
mov r8, rsi
mov edx, r15d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
jne 0x140005afb
lea r8, [0x1400099d4]
mov edx, r15d
lea rcx, [rbp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140005afb
mov r8, rdi
lea rcx, [rbp + 0x410]
mov edx, r15d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140005afb
lea r8, [0x1400099dc]
mov edx, r15d
lea rcx, [rbp + 0x410]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140005afb
mov edi, 0x68
lea rcx, [rbp - 0x60]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movdqa xmm0, xmmword [0x14000a500]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x410]
lea rax, [rbp - 0x60]
mov dword [rbp - 0x60], edi
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor r8d, r8d
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov dword [rbp - 0x24], r12d
mov word [rbp - 0x20], r12w
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005bfa
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 0x140005c0a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140005c1a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140005c82
mov ebx, 0x8000ffff
jmp 0x140005c82
mov esi, 0x70
lea rcx, [rbp - 0x60]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea eax, [rsi - 0x6f]
mov dword [rbp - 0x60], esi
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], r15
mov qword [rbp - 0x48], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140005c82
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140005cb0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x58]
test ecx, ecx
cmovns rax, r13
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140005cde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rax, qword [rsp + 0x68]
test ecx, ecx
cmovns rax, r13
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140005d0c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
cmovns rcx, r13
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140005d1c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xc10]
xor rcx, rsp
call fcn.1400070a0
add rsp, 0xd28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret