joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77a74
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x77a7c
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x77c82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00014294
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x77c43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.000793dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x77b48
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0xe72dc]
add eax, 0x20019
push eax
push 0
push 0x77c90
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x77b26
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x77cd4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00078ac0
test eax, eax
jne 0x77b26
cmp dword [ebp - 0xc], 1
jne 0x77b26
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00078a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x77b4f
cmp dword [ebp - 0x14], 0
je 0x77b42
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret

Function at 0x77d48
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 0x77d79
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x77d80
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 0x77db3
mov dword [ebp - 0x10], 0xffffffff
jmp 0x77dc5
cmp byte [0xe72e8], 0
je 0x77dc5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x77e88
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 0x77eab
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 0x77eb4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x77f33
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0xe72dc]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0x77f44
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x77f11
push 0x77f88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x77f3a
cmp dword [ebp - 0xc], 0
je 0x77f2d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret

Function at 0x77f94
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 0x78091
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xea60
mov dword [ebp - 4], 0xea60
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x78074
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [0xe72dc]
add eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x20]
call fcn.000694a0
mov eax, dword [ebp - 0x20]
call fcn.000140a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x78052
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x780a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x78052
cmp dword [ebp - 0x18], 4
jne 0x78052
cmp dword [ebp - 0x10], 0x1388
jb 0x78052
cmp dword [ebp - 0x10], 0x1d4c0
ja 0x78052
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7807b
cmp dword [ebp - 8], 0
je 0x7806e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
ret
Function at 0x78908
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jbe 0x78934
mov dword [ebp - 0x10], 8
jmp 0x78977
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x7894e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dword [eax], edx
mov eax, dword [ebp - 4]
call fcn.00078874
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x78ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jbe 0x78aec
mov dword [ebp - 0x10], 8
jmp 0x78b2f
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x78b06
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dword [eax], edx
mov eax, dword [ebp - 4]
call fcn.00078a2c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x78b38
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 6
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jbe 0x78b62
mov dword [ebp - 0x10], 8
jmp 0x78b83
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x7a3ac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7a521
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00013cfc
mov eax, dword [ebp - 0x20]
call fcn.0007a050
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x7a3ff
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, 1
call fcn.0001412c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0007a940
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x7a4de
xor eax, eax
push ebp
push 0x7a4d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0007a258
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0007a560
test al, al
je 0x7a4b5
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00013d4c
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0
jl 0x7a4b5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
call fcn.000140a8
push eax
mov dl, byte [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.0007a220
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7a528
lea eax, [ebp - 0x48]
call fcn.00013c64
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00013c88
ret

Function at 0x7a4de
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7a521
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00013cfc
mov eax, dword [ebp - 0x20]
call fcn.0007a050
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x7a3ff
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, 1
call fcn.0001412c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0007a940
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x7a4de
xor eax, eax
push ebp
push 0x7a4d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0007a258
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0007a560
test al, al
je 0x7a4b5
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00013d4c
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0
jl 0x7a4b5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
call fcn.000140a8
push eax
mov dl, byte [ebp - 0x11]
mov eax, dword [ebp - 4]
call fcn.0007a220
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7a528
lea eax, [ebp - 0x48]
call fcn.00013c64
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00013c88
ret
Function at 0x7a530
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.000140a8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x7a560
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0x1c
call fcn.00012b24
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete byte [ebp - 9]
push 0x2a
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x7a5e1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
add dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
add dword [edx + 0xc], eax
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x7a5e8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7a6bb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x7a69d
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0007a560
test al, al
je 0x7a69d
mov ecx, dword [ebp - 0x30]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00013d4c
mov eax, dword [ebp - 0x34]
dec eax
test eax, eax
jl 0x7a69d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.000140a8
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.000140a8
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00013e1c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x7a64c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7a6c2
lea eax, [ebp - 0x38]
call fcn.00013c64
lea eax, [ebp - 0xc]
call fcn.00013c64
ret
Function at 0x7a6c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7a791
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0007a560
test al, al
je 0x7a773
mov ecx, dword [ebp - 0x28]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00013d4c
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x7a773
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.000140a8
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.000140a8
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00013e1c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x7a722
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7a798
lea eax, [ebp - 0x38]
call fcn.00013c64
lea eax, [ebp - 0xc]
call fcn.00013c64
ret

Function at 0x7a79c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00012b24
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.000140a8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.0007a078
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x7a8b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.000140a8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.0007a078
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x82ddc
Capabilities:
Stop 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 0x83036
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x38]
mov eax, 0x83044
call fcn.00078120
push dword [ebp - 0x38]
push dword [ebp - 4]
lea edx, [ebp - 0x3c]
mov eax, 0x83058
call fcn.00078120
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00013fa4
mov eax, dword [ebp - 0x34]
call fcn.00082d8c
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 0x82fa3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x82e88
push 0
call sub.kernel32.dll_SetLastError
call fcn.00082d24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x82f76
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x82f61
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.000140a8
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 0x82ed4
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x82ee2
call fcn.00082d24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x82f34
lea edx, [ebp - 0x40]
mov eax, 0x8305c
call fcn.00078120
mov eax, dword [ebp - 0x40]
call fcn.00082d8c
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x1c
call fcn.00012b24
lea eax, [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x82f26
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x82f34
call fcn.00082d24
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x82f68
cmp dword [ebp - 0x10], 0
je 0x82f5b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x82f5b
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 0x82faa
cmp dword [ebp - 0xc], 0
je 0x82f9d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x82f9d
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
ret
Function at 0x83080
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 0x832cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x34]
mov eax, 0x832e0
call fcn.00078120
mov eax, dword [ebp - 0x34]
call fcn.00082d8c
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x8321b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x83102
push 0
call sub.kernel32.dll_SetLastError
call fcn.00082d24
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x831ee
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x831d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.000140a8
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x8314e
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0xc], 0
jne 0x8315c
call fcn.00082d24
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
je 0x831ac
lea edx, [ebp - 0x38]
mov eax, 0x832f4
call fcn.00078120
mov eax, dword [ebp - 0x38]
call fcn.00082d8c
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x1c
call fcn.00012b24
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x8319e
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0xc], 0
jne 0x831ac
call fcn.00082d24
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x831e0
cmp dword [ebp - 0x10], 0
je 0x831d3
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x831d3
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 0x83222
cmp dword [ebp - 0x14], 0
je 0x83215
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x83215
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x14], eax
ret
Function at 0x83d04
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x83eb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 0x83ec4
call fcn.00078120
mov eax, dword [ebp - 0x18]
call fcn.00082d8c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x83e72
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x83d6c
push 0
call sub.kernel32.dll_SetLastError
call fcn.00082d24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x83e45
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x83e30
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.000140a8
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 0x83db8
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x83dc6
call fcn.00082d24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x83e03
lea edx, [ebp - 0x1c]
mov eax, 0x83ed8
call fcn.00078120
mov eax, dword [ebp - 0x1c]
call fcn.00082d8c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
je 0x83df5
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
jne 0x83e03
call fcn.00082d24
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x83e37
cmp dword [ebp - 0x10], 0
je 0x83e2a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x83e2a
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 0x83e79
cmp dword [ebp - 0xc], 0
je 0x83e6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
test eax, eax
je 0x83e6c
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0xc], eax
ret