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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c2b9
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100a6204]
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.10008280
mov ecx, eax
test ecx, ecx
je 0x10018908
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 0x10018832
mov ecx, dword [0x100a7978]
test ecx, ecx
jne 0x100187dc
push 0x100a5020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a7978], 0
jne 0x100187cb
push 4
call fcn.10048f93
mov esi, eax
add esp, 4
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x100187b9
mov ecx, esi
call fcn.1003f990
mov byte [ebp - 4], 2
jmp 0x100187bb
xor esi, esi
mov byte [ebp - 4], 1
xchg dword [ebp - 0x238], eax
mov dword [0x100a7978], esi
push 0x100a5020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7978]
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.1003fe50
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 8
jb 0x100187f8
mov edx, dword [edx]
test edx, edx
jne 0x10018800
xor ecx, ecx
jmp 0x10018814
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018805
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.1000f980
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.100053f0
jmp 0x10018883
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10051fb0
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018861
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.1000f980
push dword [ebp - 0x234]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10018898
lea ebx, [eax + 1]
jmp 0x100188c3
push dword [ebp - 0x234]
push 1
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.AutoStart2___d
call fcn.10007880
xor ebx, ebx
add esp, 8
test esi, esi
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 0x100188e8
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.10049342
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100074c0
int3
Function at 0x10018b30
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d300
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100a6204]
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.10051fb0
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 0x10018bf3
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.10018c25
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.10049342
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10018c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d2e0
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100a6204]
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.10051fb0
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 0x10018d1c
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.10018d4c
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.10049342
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b010
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d470
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
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 0x1001b14d
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 0x1001b14d
mov eax, dword [ebp - 0x1c]
add eax, 8
lea ebx, [eax + ebx*2]
push 0x100a7b3a
push ebx
call fcn.10049492
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x1001b14d
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 0x1001b111
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 0x1001b0e6
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + ebx]
cmp edx, ecx
jne 0x1001b14d
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.1001b170
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 0x1001b190
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d490
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
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 0x1001b337
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 0x1001b337
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx*2]
add eax, 8
mov dword [ebp - 0x34], eax
push 0x100a7b3a
push eax
call fcn.10049492
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1001b334
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 0x1001b2b8
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 0x1001b312
push str.cs_group_e
push 0x10084604
call fcn.10020810
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 0x1001b334
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 0x1001b31a
push eax
push str.cs_group_f
push 0x10084604
call fcn.10020930
add esp, 0xc
mov edi, 3
jmp 0x1001b331
mov esi, dword [ebp - 0x1c]
jmp 0x1001b271
push str.cs_group_s
push 0x10084604
call fcn.10020810
add esp, 8
mov edi, 2
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001b35f
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 0x1001c3a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100a6204]
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 0x1001c3d5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10049342
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 0x1001c425
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001c400
jmp 0x1001c42a
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.10049342
mov esp, ebp
pop ebp
ret

Function at 0x1001c520
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d4f0
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
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.10007880
add esp, 4
mov esi, dword [ebp + 0xc]
push esi
mov edi, dword [ebp + 8]
push edi
call fcn.1001b010
push str.CreateOrOpenService
call fcn.10007880
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.1001c890
test eax, eax
je 0x1001c62f
cmp dword [ebp - 0x1c], 0
je 0x1001c5dd
push str.ModifyServiceConfig
call fcn.10007880
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push dword [ebp - 0x1c]
call fcn.1001e420
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001c5ed
push dword [ebp + 0x18]
push eax
call fcn.1001e520
push str.StartService
call fcn.10007880
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 0x1001c620
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___d_
call fcn.10007880
add esp, 8
push str.CreateLudashiService_suc
call fcn.10007880
add esp, 4
jmp 0x1001c632
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001c657
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 0x1001c6b0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d510
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
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.10007880
add esp, 4
mov esi, dword [ebp + 0xc]
push esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.1001b190
mov dword [ebp + 0xc], eax
push str.CreateOrOpenService
call fcn.10007880
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.1001cae0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x1001c80f
cmp dword [ebp - 0x1c], edi
je 0x1001c766
push str.ModifyServiceConfig
call fcn.10007880
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
push dword [ebp - 0x1c]
call fcn.1001e420
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001c776
push dword [ebp + 0x18]
push eax
call fcn.1001e520
push str.StartService
call fcn.10007880
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 0x1001c7d5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.cs_start_svc_f
push 0x10084604
call fcn.10020930
add esp, 0xc
call esi
push eax
push str.StartService___d_
call fcn.10007880
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s2
push dword [ebp + 0x24]
call fcn.10007b40
add esp, 0x18
jmp 0x1001c7e9
push esi
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s1
push dword [ebp + 0x24]
call fcn.10007b40
add esp, 0x10
push str.cs_done
push 0x10084604
call fcn.10020810
mov edi, 1
mov dword [ebp - 0x28], edi
push str.CreateLudashiService_suc
call fcn.10007880
add esp, 0xc
jmp 0x1001c812
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001c83a
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 0x1001c890
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009d4b0
push 0x10052150
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100a6204]
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.10051fb0
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 0x1001c98a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___d_
call fcn.10007880
add esp, 8
jmp 0x1001ca6d
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 0x1001c9da
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.10051fb0
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 0x1001ca3b
push eax
push str.RegOpenKeyEx___d_
call fcn.10007880
add esp, 8
jmp 0x1001ca6d
push dword [ebp - 0x428]
push str.Parameters
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1001ca62
push eax
push str.RegCreateKey___d_
call fcn.10007880
add esp, 8
jmp 0x1001ca6d
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.1001cac3
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.10049342
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1001d810
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cc00
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100a6204]
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.100081e0
push 1
mov ecx, eax
call fcn.10040970
test al, al
jne 0x1001d853
xor eax, eax
jmp 0x1001d962
call fcn.10018950
mov ecx, eax
call fcn.10013da0
test eax, eax
je 0x1001d84c
lea eax, [ebp - 0x34]
push eax
call fcn.10018950
mov ecx, eax
call fcn.10013d30
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x1001d88d
xor esi, esi
jmp 0x1001d941
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.10018950
mov ecx, eax
call fcn.10013cc0
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.1001c890
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 0x1001d8fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1001d92c
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.1001d980
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 0x1001d960
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.10049342
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cd2f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100a6204]
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.10007880
mov eax, dword [0x100a79bc]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001e0c8
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100a79bc], eax
call fcn.100081e0
push 1
mov ecx, eax
call fcn.10040970
test al, al
jne 0x1001e0ff
push str.ProductHelperSingleton_init_fail
call fcn.10007880
add esp, 4
jmp 0x1001e2c3
call fcn.10018950
mov ecx, eax
call fcn.10013da0
test eax, eax
jne 0x1001e121
push str.LudashiServiceMain_init_fail
call fcn.10007880
add esp, 4
jmp 0x1001e2c3
push 0
push 0
push dword [0x100a79bc]
push 0x100212e0
push 0
push 0
call fcn.10059644
add esp, 0x18
push eax
call esi
push str.ServiceMain
call fcn.10007880
mov ecx, dword [0x100a7974]
add esp, 4
test ecx, ecx
jne 0x1001e1b0
push 0x100a5004
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a7974], 0
jne 0x1001e19f
push 0x14
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001e18d
mov ecx, eax
call fcn.10013af0
mov ecx, eax
jmp 0x1001e18f
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x30], eax
mov dword [0x100a7974], ecx
push 0x100a5004
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7974]
lea eax, [ebp - 0x34]
push eax
call fcn.10013d30
mov dword [ebp - 4], 1
push 0
push 0x1001dcf0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x100a79b8], 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 0x1001e1f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x100a79b8], 0
jne 0x1001e211
push str.SvcHostDLL_RegisterServiceCtrlHandler_failed
call fcn.10007880
add esp, 4
jmp 0x1001e2c3
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [0x100a79b8]
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 [0x100a79c0]
test eax, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
mov edx, 2
mov dword [ebp - 0x28], 4
push eax
push dword [0x100a79b8]
cmovne ecx, edx
mov dword [ebp - 0x24], 0x47
mov dword [0x100a79c0], 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 [0x100a79c0]
test eax, eax
mov edx, 4
cmovne ecx, edx
mov dword [0x100a79c0], 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.10049342
mov esp, ebp
pop ebp
ret 8