joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2178ab6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push edi
mov esi, dword [ebp + 0x10]
xor edi, edi
push eax
push edi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], edi
push edi
mov dword [esi], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x2178aec
or eax, 0x80070000
jmp 0x2178bbc
cmp dword [ebp - 8], 3
jne 0x2178bb7
cmp dword [ebp - 4], 0x14
jb 0x2178bb7
push dword [ebp - 4]
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov dword [esi], eax
test eax, eax
jne 0x2178b21
mov eax, 0x8007000e
jmp 0x2178bbc
lea ecx, [ebp - 4]
lea edx, [ebp - 8]
push ecx
push eax
push edx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x2178b43
or eax, 0x80070000
jmp 0x2178bbc
cmp dword [ebp - 8], 3
jne 0x2178bb7
mov eax, dword [esi]
and word [eax + 2], 0x7fff
mov edx, dword [esi]
mov dword [edx + 0xc], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x2178b89
cmp dword [ebp - 4], 0x1c
jb 0x2178bb7
mov ecx, dword [ebp - 4]
sub ecx, 8
cmp ecx, eax
jb 0x2178bb7
add eax, edx
mov dword [edx + 0x10], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
movzx eax, word [edx + 2]
add eax, 0x14
cmp eax, dword [ebp - 4]
ja 0x2178bb7
mov edx, dword [esi]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x2178bb7
lea eax, [ecx + 0xc]
cmp eax, dword [ebp - 4]
ja 0x2178bb7
mov eax, dword [edx + 4]
test eax, eax
je 0x2178bb7
add eax, 0xc
cmp eax, dword [ebp - 4]
ja 0x2178bb7
add ecx, edx
mov dword [edx + 8], ecx
mov eax, dword [esi]
add dword [eax + 4], eax
xor eax, eax
jmp 0x2178bbc
mov eax, 0x80040153
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x2178bc4
Capabilities:
Get hostname
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
lea eax, [ebp - 0x10]
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], 0x20
push eax
push 0x218cc68
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x2178c10
mov word [0x218cc68], bx
push str.SCM_:_GetComputerName_failed__n
call sub.ntdll.dll_DbgPrint
add esp, 4
push 0x218ccc0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call esi
push 0x218cca8
call esi
push 0x218ccd8
call esi
push 0x20000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x218c3cc
mov dword [0x218c3c4], eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push esi
push 0x12
push 1
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
push 2
call fcn.02179a24
mov dword [ebp - 4], esi
call fcn.021799b2
push 0x30
mov dword [ebp - 4], eax
push esi
mov eax, dword [0x218cb30]
push eax
call dword [0x218cb34]
cmp eax, esi
mov edi, eax
je 0x2178cb9
lea ebx, [edi + 0x1c]
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
push ebx
mov ecx, edi
push 1
push esi
push 0x2180eb2
push 0x21725cb
call fcn.02179ace
lea ecx, [ebp - 4]
push ecx
push 0x21873f0
mov ecx, ebx
call fcn.0217448f
mov dword [0x218c860], edi
jmp 0x2178cc3
mov dword [0x218c860], 0
push 0x5c
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb34]
test eax, eax
je 0x2178ce9
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.021787de
mov dword [0x218c85c], eax
jmp 0x2178cf3
mov dword [0x218c85c], 0
push 0x30
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb34]
mov esi, eax
test esi, esi
je 0x2178d43
lea ebx, [esi + 0x1c]
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
push ebx
mov ecx, esi
push 1
push 0
push 0x2181bab
push 0x21725cb
call fcn.02179ace
lea ecx, [ebp - 4]
push ecx
push 0x21873f0
mov ecx, ebx
call fcn.0217448f
mov dword [0x218c864], esi
jmp 0x2178d4d
mov dword [0x218c864], 0
push 2
xor esi, esi
call fcn.02179a24
call fcn.02179c41
push esi
mov dword [ebp - 4], eax
push esi
mov eax, dword [0x218c820]
push eax
call sub.RPCRT4.dll_RpcServerRegisterIf
push esi
mov eax, dword [0x218c7e8]
push esi
push eax
call sub.RPCRT4.dll_RpcServerRegisterIf
push esi
mov eax, dword [0x218cb10]
push esi
push eax
call sub.RPCRT4.dll_RpcServerRegisterIf
push 0x218c3c8
call fcn.0217ffe7
push 2
call fcn.02179a24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2179b6f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push dword [0x21866c8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2179c0c
lea eax, [ebp - 0x10]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [str.ListenOnInternet]
mov dword [ebp - 0x10], 4
push edx
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2179c03
cmp dword [ebp - 0xc], 1
jne 0x2179c03
cmp word [ebp - 4], 0x59
je 0x2179bf9
cmp word [ebp - 4], 0x79
je 0x2179bdf
cmp word [ebp - 4], 0x4e
je 0x2179bdf
cmp word [ebp - 4], 0x6e
jne 0x2179c03
cmp word [ebp - 4], 0x59
je 0x2179bf9
cmp word [ebp - 4], 0x79
je 0x2179bf9
mov dword [0x218c1c4], 0
jmp 0x2179c03
mov dword [0x218c1c4], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x2179d40
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21868d0
push 0x217a2b4
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x218cef4], 0xffffffff
mov eax, dword [0x218cef4]
mov dword [0x218cef8], eax
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x218c1f0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x218c1ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x218cefc], eax
call fcn.02179c40
cmp dword [0x218c1e8], 0
jne 0x2179dd0
push 0x217a2b0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.02177e90
push 0x218c024
push 0x218c020
call sub.MSVCRT.dll__initterm
add esp, 8
mov eax, dword [0x218c1e4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x218c1e0]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x218c01c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.02177aa4
add esp, 0xc
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x2179e70
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2179fe9
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information
Query or enumerate registry value

Disassembly:
push ebp
mov eax, dword [0x218c034]
mov ebp, esp
sub esp, 0xa0
cmp eax, 2
push esi
push edi
je 0x217a1fd
mov esi, dword [ebp + 8]
test esi, esi
je 0x217a012
cmp eax, 1
je 0x217a1fd
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftRpc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x217a09d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push ecx
push edx
push 0
push str.AdvertiseRpcService
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x217a094
cmp dword [ebp - 0x14], 1
jne 0x217a094
cmp word [ebp - 0x38], 0x79
je 0x217a092
cmp word [ebp - 0x38], 0x59
je 0x217a092
cmp word [ebp - 0x38], 0x6e
je 0x217a07a
cmp word [ebp - 0x38], 0x4e
jne 0x217a094
push dword [ebp - 4]
mov dword [0x218c034], 2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x217a1fd
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x217a0ee
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlGetNtProductType]
cmp dword [ebp - 0xc], 1
mov eax, 0x424
je 0x217a0c7
push str.NWCWorkstation
call fcn.02179f93
cmp eax, 0x424
jne 0x217a0ee
push str.NwSapAgent
call fcn.02179f93
cmp eax, 0x424
jne 0x217a0ee
mov dword [0x218c034], 1
jmp 0x217a1fd
lea eax, [ebp - 8]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 8], 0x10
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x217a1fd
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov esi, eax
je 0x217a15e
lea edi, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x10], 0xe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x28], 6
push 0xe
lea eax, [ebp - 0x28]
push eax
push esi
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x217a1fd
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
push ecx
push esi
call sub.WSOCK32.dll_getsockname
jmp 0x217a163
mov eax, 0xffffffff
test eax, eax
jne 0x217a1fd
cmp esi, 0xffffffff
je 0x217a176
push esi
call sub.WSOCK32.dll_closesocket
mov dword [ebp - 0x64], 0x21866d0
lea eax, [ebp - 0xa0]
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x5c], str.RPC_Services
mov dword [ebp - 0x58], 0x21866e0
mov edx, 1
mov dword [ebp - 0x70], ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
lea esi, [ebp - 8]
lea edi, [ebp - 0x64]
mov dword [ebp - 0x7c], 6
mov dword [ebp - 0x74], 0xe
mov word [ebp - 0x1c], 0x85e8
push esi
push ecx
push edi
push ecx
push edx
push edx
call sub.WSOCK32.dll_SetServiceW
cmp eax, 0xffffffff
jne 0x217a1ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x217a1fd
mov dword [0x218c034], 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x217be48
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
lea eax, [ebp - 0x120]
push esi
push edi
push 0x100
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x217be73
mov eax, 0x6b9
jmp 0x217bf5d
lea eax, [ebp - 0x120]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x217be90
mov eax, 0x6b9
jmp 0x217bf5d
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x217bea5
add eax, 4
inc esi
cmp dword [eax], 0
jne 0x217be9c
mov eax, esi
imul eax, eax, 0x24
add eax, 4
push eax
call sub.RPCRT4.dll_I_RpcAllocate
mov edi, eax
test edi, edi
jne 0x217bec3
mov eax, 0xe
jmp 0x217bf5d
xor ebx, ebx
lea eax, [edi + esi*4 + 4]
mov dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 4], eax
test esi, esi
mov word [ebp - 0x18], bx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x16], 0x28
je 0x217bf56
lea edx, [edi + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
cmp dword [edx + ecx], 0
je 0x217bf56
mov ecx, dword [ecx + edx]
push dword [ecx]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
test eax, eax
jl 0x217bf66
movzx ecx, word [ebp - 0x18]
add ecx, 2
mov eax, esi
shr ecx, 1
sub eax, dword [ebp - 4]
inc dword [edi]
cmp eax, 1
je 0x217bf46
mov edx, dword [ebp - 0xc]
mov eax, dword [edx - 4]
lea eax, [eax + ecx*2]
mov dword [edx], eax
mov dword [ebp - 0x14], eax
add dword [ebp - 0xc], 4
add dword [ebp - 8], 4
inc dword [ebp - 4]
cmp esi, dword [ebp - 4]
ja 0x217beeb
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call sub.RPCRT4.dll_I_RpcFree
mov eax, 0x6b9
jmp 0x217bf5d
Function at 0x217c317
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x218c2f0], eax
cmp eax, esi
jne 0x217c342
mov eax, 0x6b9
jmp 0x217c493
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipLinkage
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x217c493
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x114]
push eax
lea edx, [ebp - 8]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 8], 0
push ecx
push edx
push 0
push str.Bind
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x217c48c
cmp dword [ebp - 8], 7
jne 0x217c48c
push str.Device_
lea ebx, [ebp - 0x114]
call sub.ntdll.dll_wcslen
add esp, 4
mov dword [ebp - 4], eax
cmp word [ebp - 0x114], 0
je 0x217c48c
cmp dword [0x218c2f4], 0x14
jae 0x217c48c
mov edi, str.Device_
mov eax, dword [ebp - 4]
mov ecx, eax
mov esi, ebx
shr ecx, 2
repe cmpsd dword [esi], dword es:[edi]
jne 0x217c3fa
mov ecx, eax
and ecx, 3
repe cmpsb byte [esi], byte es:[edi]
mov ecx, 1
je 0x217c403
xor ecx, ecx
mov eax, dword [ebp - 4]
test ecx, ecx
lea ebx, [ebx + eax*2]
je 0x217c475
push str.SystemCurrentControlSetServices_
lea eax, [ebp - 0x31c]
push eax
call sub.ntdll.dll_wcscpy
add esp, 8
lea eax, [ebp - 0x31c]
push ebx
push eax
call sub.ntdll.dll_wcscat
add esp, 8
lea eax, [ebp - 0x31c]
push str.ParametersTcpip
push eax
call sub.ntdll.dll_wcscat
add esp, 8
mov eax, dword [0x218c2f4]
lea edx, [ebp - 0x31c]
lea ecx, [eax*4 + 0x218cb78]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x217c475
inc dword [0x218c2f4]
push ebx
call sub.ntdll.dll_wcslen
add esp, 4
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x217c3d3
call fcn.0217c2e3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x217c661
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
xor edi, edi
push 0xf0000000
lea eax, [ebp - 8]
push 1
mov dword [ebp - 8], edi
push edi
mov dword [ebp - 4], edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x217c6ac
push 8
call fcn.02171697
add esp, 4
test eax, eax
je 0x217c6df
mov ecx, dword [ebp - 8]
mov dword [eax], 0x2187078
mov dword [eax + 4], ecx
mov dword [eax], 0x2187080
jmp 0x217c6db
lea eax, [ebp - 4]
push eax
call fcn.02182771
cmp dword [ebp - 4], 0
je 0x217c6e5
push 8
call fcn.02171697
add esp, 4
test eax, eax
je 0x217c6df
mov ecx, dword [ebp - 4]
mov dword [eax], 0x2187078
mov dword [eax + 4], ecx
mov dword [eax], 0x2187088
mov dword [esi], eax
jmp 0x217c6e5
mov dword [esi], 0
pop edi
cmp dword [esi], 1
sbb eax, eax
pop esi
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x217e90e
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0x54]
push 0x4e
push eax
push dword [ebp + 8]
call fcn.02173cff
lea ecx, [ebp - 0x54]
push str.DCOM
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x217e96e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x217e94b
add eax, 0x1c
jmp 0x217e94d
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 4]
push ecx
push edx
push ecx
push 1
push eax
push 0xc000271a
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x217ef28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
lea eax, [ebp - 0x50]
push esi
add ecx, 4
push edi
push 0x27
mov edi, 0x80004005
push eax
push ecx
call fcn.02173cff
test eax, eax
jl 0x217efea
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
je 0x217ef5f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x217ef6f
push str.dllhost.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x105
lea eax, [eax*2 + 0x50]
push eax
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov esi, dword [ebp + 0xc]
test eax, eax
mov dword [esi], eax
jne 0x217ef95
mov edi, 0x8007000e
jmp 0x217efea
cmp word [ebx], 0
jne 0x217efc7
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x217efea
push 0x2187494
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.dllhost.exe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x217efcf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2187490
xor edi, edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x50]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x217f1cf
Capabilities:
Access the windows event log
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
mov dword [ebp - 8], ecx
push esi
mov ecx, dword [ebp + 0x14]
push edi
xor esi, esi
push 0xa0000000
mov eax, dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ecx], esi
push dword [eax + 0x10]
push dword [0x218c3c4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [ebp + 0x18]
cmp eax, esi
mov dword [edi], eax
je 0x217f39b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x217f2b3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push dword [0x218cb30]
call dword [0x218cb34]
mov esi, eax
test esi, esi
jne 0x217f24a
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [edi], ebx
jmp 0x217f39b
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x80]
xor eax, eax
lea ecx, [esi + ebx*2]
cmp word [ecx], ax
je 0x217f277
cmp word [ecx], 0x20
je 0x217f26d
cmp word [ecx], 9
jne 0x217f277
add ecx, 2
inc ebx
cmp word [ecx], 0
jne 0x217f261
lea ecx, [esi + ebx*2]
cmp word [ecx], ax
je 0x217f2a2
mov dword [edx], ecx
inc dword [ebp - 4]
add edx, 4
cmp word [ecx], ax
je 0x217f2a2
cmp word [ecx], 0x20
je 0x217f2a2
cmp word [ecx], 9
je 0x217f2a2
add ecx, 2
inc ebx
cmp word [ecx], 0
jne 0x217f28c
cmp word [esi + ebx*2], ax
je 0x217f2b3
mov word [esi + ebx*2], ax
inc ebx
cmp word [esi + ebx*2], ax
jne 0x217f259
xor eax, eax
lea ecx, [ebp - 0x80]
cmp eax, dword [ebp - 4]
sbb eax, eax
and eax, ecx
push eax
push dword [ebp - 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
push esi
push 0
mov eax, dword [0x218cb30]
push eax
call dword [0x218cb38]
test ebx, ebx
je 0x217f2ea
mov eax, 1
jmp 0x217f39d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x217f306
mov eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x217f39d
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
push 0x2187498
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
push 0x4e
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x14], eax
push edx
push dword [ebp + 8]
call fcn.02173cff
lea ecx, [ebp - 0xd0]
push str.DCOM
push esi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x217f39b
mov edx, dword [ebp + 0xc]
cmp edx, esi
je 0x217f378
add edx, 0x1c
jmp 0x217f37a
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x18]
push eax
push ecx
push eax
push 4
push edx
push 0xc0002715
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x217f560
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov dword [ebp - 8], 0x214
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp word [esi], 0x5c
jne 0x217f587
cmp word [esi + 2], 0x5c
je 0x217f60d
push 3
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov word [ebp - 0xa], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x217f6e6
push 0
call sub.RPCRT4.dll_RpcImpersonateClient
test eax, eax
je 0x217f5c2
mov eax, 0x80080003
jmp 0x217f6eb
lea eax, [ebp - 8]
lea ecx, [ebp - 0x224]
push eax
push ecx
push 1
push esi
call fcn.02182057
mov ebx, eax
call sub.RPCRT4.dll_RpcRevertToSelf
test ebx, ebx
je 0x217f5ea
mov eax, 0x80080004
jmp 0x217f6eb
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x217f6e6
cmp word [esi], 0x5c
jne 0x217f6e6
cmp word [esi + 2], 0x5c
jne 0x217f6e6
cmp dword [ebp + 0x10], 0
je 0x217f67a
lea ebx, [ebp - 0x42c]
lea edi, [esi + 2]
mov dword [ebp - 4], 0x208
lea eax, [ebp - 4]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 0x600c0
push dword [0x218c3c8]
call fcn.02180055
cmp eax, 0x80000005
jne 0x217f66b
push dword [ebp - 4]
push 0
push dword [0x218cb30]
call dword [0x218cb34]
mov ebx, eax
test ebx, ebx
jne 0x217f623
mov eax, 0x8007000e
jmp 0x217f6eb
test eax, eax
jne 0x217f673
mov esi, ebx
jmp 0x217f67a
mov dword [ebp + 0x10], 0
add esi, 4
mov ecx, dword [ebp + 0xc]
xor edi, edi
xor edx, edx
cmp word [esi], dx
je 0x217f6aa
mov ax, word [esi]
cmp ax, 0x5c
je 0x217f6aa
cmp edx, 0xff
jae 0x217f6aa
mov word [ecx], ax
add esi, 2
add ecx, 2
inc edx
cmp word [esi], 0
jne 0x217f689
xor eax, eax
cmp word [esi], ax
je 0x217f6be
cmp edx, 0xff
jae 0x217f6be
mov word [ecx], ax
jmp 0x217f6c3
mov edi, 0x80080004
cmp dword [ebp + 0x10], 0
je 0x217f6e2
lea eax, [ebp - 0x42c]
cmp esi, eax
je 0x217f6e2
push esi
mov eax, dword [0x218cb30]
push 0
push eax
call dword [0x218cb38]
mov eax, edi
jmp 0x217f6eb
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc