joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58234
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58381
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x58355
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5828b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x67e78], 0
je 0x58281
mov eax, dword [0x67e78]
push eax
call sub.kernel32.dll_UnmapViewOfFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58295
xor eax, eax
mov dword [0x67e78], eax
xor eax, eax
push ebp
push 0x582c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x67e8c], 0
je 0x582be
mov eax, dword [0x67e8c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x582d2
xor eax, eax
mov dword [0x67e8c], eax
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.00059a58
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x58398
call fcn.00013e68
mov eax, dword [ebp - 8]
call fcn.00013fe0
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x67e8c], eax
cmp dword [0x67e8c], 0
je 0x5834b
push 0
push 0
push 0
push 4
mov eax, dword [0x67e8c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x67e78], eax
cmp dword [0x67e78], 0
jne 0x5834b
mov eax, dword [0x67e8c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x67e8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58366
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58388
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00013bc0
ret
Function at 0x584bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, dword [0x67e98]
call fcn.000597f4
xor eax, eax
push ebp
push 0x5860d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [0x67e98]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
push eax
call sub.kernel32.dll_ReadFile_1
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x24], eax
lea edx, [ebp - 8]
mov eax, 0x67e78
mov ecx, 4
call fcn.00012810
add dword [ebp - 8], 0x138
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp eax, dword [0x67e98]
jne 0x585ee
mov eax, dword [0x6aac8]
add eax, 0x107884
add eax, 0x400
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push 0
mov eax, dword [0x67e98]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
mov eax, dword [ebp - 8]
call fcn.000572f0
mov edx, dword [ebp + 8]
mov dword [edx - 0x28], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x28], 0
jne 0x585ee
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
xor ecx, ecx
mov edx, 0x10
call fcn.00012b38
cmp dword [0x6aac4], 7
jne 0x585c1
lea ecx, [ebp - 0x18]
mov edx, dword [0x6aac8]
add edx, 0x107884
mov eax, dword [ebp - 8]
call fcn.000508c0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
lea edi, [eax - 0x1c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov edx, 0x6aab4
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
mov ecx, 0x10
call fcn.000599cc
test al, al
je 0x585ee
mov byte [ebp - 1], 1
mov eax, 0x67e84
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x2c]
call fcn.00014208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58614
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, dword [0x67e98]
call fcn.00059830
ret

Function at 0x59b98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, 0x400
call fcn.0004fb10
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x59c2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0004f4f4
push eax
mov eax, dword [ebp - 8]
call fcn.0004f530
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x59c0c
mov eax, dword [ebp - 8]
call fcn.0004f4f4
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
cdq
cmp edx, dword [esp + 4]
jne 0x59bfb
cmp eax, dword [esp]
pop edx
pop eax
jae 0x59c0c
jmp 0x59bff
pop edx
pop eax
jge 0x59c0c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0004f510
jmp 0x59c19
mov eax, dword [ebp - 4]
mov edx, 0x59c44
call fcn.00013bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c36
lea eax, [ebp - 8]
call fcn.0004fb34
ret
Function at 0x59c48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, 0x59cec
call fcn.00014208
mov eax, 0x400
call fcn.0004fb5c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59cdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0004f670
push eax
mov eax, dword [ebp - 0xc]
call fcn.0004f634
push eax
call sub.kernel32.dll_GetTempPathW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x59cc7
mov eax, dword [ebp - 0xc]
call fcn.0004f634
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
cdq
cmp edx, dword [esp + 4]
jne 0x59cb8
cmp eax, dword [esp]
pop edx
pop eax
jae 0x59cc7
jmp 0x59cbc
pop edx
pop eax
jge 0x59cc7
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0004f650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ce4
lea eax, [ebp - 0xc]
call fcn.0004fb80
ret
Function at 0x5a694
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5a902
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a8d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x67f54]
add eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.00050d88
mov eax, dword [ebp - 0x14]
call fcn.00013fe0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5a8b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x5a910
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5a8b3
cmp dword [ebp - 0xc], 4
jne 0x5a8b3
mov eax, dword [ebp - 8]
mov dword [0x67f68], eax
mov eax, dword [ebp - 8]
and eax, 0xff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x118]
call fcn.00059a58
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov ecx, 0xff
call fcn.00013df8
lea edx, [ebp - 0x114]
mov eax, 0x67f5c
mov cl, 0xb
call fcn.00012a14
shr dword [ebp - 8], 8
lea eax, [ebp - 0x120]
mov edx, 0x67f5c
call fcn.00013dc0
push dword [ebp - 0x120]
lea edx, [ebp - 0x124]
mov eax, 0x5a924
call fcn.0005bdb8
push dword [ebp - 0x124]
mov eax, dword [ebp - 8]
and eax, 0xff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x128]
call fcn.00059a58
push dword [ebp - 0x128]
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00013edc
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
mov ecx, 0xff
call fcn.00013df8
lea edx, [ebp - 0x114]
mov eax, 0x67f5c
mov cl, 0xb
call fcn.00012a14
shr dword [ebp - 8], 8
lea eax, [ebp - 0x130]
mov edx, 0x67f5c
call fcn.00013dc0
push dword [ebp - 0x130]
lea edx, [ebp - 0x134]
mov eax, 0x5a924
call fcn.0005bdb8
push dword [ebp - 0x134]
mov eax, dword [ebp - 8]
and eax, 0xff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x138]
call fcn.00059a58
push dword [ebp - 0x138]
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00013edc
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x114]
mov ecx, 0xff
call fcn.00013df8
lea edx, [ebp - 0x114]
mov eax, 0x67f5c
mov cl, 0xb
call fcn.00012a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8dc
cmp dword [ebp - 4], 0
je 0x5a8cf
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
ret
Function at 0x5b2b8
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, 0x5b390
call fcn.00014208
mov eax, 0x400
call fcn.0004fb5c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5b37e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0004f634
push eax
mov eax, dword [ebp - 8]
call fcn.0004f670
push eax
push 0x5b3a8
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jb 0x5b328
mov eax, dword [ebp - 8]
call fcn.0004f634
cmp eax, dword [ebp - 0xc]
jb 0x5b328
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0004f650
jmp 0x5b368
mov eax, dword [ebp - 8]
call fcn.0004f5f8
mov eax, dword [ebp - 8]
call fcn.0004f634
push eax
mov eax, dword [ebp - 8]
call fcn.0004f670
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jb 0x5b368
mov eax, dword [ebp - 8]
call fcn.0004f634
cmp eax, dword [ebp - 0xc]
jb 0x5b368
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0004f650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b385
lea eax, [ebp - 8]
call fcn.0004fb80
ret

Function at 0x5b498
Capabilities:
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.000141cc
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, 0x400
call fcn.0004fb5c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5b5a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x67f54]
add eax, 0x20019
push eax
push 0
push 0x5b5b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5b566
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov ecx, 0x5b5f8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0004f68c
test eax, eax
jne 0x5b566
cmp dword [ebp - 0x10], 1
jne 0x5b566
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0004f650
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0005c8f0
test al, al
jne 0x5b566
mov eax, dword [ebp - 0x14]
call fcn.0004f5f8
mov eax, dword [ebp - 0x14]
call fcn.0004f634
push eax
mov eax, dword [ebp - 0x14]
call fcn.0004f670
push eax
push 0x5b618
call sub.kernel32.dll_GetEnvironmentVariableW
cmp eax, 3
jbe 0x5b566
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0004f650
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0005c8f0
test al, al
jne 0x5b57c
mov eax, dword [ebp - 4]
call fcn.00059c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b5ad
cmp dword [ebp - 0xc], 0
je 0x5b598
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.0004fb80
ret
Function at 0x5b7dc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x5b7e4
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push ExitThread
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.000141cc
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push EnterCriticalSection
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.0004fb5c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push InitializeCriticalSection
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x67f54]
add eax, 0x20019
push eax
push 0
push VirtualFree
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5b88e
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x5ba3c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0004f68c
test eax, eax
jne InterlockedDecrement
cmp dword [ebp - 0x18], 1
jne 0x5b88e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0004f650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8b7
cmp dword [ebp - 0x14], 0
je 0x5b8aa
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret

Function at 0x5bab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne GetKeyboardType
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x5bae8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne CharNextA
mov dword [ebp - 0x10], 0xffffffff
jmp 0x5bb2d
cmp byte [0x67f70], 0
je 0x5bb2d
mov eax, dword [ebp - 4]
push eax
call RegQueryValueExA
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x5bbf0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetEndOfFile_1
test eax, eax
jne 0x5bc13
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x5bc1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x5bd1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 4
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x493e0
mov dword [ebp - 4], 0x493e0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push FreeSid
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [0x67f54]
add eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x20]
call fcn.00050d88
mov eax, dword [ebp - 0x20]
call fcn.00013fe0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5bce0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x5bd30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5bce0
cmp dword [ebp - 0x14], 4
jne 0x5bce0
cmp dword [ebp - 0xc], 0
je 0x5bcda
cmp dword [ebp - 0xc], 0xea60
jb OpenProcessToken
cmp dword [ebp - 0xc], 0x927c0
ja 0x5bce0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bd09
cmp dword [ebp - 8], 0
je 0x5bcfc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00014394
push eax
call RemovePropA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x5c916
test byte [ebp - 0xc], 0x10
jne RemoveMenu
xor eax, eax
jmp 0x5c91c
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x5c928
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00014394
push eax
call sub.kernel32.dll_CreateDirectoryW
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
call sub.kernel32.dll_GetLastError_1
mov dword [0x680c4], eax
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x5d4bc
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5d694
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 0x5d6a4
call fcn.0005bdb8
mov eax, dword [ebp - 0x18]
call fcn.0005d46c
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5d635
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5d530
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x10], 0
je 0x5d608
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5d5f3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0x5d6b8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5d570
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 8], 0
jne 0x5d57e
call fcn.0005d404
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
je 0x5d5c6
lea edx, [ebp - 0x1c]
mov eax, 0x5d6c4
call fcn.0005bdb8
mov eax, dword [ebp - 0x1c]
call fcn.0005d46c
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x5d5b8
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 8], 0
jne 0x5d5c6
call fcn.0005d404
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5fa
cmp dword [ebp - 0x14], 0
je 0x5d5ed
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x5d5ed
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x14], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d63c
cmp dword [ebp - 0x10], 0
je 0x5d62f
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x5d62f
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0x5d6e4
Capabilities:
Continue service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d93e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, 0x5d94c
call fcn.0005bdb8
push dword [ebp - 0x38]
push dword [ebp - 4]
lea edx, [ebp - 0x3c]
mov eax, 0x5d964
call fcn.0005bdb8
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00013edc
mov eax, dword [ebp - 0x34]
call fcn.0005d46c
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5d8ab
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5d790
push 0
call sub.kernel32.dll_SetLastError
call fcn.0005d404
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x5d87e
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5d869
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00013fe0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5d7dc
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x5d7ea
call fcn.0005d404
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x5d83c
lea edx, [ebp - 0x40]
mov eax, 0x5d968
call fcn.0005bdb8
mov eax, dword [ebp - 0x40]
call fcn.0005d46c
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x1c
call fcn.00012b38
lea eax, [ebp - 0x30]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x5d82e
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x5d83c
call fcn.0005d404
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d870
cmp dword [ebp - 0xc], 0
je 0x5d863
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x5d863
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8b2
cmp dword [ebp - 0x10], 0
je 0x5d8a5
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x5d8a5
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0x5d990
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5dbdf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x34]
mov eax, 0x5dbf0
call fcn.0005bdb8
mov eax, dword [ebp - 0x34]
call fcn.0005d46c
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5db2b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5da12
push 0
call sub.kernel32.dll_SetLastError
call fcn.0005d404
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x5dafe
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5dae9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00013fe0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5da5e
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x5da6c
call fcn.0005d404
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x5dabc
lea edx, [ebp - 0x38]
mov eax, 0x5dc04
call fcn.0005bdb8
mov eax, dword [ebp - 0x38]
call fcn.0005d46c
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x1c
call fcn.00012b38
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x5daae
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x5dabc
call fcn.0005d404
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5daf0
cmp dword [ebp - 0x10], 0
je 0x5dae3
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x5dae3
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x10], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5db32
cmp dword [ebp - 0xc], 0
je 0x5db25
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x5db25
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
ret