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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065a91
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3d8], ecx
mov dword [ebp - 0x3d4], 0
call fcn.10001510
mov ecx, eax
test ecx, ecx
je 0x1005bce6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov eax, 0x1006779c
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, 0xffff0000
jne 0x1005b436
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.1005c480
jmp 0x1005b4b0
push 0
push 0
push 0xffffffffffffffff
push 0x1006779c
push 0
push 3
call edi
lea edi, [eax - 1]
test edi, edi
jle 0x1005b49f
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, edi
or ecx, edx
jge 0x1005b471
push edi
lea ecx, [ebp - 0x21c]
call fcn.10023d90
mov esi, dword [ebp - 0x21c]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push esi
push 0xffffffffffffffff
push 0x1006779c
push 0
push 3
call eax
cmp edi, dword [esi - 8]
jg 0x1005bcf0
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x1005b4b6
lea ecx, [ebp - 0x21c]
call fcn.1005c420
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x3d0]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], eax
call fcn.10001510
mov ecx, eax
test ecx, ecx
je 0x1005bce6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3d0], eax
mov eax, str.InstallPath
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x1005b50c
movzx eax, ax
lea ecx, [ebp - 0x3d0]
push eax
call fcn.1005c480
jmp 0x1005b58c
push 0
push 0
push 0xffffffffffffffff
push str.InstallPath
push 0
push 3
call edi
lea edi, [eax - 1]
test edi, edi
jle 0x1005b581
mov ecx, dword [ebp - 0x3d0]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x1005b54d
push edi
lea ecx, [ebp - 0x3d0]
call fcn.10023d90
mov ecx, dword [ebp - 0x3d0]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push ecx
push 0xffffffffffffffff
push str.InstallPath
push 0
push 3
call eax
mov eax, dword [ebp - 0x3d0]
cmp edi, dword [eax - 8]
jg 0x1005bcf0
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x3d0]
mov word [eax + edi*2], cx
jmp 0x1005b58c
lea ecx, [ebp - 0x3d0]
call fcn.1005c420
lea eax, [ebp - 0x3cc]
mov byte [ebp - 4], 3
mov dword [ebp - 0x220], eax
call fcn.10001510
mov ecx, eax
test ecx, ecx
je 0x1005bce6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3cc], eax
mov eax, str.SoftwareRazerChromaBroadcast
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x1005b5df
movzx eax, ax
lea ecx, [ebp - 0x3cc]
push eax
call fcn.1005c480
jmp 0x1005b662
push 0
push 0
push 0xffffffffffffffff
push str.SoftwareRazerChromaBroadcast
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x1005b657
mov ecx, dword [ebp - 0x3cc]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x1005b624
push edi
lea ecx, [ebp - 0x3cc]
call fcn.10023d90
mov ecx, dword [ebp - 0x3cc]
push edi
push ecx
push 0xffffffffffffffff
push str.SoftwareRazerChromaBroadcast
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x3cc]
cmp edi, dword [eax - 8]
jg 0x1005bcf0
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x3cc]
mov word [eax + edi*2], cx
jmp 0x1005b662
lea ecx, [ebp - 0x3cc]
call fcn.1005c420
lea eax, [ebp - 0x3b4]
mov byte [ebp - 4], 6
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0xf023f
push 0
push dword [ebp - 0x3cc]
mov dword [ebp - 0x3b4], 0
push reloc.WS2_32.dll_bind
call edi
cmp eax, 5
jne 0x1005b6b1
lea eax, [ebp - 0x3b4]
push eax
push 0x20219
push 0
push dword [ebp - 0x3cc]
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x1005b70b
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push dword [ebp - 0x3d0]
push dword [ebp - 0x3b4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005b6ff
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1005c620
mov esi, dword [ebp - 0x21c]
push dword [ebp - 0x3b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp - 0x3cc]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b72f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x3d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b750
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x3b4]
call fcn.1001d9d0
push 0x84
lea eax, [ebp - 0x330]
mov byte [ebp - 4], 8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x32c]
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x330], eax
push 3
push dword [ebp - 0x3b4]
call fcn.1005c250
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x330]
mov ecx, edx
mov dword [ebp - 0x3f0], 0
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
lea eax, [ecx + 1]
mov byte [ebp - 0x3f0], 0
mov dword [ebp - 0x220], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005b7d5
sub ecx, dword [ebp - 0x220]
push ecx
push edx
lea ecx, [ebp - 0x3f0]
call fcn.10021390
mov eax, dword [ebp - 0x330]
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x3d4], 1
cmp eax, ecx
je 0x1005b813
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x3b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b834
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str._bin_
lea ecx, [ebp - 0x3f0]
call fcn.1001d4e0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x3dc]
cmp ecx, 0x10
jb 0x1005b8ca
mov edx, dword [ebp - 0x3f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b8c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005b8c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov ecx, dword [ebp - 0x228]
mov eax, bind
sub eax, ecx
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0xf
mov byte [ebp - 0x3f0], 0
cmp eax, 0x19
jb 0x1005bcfa
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0x19
cmovae eax, dword [ebp - 0x238]
push str.RzChromaConnectClient.exe
push ecx
push eax
push ecx
push dword [ebp - 0x3d8]
lea ecx, [ebp - 0x268]
call fcn.1002ff70
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xc
call fcn.10002380
mov byte [ebp - 4], 0xd
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
movlpd qword [ebp - 0x27a], xmm0
movlpd qword [ebp - 0x272], xmm0
mov word [ebp - 0x26a], ax
mov dword [ebp - 0x2ac], 0x44
mov dword [ebp - 0x280], 1
mov word [ebp - 0x27c], ax
movups xmmword [ebp - 0x3c8], xmm0
mov dword [ebp - 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1005bba2
lea ecx, [ebp - 0x3b8]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1005bba2
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x110]
cmovae eax, dword [ebp - 0x238]
push 3
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.1005c0a0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 0x10
lea ecx, [ebp - 0x4f0]
push 3
cmovae eax, dword [ebp - 0x250]
mov dword [ebp - 0x4f4], ecx
lea ecx, [ebp - 0x4f4]
push eax
call fcn.1005c0a0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x268]
cmp dword [ebp - 0x254], 0x10
lea ecx, [ebp - 0x3ac]
push 3
cmovae eax, dword [ebp - 0x268]
mov dword [ebp - 0x3b0], ecx
lea ecx, [ebp - 0x3b0]
push eax
call fcn.1005c0a0
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x114]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x4f4]
push dword [ebp - 0x3b0]
push dword [ebp - 0x3b8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [ebp - 0x3b0]
mov dword [ebp - 0x3d4], eax
lea eax, [ebp - 0x3ac]
cmp ecx, eax
je 0x1005bab9
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 0x4f4]
lea ecx, [ebp - 0x4f0]
cmp eax, ecx
je 0x1005bad3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x114]
cmp eax, ecx
je 0x1005baf1
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 0x3d4], 1
jne 0x1005bba2
push dword [ebp - 0x3c0]
push str.WSEndpoint::CreateEndpointInstance
push str._WSEndpoint___s__pid___d
push 0x4b
push str.c:workspacechromasdkRC3.36CoreChromaConnectServerWSEndpoint.cpp
push 3
call fcn.10012170
push eax
call fcn.10012510
mov ecx, dword [ebp - 0x3d8]
add esp, 0x1c
mov eax, dword [ebp - 0x3c0]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x3c8]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x1005bb5e
push ecx
call eax
mov ecx, dword [ebp - 0x3c8]
xor edx, edx
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmovne ecx, edx
mov dword [ebp - 0x3c8], ecx
mov ecx, dword [ebp - 0x3c4]
test ecx, ecx
je 0x1005bb7e
push ecx
call eax
mov ecx, dword [ebp - 0x3c4]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x3c4], ecx
mov eax, dword [ebp - 0x3b8]
test eax, eax
je 0x1005bba2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x3b8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x3b8], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0x10
jb 0x1005bbe0
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bbd6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005bc80
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
cmp ecx, 0x10
jb 0x1005bc35
mov edx, dword [ebp - 0x268]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bc2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005bc80
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
cmp ecx, 0x10
jb 0x1005bc90
mov edx, dword [ebp - 0x238]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bc86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bc86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 0x228], 0
add esi, 0xfffffff0
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1005bcc7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100013e0
push 0x80070057
call fcn.100013e0
call fcn.10001960
int3