Function at 0x2180198
Capabilities:
Access the windows event log
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push ebx
push esi
push edi
lea esi, [ebp - 0x370]
mov edi, ecx
mov ebx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x20]
test ebx, ebx
mov dword [ecx], 0
jne 0x21801c1
push dword [edi + 0x10]
jmp 0x21801c4
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x18]
cmp eax, 0x208
jbe 0x21801f4
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov esi, eax
test esi, esi
jne 0x21801f4
xor eax, eax
jmp 0x2180456
test ebx, ebx
je 0x21801fd
mov eax, dword [ebp + 0x2c]
jmp 0x2180200
mov eax, dword [edi + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.__Embedding
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x2180239
push ebx
push esi
push eax
mov ecx, edi
push dword [ebp + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0218045f
jmp 0x2180456
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x74], 0x44
test ebx, ebx
je 0x218025a
mov eax, dword [ebp + 0x2c]
jmp 0x218025d
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x5c], 0x50
mov dword [ebp - 0x68], eax
mov eax, 0x28
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0x14
mov word [ebp - 0x44], 1
mov dword [ebp - 0x58], eax
xor eax, eax
cmp dword [0x218c3d0], 1
mov word [ebp - 0x42], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
jne 0x218029e
mov dword [ebp - 4], 0x814
cmp dword [ebp + 0x18], 0
je 0x21802a8
or byte [ebp - 3], 4
push 0
call sub.RPCRT4.dll_RpcImpersonateClient
test eax, eax
je 0x21802d3
lea eax, [ebp - 0x370]
cmp esi, eax
je 0x21802cc
push esi
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb38]
xor eax, eax
jmp 0x2180456
mov eax, dword [ebp + 0x10]
xor edi, edi
add eax, 0x1c
push 0x100201
push 0x1f0fff
mov dword [ebp - 8], eax
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edi
call fcn.02175b4e
test eax, eax
jne 0x2180314
call sub.RPCRT4.dll_RpcRevertToSelf
jmp 0x21803fe
xor ebx, ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0xc
lea eax, [ebp - 0x18]
push eax
push ecx
push ebx
lea ecx, [ebp - 0x30]
push dword [ebp + 0x18]
push dword [ebp - 4]
push ebx
push ebx
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call sub.RPCRT4.dll_RpcRevertToSelf
test edi, edi
jne 0x21803c7
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x9c]
push 0x2187498
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0x168]
mov dword [ebp - 0x20], ecx
push 0x4e
push edx
push dword [ebp + 8]
call fcn.02173cff
lea ecx, [ebp - 0x168]
push str.DCOM
push ebx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x21803fe
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push 3
push dword [ebp - 8]
push 0xc0002710
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x21803fe
cmp dword [ebp - 0x14], 0
je 0x218040d
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push dword [ecx + 0x10]
push eax
call fcn.021772a2
mov edi, eax
test edi, edi
je 0x21803fe
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x21803fe
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x14], 0
je 0x218040d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x2180421
cmp dword [ebp - 0x14], 0
je 0x2180421
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
jmp 0x2180430
cmp dword [ebp - 0x18], 0
je 0x2180430
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x370]
cmp esi, eax
je 0x2180449
push esi
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb38]
lea ecx, [ebp - 0x118]
call fcn.02175ecd
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c