joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018e90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082539
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10019087
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 1
mov esi, dword [ebx + 0x24]
cmp dword [esi - 0xc], 0
jne 0x10018fbd
mov ecx, dword [0x100ad984]
test ecx, ecx
jne 0x10018f61
push 0x100ab004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100ad984], 0
jne 0x10018f50
push 4
call fcn.1004771c
mov esi, eax
add esp, 4
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x10018f39
mov ecx, esi
call fcn.10039220
mov byte [ebp - 4], 2
jmp 0x10018f3b
xor esi, esi
mov byte [ebp - 4], 1
xor ecx, ecx
lea eax, [ebp - 0x238]
lock or dword [eax], ecx
mov dword [0x100ad984], esi
push 0x100ab004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100ad984]
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.1003a650
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 8
jb 0x10018f7d
mov edx, dword [edx]
test edx, edx
jne 0x10018f85
xor ecx, ecx
jmp 0x10018f9f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018f90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.1000ffb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.10005880
jmp 0x10019012
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018ff0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.1000ffb0
push dword [ebp - 0x234]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10019027
lea ebx, [eax + 1]
jmp 0x10019042
push dword [ebp - 0x234]
push 1
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x234]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019067
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100079c0
int3
Function at 0x10019190
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3150
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], esi
push 0x200
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.100503b0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x220]
push eax
push 0x20206
push esi
lea eax, [ebp - 0x21c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10019253
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
test eax, eax
cmove esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.10019285
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100192a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3130
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.100503b0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x220]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x21c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001937c
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], 4
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], 0xfffffffe
call fcn.100193ac
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b5d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a32f0
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], 0
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push 0xf023f
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b70d
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
cmp dword [ebp - 0x24], 7
jne 0x1001b70d
mov eax, dword [ebp - 0x1c]
add eax, 8
lea ebx, [eax + ebx*2]
push 0x100adb4a
push ebx
call fcn.10047c12
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x1001b70d
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0x20]
call esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebx + ebx]
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
jae 0x1001b6d1
lea esi, [eax + edi]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001b6a6
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + ebx]
cmp edx, ecx
jne 0x1001b70d
mov esi, dword [ebp - 0x30]
lea eax, [esi + 1]
push eax
push dword [ebp + 0xc]
lea eax, [edi - 2]
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebx + esi]
add eax, eax
xor ecx, ecx
mov word [eax + edi], cx
add eax, 2
push eax
push edi
push 7
push ecx
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001b730
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001b750
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3310
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24]
push eax
push 0xf023f
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001b8f7
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
cmp dword [ebp - 0x2c], 7
jne 0x1001b8f7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx*2]
add eax, 8
mov dword [ebp - 0x34], eax
push 0x100adb4a
push eax
call fcn.10047c12
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1001b8f4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x24]
call ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
lea ecx, [ebx + ebx]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jae 0x1001b878
add esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
mov dword [ebp - 0x38], ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001b8d2
push str.cs_group_e
push 0x1008a364
call fcn.10020b50
add esp, 8
mov edi, 1
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebx + ebx]
cmp ecx, eax
jne 0x1001b8f4
mov edi, dword [ebp - 0x30]
lea eax, [edi + 1]
push eax
push dword [ebp + 0xc]
lea eax, [ecx - 2]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebx + edi]
add eax, eax
xor ecx, ecx
mov word [eax + esi], cx
add eax, 2
push eax
push esi
push 7
push ecx
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1001b8da
push eax
push str.cs_group_f
push 0x1008a364
call fcn.10020c70
add esp, 0xc
mov edi, 3
jmp 0x1001b8f1
mov esi, dword [ebp - 0x1c]
jmp 0x1001b831
push str.cs_group_s
push 0x1008a364
call fcn.10020b50
add esp, 8
mov edi, 2
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001b91f
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c920
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001c955
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
xor ebx, ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
nop word [eax + eax]
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1001c9a5
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001c980
jmp 0x1001c9aa
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.10047acb
mov esp, ebp
pop ebp
ret

Function at 0x1001cbd0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3390
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0xc]
push esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.1001b750
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.1001cf70
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x1001ccdb
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001cc5f
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
push eax
call fcn.1001e7e0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1001cc6f
push dword [ebp + 0x18]
push eax
call fcn.1001e8e0
push 0
push 0
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1001ccab
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.cs_start_svc_f
push 0x1008a364
call fcn.10020c70
add esp, 0xc
call esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s2
jmp 0x1001ccb4
push esi
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s1
push dword [ebp + 0x24]
call fcn.10007e90
add esp, 0x10
push str.cs_done
push 0x1008a364
call fcn.10020b50
add esp, 8
mov edi, 1
mov dword [ebp - 0x28], edi
jmp 0x1001ccde
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001cd06
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x1001cd50
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a3330
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x438], eax
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x43c], edi
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x440], ebx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x444], ecx
xor esi, esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], esi
mov dword [eax], esi
mov dword [edi], esi
mov dword [ebx], esi
mov dword [ecx], esi
push 0x200
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.100503b0
push dword [ebp - 0x430]
push str.__SystemRoot__System32_svchost.exe__k__s
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov eax, dword [ebp - 0x424]
mov dword [eax], ecx
test ecx, ecx
jne 0x1001ce3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001cf00
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 1
push 3
push 0x20
push 0xf01ff
push dword [ebp - 0x434]
push dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [edi], eax
test eax, eax
jne 0x1001ce8c
push 0xf01ff
push dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [edi], eax
push 0x200
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.100503b0
push dword [ebp - 0x420]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push ebx
push 0xf023f
push 0
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001cf00
push dword [ebp - 0x428]
push str.Parameters
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, 1
test eax, eax
cmove esi, ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
call fcn.1001cf56
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1001db70
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082e50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10008540
push 1
mov ecx, eax
call fcn.1003d4c0
test al, al
jne 0x1001dbb3
xor eax, eax
jmp 0x1001dcc2
call fcn.1001dfb0
mov ecx, eax
call fcn.100143d0
test eax, eax
je 0x1001dbac
lea eax, [ebp - 0x34]
push eax
call fcn.1001dfb0
mov ecx, eax
call fcn.10014360
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x1001dbed
xor esi, esi
jmp 0x1001dca1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.1001dfb0
mov ecx, eax
call fcn.100142f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [eax]
push dword [ebp - 0x34]
push str.netsvcs
call fcn.1001cd50
mov esi, eax
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001dc5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001dc8c
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 1
push esi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1001dce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1001dcc0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082faf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100ad9cc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001e4bb
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100ad9cc], eax
call fcn.10008540
push 1
mov ecx, eax
call fcn.1003d4c0
test al, al
je 0x1001e681
call fcn.1001dfb0
mov ecx, eax
call fcn.100143d0
test eax, eax
je 0x1001e681
push 0
push 0
push dword [0x100ad9cc]
push 0x10021550
push 0
push 0
call fcn.10057c6e
add esp, 0x18
push eax
call esi
mov ecx, dword [0x100ad9bc]
test ecx, ecx
jne 0x1001e57c
push 0x100ab084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100ad9bc], 0
jne 0x1001e56b
push 0x14
call fcn.1004771c
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001e555
mov ecx, eax
call fcn.10014120
jmp 0x1001e557
xor eax, eax
mov dword [ebp - 4], 0xffffffff
xor edx, edx
lea ecx, [ebp - 0x34]
lock or dword [ecx], edx
mov dword [0x100ad9bc], eax
push 0x100ab084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100ad9bc]
lea eax, [ebp - 0x30]
push eax
call fcn.10014360
mov dword [ebp - 4], 1
push 0
push 0x1001e0f0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x100ad9c8], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001e5c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x100ad9c8], 0
je 0x1001e681
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [0x100ad9c8]
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0x47
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0xbb8
call esi
mov ecx, dword [0x100ad9d0]
test eax, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
mov edx, 2
mov dword [ebp - 0x28], 4
push eax
push dword [0x100ad9c8]
cmovne ecx, edx
mov dword [ebp - 0x24], 0x47
mov dword [0x100ad9d0], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xbb8
call esi
mov ecx, dword [0x100ad9d0]
test eax, eax
mov edx, 4
cmovne ecx, edx
mov dword [0x100ad9d0], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 8
Function at 0x1001e7e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push 0x200
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.100503b0
push esi
push str.__SystemRoot__System32_svchost.exe__k__s
lea eax, [ebp - 0x204]
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
push 0
push str.ImagePath
push dword [ebp - 0x208]
call esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x208]
call esi
xor eax, eax
cmp dword [ebp + 0x14], eax
push 4
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.DelayedAutostart
push dword [ebp - 0x208]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.Description
push dword [ebp - 0x208]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1001e8e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 8]
push 0x210
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.100503b0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x107
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
push 0
push str.ServiceDll
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.ServiceMain
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10047acb
mov esp, ebp
pop ebp
ret 8