joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10119bb
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x59c
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
inc edi
and dword [ebx], 0
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x59c], ecx
mov dword [ebp - 0x594], edi
mov dword [ebx + 0x20], edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10119f9
sub eax, esi
lea esi, [eax + 1]
push esi
call fcn.01012da0
mov dword [ebx + 4], eax
test eax, eax
je 0x1011a1f
push dword [ebp - 0x590]
push esi
push eax
call fcn.0100e571
push 0
push edi
push 0x1a
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x598], eax
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
jne 0x1011a43
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1011b6a
cmp dword [ebp + 0xc], 0
je 0x1011afc
push 0x565
lea eax, [ebp - 0x56c]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1002e6c
lea edi, [ebp - 0x56c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x1002e94
lea edi, [ebp - 0x52c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
push 6
pop eax
mov word [ebp - 0x428], ax
mov dword [ebp - 0x42c], 2
mov esi, 0x1002e8c
lea edi, [ebp - 0x426]
movsd dword es:[edi], dword [esi]
push 0x565
lea eax, [ebp - 0x56c]
push eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 0x11
mov edi, 0xff
push edi
push dword [ebp - 0x598]
call esi
cmp eax, 0xffffffff
jne 0x1011ae6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebx + 0xc]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebx + 0xc], 0xffffffff
mov eax, esi
jmp 0x1011b6a
push 4
lea eax, [ebp - 0x594]
push eax
push 0x16
push edi
push dword [ebx + 0xc]
call esi
cmp eax, 0xffffffff
je 0x1011aca
push 8
pop ecx
xor eax, eax
push 0x1a
lea edi, [ebp - 0x58c]
rep stosd dword es:[edi], eax
pop eax
push dword [ebp - 0x590]
mov word [ebp - 0x58c], ax
push 0x19
lea eax, [ebp - 0x586]
push eax
call fcn.0100e571
push 0x20
lea eax, [ebp - 0x58c]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1011aca
push 2
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1011aca
mov eax, dword [ebx + 0xc]
push 0
push eax
push dword [ebp - 0x59c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010093a5
leave
ret 0xc
Function at 0x1011b80
Capabilities:
Copy file
Get common file path
Write file on windows

Disassembly:
push 0x24
push 0x1016458
call fcn.01009684
and dword [ebp - 0x24], 0
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1011b9f
sub eax, edx
sar eax, 1
lea ebx, [eax + eax + 0x1a]
and dword [ebp - 4], 0
mov eax, ebx
call fcn.01014a80
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
push dword [ebp + 0xc]
push ebx
push eax
call fcn.010050b7
mov edi, 0x1001e90
push edi
push ebx
push dword [ebp - 0x20]
call fcn.01004458
mov esi, 0x100301c
push esi
push ebx
push dword [ebp - 0x20]
call fcn.01004458
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1011bf9
sub eax, ecx
sar eax, 1
lea ebx, [eax + eax + 0x1a]
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.01014a80
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
push dword [ebp + 8]
push ebx
push eax
call fcn.010050b7
push edi
push ebx
push dword [ebp - 0x28]
call fcn.01004458
push esi
push ebx
push dword [ebp - 0x28]
call fcn.01004458
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1011c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 2
pop ebx
cmp dword [ebp - 0x24], ebx
jne 0x1011c97
push 0
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call esi
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.01014a80
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xfffffffe
push edi
push eax
call esi
inc eax
cmp edi, eax
je 0x1011c9f
xor eax, eax
inc eax
jmp 0x1011d70
xor ebx, ebx
push ebx
push 6
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x1011c97
lea edi, [edi + edi + 0x176]
mov dword [ebp - 4], 3
mov eax, edi
call fcn.01014a80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xfffffffe
push 0x1002f00
push edi
push esi
call fcn.0100e571
push dword [ebp - 0x2c]
push edi
push esi
call fcn.01011947
push 0x1002ed4
push edi
push esi
call fcn.01011947
push dword [ebp - 0x2c]
push edi
push esi
call fcn.01011947
push 0x1002ea0
push edi
push esi
call fcn.01011947
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1011d1f
sub eax, ecx
mov dword [ebp - 0x30], ebx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1011c97
lea esp, [ebp - 0x44]
call fcn.010096cc
ret 8
Function at 0x1011d80
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1018344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x98], eax
xor ebx, ebx
mov dword [ebp - 0x88], edi
mov dword [eax], edi
call fcn.01010a41
mov dword [ebp - 0x8c], eax
cmp eax, edi
jne 0x1011dc2
xor eax, eax
jmp 0x1011f51
push esi
push 2
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, esi
cmp cx, di
jne 0x1011dc9
sub eax, edx
sar eax, 1
mov dword [ebp - 0x94], eax
je 0x1011ebf
push edi
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1011e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1011e0e
cmp eax, 5
je 0x1011e0e
cmp eax, edi
jne 0x1011ebf
lea eax, [ebp - 0x9c]
push eax
call sub.msvcrt.dll_time
lea eax, [ebp - 0x9c]
push eax
call sub.msvcrt.dll_localtime
pop ecx
pop ecx
cmp eax, edi
je 0x1011f40
push eax
push 0x1003034
lea eax, [ebp - 0x84]
push 0x40
push eax
call sub.msvcrt.dll_wcsftime
add esp, 0x10
test eax, eax
je 0x1011f40
lea eax, [ebp - 0x84]
push eax
call fcn.0101116f
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
cmp cx, di
jne 0x1011e64
sub eax, edx
xor ecx, ecx
xor edx, edx
sar eax, 1
add eax, dword [ebp - 0x94]
push edi
adc ecx, edx
mov edx, dword [ebp + 8]
xor ebx, ebx
add eax, edx
adc ecx, ebx
add eax, esi
push esi
adc ecx, edi
push ecx
push eax
call fcn.01014a30
mov esi, eax
cmp edx, edi
ja 0x1011ebf
cmp esi, 0xffffffff
ja 0x1011ebf
mov ebx, dword [ebp - 0x94]
mov dword [ebp - 0x90], esi
cmp esi, ebx
jb 0x1011ebf
push esi
call fcn.01012da0
mov dword [ebp - 0x88], eax
cmp eax, edi
jne 0x1011ec6
xor eax, eax
jmp 0x1011f50
push dword [ebp - 0x8c]
push esi
push eax
call fcn.010050b7
mov eax, dword [ebp - 0x8c]
cmp word [eax + ebx*2 - 2], 0x5c
je 0x1011ef2
push 0x1001e90
push esi
push dword [ebp - 0x88]
call fcn.01004458
lea eax, [ebp - 0x84]
push eax
push esi
push dword [ebp - 0x88]
call fcn.01004458
push edi
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1011f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1011f25
xor eax, eax
cmp eax, edi
jne 0x1011f3a
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call fcn.01011b80
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x98]
shr ebx, 1
mov dword [eax], ebx
mov eax, dword [ebp - 0x88]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.010093a5
leave
ret 8
Function at 0x10122b3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
push esi
push edi
lea edx, [ecx + 0x2c]
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
xor esi, esi
cmp eax, 2
jne 0x10122d4
mov eax, dword [ecx + 0xc]
jmp 0x10122e2
cmp eax, 3
jne 0x101230c
mov edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x34], edi
push edx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1012308
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x1012308
xor esi, esi
mov eax, esi
jmp 0x101230f
push 0x57
pop eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x101231a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x24], ebx
jne 0x101226f
mov edi, 0x1000
push edi
call fcn.01012da0
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], edi
test eax, eax
jne 0x101226f
mov eax, 0x80200001
jmp 0x10122aa
lea ecx, [esi + 0x2c]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push 0
stosd dword es:[edi], eax
push dword [esi + 0x14]
push dword [esi + 0x24]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10122a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x26
je 0x10122a6
cmp ebx, 0x3e5
jne 0x10122a8
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret
mov edx, dword [ecx]
xor eax, eax
test edx, edx
jne 0x1012327
jmp fcn.010121af
cmp edx, 1
jne 0x1012331
jmp 0x1012245
ret
Function at 0x101267e
Capabilities:
Create process on windows

Disassembly:
push 0x298
push 0x1016498
call fcn.01009684
xor esi, esi
mov dword [ebp - 0x250], esi
call fcn.01010a36
test eax, eax
je 0x101280c
push 0x44
push esi
lea eax, [ebp - 0x2a8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x264]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24c]
push eax
push esi
call fcn.01011d80
mov dword [ebp - 0x248], eax
cmp eax, esi
jne 0x10126e1
mov eax, 0x80200001
jmp 0x1012812
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10126e4
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x24]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 4], esi
mov eax, edi
call fcn.01014a80
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x254], ebx
mov dword [ebp - 4], 0xfffffffe
mov esi, 0x100304c
push esi
push edi
push ebx
call fcn.010050b7
push 0x1003044
push dword [ebp - 0x24c]
push ebx
call fcn.01004458
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push ebx
call fcn.01004458
push 0x1003040
push dword [ebp - 0x24c]
push ebx
call fcn.01004458
push 0x113
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [ebp - 0x24c], eax
test eax, eax
jne 0x101278b
push dword [ebp - 0x248]
call fcn.01012de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1012812
push 0x1001e90
mov edi, 0x226
push edi
lea eax, [ebp - 0x244]
push eax
call fcn.01004458
push esi
push edi
lea eax, [ebp - 0x244]
push eax
call fcn.01004458
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x248]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10127eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x250], eax
jmp 0x1012801
push dword [ebp - 0x264]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x260]
call esi
push dword [ebp - 0x248]
call fcn.01012de0
mov eax, dword [ebp - 0x250]
lea esp, [ebp - 0x2b8]
call fcn.010096cc
ret

Function at 0x1012d54
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [0x101cef0], esi
jne 0x1012d96
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ecx, eax
shl eax, 0xc
push eax
shl ecx, 6
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x101cef0], eax
cmp eax, esi
jne 0x1012d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x401120
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
push eax
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401196
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], str.WindowsService_in_OnStart
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 8
call fcn.004122cd
add esp, 4
test eax, eax
je 0x4011af
mov dword [eax], 0x401210
mov dword [eax + 4], edi
jmp 0x4011b1
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x10
push eax
push 0x4019c0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x4011ea
push 0
call fcn.00412271
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0x431b3c
lea eax, [ebp - 0x10]
push eax
call fcn.00414cdf
int3

Function at 0x401380
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, ebx
je 0x4013cc
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 8]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push 4
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.WindowsService_in_OnStop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [esi + 0x30]
mov ecx, 1
mov dword [esi + 0x28], ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4013fd
mov ebx, str.Stop
mov edi, str.Socket_Service
mov byte [eax + 1], cl
call fcn.004101e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
test eax, eax
je 0x401427
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x431b3c
lea eax, [ebp - 4]
push eax
call fcn.00414cdf
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x400
call fcn.004109a4
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401ace
push esi
call fcn.00412271
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401b0d
push esi
call fcn.00412271
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401ab3
push edi
xor edi, edi
cmp dword [esi], ebx
jbe 0x401b5f
lea ebx, [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401b72
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x401b46
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00412271
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edi + 4]
push esi
push eax
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x402e15
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push esi
mov dword [ebp - 4], edx
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 0x402e20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
push str._s_failed_w_err_0x_08lx
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004026c0
mov edx, dword [edi + 4]
add esp, 0xc
xor ebx, ebx
push edx
push ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x402ea4
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x214]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp - 0x20c]
push esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d6c
mov esp, ebp
pop ebp
ret 4
Function at 0x402ec0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x402f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42f768
call fcn.004126ed
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004126ed
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0x42f484
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Wondershare_Install_Assist_Service
push 0x42fff8
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x402f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
jmp 0x402fd2
lea edx, [ebp - 0x210]
push edx
push 1
push esi
mov dword [ebp - 0x210], str.Wondershare_Install_Assist_Service
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x42fff8
push str._s_is_installed._n
call fcn.004126ed
add esp, 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed_w_err_0x_08lx_n
call fcn.004126ed
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402fea
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
push 0xf003f
push eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x403061
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004126ed
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d6c
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push 0x42fff8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40308a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x40313b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403118
push ebx
push 0x42fff8
push str.Stopping__s.
call fcn.004126ed
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x4030f5
cmp dword [ebp - 0x1c], 3
jne 0x4030f5
push 0x42f918
call fcn.004126ed
add esp, 4
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x4030d0
cmp dword [ebp - 0x1c], 1
pop ebx
push 0x42fff8
jne 0x403108
push 0x42f91c
jmp 0x40310d
push str._n_s_failed_to_stop._n
call fcn.004126ed
mov edi, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403131
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x40313b
push 0x42fff8
push str._s_is_removed._n
call fcn.004126ed
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x403153
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00411d6c
mov esp, ebp
pop ebp
ret