Function at 0x40df77
Capabilities:
Acquire debug privileges
Connect to wmi namespace via wbemlocator
Create thread
Inject dll
Inject thread

Disassembly:
mov eax, 0x426c54
call fcn.0041362c
sub esp, 0x150
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
push 0x103
lea eax, [ebp - 0x15b]
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x15c], bl
call fcn.00413a00
push dword [ebp + 0xc]
lea eax, [ebp - 0x15c]
push 0x104
push eax
call fcn.00414620
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
push 0x42ba98
push 0x17
push ebx
push 0x42bb90
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [ebp - 0x30]
cmp esi, ebx
je 0x40e2ae
push edi
push 0x4291d4
lea ecx, [ebp - 0x10]
call fcn.0040ca2c
mov edi, eax
push str.rootcimv2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040ca2c
mov edi, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
push edx
push ebx
push edi
push 0x80
push ebx
push ebx
push ebx
push eax
push esi
mov byte [ebp - 4], 3
call dword [ecx + 0xc]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
setl byte [ebp - 0x25]
call esi
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call esi
cmp byte [ebp - 0x25], bl
jne 0x40e2ad
push ebx
push ebx
push 3
push ebx
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x40e2ad
mov dword [ebp - 0x1c], ebx
push 0x42bb10
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040ca2c
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.004029e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0040dbca
push dword [ebp - 0x20]
mov byte [ebp - 4], 5
call esi
push 0x42bb0c
lea ecx, [ebp - 0x20]
call fcn.004029e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040dbca
push dword [ebp - 0x20]
mov byte [ebp - 4], 5
call esi
mov edi, dword [ebp - 0x2c]
push 0x42bb04
lea ecx, [ebp - 0x20]
call fcn.0040ca2c
mov eax, dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x1c]
push edx
push ebx
push 0x20
push dword [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
call dword [ecx + 0x50]
push dword [ebp - 0x20]
mov edi, eax
call esi
cmp edi, ebx
jl 0x40e297
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40e297
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x18]
push edx
push 1
push 0x2710
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 9
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x40e19c
cmp dword [ebp - 0x44], 1
jne 0x40e19c
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x58]
push edx
push ebx
push str.ProcessId
push eax
mov byte [ebp - 4], 0xa
call dword [ecx + 0x10]
test eax, eax
jge 0x40e179
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40e286
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40e189
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40e19f
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40e286
push 1
push str.SeDebugPrivilege
push dword [ebp - 0x34]
call fcn.0040da62
add esp, 0xc
push edi
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x40e286
push dword [ebp + 0xc]
push eax
call fcn.0040de88
pop ecx
pop ecx
test al, al
je 0x40e1fc
mov byte [ebp - 0x11], 1
jmp 0x40e286
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x40e286
push 4
push 0x1000
mov edi, 0x104
push edi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x40e286
push ebx
push edi
lea ecx, [ebp - 0x15c]
push ecx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, ebx
je 0x40e286
push ebx
push ebx
push dword [ebp - 0x38]
push 0x42baa8
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
mov dword [ebp - 0x40], edi
cmp edi, ebx
je 0x40e286
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x48], ebx
setne byte [ebp - 0x11]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40e297
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40e2ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40e2be
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x40e2ce
mov dword [ebp - 0x30], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], ebx
je 0x40e2de
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x24], ebx
je 0x40e2e8
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x40], ebx
je 0x40e2f2
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], ebx
je 0x40e30d
push 0x8000
push 0x104
push dword [ebp - 0x38]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40e31d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
pop esi
cmp eax, ebx
pop ebx
je 0x40e330
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
mov dword fs:[0], ecx
leave
ret