Function at 0x40e743
Capabilities:
Get common file path
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x1c]
push eax
push 0x422eb8
push 0
push 0xf003f
push 0
push 0
push 0
push 0x484afc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e79f
push 0x10007
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push 1
lea eax, [ebp - 0x34]
push eax
push 3
push 0
push str.Start
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e7e3
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push 0x484b34
lea eax, [ebp - 0x18]
push eax
call fcn.0041a850
add esp, 8
lea eax, [ebp - 0x18]
push eax
call fcn.0041a7d8
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.StaticVxD
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e843
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push 0x484b4c
lea eax, [ebp - 0x18]
push eax
call fcn.0041a850
add esp, 8
lea eax, [ebp - 0x18]
push eax
call fcn.0041a7d8
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x484b54
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e8a3
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push 0x484b5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x422ebc], eax
cmp dword [0x422ebc], 0
jne 0x40e8d4
push 1
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push str.GetDateFormatA
mov eax, dword [0x422ebc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x422eb4], eax
cmp dword [0x422eb4], 0
jne 0x40e90b
push 2
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push 0x14
lea eax, [ebp - 0x30]
push eax
push str.MMMM_d___yyyy
push 0
push 0
push 0x409
call dword [0x422eb4]
mov dword [ebp - 4], eax
mov eax, dword [0x422ebc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x40e95d
push 0x2001000
call fcn.00405434
add esp, 4
push 3
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
cmp dword [ebp - 4], 0
jne 0x40e97b
push 6
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041a850
add esp, 8
lea eax, [ebp - 0x18]
push eax
call fcn.0041a7d8
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x484b8c
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e9da
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
push 0x64
push 0x422e50
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x484b94
push 0x422e50
call fcn.0041a84c
add esp, 8
push 0x422e50
call fcn.0041a7d8
add esp, 4
inc eax
push eax
push 0x422e50
push 1
push 0
push str.ImagePath
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40ea4b
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40ea80
push 0x10002
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ea87
xor eax, eax
jmp 0x40ea87
pop edi
pop esi
pop ebx
leave
ret