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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087637
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100bc1b4]
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 ebx, ecx
mov esi, dword [ebp + 8]
call fcn.1000b580
mov ecx, eax
test ecx, ecx
je 0x10023ae4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x10023a07
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.10052020
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
push eax
call fcn.10017690
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10023a62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10023a62
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100592a0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x24]
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023a40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10012540
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10023a77
lea ebx, [eax + 1]
jmp 0x10023aa2
push dword [ebp - 0x21c]
push 1
push dword [esi + 0x2c]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.AutoStart2___d
call fcn.1000b130
xor ebx, ebx
add esp, 8
test esi, esi
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10023ac4
mov ecx, dword [eax]
push eax
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.100536aa
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000b090
int3
Function at 0x10024340
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa610
push 0x10059440
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100bc1b4]
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.100592a0
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 0x10024403
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.10024435
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.100536aa
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10024450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa5f0
push 0x10059440
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100bc1b4]
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.100592a0
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 0x1002452c
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.1002455c
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.100536aa
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100276f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100bc1b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], 0x630063
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x1c]
mov eax, 0x100be148
mov dword [ebp - 0x18], 0x6f006d
mov dword [ebp - 0x14], 0x730075
mov edx, 0xb
mov dword [ebp - 0x10], 0x530065
sub esi, eax
mov dword [ebp - 0xc], 0x630076
nop dword [eax]
lea ecx, [edx + 0x7ffffff3]
test ecx, ecx
je 0x1002775e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1002775e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10027740
test edx, edx
lea ecx, [eax - 2]
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100536aa
mov esp, ebp
pop ebp
ret

Function at 0x10027960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100bc1b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x6c0042
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x100be188
mov dword [ebp - 0x1c], 0x650075
mov dword [ebp - 0x18], 0x680077
mov edx, 0xd
mov dword [ebp - 0x14], 0x6c0061
sub esi, eax
mov dword [ebp - 0x10], 0x530065
mov dword [ebp - 0xc], 0x630076
lea ecx, [edx + 0x7ffffff1]
test ecx, ecx
je 0x100279ce
movzx ecx, word [esi + eax]
test cx, cx
je 0x100279ce
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x100279b0
test edx, edx
lea ecx, [eax - 2]
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100536aa
mov esp, ebp
pop ebp
ret

Function at 0x10027b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100bc1b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], 0x6f0064
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x1c]
mov eax, 0x100be0a4
mov dword [ebp - 0x18], 0x70006c
mov dword [ebp - 0x14], 0x690068
mov edx, 0xb
mov dword [ebp - 0x10], 0x53006e
sub esi, eax
mov dword [ebp - 0xc], 0x630076
nop dword [eax]
lea ecx, [edx + 0x7ffffff3]
test ecx, ecx
je 0x10027bce
movzx ecx, word [esi + eax]
test cx, cx
je 0x10027bce
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10027bb0
test edx, edx
lea ecx, [eax - 2]
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100536aa
mov esp, ebp
pop ebp
ret
Function at 0x10029660
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa7c0
push 0x10059440
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100bc1b4]
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 0x1002979d
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 0x1002979d
mov eax, dword [ebp - 0x1c]
add eax, 8
lea ebx, [eax + ebx*2]
push 0x100be58e
push ebx
call fcn.10053800
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x1002979d
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 0x10029761
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 0x10029736
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + ebx]
cmp edx, ecx
jne 0x1002979d
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.100297c0
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 0x100297e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa7e0
push 0x10059440
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100bc1b4]
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 0x10029987
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 0x10029987
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx*2]
add eax, 8
mov dword [ebp - 0x34], eax
push 0x100be58e
push eax
call fcn.10053800
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10029984
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 0x10029908
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 0x10029962
push str.cs_group_e
push 0x1008fd28
call fcn.1002f1e0
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 0x10029984
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 0x1002996a
push eax
push str.cs_group_f
push 0x1008fd28
call fcn.1002f300
add esp, 0xc
mov edi, 3
jmp 0x10029981
mov esi, dword [ebp - 0x1c]
jmp 0x100298c1
push str.cs_group_s
push 0x1008fd28
call fcn.1002f1e0
add esp, 8
mov edi, 2
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.100299af
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 0x1002abf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100bc1b4]
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 0x1002ac25
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100536aa
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 0x1002ac75
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1002ac50
jmp 0x1002ac7a
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.100536aa
mov esp, ebp
pop ebp
ret

Function at 0x1002ae80
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa860
push 0x10059440
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100bc1b4]
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.100297e0
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.1002b250
mov ebx, eax
test ebx, ebx
je 0x1002af8c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1002af0e
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 8]
push eax
call fcn.1002cbb0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1002af1e
push dword [ebp + 0x18]
push eax
call fcn.1002ccb0
push 0
push 0
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1002af5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cs_start_svc_f
push 0x1008fd28
call fcn.1002f300
push ebx
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s2
push dword [ebp + 0x24]
call fcn.1000b450
add esp, 0x1c
jmp 0x1002af70
push ebx
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s1
push dword [ebp + 0x24]
call fcn.1000b450
add esp, 0x10
push str.cs_done
push 0x1008fd28
call fcn.1002f1e0
add esp, 8
mov edi, 1
mov dword [ebp - 0x28], edi
jmp 0x1002af8f
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.1002afb7
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 0x1002b000
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa800
push 0x10059440
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100bc1b4]
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.100592a0
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 0x1002b0fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___d_
call fcn.1000b130
add esp, 8
jmp 0x1002b1dd
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 0x1002b14a
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.100592a0
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 0x1002b1ab
push eax
push str.RegOpenKeyEx___d_
call fcn.1000b130
add esp, 8
jmp 0x1002b1dd
push dword [ebp - 0x428]
push str.Parameters
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1002b1d2
push eax
push str.RegCreateKey___d_
call fcn.1000b130
add esp, 8
jmp 0x1002b1dd
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.1002b233
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.100536aa
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1002bef0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100889d0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100bc1b4]
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.100240f0
mov ecx, eax
call fcn.1001d080
test eax, eax
je 0x1002c02d
lea eax, [ebp - 0x34]
push eax
call fcn.100240f0
mov ecx, eax
call fcn.1001d020
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x1002bf58
xor esi, esi
jmp 0x1002c00c
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.100240f0
mov ecx, eax
call fcn.1001cfc0
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.1002b000
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 0x1002bfc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1002bff7
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.1002c050
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 0x1002c02b
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.100536aa
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088b80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100bc1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10093998
call fcn.1000b130
add esp, 4
call fcn.1000b580
mov ecx, eax
test ecx, ecx
je 0x1002ca69
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push 0x1008e708
call fcn.1001e690
test al, al
jne 0x1002c904
push 0
push 0x1008e708
lea ecx, [ebp - 0x18]
call fcn.10012540
mov dword [ebp - 4], 1
call fcn.1000b580
mov ecx, eax
test ecx, ecx
je 0x1002ca73
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x100939a0
call fcn.1001e690
test al, al
jne 0x1002c949
push 3
push 0x100939a0
lea ecx, [ebp - 0x14]
call fcn.10012540
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd]
call fcn.10028940
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007b40
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1001e7c0
mov ecx, eax
call fcn.10031cb0
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c99d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c9bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1002c9da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100bdfb0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1002c9ec
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100bdfb0], eax
call fcn.100240f0
mov ecx, eax
call fcn.1001d080
test eax, eax
jne 0x1002ca2e
push str._init_fail
call fcn.1000b130
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push dword [0x100bdfb0]
push 0x10030070
push 0
push 0
call fcn.10061154
add esp, 0x18
push eax
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002f410
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000b090
push 0x80004005
call fcn.1000b090
int3