joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ada0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0046a960
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
push 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x74]
call edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x144]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x144], 0
je 0x46af28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x144]
push ecx
call fcn.00438420
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46af1b
mov ecx, dword [ebp - 0x18]
call fcn.004079f0
mov dword [ebp - 4], eax
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.00472ec0
mov eax, dword [ebp + 0xc]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0x10]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
push 0x202
mov ecx, dword [ebp - 0x18]
call fcn.00438bc0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x144]
cmp eax, dword [ebp - 0xc]
jne 0x46aed5
mov ecx, dword [ebp - 0x18]
call fcn.00438e90
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46aec0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
test edx, edx
je 0x46aec0
push 1
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x20], eax
jmp 0x46aed3
mov ecx, dword [ebp - 0x18]
call fcn.004079f0
test eax, eax
je 0x46aed3
mov dword [ebp - 0x14], 1
jmp 0x46af1b
push 1
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00472ec0
mov edx, dword [ebp + 0xc]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or eax, edx
push eax
mov eax, dword [ebp + 8]
push eax
push 0x2a3
mov ecx, dword [ebp - 0x18]
call fcn.00438bc0
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x144], 0
cmp dword [ebp - 0x14], 0
je 0x46af3e
push 0x67
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.0046a7b0
jmp 0x46af73
cmp dword [ebp - 0x10], 0
je 0x46af73
cmp dword [ebp - 4], 0
je 0x46af73
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x140]
jne 0x46af65
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x140], 0
push 0x6a
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0046a7b0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46ed40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
push edx
movzx eax, word [ebp - 0x10]
push eax
movzx ecx, word [ebp - 0x12]
push ecx
movzx edx, word [ebp - 0x14]
push edx
push str.__02d__02d__02d__03d__n
lea eax, [ebp - 0x20]
push eax
call fcn.0042e210
add esp, 0x18
lea ecx, [ebp - 0x20]
call fcn.00423af0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040c650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x471d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004b3d60
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x471da3
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x471db6
jmp 0x471ee9
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 1
je 0x471eb9
cmp dword [ebp - 0x130], 2
je 0x471ddd
jmp 0x471ee2
cmp dword [ebp - 0x124], 6
jne 0x471e07
cmp dword [ebp - 0x120], 1
jne 0x471e07
movzx ecx, byte [ebp - 0xe]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x471eb7
cmp dword [ebp - 0x124], 6
jne 0x471e32
cmp dword [ebp - 0x120], 0
jne 0x471e32
movzx edx, byte [ebp - 0xe]
sub edx, 1
neg edx
sbb edx, edx
and edx, 2
add edx, 7
mov dword [ebp - 4], edx
jmp 0x471eb7
cmp dword [ebp - 0x124], 5
jne 0x471e4d
cmp dword [ebp - 0x120], 2
jne 0x471e4d
mov dword [ebp - 4], 5
jmp 0x471eb7
cmp dword [ebp - 0x124], 5
jne 0x471e68
cmp dword [ebp - 0x120], 1
jne 0x471e68
mov dword [ebp - 4], 6
jmp 0x471eb7
cmp dword [ebp - 0x124], 5
jne 0x471e83
cmp dword [ebp - 0x120], 0
jne 0x471e83
mov dword [ebp - 4], 3
jmp 0x471eb7
cmp dword [ebp - 0x124], 4
ja 0x471e95
mov dword [ebp - 4], 4
jmp 0x471eb7
cmp dword [ebp - 0x124], 6
jne 0x471eb7
cmp dword [ebp - 0x120], 2
jne 0x471eb7
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x471eb7
mov dword [ebp - 4], 0xa
jmp 0x471ee9
mov ecx, dword [ebp - 0x11c]
shr ecx, 0x10
and ecx, 0xffff
cmp ecx, 0x45a
jae 0x471ed9
mov dword [ebp - 4], 1
jmp 0x471ee0
mov dword [ebp - 4], 2
jmp 0x471ee9
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x486350
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5277b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
cmp dword [eax + 4], 0
je 0x48638e
mov ecx, dword [ebp - 0x220]
mov eax, dword [ecx + 4]
jmp 0x486502
mov ecx, dword [ebp - 0x220]
add ecx, 0x60
call fcn.00423af0
push eax
lea ecx, [ebp - 0x110]
call fcn.0042e1b0
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], 0
push 0x5408d8
mov eax, dword [ebp - 0x220]
add eax, 0x4c
push eax
mov ecx, dword [ebp - 0x228]
call fcn.00423af0
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 8]
push edx
call fcn.0047f4e0
add esp, 0x10
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.0040c200
mov ecx, dword [ebp - 0x220]
add ecx, 0x64
call fcn.004084c0
movzx edx, al
test edx, edx
jne 0x4864fd
push 0x400000
lea eax, [ebp - 0x114]
push eax
call fcn.0050d0a0
add esp, 8
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 1
push str.data_skin_skincfg.ini
mov edx, dword [ebp - 0x230]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.004165b0
add esp, 0xc
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
add ecx, 0x64
call fcn.00423af0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042e1b0
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x238]
call fcn.00423af0
push eax
push 0xff
mov ecx, dword [ebp - 0x23c]
call fcn.00423af0
push eax
push str.alpha
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x30], eax
lea ecx, [ebp - 0x21c]
call fcn.0040c200
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0040c650
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x491700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x491709
xor ecx, ecx
jne 0x491709
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x49172d
push 0x80004005
call fcn.0040a5e0
xor eax, eax
jne 0x491711
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x49173e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4919e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x10]
call fcn.00460ed0
push 0x2001f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x10]
call fcn.0042e4b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x491a36
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x10]
call fcn.0042e500
mov eax, dword [ebp - 0x21c]
jmp 0x491ac7
mov dword [ebp - 4], 0x100
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x491a9c
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x10]
call fcn.004919e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x491a93
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x10]
call fcn.0042e500
mov eax, dword [ebp - 0x220]
jmp 0x491ac7
mov dword [ebp - 4], 0x100
jmp 0x491a3d
lea ecx, [ebp - 0x10]
call fcn.0042e3b0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.00491b20
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x10]
call fcn.0042e500
mov eax, dword [ebp - 0x224]
mov esp, ebp
pop ebp
ret 4
Function at 0x494840
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
add ecx, 0x2c
call fcn.0044dcb0
mov ecx, dword [ebp - 8]
add ecx, 0x14
call fcn.0044dcb0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x49487a
mov dword [ebp - 4], 0xfffffffd
jmp 0x4948a1
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov byte [eax + 4], 0
xor ecx, ecx
jne 0x494866
mov ecx, dword [ebp - 8]
add ecx, 0x14
call fcn.0041dcd0
mov ecx, dword [ebp - 8]
add ecx, 0x2c
call fcn.0041dcd0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x494950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x49497d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.004b705f
add esp, 0x18
jmp 0x49499b
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x495f90
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x495fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4960be
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
push 2
push 0x10
push 0x32
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x49608b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x496015
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
jmp 0x4960be
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x496046
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x18]
jmp 0x4960be
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 2
push 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49608b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
jmp 0x4960be
mov dword [ebp - 8], 0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4960d0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4960f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49616d
push 0x10000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x496127
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
jmp 0x49616d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x496157
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
jmp 0x49616d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x496180
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4961a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4962c3
push 0x14
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4961dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
jmp 0x4962c3
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x496217
cmp dword [ebp - 0x20], 4
jne 0x496217
xor eax, eax
jmp 0x4962c3
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x49624b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
jmp 0x4962c3
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4962ac
mov ecx, 1
test ecx, ecx
je 0x4962ac
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x496287
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4962ac
cmp dword [ebp - 0x20], 1
jne 0x496298
mov dword [ebp - 4], 0xe0000018
jmp 0x4962ac
cmp dword [ebp - 0x20], 4
jne 0x4962a2
jmp 0x4962ac
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49625a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4962d0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4962f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x496403
push 0x24
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49632d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
jmp 0x496403
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x496381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x30]
jmp 0x496403
mov dword [ebp - 4], 0
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x4963ec
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov ecx, 1
test ecx, ecx
je 0x4963ec
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4963d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4963ec
cmp dword [ebp - 0x48], 1
jne 0x4963e2
jmp 0x4963ec
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4963ab
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4969d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526b80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x55a18c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [edi + 0x3c]
mov dword [esp + 0x28], esi
call fcn.00497d00
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [esp + 0x14]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x4c], ebx
call fcn.0040a960
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
call fcn.004084c0
test al, al
je 0x496a50
lea ecx, [esp + 0x10]
call fcn.0040c650
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 1
call fcn.0040c630
mov byte [esp + 0x38], 1
push ebx
push 0x5413e8
lea ecx, [esp + 0x18]
call fcn.00416530
mov esi, eax
cmp esi, 0xffffffff
je 0x496b89
sub eax, ebx
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040b330
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.00408510
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0040c650
cmp dword [esp + 0x14], 0
lea ebx, [esi + 1]
lea ecx, [esp + 0xc]
je 0x496b70
push 0
push 0x5413e4
mov dword [esp + 0x1c], 0
call fcn.00416530
mov esi, eax
cmp esi, 0xffffffff
je 0x496bdf
push esi
push 0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.0040b330
push eax
lea ecx, [edi + 0x34]
mov byte [esp + 0x3c], 4
call fcn.00408510
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.0040c650
lea ecx, [esp + 0xc]
call fcn.0040c690
push eax
add esi, 1
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b330
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 5
call fcn.00408510
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
call fcn.0040c650
lea ecx, [esp + 0xc]
call fcn.00419a00
push eax
call fcn.004b4802
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov dword [edi + 0x38], eax
call fcn.0040c000
mov cx, word [edi + 0x38]
mov word [edi + 0x2c], cx
jmp 0x496b76
push edi
call fcn.00496c30
lea ecx, [esp + 0x10]
call fcn.0040c690
cmp ebx, eax
jle 0x496a66
jmp 0x496bdf
cmp dword [esp + 0x14], 0
jne 0x496bdf
lea ecx, [esp + 0x10]
call fcn.0040c690
cmp ebx, eax
jg 0x496bdf
lea ecx, [esp + 0x10]
call fcn.0040c690
sub eax, ebx
push eax
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040b330
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.00408510
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
call fcn.0040c650
push edi
lea ecx, [esp + 0x10]
call fcn.00496c30
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
test eax, eax
je 0x496bfc
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 3
je 0x496bfc
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
call fcn.0040c650
lea ecx, [esp + 0x10]
call fcn.0040c650
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4