Function at 0x4181b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
mov ebx, esp
push 0xffffffffffffffff
push 0x4307bc
mov eax, dword fs:[0]
push eax
add esp, 0xfffffe94
push esi
push ebp
push edi
mov eax, dword [0x43dfc0]
xor eax, ebx
push eax
lea eax, [ebx - 0xc]
mov dword fs:[0], eax
lea eax, [ebx - 0x10]
push eax
push str.SOFTWAREClassesAppID11AC3232_E7D7_49CD_ABFE_501700100B3A
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebx - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x41824d
push 1
lea ecx, [ebx - 0xc8]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_open_services_registry_key
push eax
mov dword [ebx - 4], esi
call fcn.00404170
push eax
call fcn.00405590
lea ecx, [ebx - 0x60]
sub esp, 0xfffffff4
mov dword [ebx - 4], 0xffffffff
call fcn.0040c2b0
lea ecx, [ebx - 0x60]
push ecx
mov dword [ebx - 0x60], 0x4313b0
call fcn.0041aa80
sub esp, 0xfffffffc
jmp 0x41830e
push esi
lea edx, [ebx - 0x14]
push edx
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1_S:_ML___NX___LW_
mov dword [ebx - 0x14], esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
or eax, eax
je 0x41838b
mov eax, dword [ebx - 0x14]
mov esi, dword [ebx - 0x10]
push eax
mov dword [ebx - 0x18], eax
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push 0
push 0
push 0
push 0
push str.LaunchPermission
push esi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x418300
push ebp
push edi
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or eax, eax
je 0x418300
push 1
lea ecx, [ebx - 0xc8]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebx - 4], 2
call fcn.00404170
push eax
call fcn.00405590
lea ecx, [ebx - 0x60]
mov dword [ebx - 4], 0xffffffff
sub esp, 0xfffffff4
call fcn.0040c2b0
lea ecx, [ebx - 0x60]
push ecx
mov dword [ebx - 0x60], 0x4313b0
call fcn.0041aa80
sub esp, 0xfffffffc
mov eax, dword [ebx - 0x18]
test eax, eax
je 0x41830e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebx - 0x10]
test eax, eax
je 0x41831c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [ebx - 0x178]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebx - 4], 3
call fcn.00404170
push eax
call fcn.00405590
lea ecx, [ebx - 0x110]
mov dword [ebx - 4], 0xffffffff
sub esp, 0xfffffff4
call fcn.0040c2b0
lea edx, [ebx - 0x110]
push edx
mov dword [ebx - 0x110], 0x4313b0
call fcn.0041aa80
mov ebp, dword [ebx - 0xc]
mov dword fs:[0], ebp
add esp, 4
pop ecx
pop edi
pop ebp
pop esi
mov esp, ebx
pop ebx
ret
push 1
lea ecx, [ebx - 0xc8]
call fcn.00406150
mov dword [eax + 0x60], 0xa
sub eax, 0xfffffff0
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebx - 4], 1
call fcn.00404170
push eax
call fcn.00405590
add esp, 0xc
mov dword [ebx - 4], 0xffffffff
lea ecx, [ebx - 0x60]
call fcn.0040c2b0
lea eax, [ebx - 0x60]
push eax
mov dword [ebx - 0x60], 0x4313b0
call fcn.0041aa80
add esp, 4
jmp 0x41830e