joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4571c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
cmp esi, 3
jne 0x45723c
mov edi, 0x20206
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 0x4572bc
push 0x594544
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, eax
cmp edi, 2
jne 0x4572b1
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056cb60
add esp, 0xc
cmp esi, 3
jne 0x45728f
mov eax, 0x200
jmp 0x45729c
cmp esi, 4
jne 0x457248
mov edi, 0x20106
jmp 0x4571e3
mov edi, 0x20006
test esi, esi
je 0x4571e3
cmp esi, 1
jne 0x45725d
mov eax, SysReAllocString
jmp 0x4571e8
cmp esi, 2
jne 0x45726c
mov eax, SysReAllocString
jmp 0x4571e8
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 0x457288
int3
xor eax, eax
jmp 0x4571e8
xor eax, eax
mov ecx, 0x100
cmp esi, 4
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.00457f10
add esp, 0xc
mov 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 8

Function at 0x4572d0
Capabilities:
Delete 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 0x457336
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 0x45732a
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
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 0xc
cmp eax, 4
jne 0x457342
mov edi, 0x20106
jmp 0x4572f1
mov edi, 0x20006
test eax, eax
je 0x4572f1
cmp eax, 1
jne 0x457357
mov eax, SysReAllocString
jmp 0x4572f6
cmp eax, 2
jne 0x457363
mov eax, SysReAllocString
jmp 0x4572f6
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 0x45737f
int3
xor eax, eax
jmp 0x4572f6
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 [0x6acd38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x62e190]
cmp eax, dword [ecx + 4]
jg 0x458043
mov eax, dword [0x62e18c]
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.00575b60
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 [0x62e18c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x62e190
call fcn.0056b5cd
add esp, 4
cmp dword [0x62e190], 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 0x62e190
mov dword [0x62e18c], eax
call fcn.0056b583
add esp, 4
jmp 0x457f39
Function at 0x4595d0
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5915e5
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.0046b5d0
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.0046c190
push 0
push 0
call fcn.005799b2
add esp, 8
mov dword [ebp + 8], eax
test esi, esi
mov dword [ebp - 0x1c], 0
mov ecx, 0x594544
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.00576094
add esp, 0xc
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov edi, eax
je 0x459690
push dword [ebp - 0x20]
call fcn.0056b244
add esp, 4
cmp byte [ebp - 0x13], 0
je 0x4596a1
push dword [ebp - 0x1c]
call fcn.0056b244
add esp, 4
cmp byte [ebp - 0x12], 0
je 0x4596b2
push dword [ebp - 0x18]
call fcn.0056b244
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.0056d647
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, 0x629078
mov word [0x629094], 0
mov byte [0x629094], al
mov al, byte [ebp + 0x14]
mov dword [0x62908c], 0
mov byte [0x629095], al
mov eax, dword [ebp + 0xc]
mov word [0x6290d6], 0
mov byte [0x6290d8], 0
mov dword [0x629090], 0
mov byte [0x629096], 0x30
mov dword [0x629110], 0
mov dword [0x62910c], 0
mov dword [0x62908c], eax
call fcn.004587c0
mov al, byte [0x629094]
mov ecx, 0x629078
mov edx, dword [ebp - 0x44]
mov byte [0x6290d9], al
mov byte [0x6290da], al
mov eax, dword [0x62908c]
mov dword [0x629090], eax
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [0x6290f4], 0
mov dword [0x6290f8], 0
mov dword [0x6290e4], 0x629096
mov dword [0x6290e0], 0
mov dword [0x6290e8], 0
mov dword [0x6290ec], 0
mov dword [0x6290dc], 1
mov byte [0x6290db], 0
mov dword [0x6290f0], 0
mov byte [0x629096], 0
mov dword [0x62907c], edx
mov dword [0x629080], edx
mov dword [0x629084], eax
push 0
mov byte [0x629088], 0
call fcn.00458bc0
push dword [ebp + 8]
mov bl, al
call esi
push edi
call fcn.00575c84
push dword [ebp + 8]
call fcn.00575c84
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.0046a600
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 0x59198d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [ebp + 0x18]
test eax, eax
push ebx
mov ebx, 0x594544
mov dword [ebp - 0x18], 0
push esi
cmovne ebx, eax
mov dword [ebp - 0x14], 0
push edi
mov byte [ebp - 0x10], 0
mov word [ebp - 0xe], 0x400
mov dword [ebp - 0x1c], ebx
cmp byte [0x62e4f0], 0
mov edi, 2
mov dword [ebp - 4], 0
je 0x45e42c
push 4
push 0
push 0
push ebx
mov byte [ebp - 0xf], 1
call fcn.0046d930
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b23b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x18], edi
call fcn.0046d930
add esp, 0x24
push 0x200030
push 0x5b211c
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test edi, edi
jne 0x45e461
mov edi, 2
push 4
push 0
push 0
push ebx
mov byte [ebp - 0xf], 1
call fcn.0046d930
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b23b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x18], edi
call fcn.0046d930
add esp, 0x24
push edi
call fcn.0045fab0
add esp, 4
test edi, edi
jne 0x45e4a6
push 4
push edi
push edi
push ebx
mov byte [ebp - 0xf], 1
call fcn.0046d930
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b23b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x18], edi
call fcn.0046d930
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x62e808], 0
je 0x45e562
push 0x62e808
lea eax, [ebp - 0x2c]
push str._s_service_log.txt
push eax
call fcn.0046a960
add esp, 0xc
cmp byte [ebp - 0x1d], 0
jge 0x45e4e4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x45e4e7
mov eax, 0x594544
jmp 0x45e4e7
lea eax, [ebp - 0x2c]
push fcn.0057621f
push 0x5adb0c
push eax
call fcn.00482270
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45e547
lea eax, [ebp - 0x3c]
push 0x10
push eax
call fcn.00579d84
lea eax, [ebp - 0x4c]
push 0x10
push eax
call fcn.00579ccb
push dword [ebp + 0x18]
cmp byte [ebp + 0x14], 0
mov ecx, 0x594544
mov eax, str.ERROR_
cmove eax, ecx
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
push str._s__s_:__s_s
push esi
call fcn.00459ef0
push esi
call fcn.005762c4
add esp, 0x2c
cmp byte [ebp - 0x1d], 0
mov byte [ebp - 4], 1
jge 0x45e562
call fcn.0047f9f0
push 0
push dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push edi
call fcn.0056b244
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e700
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 0x45e73c
test al, 3
je 0x45e72c
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e73c
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 0x45e750
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 0x45e7ba
test al, 3
je 0x45e77d
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e7ba
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e7a5
test al, 3
je 0x45e7a5
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e7ba
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 0x45ee20
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 0x45ef65
call fcn.0047f9f0
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 0x45ef4d
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 0x45ef4d
mov ecx, dword [ebp + 0xc]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45ee95
sub edx, esi
mov esi, dword [ebp - 8]
sar edx, 1
lea eax, [edx + 1]
cmp esi, eax
jne 0x45ef4d
mov edx, dword [ebp - 0xc]
add esi, esi
sub esi, 4
jb 0x45eed1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x45eed6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x45eec0
cmp esi, 0xfffffffc
je 0x45ef03
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x45ef4d
cmp esi, 0xfffffffd
je 0x45ef03
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x45ef4d
cmp esi, 0xfffffffe
je 0x45ef03
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x45ef4d
cmp esi, 0xffffffff
je 0x45ef03
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x45ef4d
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5b2554
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ef4d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45ef4d
cmp dword [ebp - 8], 0x34
jb 0x45ef4d
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.0047f9f0
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 0x4604b0
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 0x46051e
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.0045e580
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 0x46053c
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x46058f
cmp eax, 4
je 0x46058f
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 0x460589
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x460589
cmp eax, 0x41d
je 0x460589
cmp eax, 0x41f
jne 0x4605e2
cmp esi, 5
je 0x4605e2
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 0x460550
cmp byte [ebp + 8], 0
jne 0x46059a
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 0x4605ed
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.0045e580
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 0x460678
mov eax, 0xcccccccd
mov ecx, 0x2710
mul dword [ebp - 4]
shr edx, 3
cmp edx, 0x3e8
jae 0x460622
mov edx, 0x3e8
jmp 0x46062b
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 0x460672
cmp dword [ebp - 8], ebx
jbe 0x460652
call esi
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x46065c
call esi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
ja 0x460672
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
jne 0x460603
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 0x460690
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 0x460779
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4606bf
cmp dword [ebp - 0x18], 1
je 0x46076e
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 0x46077b
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 0x46076e
push 0x64
call edi
test esi, esi
jg 0x4606e8
cmp byte [ebp + 0xc], 0
je 0x460779
test byte [ebp - 0x20], 1
jne 0x460779
push dword [ebp - 0x24]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x460779
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 0x460790
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591bb5
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 0x460832
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.0045e580
add esp, 0x2c
xor bl, bl
jmp 0x4608fb
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], 0
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov eax, 0x594544
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 0x46088a
push dword [ebp - 0x24]
call fcn.0056b244
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x46089b
push dword [ebp - 0x20]
call fcn.0056b244
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x4608ac
push dword [ebp - 0x1c]
call fcn.0056b244
add esp, 4
test edi, edi
je 0x4608f9
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4608f9
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.0045e580
mov esi, dword [ebp - 0x14]
add esp, 0x2c
xor bl, bl
jmp 0x4608fb
mov bl, 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x46090c
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x460913
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
Function at 0x461b20
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591cd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x5b383c
push 1
push 0
push 0x5b382c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x461bc2
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x14]
push edi
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
je 0x461b9d
push str.m_pObj__NULL
push 0xbd
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1_smartptr.h
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x461b9d
int3
lea eax, [ebp - 0x10]
push eax
push esi
call edi
pop edi
test eax, eax
js 0x461bc2
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x461bc2
cmp dword [esi], 0
setne bl
jmp 0x461bc4
xor bl, bl
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x461bdc
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 5
test eax, eax
je 0x461bf7
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret