joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4579b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp eax, 3
jne 0x457a36
mov edi, 0x20219
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push edi
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x457a2a
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
mov dword [ebp - 8], 4
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x457a1f
cmp dword [ebp + 8], 4
mov eax, 1
cmovne edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 4
jne 0x457a42
mov edi, 0x20119
jmp 0x4579d3
mov edi, 0x20019
test eax, eax
je 0x4579d3
cmp eax, 1
jne 0x457a57
mov eax, SysReAllocString
jmp 0x4579d8
cmp eax, 2
jne 0x457a66
mov eax, SysReAllocString
jmp 0x4579d8
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457a82
int3
xor eax, eax
jmp 0x4579d8

Function at 0x457a90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 3
jne 0x457af9
mov esi, 0x201
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push esi
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x457aee
push eax
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 4
jne 0x457b05
mov esi, 0x101
jmp 0x457aad
mov esi, 1
test eax, eax
je 0x457aad
cmp eax, esi
jne 0x457b19
mov eax, SysReAllocString
jmp 0x457ab2
cmp eax, 2
jne 0x457b25
mov eax, SysReAllocString
jmp 0x457ab2
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457b41
int3
xor eax, eax
jmp 0x457ab2
Function at 0x457cb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp eax, 3
jne 0x457d1f
mov edi, 0x20206
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edi
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x457d13
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 4
jne 0x457d2b
mov edi, 0x20106
jmp 0x457cd1
mov edi, 0x20006
test eax, eax
je 0x457cd1
cmp eax, 1
jne 0x457d40
mov eax, SysReAllocString
jmp 0x457cd6
cmp eax, 2
jne 0x457d4c
mov eax, SysReAllocString
jmp 0x457cd6
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457d68
int3
xor eax, eax
jmp 0x457cd6

Function at 0x457e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], 0
push edi
cmp eax, 3
jne 0x457eb5
mov edi, 0x20206
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push edi
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x457ea9
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 4
jne 0x457ec1
mov edi, 0x20106
jmp 0x457e67
mov edi, 0x20006
test eax, eax
je 0x457e67
cmp eax, 1
jne 0x457ed6
mov eax, SysReAllocString
jmp 0x457e6c
cmp eax, 2
jne 0x457ee2
mov eax, SysReAllocString
jmp 0x457e6c
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457efe
int3
xor eax, eax
jmp 0x457e6c
Function at 0x457f10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x114
mov ecx, dword [0x6abd38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x62d190]
cmp eax, dword [ecx + 4]
jg 0x458043
mov eax, dword [0x62d18c]
test eax, eax
jne 0x457f4b
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push ebx
push edi
push esi
call eax
test eax, eax
je 0x457f81
lea eax, [ebp - 8]
push eax
mov eax, ebx
or eax, 0x20019
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x457f8a
cmp eax, 2
jne 0x457f83
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457f90
sub ecx, edx
cmp byte [ecx + edi - 1], 0x5c
lea esi, [ecx + edi]
je 0x457fa9
mov byte [esi], 0x5c
inc esi
mov byte [esi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x458022
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.00575d70
push ebx
push edi
push dword [ebp + 8]
call fcn.00457f10
add esp, 0x18
test eax, eax
jne 0x458022
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x457fd4
mov byte [esi - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push ebx
push edi
push dword [ebp + 8]
call dword [0x62d18c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x62d190
call fcn.0056b7dd
add esp, 4
cmp dword [0x62d190], 0xffffffff
jne 0x457f39
push str.RegDeleteKeyExA
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x62d190
mov dword [0x62d18c], eax
call fcn.0056b793
add esp, 4
jmp 0x457f39
Function at 0x4595d0
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591065
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
xor bl, bl
call fcn.0046b5c0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0
push 0
push eax
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov dword [eax], esi
call fcn.00471c70
add esp, 0x10
test al, al
je 0x459832
push 0
lea ecx, [ebp - 0x48]
call fcn.0046c180
push 0
push 0
call fcn.0057931c
add esp, 8
mov dword [ebp + 8], eax
test esi, esi
mov dword [ebp - 0x1c], 0
mov ecx, 0x593544
mov dword [ebp - 0x18], 0
cmovne ecx, esi
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00459850
push 0
push eax
push 0
call fcn.005762a4
add esp, 0xc
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov edi, eax
je 0x459690
push dword [ebp - 0x20]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x13], 0
je 0x4596a1
push dword [ebp - 0x1c]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x12], 0
je 0x4596b2
push dword [ebp - 0x18]
call fcn.0056b454
add esp, 4
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
je 0x459821
test edi, edi
je 0x459821
push 0x5c
push edi
call fcn.0056d857
add esp, 8
test eax, eax
je 0x459821
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
push edi
mov word [eax], cx
call esi
push edi
push str.INSTALLDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov al, byte [ebp + 0x10]
mov ecx, 0x628078
mov word [0x628094], 0
mov byte [0x628094], al
mov al, byte [ebp + 0x14]
mov dword [0x62808c], 0
mov byte [0x628095], al
mov eax, dword [ebp + 0xc]
mov word [0x6280d6], 0
mov byte [0x6280d8], 0
mov dword [0x628090], 0
mov byte [0x628096], 0x30
mov dword [0x628110], 0
mov dword [0x62810c], 0
mov dword [0x62808c], eax
call fcn.004587c0
mov al, byte [0x628094]
mov ecx, 0x628078
mov edx, dword [ebp - 0x44]
mov byte [0x6280d9], al
mov byte [0x6280da], al
mov eax, dword [0x62808c]
mov dword [0x628090], eax
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [0x6280f4], 0
mov dword [0x6280f8], 0
mov dword [0x6280e4], 0x628096
mov dword [0x6280e0], 0
mov dword [0x6280e8], 0
mov dword [0x6280ec], 0
mov dword [0x6280dc], 1
mov byte [0x6280db], 0
mov dword [0x6280f0], 0
mov byte [0x628096], 0
mov dword [0x62807c], edx
mov dword [0x628080], edx
mov dword [0x628084], eax
push 0
mov byte [0x628088], 0
call fcn.00458bc0
push dword [ebp + 8]
mov bl, al
call esi
push edi
call fcn.00575e94
push dword [ebp + 8]
call fcn.00575e94
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.0046a5f0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e380
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59140d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], 0x4000000
test eax, eax
mov dword [ebp - 0x1c], edi
mov ebx, 0x593544
mov dword [ebp - 0x18], edi
cmovne ebx, eax
mov dword [ebp - 0x20], ebx
cmp byte [0x62d4f0], 0
mov dword [ebp - 4], edi
je 0x45e414
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046d920
add esp, 0x24
push 0x200030
push 0x5b11cc
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.005797c1
add esp, 4
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x45e460
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046d920
mov eax, dword [ebp - 0x10]
add esp, 0x24
push eax
push edi
call fcn.00579904
add esp, 8
test edi, edi
jne 0x45e4a6
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046d920
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x62d808], 0
je 0x45e562
push 0x62d808
lea eax, [ebp - 0x30]
push str._s_service_log.txt
push eax
call fcn.0046a950
add esp, 0xc
cmp byte [ebp - 0x21], 0
jge 0x45e4e4
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x45e4e7
mov eax, 0x593544
jmp 0x45e4e7
lea eax, [ebp - 0x30]
push fcn.0057642f
push 0x5acbbc
push eax
call fcn.004822d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45e547
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.005796ee
lea eax, [ebp - 0x50]
push 0x10
push eax
call fcn.00579635
push dword [ebp + 0x18]
cmp byte [ebp + 0x14], 0
mov ecx, 0x593544
mov eax, str.ERROR_
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s__s_:__s_s
push esi
call fcn.00459ef0
push esi
call fcn.005764d4
add esp, 0x2c
cmp byte [ebp - 0x21], 0
mov byte [ebp - 4], 1
jge 0x45e562
call fcn.0047fa50
push 0
push dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x13], 0
je 0x45e571
push edi
call fcn.0056b454
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e710
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e74c
test al, 3
je 0x45e73c
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e74c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
pop esi
sete al
pop ebp
ret
xor al, al
pop esi
pop ebp
ret

Function at 0x45e760
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e7ca
test al, 3
je 0x45e78d
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e7ca
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e7b5
test al, 3
je 0x45e7b5
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e7ca
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, 1
pop edi
sete al
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x45ee30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45ef75
call fcn.0047fa50
mov ecx, eax
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45ef5d
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push str.StringFileInfo040904b0OriginalFilename
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ef5d
mov ecx, dword [ebp + 0xc]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45eea5
sub edx, esi
mov esi, dword [ebp - 8]
sar edx, 1
lea eax, [edx + 1]
cmp esi, eax
jne 0x45ef5d
mov edx, dword [ebp - 0xc]
add esi, esi
sub esi, 4
jb 0x45eee1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x45eee6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x45eed0
cmp esi, 0xfffffffc
je 0x45ef13
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x45ef5d
cmp esi, 0xfffffffd
je 0x45ef13
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x45ef5d
cmp esi, 0xfffffffe
je 0x45ef13
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x45ef5d
cmp esi, 0xffffffff
je 0x45ef13
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x45ef5d
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5b1604
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ef5d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45ef5d
cmp dword [ebp - 8], 0x34
jb 0x45ef5d
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov esi, dword [eax + 8]
or ecx, esi
mov byte [ebp - 1], 1
mov dword [edx], 0
mov dword [edx + 4], esi
mov eax, dword [eax + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.0047fa50
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460490
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x4604fe
and dword [ebp - 0x40], 0xff0fffff
push str.m_hService__NULL
mov byte [ebp - 0x3d], al
and dword [ebp - 0x40], 0xfff00000
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], 3
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045e590
add esp, 0x28
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46051c
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x46056f
cmp eax, 4
je 0x46056f
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceW]
xor esi, esi
push esi
push esi
push dword [edi + 4]
call ebx
test eax, eax
jne 0x460569
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x460569
cmp eax, 0x41d
je 0x460569
cmp eax, 0x41f
jne 0x4605c2
cmp esi, 5
je 0x4605c2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push dword [edi + 4]
inc esi
call ebx
test eax, eax
je 0x460530
cmp byte [ebp + 8], 0
jne 0x46057a
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4605cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0045a9c0
push esi
push str.Failed_to_query_service__GLE__u_
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045e590
add esp, 0x2c
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], eax
cmp ecx, 4
je 0x460658
mov eax, 0xcccccccd
mov ecx, 0x2710
mul dword [ebp - 4]
shr edx, 3
cmp edx, 0x3e8
jae 0x460602
mov edx, 0x3e8
jmp 0x46060b
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460652
cmp dword [ebp - 8], ebx
jbe 0x460632
call esi
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x46063c
call esi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
ja 0x460652
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
jne 0x4605e3
pop esi
cmp ecx, ecx
pop ebx
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
pop esi
pop ebx
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x460670
Capabilities:
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x460759
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46069f
cmp dword [ebp - 0x18], 1
je 0x46074e
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne al
cmp byte [ebp + 8], 0
je 0x46075b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x32
xor eax, eax
dec esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [ebp - 0x3c], 1
je 0x46074e
push 0x64
call edi
test esi, esi
jg 0x4606c8
cmp byte [ebp + 0xc], 0
je 0x460759
test byte [ebp - 0x20], 1
jne 0x460759
push dword [ebp - 0x24]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x460759
push 0xf00d
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x460770
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591635
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x460812
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x48], 0xff0fffff
xor ecx, ecx
push eax
push str.Failed_to_open_service_control_manager__GLE__u_
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x45], 0
and dword [ebp - 0x48], 0xfff00000
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
push eax
push 1
push 1
push 1
push 4
push ecx
push ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call fcn.0045e590
add esp, 0x2c
xor bl, bl
jmp 0x4608db
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], 0
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov eax, 0x593544
mov dword [ebp - 0x18], 0x4000000
cmovne eax, ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00459850
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp byte [ebp - 0x18], 0
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0
je 0x46086a
push dword [ebp - 0x24]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x46087b
push dword [ebp - 0x20]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x46088c
push dword [ebp - 0x1c]
call fcn.0056b454
add esp, 4
test edi, edi
je 0x4608d9
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4608d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.0045a9c0
push esi
push str.Failed_to_delete_service__GLE__u_
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045e590
mov esi, dword [ebp - 0x14]
add esp, 0x2c
xor bl, bl
jmp 0x4608db
mov bl, 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4608ec
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4608f3
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret