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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100732b8
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10079214]
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 0x1000f8dd
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 0x1000f8dd
mov eax, dword [ebp - 0x1c]
add eax, 8
lea ebx, [eax + ebx*2]
push 0x1007a510
push ebx
call fcn.1002dfb2
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x1000f8dd
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 0x1000f8a1
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 0x1000f876
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + ebx]
cmp edx, ecx
jne 0x1000f8dd
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.1000f900
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 0x1000f920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100732d8
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10079214]
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 0x1000fac7
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 0x1000fac7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx*2]
add eax, 8
mov dword [ebp - 0x34], eax
push 0x1007a510
push eax
call fcn.1002dfb2
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1000fac4
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 0x1000fa48
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 0x1000faa2
push str.cs_group_e
push 0x1005bc94
call fcn.10014730
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 0x1000fac4
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 0x1000faaa
push eax
push str.cs_group_f
push 0x1005bc94
call fcn.10014850
add esp, 0xc
mov edi, 3
jmp 0x1000fac1
mov esi, dword [ebp - 0x1c]
jmp 0x1000fa01
push str.cs_group_s
push 0x1005bc94
call fcn.10014730
add esp, 8
mov edi, 2
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.1000faef
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 0x10010cc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10079214]
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 0x10010cf5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002deb9
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 0x10010d45
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10010d20
jmp 0x10010d4a
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.1002deb9
mov esp, ebp
pop ebp
ret

Function at 0x10010e20
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10073338
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10079214]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push str.AddServiceToGroup
call fcn.10004bd0
add esp, 4
mov esi, dword [ebp + 0xc]
push esi
mov edi, dword [ebp + 8]
push edi
call fcn.1000f7a0
push str.CreateOrOpenService
call fcn.10004bd0
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
push esi
push edi
call fcn.10011190
test eax, eax
je 0x10010f2f
cmp dword [ebp - 0x1c], 0
je 0x10010edd
push str.ModifyServiceConfig
call fcn.10004bd0
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push dword [ebp - 0x1c]
call fcn.10012700
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10010eed
push dword [ebp + 0x18]
push eax
call fcn.10012800
push str.StartService
call fcn.10004bd0
add esp, 4
push 0
push 0
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10010f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___d_
call fcn.10004bd0
add esp, 8
push str.CreateLudashiService_suc
call fcn.10004bd0
add esp, 4
jmp 0x10010f32
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xfffffffe
call fcn.10010f57
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10010fb0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10073358
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10079214]
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 - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
push str.AddServiceToGroup
call fcn.10004bd0
add esp, 4
mov esi, dword [ebp + 0xc]
push esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.1000f920
mov dword [ebp + 0xc], eax
push str.CreateOrOpenService
call fcn.10004bd0
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.100113e0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x1001110f
cmp dword [ebp - 0x1c], edi
je 0x10011066
push str.ModifyServiceConfig
call fcn.10004bd0
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
call fcn.10012700
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10011076
push dword [ebp + 0x18]
push eax
call fcn.10012800
push str.StartService
call fcn.10004bd0
add esp, 4
push 0
push 0
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100110d5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.cs_start_svc_f
push 0x1005bc94
call fcn.10014850
add esp, 0xc
call esi
push eax
push str.StartService___d_
call fcn.10004bd0
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s2
push dword [ebp + 0x24]
call fcn.10004e90
add esp, 0x18
jmp 0x100110e9
push esi
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s1
push dword [ebp + 0x24]
call fcn.10004e90
add esp, 0x10
push str.cs_done
push 0x1005bc94
call fcn.10014730
mov edi, 1
mov dword [ebp - 0x28], edi
push str.CreateLudashiService_suc
call fcn.10004bd0
add esp, 0xc
jmp 0x10011112
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001113a
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 0x10011190
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100732f8
push 0x10031af0
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x10079214]
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 ebx, dword [ebp + 0x18]
mov dword [ebp - 0x43c], ebx
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x440], edi
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 [ebx], esi
mov dword [edi], esi
mov dword [ecx], esi
push 0x200
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.10031950
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 0x1001128a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___d_
call fcn.10004bd0
add esp, 8
jmp 0x1001136d
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 [ebx], eax
test eax, eax
jne 0x100112da
push 0xf01ff
push dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebx], eax
push 0x200
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.10031950
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 edi
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
je 0x1001133b
push eax
push str.RegOpenKeyEx___d_
call fcn.10004bd0
add esp, 8
jmp 0x1001136d
push dword [ebp - 0x428]
push str.Parameters
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10011362
push eax
push str.RegCreateKey___d_
call fcn.10004bd0
add esp, 8
jmp 0x1001136d
mov esi, 1
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
call fcn.100113c3
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.1002deb9
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10012090
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057110
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10079214]
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.1000dc50
mov ecx, eax
call fcn.1000b850
test eax, eax
je 0x100121cd
lea eax, [ebp - 0x34]
push eax
call fcn.1000dc50
mov ecx, eax
call fcn.1000b7f0
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x100120f8
xor esi, esi
jmp 0x100121ac
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.1000dc50
mov ecx, eax
call fcn.1000b790
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.10011190
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 0x10012167
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10012197
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.100121f0
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 0x100121cb
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.1002deb9
mov esp, ebp
pop ebp
ret 4
Function at 0x100123c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005715f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10079214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.LudashiServiceMain
call fcn.10004bd0
mov eax, dword [0x1007a4b0]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10012408
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x1007a4b0], eax
call fcn.1000dc50
mov ecx, eax
call fcn.1000b850
test eax, eax
jne 0x1001243d
push str.LudashiServiceMain_init_fail
call fcn.10004bd0
add esp, 4
jmp 0x100125dd
push 0
push 0
push dword [0x1007a4b0]
push 0x10015290
push 0
push 0
call fcn.10038ef7
add esp, 0x18
push eax
call esi
push str.ServiceMain
call fcn.10004bd0
mov ecx, dword [0x1007a48c]
add esp, 4
test ecx, ecx
jne 0x100124cc
push 0x10078004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1007a48c], 0
jne 0x100124bb
push 0x14
call fcn.1002db0a
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100124a9
mov ecx, eax
call fcn.1000b640
mov ecx, eax
jmp 0x100124ab
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x30], eax
mov dword [0x1007a48c], ecx
push 0x10078004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1007a48c]
lea eax, [ebp - 0x34]
push eax
call fcn.1000b7f0
mov dword [ebp - 4], 1
push 0x10014960
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [0x1007a4ac], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10012510
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x1007a4ac], 0
jne 0x1001252b
push str.SvcHostDLL_RegisterServiceCtrlHandler_failed
call fcn.10004bd0
add esp, 4
jmp 0x100125dd
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [0x1007a4ac]
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 7
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 [0x1007a4b4]
test eax, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
mov edx, 2
mov dword [ebp - 0x28], 4
push eax
push dword [0x1007a4ac]
cmovne ecx, edx
mov dword [ebp - 0x24], 7
mov dword [0x1007a4b4], 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 [0x1007a4b4]
test eax, eax
mov edx, 4
cmovne ecx, edx
mov dword [0x1007a4b4], 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.1002deb9
mov esp, ebp
pop ebp
ret 8
Function at 0x10012700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10079214]
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.10031950
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.1002deb9
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10012800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10079214]
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.10031950
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.1002deb9
mov esp, ebp
pop ebp
ret 8
Function at 0x100129c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x10079214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x250
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x674]
push 0
push eax
mov dword [ebp - 0x67c], ebx
call fcn.10031950
add esp, 0xc
xor eax, eax
test esi, esi
je 0x10012b33
test ebx, ebx
je 0x10012b33
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push ebx
push eax
call edi
test eax, eax
je 0x10012b30
push dword [ebp - 0x678]
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x10012b30
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10012b30
nop dword [eax + eax]
push dword [ebp - 0x67c]
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x10012afb
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x10012afb
test dword [ebp - 0x674], 0x10
jne 0x10012ac2
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.10012250
jmp 0x10012afb
cmp word [ebp - 0x648], 0x2e
jne 0x10012ae8
mov ax, word [ebp - 0x646]
test ax, ax
je 0x10012afb
cmp ax, 0x2e
jne 0x10012ae8
cmp word [ebp - 0x644], 0
je 0x10012afb
push dword [ebp - 0x678]
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.100129c0
lea ecx, [ebp - 0x674]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10012a70
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002deb9
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002deb9
mov esp, ebp
pop ebp
ret 0xc