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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440714
mov eax, dword fs:[0]
push eax
sub esp, 0x178
push ebx
push esi
push edi
mov eax, dword [0x4570d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push str.SOFTWAREClassesAppID11AC3232_E7D7_49CD_ABFE_501700100B3A
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x41e46c
push 1
lea ecx, [ebp - 0xcc]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_open_services_registry_key
push eax
mov dword [ebp - 4], 0
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x5c]
call fcn.0040c830
mov dword [ebp - 4], 1
jmp 0x41e5b4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1__A__CCDCSW___S_1_15_3_1024_1502825166_1963708345_2616377461_2562897074_4192028372_3968301570_1997628692_1435953622_S:_ML___NX___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x41e557
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push 0
push 0
push 0
push 0
push str.LaunchPermission
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x41e546
push ebx
push edi
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41e546
push 1
lea ecx, [ebp - 0xcc]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebp - 4], 4
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x5c]
call fcn.0040c830
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.004209c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41e5ce
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41e5ce
push 1
lea ecx, [ebp - 0xcc]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], 2
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x5c]
call fcn.0040c830
mov dword [ebp - 4], 3
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], vtable.std::ios_base.0
push eax
call fcn.004209c4
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41e5dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [ebp - 0x184]
call fcn.00401f70
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 6
call fcn.00401240
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.004075e0
movzx ecx, ax
push ecx
mov ecx, esi
call fcn.00406e20
mov ecx, esi
call fcn.00406690
lea ecx, [ebp - 0x114]
call fcn.0040c830
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004209c4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret