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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010fadb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x1013b024]
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.10092700
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 0x1008efda
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1008f038
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
call dword [0x101193e4]
lea eax, [esp + 0x14]
push eax
call fcn.10004c40
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 0x1008f1ab
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 0x1008f05d
push eax
call esi
jmp 0x1008f125
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
call dword [0x101193e4]
lea ecx, [esp + 0x14]
push ecx
call fcn.10004c40
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 0x1008f0a9
push eax
call esi
jmp 0x1008f125
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.100929b0
cmp byte [esp + 0x220], 0
je 0x1008f0f8
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 0x1008f0f8
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 0x1008f119
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 0x1008f189
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [esp + 0x228]
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
call dword [0x101193e4]
lea ecx, [esp + 0x14]
push ecx
call fcn.10004c40
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 0x1008f1b1
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 0x1008f288
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 0x1008f1c0
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 0x1012643c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1008f232
push eax
call esi
cmp byte [esp + 0x220], 0
je 0x1008f213
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 0x1008f213
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 0x1008f18c
jmp 0x1008f189
cmp byte [esp + 0x220], 0
je 0x1008f255
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 0x1008f255
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 0x1008f26e
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.1010dc50
mov esp, ebp
pop ebp
ret 4