joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c55c
Capabilities:
Check if file exists
Copy file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x6f
push 0
push 0
dec ecx
jne 0x54c565
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
mov eax, dword [ebp - 8]
call fcn.00405bbc
mov eax, dword [ebp + 0xc]
call fcn.00405bbc
lea eax, [ebp - 0x38]
mov edx, dword [0x4c1a30]
call fcn.00406514
xor eax, eax
push ebp
push 0x54d425
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x39], 1
mov ecx, 0x54d444
mov dl, 1
mov eax, dword [0x551f78]
call fcn.00551fe0
mov edi, eax
mov ecx, 0x54d454
mov dl, 1
mov eax, dword [0x551f78]
call fcn.00551fe0
mov dword [ebp - 0x50], eax
mov eax, dword [ebx]
mov esi, dword [eax]
xor ebx, ebx
mov byte [ebp - 0x59], 0
call fcn.0054e1e0
xor edx, edx
push ebp
push 0x54d3bd
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0054b7d4
jmp 0x54c672
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [esi + 0x60]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0x270]
call fcn.004fe438
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.0040a51c
mov eax, dword [ebp - 0x26c]
push eax
lea edx, [ebp - 0x274]
mov eax, dword [ebp - 4]
call fcn.0040a51c
mov edx, dword [ebp - 0x274]
pop eax
call fcn.00405b64
jne 0x54c671
lea eax, [ebp - 0x38]
mov edx, ebx
add edx, edx
add edx, edx
add edx, edx
sub edx, ebx
mov ecx, dword [esi + 0x60]
lea edx, [ecx + edx*4]
mov ecx, dword [0x4c1a30]
call fcn.00406740
inc ebx
mov eax, dword [esi + 0x60]
call fcn.00406d0c
cmp ebx, eax
jl 0x54c603
mov eax, dword [esi + 0x60]
call fcn.00406d0c
cmp ebx, eax
jle 0x54c694
call fcn.00405140
jmp 0x54d3c4
lea edx, [ebp - 0x278]
mov eax, dword [ebp - 0x34]
call fcn.004fe438
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0x34]
call fcn.004057d4
lea edx, [ebp - 0x27c]
mov eax, dword [ebp - 0x28]
call fcn.004fe438
mov edx, dword [ebp - 0x27c]
lea eax, [ebp - 0x28]
call fcn.004057d4
mov eax, dword [ebp - 0x34]
call fcn.00405bcc
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x1c]
call fcn.00405bcc
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x28]
call fcn.00405bcc
mov dword [ebp - 0x260], eax
xor ebx, ebx
lea ecx, [ebp - 0x280]
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.00544064
mov eax, dword [ebp - 0x280]
lea edx, [ebp - 0x18]
call fcn.004fe438
jmp 0x54ca01
Function at 0x550b38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
mov eax, dword [ebp - 8]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x550cdb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
mov edx, 0x550cf4
mov eax, dword [ebp - 4]
call fcn.004fe830
mov eax, dword [ebp - 0xc]
call fcn.0040b500
test al, al
jne 0x550bd5
lea ecx, [ebp - 0xc]
mov edx, 0x550d08
mov eax, dword [ebp - 4]
call fcn.004fe830
mov eax, dword [ebp - 0xc]
call fcn.0040b500
test al, al
jne 0x550bd5
lea eax, [ebp - 0x68]
call fcn.0040ba24
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0xc]
mov edx, 0x550cf4
call fcn.004fe830
mov eax, dword [ebp - 0xc]
call fcn.0040b500
test al, al
jne 0x550bd5
mov dword [ebp - 0x10], 0x20000004
cmp dword [ebp - 0x10], 0
jne 0x550cb3
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b7c
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0xa
mov eax, dword [ebp - 0xc]
call fcn.0040b500
test al, al
je 0x550cb3
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000020
push 0
push 0
push 0
push dword [ebp - 0xc]
push 0x550d20
push 0x550d2c
push dword [ebp - 8]
push 0x550d2c
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.00405ad0
mov eax, dword [ebp - 0x6c]
call fcn.00405bcc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x550cb3
xor eax, eax
push ebp
push 0x550cac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550cb3
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550ce2
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00405760
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405760
ret
Function at 0x550d30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, 0x550e44
call fcn.00405790
mov eax, esi
call fcn.0040b500
test al, al
je 0x550e33
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00405bcc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x550e33
mov eax, ebx
call fcn.00402f38
mov dword [ebp - 0xc], eax
push ebp
push 0x550e2c
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x550e16
mov eax, dword [ebp - 0xc]
mov esi, eax
mov edx, ebx
sub edx, 0x34
test edx, edx
jle 0x550dc2
mov esi, eax
cmp dword [esi], 0xfeef04bd
je 0x550dc2
inc eax
dec edx
jne 0x550db4
cmp dword [esi], 0xfeef04bd
jne 0x550e16
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, word [esi + 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [esi + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
movzx eax, word [esi + 0xc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x2c]
mov ecx, 3
mov eax, 0x550e58
call fcn.0040c558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550e33
mov eax, dword [ebp - 0xc]
call fcn.00402f54
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x551930
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x551aee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 8]
mov eax, 0x551b08
call fcn.004fe788
mov eax, dword [ebp - 8]
call fcn.00405bcc
push eax
call sub.kernel32.dll_DeleteFileA
push 0x551b14
push dword [ebp - 4]
push 0x551b30
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00405ad0
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00550b38
mov eax, dword [ebp - 8]
call fcn.0040b500
test al, al
je 0x551ac6
mov eax, dword [ebp - 8]
call fcn.004fe9cc
mov ebx, eax
lea esi, [ebx + 2]
mov eax, esi
call fcn.00402f38
mov dword [ebp - 0x18], eax
mov edx, esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
call fcn.00403b7c
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41b160]
call fcn.00420338
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x551abf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dl, 1
mov eax, dword [0x41af60]
call fcn.004047b0
mov esi, eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.00406978
mov edx, dword [ebp - 0x24]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x551a73
inc ebx
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec ebx
jne 0x551a53
mov eax, esi
call fcn.004047e0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551ac6
mov eax, dword [ebp - 0x14]
call fcn.004047e0
mov eax, dword [ebp - 0x18]
call fcn.00402f54
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
mov eax, dword [ebp - 8]
call fcn.00405bcc
push eax
call sub.kernel32.dll_DeleteFileA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551af5
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405760
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405760
ret
Function at 0x551bb4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x551d2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
xor edx, edx
mov eax, 0xf
call fcn.004c1604
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x551d08
xor eax, eax
push ebp
push 0x551d01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.004c1624
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x551cdb
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.0040a798
mov eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.004059ac
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.0040a798
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405b64
jne 0x551cc7
mov ecx, dword [ebp - 0x12c]
xor edx, edx
mov eax, 1
call fcn.00551d40
mov esi, eax
test esi, esi
jne 0x551cad
mov dword [ebp - 8], 5
call fcn.00405140
jmp 0x551d08
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x551cc1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.004c1644
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x551c3d
mov dword [ebp - 8], 0x7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551d08
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551d35
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.00405760
lea eax, [ebp - 4]
call fcn.0040573c
ret
Function at 0x551d40
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff44
mov ebp, ecx
mov edi, edx
mov esi, eax
push ebp
push edi
push esi
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
jne 0x551ea1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 5
jne 0x551ea1
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x18]
not eax
cmp eax, 2
jne 0x551d99
mov ebx, 5
jmp 0x551ea1
mov dword [esp], 0x10
lea eax, [esp + 4]
push eax
push 0
push 0x28
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x551de5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x3f0
jne 0x551ea1
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x551ea1
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa8], 2
lea eax, [esp + 0xa0]
push eax
push 0x551eb0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
push esp
lea eax, [esp + 0xb0]
push eax
push 0x10
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
jne 0x551e45
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x551ea1
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x514
jne 0x551e64
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x551ea1
push ebp
push edi
push esi
call sub.kernel32.dll_OpenProcess
mov ebx, eax
xor eax, eax
mov dword [esp], eax
push esp
push 0
push 0x10
lea eax, [esp + 0xb8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jne 0x551ea1
push 5
call sub.kernel32.dll_SetLastError
mov eax, ebx
add esp, 0xbc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5521b8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [ebx + 8], 0
je 0x5522a9
mov dword [ebp - 4], 4
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x552200
call sub.kernel32.dll_GetLastError_1
mov cl, 1
mov edx, eax
mov eax, ebx
call fcn.00552068
jmp 0x5522a9
push 0xf01ff
mov eax, dword [ebx + 4]
call fcn.00405bcc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x552232
call sub.kernel32.dll_GetLastError_1
mov cl, 2
mov edx, eax
mov eax, ebx
call fcn.00552068
jmp 0x5522a9
xor eax, eax
push ebp
push 0x5522a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x552258
call fcn.00405140
jmp 0x5522a9
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5522a9
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5522b4
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x24]
push ecx
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x552329
call sub.kernel32.dll_GetLastError_1
mov edx, eax
sub edx, 0x425
je 0x552302
dec edx
jne 0x55230e
jmp 0x552333
push 0x7d0
call sub.kernel32.dll_Sleep_2
jmp 0x55231c
mov cl, 6
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00552068
jmp 0x552333
inc esi
movzx eax, si
imul eax, eax, 0x64
push eax
call sub.kernel32.dll_Sleep_2
test bl, bl
jne 0x552333
cmp si, 0x14
jbe 0x5522d6
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x552370
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EnumDependentServicesA
mov eax, dword [ebp - 0x14]
add eax, 0x64
call fcn.00402f38
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x552489
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EnumDependentServicesA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5523ec
call fcn.00405140
jmp 0x552494
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x552473
inc eax
mov dword [ebp - 0x28], eax
push 0x24
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 8], 0
jne 0x552430
call sub.kernel32.dll_GetLastError_1
mov cl, 0xa
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00552068
call fcn.00405140
jmp 0x552494
xor eax, eax
push ebp
push 0x552463
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0055249c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55246a
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552490
mov eax, dword [ebp - 0x1c]
call fcn.00402f54
ret
movzx eax, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x55249c
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov esi, edx
mov edi, eax
lea ebp, [esp + 0xc]
xor ebx, ebx
mov eax, ebp
xor ecx, ecx
mov edx, 0x1c
call fcn.00403b7c
push ebp
mov edx, dword [esi]
mov ecx, 1
mov eax, edi
call fcn.005522b4
test al, al
je 0x552597
push 0x7d0
call sub.kernel32.dll_Sleep_2
push ebp
mov eax, dword [esi]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp + 8], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [esp], eax
jmp 0x55257a
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
jmp 0x55252f
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
push 0x3e8
call sub.kernel32.dll_Sleep_2
push ebp
mov eax, dword [esi]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp + 4], 1
jne 0x55252f
mov bl, 1
jmp 0x55253b
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp eax, dword [ebp + 0x18]
jb 0x552506
test bl, bl
jne 0x552597
push ebp
mov eax, dword [esi]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp + 0x14]
cmp eax, dword [esp + 4]
jae 0x55255a
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 8]
je 0x55255e
xor ebx, ebx
jmp 0x552560
mov bl, 1
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp + 8], eax
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
cmp dword [ebp + 4], 1
je 0x552597
test bl, bl
jne 0x552597
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esp]
cmp eax, 0x1d4c0
jb 0x5524fd
cmp dword [ebp + 4], 1
sete al
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5525a8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
cmp byte [ebx + 8], 0
je 0x5526fd
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5525e8
call sub.kernel32.dll_GetLastError_1
mov cl, 3
mov edx, eax
mov eax, ebx
call fcn.00552068
jmp 0x5526fd
push 0xf01ff
mov eax, dword [ebx + 4]
call fcn.00405bcc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x55261d
call sub.kernel32.dll_GetLastError_1
mov cl, 4
mov edx, eax
mov eax, ebx
call fcn.00552068
jmp 0x5526fd
mov eax, dword [ebx + 4]
call fcn.00552340
test al, al
je 0x552636
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00552370
xor edx, edx
push ebp
push 0x5526f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x1c
call fcn.00403b7c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x55268c
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
je 0x552685
mov cl, 5
mov edx, eax
mov eax, ebx
call fcn.00552068
call fcn.00405140
jmp 0x5526fd
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x5526b7
cmp eax, 3
je 0x5526b7
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0055249c
mov byte [ebp - 1], al
jmp 0x5526be
cmp eax, 1
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5526fd
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [0x55ab88]
mov eax, dword [eax]
call fcn.0047bd68
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x552708
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x55275d
call sub.kernel32.dll_GetLastError_1
mov edx, eax
sub edx, 0x420
je 0x552767
mov cl, 9
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00552068
jmp 0x552767
test bl, bl
jne 0x552767
cmp si, 0x14
jbe 0x55271b
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4