joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e023db5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x2e023e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 8]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x2e042058
lea eax, [ebp + 8]
push eax
call fcn.2e02ef14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x2e023de0
lea eax, [esi + 1]
push eax
call fcn.2e030056
pop ecx
mov dword [edi], eax
cmp eax, ebx
jne 0x2e023e31
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x2e044b40
lea eax, [ebp + 0xb]
jmp 0x2e023dfc
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2e023de0
mov eax, dword [edi]
push dword [ebp + 8]
mov byte [esi + eax], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x2e0260c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x2e0498c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x103
xor ebx, ebx
push esi
mov edi, ecx
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x2e026126
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x110]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x2e042058
lea eax, [ebp - 0x10c]
push eax
call fcn.2e02ef14
inc dword [ebp - 0x10c]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push 0x2e008e58
push esi
push edi
call fcn.2e025ffe
add esp, 0x14
test eax, eax
jl 0x2e026170
push ebx
push ebx
push 1
push ebx
push ebx
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x2e026181
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x2e026126
jmp 0x2e02618f
push 0x2e008e18
mov ecx, 0x2e049420
call fcn.2e025fc5
jmp 0x2e02618f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.2e02601d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e02f873
leave
ret
Function at 0x2e029c94
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x2e0498c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, edx
push esi
mov dword [ebp - 0x10c], edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2e029cb6
sub eax, esi
cmp eax, 2
je 0x2e029d7e
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push edx
call esi
test eax, eax
jne 0x2e029d7e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x2e029d7c
cmp eax, 3
je 0x2e029d1c
push eax
lea ecx, [ebp - 0x110]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x2e042058
lea eax, [ebp - 0x10c]
push eax
call fcn.2e02ef14
push 0xffffffffffffffff
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.2e030082
add esp, 0x10
cmp eax, 0x50
jne 0x2e029d41
push 0x7b
jmp 0x2e029cf8
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.2e03067b
pop ecx
pop ecx
test eax, eax
je 0x2e029d3d
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.2e029c94
push 0
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x2e029d7c
call edi
cmp eax, ebx
jne 0x2e029cf7
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e02f873
leave
ret 4

Function at 0x2e02a495
Capabilities:
Create restart manager session

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp byte [esi + 0x46], 0
je 0x2e02a4bf
lea ecx, [ebp - 2]
call fcn.2e0195d9
mov al, byte [eax]
mov byte [ebp - 1], al
push 0x2e0436ec
lea eax, [ebp - 1]
push eax
call fcn.2e02ef14
lea eax, [esi + 4]
push eax
push 0
push esi
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
je 0x2e02a4e7
push eax
lea ecx, [ebp - 0xc]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp - 8], eax
push 0x2e042058
lea eax, [ebp - 8]
jmp 0x2e02a4b9
mov byte [esi + 0x46], 1
pop esi
leave
ret
Function at 0x2e02f873
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e0498c4]
jne 0x2e035206
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e04b168], eax
mov dword [0x2e04b164], ecx
mov dword [0x2e04b160], edx
mov dword [0x2e04b15c], ebx
mov dword [0x2e04b158], esi
mov dword [0x2e04b154], edi
mov word [0x2e04b180], ss
mov word [0x2e04b174], cs
mov word [0x2e04b150], ds
mov word [0x2e04b14c], es
mov word [0x2e04b148], fs
mov word [0x2e04b144], gs
pushfd
pop dword [0x2e04b178]
mov eax, dword [ebp]
mov dword [0x2e04b16c], eax
mov eax, dword [ebp + 4]
mov dword [0x2e04b170], eax
lea eax, [ebp + 8]
mov dword [0x2e04b17c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e04b0b8], 0x10001
mov eax, dword [0x2e04b170]
mov dword [0x2e04b06c], eax
mov dword [0x2e04b060], 0xc0000409
mov dword [0x2e04b064], 1
mov eax, dword [0x2e0498c4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e0498c8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e04b0b0], eax
push 1
call fcn.2e034461
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e00a3e8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e04b0b0], 0
jne 0x2e0352f2
push 1
call fcn.2e034461
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x2e030137
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x2e030168
call fcn.2e032f65
mov dword [eax], esi
call fcn.2e032f52
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.2e02f461
add esp, 0x14
push 0x16
pop eax
jmp 0x2e0301bd
test dword [ebp + 0xc], 0xfffffff9
jne 0x2e030144
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x2e030195
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.2e032f78
pop ecx
call fcn.2e032f52
mov eax, dword [eax]
jmp 0x2e0301bd
test al, 0x10
jne 0x2e0301bb
test al, 1
je 0x2e0301bb
test byte [ebp + 0xc], 2
je 0x2e0301bb
call fcn.2e032f65
mov dword [eax], 5
call fcn.2e032f52
mov dword [eax], 0xd
jmp 0x2e03018c
xor eax, eax
pop esi
pop ebp
ret
Function at 0x2e0393b8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.2e0323cb
and dword [ebp - 4], 0
cmp dword [0x2e04b3c8], 0
mov ebx, eax
jne 0x2e039469
push 0x2e00a50c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e03951a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e00a500
push edi
call esi
test eax, eax
je 0x2e03951a
push eax
call fcn.2e032359
mov dword [esp], 0x2e00a4f0
push edi
mov dword [0x2e04b3c8], eax
call esi
push eax
call fcn.2e032359
mov dword [esp], 0x2e00a4dc
push edi
mov dword [0x2e04b3cc], eax
call esi
push eax
call fcn.2e032359
mov dword [esp], 0x2e00a4c0
push edi
mov dword [0x2e04b3d0], eax
call esi
push eax
call fcn.2e032359
pop ecx
mov dword [0x2e04b3d8], eax
test eax, eax
je 0x2e039469
push 0x2e00a4a8
push edi
call esi
push eax
call fcn.2e032359
pop ecx
mov dword [0x2e04b3d4], eax
mov eax, dword [0x2e04b3d4]
cmp eax, ebx
je 0x2e0394c1
cmp dword [0x2e04b3d8], ebx
je 0x2e0394c1
push eax
call fcn.2e0323d4
push dword [0x2e04b3d8]
mov esi, eax
call fcn.2e0323d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e0394c1
test edi, edi
je 0x2e0394c1
call esi
test eax, eax
je 0x2e0394b8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e0394b8
test byte [ebp - 0xc], 1
jne 0x2e0394c1
or dword [ebp + 0x10], 0x200000
jmp 0x2e0394fa
mov eax, dword [0x2e04b3cc]
cmp eax, ebx
je 0x2e0394fa
push eax
call fcn.2e0323d4
pop ecx
test eax, eax
je 0x2e0394fa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e0394fa
mov eax, dword [0x2e04b3d0]
cmp eax, ebx
je 0x2e0394fa
push eax
call fcn.2e0323d4
pop ecx
test eax, eax
je 0x2e0394fa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e04b3c8]
call fcn.2e0323d4
pop ecx
test eax, eax
je 0x2e03951a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e03951c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002ad0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10018c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0
call fcn.1000dd80
push str.Parameters
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 1
call fcn.1000dd80
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 2
call fcn.1000dd80
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.1000dfa0
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.1000e100
push 0x1001a330
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x64], 4
call fcn.1000e1e0
lea ecx, [esp + 0x38]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x70], 5
call fcn.1000e100
add esp, 0x24
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call fcn.1000e0f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 5
call fcn.1000d8c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 4
call fcn.1000d8c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 3
call fcn.1000d8c0
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x1c]
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10002c1e
cmp eax, 2
jne 0x10002c77
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0x20006
push 0
push 0x1001a3f4
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x10002c77
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.10002210
add esp, 8
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call fcn.1000dfa0
lea ecx, [esp + 0x18]
call fcn.1000dc70
inc eax
push eax
push esi
push 1
push 0
lea ecx, [esp + 0x30]
call fcn.1000dd60
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10002c77
push esi
call fcn.1000f19d
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call fcn.1000d8c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.1000d8c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.1000d8c0
lea ecx, [ebp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call fcn.1000d8c0
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002cd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x410]
push esi
push edi
mov edi, dword [esp + 0x410]
push eax
push edi
mov byte [esp + 0x10], 0
call fcn.10002210
add esp, 8
push 0x400
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 8]
push edx
push edi
call fcn.100021b0
push esi
mov edi, eax
call fcn.1000f19d
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x404
ret 0xc
Function at 0x10006380
Capabilities:
Query service configuration

Disassembly:
sub esp, 8
push esi
push edi
push 4
push 0
mov esi, ecx
push 0
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000642b
push 1
lea ecx, [esi + 0x34]
call fcn.1000dd60
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x100063c6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 8
ret
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push esi
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1000ea50
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push esi
call ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x10006420
mov ecx, dword [esp + 0x14]
pop ebp
mov dword [ecx + 0x44], ebx
pop ebx
pop edi
pop esi
add esp, 8
ret
push ebx
call fcn.1000ce20
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x100064f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10018e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esp + 0x14]
call fcn.1000dd80
mov ecx, dword [0x1001a420]
mov dx, word [0x1001a424]
mov eax, dword [str.Parameters]
mov dword [esp + 0x34], ecx
lea ecx, [esi + 0x34]
push ecx
mov word [esp + 0x3c], dx
mov dword [esp + 0x34], eax
mov al, byte [0x1001a426]
lea edx, [esp + 0x2c]
push str.SYSTEMCurrentControlSetServices_
push edx
mov dword [esp + 0x50], 0
mov byte [esp + 0x46], al
call fcn.1000e2c0
push 0x1001a330
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x5c], 1
call fcn.1000e1e0
lea ecx, [esp + 0x48]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x68], 2
call fcn.1000e1e0
add esp, 0x24
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call fcn.1000e0f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.1000d8c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.1000d8c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.1000d8c0
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x1c]
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000660c
cmp eax, 2
jne 0x10006663
sub esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.1000ddc0
mov ecx, esi
call fcn.10006450
test eax, eax
mov dword [esp + 8], eax
je 0x10006663
add esi, 0x18
mov ecx, esi
call fcn.1000dc70
inc eax
push eax
call fcn.1000ea50
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.1000dd60
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.1000dc70
mov ecx, dword [esp + 8]
inc eax
push eax
push edi
push 1
push 0
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.1000ce20
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.1000d8c0
mov ecx, dword [esp + 0x3c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x40
ret
Function at 0x10006690
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push 0xa0000000
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x100066b7
xor eax, eax
jmp 0x100066da
push ebx
push 0x54
lea ecx, [edi + 0x34]
call fcn.1000dd60
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x100066d7
xor eax, eax
jmp 0x100066d9
mov eax, ebx
pop ebx
test eax, eax
mov dword [edi + 0x40], eax
je 0x1000671f
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push eax
call esi
test eax, eax
je 0x100066fa
cmp dword [esp + 0x10], 7
je 0x10006728
mov edx, dword [edi + 0x40]
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1000673d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1000673d
mov eax, dword [edi + 0x40]
push eax
call ebp
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov edx, dword [edi + 0x40]
lea ecx, [esp + 0xc]
push ecx
push 3
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10006719
mov edx, dword [edi + 0x40]
lea ecx, [esp + 0xc]
push ecx
push edx
call esi
test eax, eax
je 0x10006719
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret

Function at 0x10006760
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0xc]
push eax
push ecx
xor esi, esi
call ebp
test eax, eax
jne 0x10006786
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
cmp eax, 4
push ebx
je 0x100067c0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 1
je 0x100067c0
cmp esi, 0x14
ja 0x100067cd
push 0x1f4
call ebx
mov eax, dword [edi + 0x40]
lea edx, [esp + 0x10]
push edx
push eax
inc esi
call ebp
test eax, eax
je 0x100067c0
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x10006796
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret

Function at 0x100067e0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1000680a
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret
cmp dword [esp + 8], 4
je 0x10006822
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x10006840
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push 0x20000000
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x10006867
xor eax, eax
jmp 0x1000688a
push edi
push 0x24
lea ecx, [ebx + 0x34]
call fcn.1000dd60
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
mov edi, eax
call ebp
test edi, edi
jne 0x10006887
xor eax, eax
jmp 0x10006889
mov eax, edi
pop edi
test eax, eax
mov dword [ebx + 0x40], eax
je 0x100068a9
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100068b2
mov edx, dword [ebx + 0x40]
push edx
call ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x100068c0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0xc]
push eax
push ecx
xor esi, esi
call ebp
test eax, eax
jne 0x100068e6
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
cmp eax, 1
push ebx
je 0x10006920
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 4
je 0x10006920
cmp esi, 0x14
ja 0x1000692d
push 0x1f4
call ebx
mov eax, dword [edi + 0x40]
lea edx, [esp + 0x10]
push edx
push eax
inc esi
call ebp
test eax, eax
je 0x10006920
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x100068f6
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret

Function at 0x10006940
Capabilities:
Pause service
Query service status

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xa0000000
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000697b
push 0x44
lea ecx, [esi + 0x34]
call fcn.1000dd60
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10006983
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebp
lea eax, [esp + 0xc]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100069ab
push esi
call ebp
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0x10], 7
je 0x100069db
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop
push 0x1f4
call edi
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x100069da
cmp dword [esp + 0x14], 7
jne 0x100069c0
pop ebx
push esi
call ebp
mov ecx, dword [esp + 0x10]
pop ebp
xor eax, eax
cmp ecx, 7
pop edi
sete al
pop esi
add esp, 0x1c
ret
Function at 0x10006a10
Capabilities:
Access peb ldr_data
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10018e77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push esi
mov esi, ecx
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [esp + 0x24]
call fcn.1000dd80
push str.EventMessageFile
lea ecx, [esp + 0x1c]
mov dword [esp + 0x148], 0
call fcn.1000dd80
push str.TypesSupported
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 1
call fcn.1000dd80
push 0
lea ecx, [esp + 0xc]
mov byte [esp + 0x148], 2
call fcn.1000dd80
lea eax, [esi + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x150], 3
mov dword [esp + 0x34], 7
call fcn.1000e100
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x148], 4
call fcn.1000e0f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x144], 3
call fcn.1000d8c0
lea ecx, [esi + 0x10]
call fcn.1000dd60
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0x20006
push 0
push 0x1001a3f4
push 0
lea ecx, [esp + 0x24]
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10006b68
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [esp + 0x3c]
push ecx
push 2
push 0
lea ecx, [esp + 0x28]
call fcn.1000dd60
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push edx
call esi
push 4
lea eax, [esp + 0x2c]
push eax
push 4
push 0
lea ecx, [esp + 0x20]
call fcn.1000dd60
mov ecx, dword [esp + 0x14]
push eax
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x144], 2
call fcn.1000d8c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 1
call fcn.1000d8c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0
call fcn.1000d8c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x144], 0xffffffff
call fcn.1000d8c0
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006bd0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x10018e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea ecx, [esp + 0xc]
call fcn.1000dd80
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.1000dd60
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006c45
lea ecx, [esi + 0x34]
call fcn.1000dd60
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.1000d8c0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret