joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019ed2
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x107342c]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x5c], 0x4c
call sub.WINSTA.dll_WinStationEnumerate_IndexedW
test al, al
je 0x101a003
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x1019f46
cmp dword [ebp - 8], 3
je 0x1019f46
cmp dword [ebp - 8], 4
jne 0x1019fdd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x78]
push eax
push 0xc
lea eax, [ebp - 0x68]
push eax
push 0xe
push dword [ebp - 0x50]
push esi
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x1019fdd
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 1
push dword [ebp - 0x60]
call ebx
test eax, eax
jne 0x1019f94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1019f94
push dword [ebp - 0x60]
call edi
jmp 0x1019fdd
push dword [ebp - 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1019ffc
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 1
push dword [ebp - 0x60]
call ebx
test eax, eax
push dword [ebp - 0x60]
jne 0x1019fbe
call edi
jmp 0x1019fd4
call edi
push dword [esi]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1019fd4
mov eax, dword [ebp - 0x6c]
inc dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call sub.WINSTA.dll_WinStationEnumerate_IndexedW
test al, al
jne 0x1019f31
jmp 0x101a001
push dword [ebp - 0x60]
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
call fcn.0103e4d8
leave
ret 0x10

Function at 0x101a4ba
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1011460
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101a550
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x101142c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101a510
cmp dword [ebp - 0xc], 1
sbb esi, esi
inc esi
jmp dword [0x10726fc]
mov eax, esi
pop esi
leave
ret
Function at 0x101d5dc
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x101d60b
push ebx
push esi
lea esi, [edx + ecx - 1]
add edi, ecx
movzx edx, byte [edi + eax]
mov dl, byte [edx + ecx]
xor dl, byte [esi]
mov ebx, dword [ebp + 0xc]
mov byte [eax + ebx], dl
inc eax
dec esi
cmp eax, dword [ebp + 8]
jl 0x101d5f3
pop esi
pop ebx
pop edi
pop ebp
ret 8

Function at 0x101d679
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x101d6a3
lea eax, [ebp - 8]
push eax
push 8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x101d6c6
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x101d6c9
mov edi, dword [ebp - 8]
cmp dword [ebp + 0xc], esi
mov edx, dword [ebp - 4]
je 0x101d6d9
or edi, 0x10000
jmp 0x101d6df
and edi, 0xfffeffff
cmp dword [ebp + 0x10], esi
je 0x101d6ef
or edi, 0x80000000
or edx, 3
jmp 0x101d70f
mov ecx, 0x80000000
mov eax, edi
mov esi, edx
and eax, ecx
and esi, 3
cmp eax, ecx
jne 0x101d70f
cmp esi, 3
jne 0x101d70f
and edi, 0x7fffffff
and edx, 0xfffffffc
mov eax, edi
pop edi
and edx, 0xfffbffff
pop esi
leave
ret 0xc
Function at 0x101da10
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 8
pop eax
cmp dword [ebp + 0x1c], eax
jbe 0x101da23
mov dword [ebp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jbe 0x101da3c
lea ecx, [ebp + 0x1c]
add ecx, 4
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x20], edx
inc eax
cmp eax, dword [ebp + 0x1c]
jb 0x101da2d
mov eax, dword [0x10743a4]
test eax, eax
jne 0x101da5f
push 0x10116d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
mov dword [0x10743a4], eax
jne 0x101da5f
push 6
pop eax
leave
ret
push dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x101da89
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret

Function at 0x101dc48
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push edi
xor edi, edi
cmp dword [0x107439c], edi
mov dword [ebp - 4], edi
jne 0x101dcb8
push esi
push dword [ebp + 0xc]
mov esi, 0x104
push esi
push 0x1073f80
mov dword [0x107439c], 1
mov dword [0x10743a0], ebx
call fcn.0101da8d
cmp eax, edi
jl 0x101dcb7
push dword [ebp + 0x10]
push esi
push 0x1074190
call fcn.0101da8d
cmp eax, edi
jl 0x101dcb7
push edi
push edi
push dword [ebp + 8]
push 0x101d9b9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x101dcb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp ebx, edi
je 0x101dce6
cmp ebx, 2
mov eax, 0x101d9fb
je 0x101dccb
mov eax, 0x101d9fb
push 0x20
push edi
push 0x4e20
push dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, ebx
jmp 0x101dce8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x101ebda
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp + 8], ecx
je 0x101ebfd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, 0x2000
test dword [ebp + 8], edi
je 0x101ec15
lea eax, [ebp + 8]
push eax
call fcn.0102a9c4
movzx eax, al
jmp 0x101ec29
xor eax, eax
cmp dword [0x10743a8], ebx
sete al
cmp dword [esi + 0x1c], ebx
je 0x101ec29
and dword [ebp + 8], 0xfffffff4
cmp eax, ebx
je 0x101ec7b
xor esi, esi
inc esi
test byte [ebp + 8], 0xb
je 0x101ec43
test dword [ebp + 8], edi
jne 0x101ec43
push esi
push 0x13
call fcn.01026fc6
cmp eax, ebx
je 0x101ec7b
jmp 0x101ec54
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x10743a8], ebx
jne 0x101ec49
call fcn.0101eb74
push ebx
push dword [ebp + 8]
mov dword [0x10743a8], esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x101ec7b
mov dword [0x10743a8], ebx
xor ecx, ecx
cmp eax, ebx
sete cl
pop edi
pop esi
pop ebx
inc ecx
mov eax, ecx
pop ebp
ret 4
Function at 0x101eefe
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x107342c]
lea ecx, [ebp - 0x9c]
push ecx
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x98], eax
mov eax, dword [eax + 8]
push 1
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x101f079
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
push edi
push dword [ebp - 0x84]
call esi
mov al, byte [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov byte [ebp - 0x85], al
xor eax, eax
xor bl, bl
cmp bl, byte [ebp - 0x85]
jae 0x101ef8d
movzx eax, bl
push eax
push dword [ebp - 0x84]
call edi
xor ecx, ecx
cmp dword [eax], 0x1f5
sete cl
inc bl
mov eax, ecx
test eax, eax
je 0x101ef66
test eax, eax
je 0x101f076
lea eax, [ebp - 0x90]
push eax
push 2
push 0
call sub.NETAPI32.dll_NetUserModalsGet
test eax, eax
jne 0x101f076
mov eax, dword [ebp - 0x90]
push dword [eax + 4]
call esi
mov al, byte [eax]
xor ebx, ebx
mov bl, al
inc bl
mov byte [ebp - 0x85], al
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
push 0
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x8c], eax
je 0x101f06b
mov ecx, dword [ebp - 0x90]
push dword [ecx + 4]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x101f05f
movzx eax, byte [ebp - 0x85]
push eax
push dword [ebp - 0x8c]
call edi
push dword [ebp - 0x8c]
mov dword [eax], 0x1f5
call esi
push dword [ebp - 0x8c]
mov byte [eax], bl
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x101f05f
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 8]
push 0
add eax, 0x28
push eax
call fcn.010270ab
mov esi, eax
test esi, esi
je 0x101f05f
call fcn.0101eea9
push esi
call fcn.01027188
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x90]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0103e4d8
leave
ret 4

Function at 0x101f085
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x101f0e2
push edi
push 4
push 0x1011b20
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x101f0de
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x101f0db
cmp dword [ebp - 0x1c], 4
jne 0x101f0db
mov dword [ebp - 4], 1
push edi
call esi
push ebx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x101f67a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x101f6a9
xor eax, eax
jmp 0x101f6e9
test bh, 1
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push fcn.0101ebda
je 0x101f6c6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x101f6cc
push edi
call fcn.010271bb
mov edi, eax
cmp edi, esi
je 0x101f6de
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101f811
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sub.MSGINA.dll_Ordinal_18
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x80000001
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 5
push 0x12c
xor ebx, ebx
push ebx
mov dword [0x1076acc], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x101f85a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0x694
push 2
push ebx
call fcn.0103c7a3
add esp, 0xc
push 3
push esi
call fcn.01039fb3
push 0x6e3
push ebx
push 1
call fcn.0103c7a3
mov eax, dword [0x10744ac]
add esp, 0xc
cmp eax, ebx
je 0x101f88d
call eax
push 1
call sub.KERNEL32.dll_BaseCleanupAppcompatCacheSupport
lea edi, [esi + 0x3dc]
cmp dword [edi], ebx
je 0x101f8b1
push 0x78
push esi
call fcn.0103bcb6
push dword [ebp + 0xc]
push dword [esi + 0x3a8]
call dword [edi]
cmp dword [0x1074a14], ebx
je 0x101f8c1
push 1
push ebx
call sub.WINSTA.dll_WinStationShutdownSystem
cmp dword [esi + 0x7c], 0xe
mov ebx, dword [sym.imp.ntdll.dll_NtShutdownSystem]
je 0x101f917
cmp dword [ebp + 0xc], 0xb
jne 0x101f90a
push 2
pop ecx
xor eax, eax
or eax, ecx
or eax, 5
push eax
push esi
call fcn.0101f6f0
push 0
push esi
call fcn.0103bcb6
push esi
push 0x101ed2c
push 0
push 0x258
push dword [0x107447c]
push esi
call fcn.0103be70
xor edi, edi
inc edi
jmp 0x101f942
xor ecx, ecx
cmp dword [ebp + 0xc], 0xa
jne 0x101f8d6
push 8
pop eax
jmp 0x101f8d8
xor edi, edi
inc edi
push edi
push 0x13
call fcn.01026fc6
cmp dword [ebp + 0xc], 0xa
jne 0x101f92c
push 2
jmp 0x101f937
cmp dword [ebp + 0xc], 0xb
jne 0x101f935
push edi
jmp 0x101f937
push 0
call ebx
push 0
push 0x13
call fcn.01026fc6
mov eax, dword [esi + 8]
push 0
add eax, 0x28
push eax
call fcn.010270ab
push edi
push 0x13
mov dword [ebp + 8], eax
call fcn.01026fc6
call fcn.01029664
call fcn.010296f2
cmp dword [0x1074a14], 0
mov eax, dword [esi + 0x20]
je 0x101f9ab
test al, 8
je 0x101f97d
push 0xa
pop eax
push 2
pop edi
jmp 0x101f998
test al, 2
jne 0x101f98f
push 0xa
pop eax
cmp dword [ebp + 0xc], eax
je 0x101f978
cmp dword [ebp + 0xc], 0xb
jne 0x101f993
push 6
jmp 0x101f997
push 2
xor edi, edi
pop eax
push eax
push 0
call sub.WINSTA.dll_WinStationShutdownSystem
cmp dword [0x1074a18], 0
je 0x101f9ca
jmp 0x101f9c3
test al, 8
jne 0x101f9b9
test al, 2
jne 0x101f9c3
cmp dword [ebp + 0xc], 0xa
jne 0x101f9bd
push 2
jmp 0x101f9c8
cmp dword [ebp + 0xc], 0xb
jne 0x101f9c6
push edi
jmp 0x101f9c8
push 0
call ebx
push dword [ebp + 8]
call fcn.01027188
cmp dword [ebp + 0xc], 0xa
jne 0x101f9de
push esi
call fcn.0101ecdc
push esi
call fcn.0101ec8c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x10200e4
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push 8
pop eax
cmp dword [ebp + 0x1c], eax
jbe 0x10200f7
mov dword [ebp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jbe 0x1020110
lea ecx, [ebp + 0x1c]
add ecx, 4
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x20], edx
inc eax
cmp eax, dword [ebp + 0x1c]
jb 0x1020101
mov eax, dword [0x1076e28]
test eax, eax
jne 0x1020133
push 0x1010d8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test eax, eax
mov dword [0x1076e28], eax
jne 0x1020133
push 6
pop eax
leave
ret
push dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x102015d
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret

Function at 0x10201e1
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x1011bb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x10202aa
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011ba0
push eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x102029f
push 0x1011b8c
push dword [ebp - 0x28]
call esi
cmp eax, edi
mov dword [ebp - 0x3c], eax
je 0x102029f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
call ebx
test eax, eax
jne 0x102029f
mov ebx, dword [ebp - 0x2c]
xor esi, esi
cmp dword [ebp - 0x30], edi
jbe 0x1020295
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x102028b
mov eax, dword [ebp - 0x2c]
push dword [eax]
push edi
call dword [ebp - 0x3c]
add dword [ebp - 0x2c], 4
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x102026d
cmp ebx, edi
je 0x102029f
push ebx
call sub.NETAPI32.dll_NetApiBufferFree
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0103e4d8
leave
ret
Function at 0x102032f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
push 0x1011c48
call fcn.0103e7b6
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
push 4
pop edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push esi
push 0x1011bf0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x10203aa
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push 0x1011be4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x10203aa
cmp dword [ebp - 0x30], edi
jne 0x10203aa
cmp dword [ebp - 0x20], 2
je 0x10203a3
cmp dword [ebp - 0x20], 3
jne 0x10203aa
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.010203be
mov eax, dword [ebp - 0x24]
call fcn.0103e7f1
ret
Function at 0x10203cd
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
mov dword [ebp - 8], ebx
je 0x10203fb
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, ebx
je 0x10203f3
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi], ebx
xor eax, eax
inc eax
jmp 0x10204fa
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
je 0x1020428
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1020421
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
jmp 0x10204fa
xor eax, eax
jmp 0x10204fa
push edi
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x10204f7
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push 0x30
push edi
call esi
test eax, eax
je 0x1020472
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10204f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x102048b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
jmp 0x10204f9
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x102047f
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 1
push 0x30
push edi
call esi
test eax, eax
je 0x1020511
cmp dword [ebp + 0x10], 0
jbe 0x10204e7
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
lea eax, [eax + eax*8]
push dword [ebx + eax*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1020500
cmp dword [ebp + 0x10], 0
jne 0x10204c1
or dword [ebp + 0x10], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push 4
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x102047f
Function at 0x102051d
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], 1
je 0x10205b5
push esi
push esi
push esi
push 0x192
push dword [0x1076d34]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ebx, eax
cmp ebx, esi
je 0x10205b5
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x41
push esi
push esi
push 0x11
call edi
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10
call edi
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x10205a6
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push ebx
push eax
call edi
test eax, eax
jne 0x102059c
push 4
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x10205fb
push 0x10
push 0x1011c54
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp + 8], eax
je 0x10205f1
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp + 8]
call edi
jmp 0x10205f4
mov dword [ebp - 4], esi
push dword [ebp - 8]
call edi
jmp 0x10205fe
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x1020609
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1020613
Capabilities:
Check for time delay via gettickcount
Read pipe
Write pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x107342c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
push esi
push 0x100080
push 3
push esi
push esi
push 0xc0000000
mov ebx, 0x1011c84
push ebx
mov dword [ebp - 4], eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
jne 0x102065c
cmp dword [ebp + 8], esi
je 0x10206eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x8c], 0xffffffff
jne 0x10206f2
mov ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x94], eax
jbe 0x10206e2
push 0x4ff
push 0x3e8
push 1
push esi
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push esi
push 0x100080
push 3
push esi
push esi
push 0xc0000000
push ebx
call edi
mov dword [ebp - 0x8c], eax
jmp 0x10206c3
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0xb4]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10206b6
cmp dword [ebp - 0x8c], 0xffffffff
je 0x102067a
cmp dword [ebp - 0x8c], 0xffffffff
jne 0x10206f2
xor eax, eax
jmp 0x102078d
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x84]
push 0x1011c74
push eax
call edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
mov dword [ebp - 0x88], eax
lea eax, [ebp + eax*2 - 0x84]
push 0x1011c64
push eax
call edi
add esp, 0x14
push esi
push esi
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x90], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push esi
lea eax, [ebp - 0x98]
push eax
push 4
push 0x1076d38
push 0x84
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x102077c
mov dword [0x1076d38], esi
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1076d38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4