Function at 0x405950
Capabilities:
Encode data using xor
Hash data using fnv
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411a1d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, 1
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x48], ebx
mov eax, dword [ebx + 4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
or esi, 0xffffffff
test eax, eax
jne 0x4059b0
xor edi, edi
jmp 0x405d9d
cmp eax, 1
jne 0x405dfa
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 4
call fcn.00401a70
mov ecx, eax
test ecx, ecx
je 0x405e41
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push str.SoftwareRazer_Chroma_SDKServicesRzSDKService.exeRzSvcHost_
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00401180
test al, al
jne 0x405a08
push 0x3e
push str.SoftwareRazer_Chroma_SDKServicesRzSDKService.exeRzSvcHost_
lea ecx, [ebp - 0x3c]
call fcn.004014c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov eax, dword [ebx + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00407020
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0
push eax
push 0
push 0x20020010
push str.Retries
push esi
push 0x80000002
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x405d79
mov eax, dword [ebp - 0x30]
mov edi, 0xa
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x20020010
push str.MaxRetries
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
mov eax, dword [ebp - 0x34]
cmove edi, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, edi
ja 0x405d56
lea eax, [ebp - 0x40]
mov edi, 0xbb8
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x20020010
push str.Delay
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
cmove edi, dword [ebp - 0x30]
push edi
push dword [ebp - 0x34]
push dword [ebx + 0xc]
push str.Service_module__s_terminated_unexpectedly_for__d_time_s_._Attempt_to_restart_the_process_in__ld_ms...
push 0x41d
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 2
call fcn.0040ba10
push eax
call fcn.0040bed0
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebx + 0xc]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b10
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401c30
mov byte [ebp - 4], 2
mov ecx, 0x811c9dc5
mov eax, dword [ebx]
mov edi, dword [ebp - 0x28]
add eax, 0x38
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x28]
cmovae eax, edi
setae byte [ebp - 0x29]
mov dword [ebp - 0x38], eax
xor edx, edx
mov eax, dword [ebp - 0x18]
add eax, eax
je 0x405b77
mov esi, dword [ebp - 0x38]
mov ebx, eax
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebx
jb 0x405b60
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00407560
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x405d4b
cmp byte [ebp - 0x29], 0
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
je 0x405bd8
mov ecx, dword [ebp - 0x14]
mov eax, edi
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x405bcb
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405cf5
push ecx
push edi
call fcn.004102e6
mov eax, dword [ebp - 0x4c]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0xc]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405c00
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401c30
mov edx, dword [ebx]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
add edx, 0x38
cmp ecx, 8
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x28]
mov edi, 0x811c9dc5
cmovae eax, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
add eax, eax
je 0x405c67
mov edx, dword [ebp - 0x4c]
mov esi, eax
nop dword [eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x405c50
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x38]
push edi
lea eax, [ebp - 0x28]
mov ecx, edx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00407560
mov edx, dword [eax + 4]
test edx, edx
je 0x405cc9
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x18]
and ecx, edi
mov edi, dword [ebp - 0x38]
mov eax, dword [edi + 0xc]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x405cac
cmp eax, edx
jne 0x405ca4
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x405cb4
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x405cb4
cmp eax, edx
jne 0x405cb4
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 8]
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.00407690
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x405d05
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405cfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405cfb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004102e6
add esp, 8
push dword [ebx + 0xc]
mov ecx, dword [ebx]
call fcn.00404be0
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push str.Retries
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x405d79
push 0x434
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ba10
mov ecx, eax
call fcn.0040c410
jmp 0x405d79
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
push edi
push dword [ebx + 0xc]
push str.Service_module__s_has_failed_to_run_for__ld_times_and_will_not_run_until_the_parent_service_is_restarted
push 0x439
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 0
call fcn.0040ba10
push eax
call fcn.0040bed0
add esp, 0x1c
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405d9a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov edx, dword [ebx + 0x10]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405db7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0xc]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x405dcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x14
push ebx
call fcn.004102e6
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004102d8
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
jne 0x405e1c
push 0x444
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ba10
mov ecx, eax
call fcn.0040b350
mov edi, eax
jmp 0x405d9d
push eax
push str.Invalid_event_id__ld__detected____Exiting_thread___
push 0x44a
push str.c:workspacechromasdkRC3.36CoreSDKServiceChromaSDKService.cpp
push 0
call fcn.0040ba10
push eax
call fcn.0040bed0
add esp, 0x18
jmp 0x405d9d
push 0x80004005
call fcn.00401b70
int3