Function at 0x40e3d0
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ac96c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
lea eax, [esp + 0x7c]
push edi
mov dword [esp + 0xc], ecx
push eax
mov dword [esp + 0x84], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e70d
cmp dword [esp + 0x90], 2
jne 0x40e70d
cmp dword [esp + 0x84], 6
jb 0x40e664
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov esi, dword [0x679ff8]
mov dword [esp + 0x11c], ebx
cmp esi, ebx
jne 0x40e453
mov esi, 0x679ffc
mov ecx, 0x64f028
test ecx, ecx
je 0x40e58f
cmp esi, ebx
je 0x40e58f
mov eax, str.Uninstall.exe
test eax, eax
je 0x40e58f
push ebx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
call fcn.004028d0
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 1
call fcn.00403ba0
push str.Uninstall.exe
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], 2
call fcn.00403ba0
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 3
call fcn.00401070
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov edi, eax
jne 0x40e4d4
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x28]
push ebp
lea ecx, [esp + 0x3c]
call fcn.00401fa0
push eax
call fcn.0057e90a
push edi
mov ebp, eax
call fcn.0057e90a
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005970d9
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x40e558
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x3c]
call fcn.00401fa0
push eax
lea ecx, [esp + 0x34]
call fcn.00401fa0
push eax
lea ecx, [esp + 0x2c]
call fcn.00401fa0
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.0057e89a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x120], 2
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 1
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x120], bl
call fcn.00401070
mov edx, dword [esp + 0x18]
pop ebp
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x44]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x50], str.open
je 0x40e5be
mov dword [esp + 0x54], edx
jmp 0x40e5c6
lea eax, [esp + 0x18]
mov dword [esp + 0x54], eax
cmp edx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], ebx
jne 0x40e5de
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e64b
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40e5f6
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0xc]
push ebx
push eax
call fcn.0040c5c0
test al, al
je 0x40e64b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x5c], str._stopdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e645
mov edx, dword [esp + 0x7c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40e64b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x14]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00401070
jmp 0x40e70d
call fcn.00434b00
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 0x100
push edx
add eax, 0xf003f
xor ebx, ebx
push eax
push ebx
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e6c5
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.Start
push ecx
mov dword [esp + 0x28], 3
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push 0x679a18
push ebx
push 0x64ee68
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e70d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push ebx
push str.AdvIntDriverEnabled2
push edx
mov dword [esp + 0x28], ebx
call esi
mov eax, dword [esp + 0xc]
push eax
call edi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret