Function at 0x100930d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10141e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], eax
call fcn.100967b0
lea edx, [esp + 0x18]
push edx
xor esi, esi
mov dword [esp + 0x45c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call ebx
cmp eax, esi
je 0x1009315a
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100931b8
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [esp + 0x14]
push eax
call fcn.10004ce0
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov byte [esp + 0x224], al
call edi
lea edx, [esp + 0x18]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
cmp eax, esi
je 0x1009332b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call ebx
test eax, eax
je 0x100931dd
push eax
call esi
jmp 0x100932a5
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x14]
push ecx
call fcn.10004ce0
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x224], al
call edi
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x10093229
push eax
call esi
jmp 0x100932a5
mov ecx, 0x80
lea esi, [esp + 0x20]
lea edi, [esp + 0x244]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x244]
push ecx
push str.RunOnce
lea ecx, [esp + 0x1c]
call fcn.10096a60
cmp byte [esp + 0x220], 0
je 0x10093278
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x10093278
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10093299
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call ebx
test eax, eax
jne 0x10093309
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x14]
push ecx
call fcn.10004ce0
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x224], al
call edi
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x10093331
push eax
call esi
lea ecx, [esp + 0x224]
mov dword [esp + 0x458], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x10093408
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x10]
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10093340
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x1015b094
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100933b2
push eax
call esi
cmp byte [esp + 0x220], 0
je 0x10093393
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x10093393
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x18]
push edx
call edi
test eax, eax
je 0x1009330c
jmp 0x10093309
cmp byte [esp + 0x220], 0
je 0x100933d5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x100933d5
push eax
call esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x18]
push eax
call edi
test eax, eax
je 0x100933ee
push eax
call esi
lea ecx, [esp + 0x224]
mov dword [esp + 0x458], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 4