joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4457d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a3b38]
cmp byte [eax + 0xc], 0
je 0x44593d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445936
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a4b9c], 0
jne 0x445824
push 0x445944
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44594c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4b9c], eax
cmp dword [0x49fbc4], 0
jne 0x44591f
push 0x44595c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x49fbc4], eax
cmp dword [0x49fbc4], 0
je 0x44591f
push 0x445968
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4ba0], eax
push 0x445978
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4ba4], eax
push 0x44598c
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4ba8], eax
push 0x4459a4
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bac], eax
push 0x4459bc
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bb0], eax
push 0x4459d0
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bb4], eax
push 0x4459e8
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bb8], eax
push 0x445a00
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bbc], eax
push 0x445a1c
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bc0], eax
push 0x445a28
mov eax, dword [0x49fbc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44593d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4497c8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404d40
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x449817
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404fb0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450fdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45102c]
test si, 4
je 0x450ff0
or bl, 1
test si, 8
je 0x450ffa
or bl, 4
test si, 1
je 0x451004
or bl, 8
test si, 2
je 0x45100e
or bl, 0x10
test si, 0x10
je 0x451018
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451027
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451068]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451049
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451058
or bl, 4
test esi, 0x20000000
je 0x451063
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45772c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45773e
add esp, 0xfffffff0
call fcn.0040422c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042061c
mov eax, dword [0x4a36a4]
mov dword [eax + 4], ebx
mov dword [eax], 0x457ad0
mov eax, dword [0x4a36b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x457adc
mov eax, ebx
call fcn.00457ae8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403ec4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403ec4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403ec4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403ec4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417010]
call fcn.00403ec4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x453f00
push eax
push 0
push 0
mov eax, dword [0x4a3864]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4227b0]
call fcn.00423f48
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4227b0]
call fcn.00423f48
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4227b0]
call fcn.00423f48
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457f38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e00
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e00
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e00
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45787b
call fcn.00404284
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457be4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457d8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457d70
mov dl, 1
mov eax, dword [0x41772c]
call fcn.00403ec4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404d40
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457d5f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445b30
test al, al
je 0x457d52
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x457da0
lea eax, [ebp - 0x254]
call fcn.0040a7dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457d52
xor eax, eax
push ebp
push 0x457d4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x457dd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457d34
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404fb0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x457d34
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d52
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457c55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c200
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d96
lea eax, [ebp - 0x260]
call fcn.00404d40
ret

Function at 0x4586d8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4a4be8]
cmp byte [eax + 0xa5], 0
jne 0x458749
cmp dword [0x4a4c00], 0
jne 0x45870a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458694
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a4c00], eax
cmp dword [0x4a4bfc], 0
jne 0x458725
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a4bfc], eax
cmp dword [0x4a4c04], 0
jne 0x458749
push esp
push 0
push 0
push 0x458638
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a4c04], eax
pop edx
ret
Function at 0x458ddc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a4be8]
cmp dword [eax + 0x30], 0
je 0x458e86
cmp dword [ebx + 0x94], 0
jne 0x458e80
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458d6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458e80
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x458e46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458e80
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004198d0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458e55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4599e4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x459a19
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404e30
jmp 0x459a26
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d94
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ab60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45aba1
mov eax, esi
call fcn.004411f0
test al, al
je 0x45aba1
mov eax, dword [ebx + 0x84]
call fcn.00440f18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45aba1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440f18
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45beb0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004051f0
xor eax, eax
push ebp
push 0x45bf2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405200
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x45bef9
mov eax, dword [ebx + 4]
call fcn.00405200
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf35
lea eax, [ebp - 4]
call fcn.00404d40
ret
Function at 0x45cf30
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d0cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402f64
cmp word [ebx + 0xa2], 0
je 0x45cf79
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x45cf8d
lea esi, [ebp - 8]
jmp 0x45cf8f
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x45cf9c
xor edi, edi
jmp 0x45cfa9
mov eax, dword [ebx + 0x80]
call fcn.00405200
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00405200
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0045c668
mov eax, dword [ebp - 0x14]
call fcn.00405200
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00405200
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405200
push eax
mov eax, ebx
call fcn.0045c79c
push eax
mov eax, ebx
call fcn.0045c770
push eax
mov eax, ebx
call fcn.0045c724
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0045c534
mov eax, dword [ebp - 0x18]
call fcn.00405200
push eax
mov eax, dword [ebx + 8]
call fcn.00405200
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x45d032
call fcn.0040ed94
xor edx, edx
push ebp
push 0x45d0ab
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x45d070
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x45d066
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d0b2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x45d0dc
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x45d108
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405200
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45d12d
call fcn.0040ed94
xor eax, eax
push ebp
push 0x45d164
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x45d14d
call fcn.0040ed94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d16b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x45f168
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051f0
xor eax, eax
push ebp
push 0x45f2c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x45f28b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00405200
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x45f281
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_EnumServicesStatusA
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xea
jne 0x45f27b
mov eax, dword [ebp - 0x10]
mov ecx, 0x24
xor edx, edx
div ecx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x45f140]
call fcn.004063fc
add esp, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
shl eax, 2
lea eax, [eax + eax*8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_EnumServicesStatusA
test eax, eax
je 0x45f27b
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x45f277
inc esi
xor edi, edi
lea eax, [edi + edi*8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0x20]
call fcn.0040a35c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
dec esi
jne 0x45f256
mov byte [ebp - 9], 1
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f295
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f2c8
lea eax, [ebp - 0x20]
call fcn.00404d40
lea eax, [ebp - 0x1c]
mov edx, dword [0x45f140]
call fcn.00406408
lea eax, [ebp - 4]
call fcn.00404d40
ret
Function at 0x45f3c8
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x45f569
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d40
xor eax, eax
push ebp
push 0x45f544
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0x45f578
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45f53a
push 0xf01ff
mov eax, dword [esi]
call fcn.00405200
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45f531
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x10]
call fcn.0040939c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45f516
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 4]
cmp eax, 4
ja case.default.0x45f48d
jmp dword [eax*4 + 0x45f494]
mov eax, ebx
mov edx, 0x45f584
call fcn.00404d94
jmp case.default.0x45f48d
mov eax, ebx
mov edx, 0x45f590
call fcn.00404d94
jmp case.default.0x45f48d
mov eax, ebx
mov edx, 0x45f59c
call fcn.00404d94
jmp case.default.0x45f48d
mov eax, ebx
mov edx, 0x45f5a8
call fcn.00404d94
jmp case.default.0x45f48d
mov eax, ebx
mov edx, 0x45f5b4
call fcn.00404d94
lea eax, [ebp - 0x18]
mov edx, dword [esi + 0xc]
call fcn.00404f38
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004096a8
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.00404d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f520
mov eax, dword [ebp - 0xc]
call fcn.00402b5c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f54e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f570
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404d64
ret
Function at 0x45f6b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051f0
mov eax, dword [ebp - 8]
call fcn.004051f0
xor eax, eax
push ebp
push 0x45f74f
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405200
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x45f72f
push 4
mov eax, dword [ebp - 8]
call fcn.00405200
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x45f725
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45f71f
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
jmp 0x45f734
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f756
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d64
ret

Function at 0x45f7c8
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051f0
mov eax, dword [ebp - 8]
call fcn.004051f0
xor eax, eax
push ebp
push 0x45f8a1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405200
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x45f87f
push 0x14
mov eax, dword [ebp - 8]
call fcn.00405200
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x45f879
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x45f873
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45f873
jmp 0x45f86d
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45f873
cmp edi, dword [ebp - 0x14]
ja 0x45f873
cmp dword [ebp - 0x24], 4
jne 0x45f84e
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f8a8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d64
ret
Function at 0x45f8b4
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051f0
mov eax, dword [ebp - 8]
call fcn.004051f0
xor eax, eax
push ebp
push 0x45f983
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405200
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x45f961
push 0x24
mov eax, dword [ebp - 8]
call fcn.00405200
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x45f95b
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45f955
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45f955
jmp 0x45f94f
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x45f955
cmp edi, dword [ebp - 0x10]
ja 0x45f955
cmp dword [ebp - 0x20], 1
jne 0x45f930
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f98a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d64
ret