joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b320
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x44b347
xor eax, eax
jmp 0x44b3b5
mov edx, dword [ebp - 0x10]
push edx
call fcn.005031fa
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44b360
xor eax, eax
jmp 0x44b3b5
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44b3a6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x53552c
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005019e9
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x44b500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.00500270
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x53554c
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x410
push 0
lea eax, [ebp - 0x828]
push eax
call fcn.00500270
add esp, 0xc
call fcn.00448df0
mov dword [ebp - 0x82c], eax
mov ecx, dword [ebp - 0x82c]
sub ecx, 3
mov dword [ebp - 0x82c], ecx
cmp dword [ebp - 0x82c], 5
ja case.0x44b58c.3
mov edx, dword [ebp - 0x82c]
jmp dword [edx*4 + 0x44b618]
push 0x53555c
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x828]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x44b5f1
call fcn.00448c30
test eax, eax
je 0x44b5d2
push 0x535574
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x44b5eb
push 0x535590
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x828]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x44b5f1
xor eax, eax
jmp 0x44b608
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x828]
push edx
call fcn.0044b320
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret
Function at 0x44b910
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00500270
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44b982
movzx edx, byte [ebp - 0xf6]
and edx, 0x80
jne 0x44b982
push 0
push 1
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov dword [ebp - 0x10c], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x10c], 0
je 0x44b9a9
push 0
push 3
push 0
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret
Function at 0x44cd20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.00500270
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x535784
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x410
push 0
lea eax, [ebp - 0x828]
push eax
call fcn.00500270
add esp, 0xc
call fcn.00448df0
mov dword [ebp - 0x82c], eax
mov ecx, dword [ebp - 0x82c]
sub ecx, 3
mov dword [ebp - 0x82c], ecx
cmp dword [ebp - 0x82c], 5
ja case.0x44cdac.3
mov edx, dword [ebp - 0x82c]
jmp dword [edx*4 + 0x44ce30]
push str.wlan360_XP.sys
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x828]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x44ce08
push str.wlan360_Vista.sys
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x44ce08
push str.wlan360.sys
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x828]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x44ce08
xor eax, eax
jmp 0x44ce1f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x828]
push edx
call fcn.0044b320
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret

Function at 0x44cf50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x44cfc9
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [ebp + 8]
neg edx
sbb edx, edx
and edx, 2
mov dword [ebp - 0xc], edx
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44ecf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52326a
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0
push 1
mov eax, dword [ebp - 0x244]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00450740
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x244]
add ecx, 0x18
call fcn.0044f4a0
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 0x18
call fcn.0046b0d0
push eax
lea ecx, [ebp - 0x14]
call fcn.00416b70
movzx ecx, al
test ecx, ecx
je 0x44edc8
lea ecx, [ebp - 0x14]
call fcn.004f1cd0
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.00418970
mov edx, dword [ebp - 0x240]
or edx, 1
mov dword [ebp - 0x240], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00450790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004458f0
mov eax, dword [ebp + 8]
jmp 0x44ee99
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x244]
call fcn.0044eff0
mov byte [ebp - 4], 2
xor ecx, ecx
mov word [ebp - 0x234], cx
push 0x206
push 0
lea edx, [ebp - 0x232]
push edx
call fcn.00500270
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0046ade0
push eax
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0x535984
lea ecx, [ebp + 0xc]
call fcn.0046ade0
push eax
push 0x535988
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x44ee51
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x244]
add ecx, 0x18
call fcn.0044f320
mov ecx, eax
call fcn.00427f80
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427f00
mov ecx, dword [ebp - 0x240]
or ecx, 1
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004458f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00450790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004458f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret 8
Function at 0x44eec0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5232a2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.0044eff0
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.00500270
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0046ade0
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0x535994
lea ecx, [ebp + 0xc]
call fcn.0046ade0
push eax
push 0x535998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44ef8b
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x22c]
add ecx, 0x18
call fcn.0044f320
mov ecx, eax
call fcn.00427f80
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.00427f00
mov ecx, dword [ebp - 0x228]
or ecx, 1
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004458f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004458f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret 8

Function at 0x44eff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5232da
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x56f28c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
call fcn.00449ed0
push eax
lea ecx, [ebp - 0x10]
call fcn.00427f00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046ade0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44f058
lea ecx, [ebp - 0x10]
call fcn.0046ade0
push eax
call fcn.0044a6a0
add esp, 4
push 0x5359a4
lea ecx, [ebp - 0x14]
call fcn.00427f00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
push eax
push 0x5359a8
lea ecx, [ebp - 0x14]
push ecx
call fcn.00428670
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00418970
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004458f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004458f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44f1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebp - 0x220]
add ecx, 0x38
call fcn.00445980
movzx eax, al
test eax, eax
jne 0x44f241
mov ecx, dword [ebp - 0x220]
add ecx, 0x38
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418970
mov edx, dword [ebp - 0x21c]
or edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp + 8]
jmp 0x44f2cb
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00500270
add esp, 0xc
mov dword [ebp - 4], 0x206
mov dword [ebp - 8], 1
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 8]
push eax
push 0x5359c4
push str.Software360AP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44f2a7
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x38
call fcn.00427f80
mov edx, dword [ebp - 0x220]
add edx, 0x38
push edx
mov ecx, dword [ebp + 8]
call fcn.00418970
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret 4

Function at 0x452d10
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x452d29
mov ecx, dword [ebp - 0xc]
call fcn.00452d90
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
jne 0x452d42
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 1
push 6
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 4

Function at 0x4530a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4530b5
xor eax, eax
jmp 0x453125
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4530db
mov eax, dword [ebp - 4]
jmp 0x453125
cmp dword [ebp - 4], 0
jne 0x4530e7
xor eax, eax
jmp 0x453125
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4530f9
or eax, 0xffffffff
jmp 0x453125
mov edx, dword [ebp + 0x10]
push edx
push 0x21
mov ecx, dword [ebp - 8]
call fcn.00453130
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x453117
or eax, 0xffffffff
jmp 0x453125
mov eax, dword [ebp - 4]
and eax, 0x20
je 0x453123
xor eax, eax
jmp 0x453125
jmp 0x4530b5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x454ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x454efb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jge 0x454fef
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
test eax, eax
je 0x454fb6
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
mov al, byte [edx + 0x567550]
mov byte [ebp - 9], al
mov dword [ebp - 8], 0
jmp 0x454f36
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x454f81
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x567b20]
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx]
movzx ecx, byte [ebp - 9]
add eax, ecx
cdq
mov ecx, 0xff
idiv ecx
mov byte [ebp - 0xa], dl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx + 1]
movzx ecx, byte [ebp - 0xa]
movzx edx, byte [ecx + 0x567450]
xor eax, edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x454f2d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
jmp 0x454f92
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx - 1]
cmp dword [ebp - 8], eax
jge 0x454fb4
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx + 1]
mov byte [ecx], al
jmp 0x454f89
jmp 0x454fea
mov dword [ebp - 8], 0
jmp 0x454fc8
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx - 1]
cmp dword [ebp - 8], ecx
jge 0x454fea
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov cl, byte [eax + 1]
mov byte [edx], cl
jmp 0x454fbf
jmp 0x454ef2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x456840
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52343b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x250
push 0
lea eax, [ebp - 0x264]
push eax
call fcn.00500270
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00418970
mov dword [ebp - 4], 0
push 0x535d1c
lea ecx, [ebp - 0x10]
call fcn.0042fdb0
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x10]
call fcn.0046ade0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
jne 0x4568ea
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004458f0
mov eax, dword [ebp - 0x26c]
jmp 0x45697a
mov eax, dword [ebp - 0x264]
and eax, 0x10
je 0x456927
push 0x535d28
lea ecx, [ebp - 0x238]
push ecx
call fcn.005003e4
add esp, 8
test eax, eax
je 0x456925
push 0x535d2c
lea edx, [ebp - 0x238]
push edx
call fcn.005003e4
add esp, 8
test eax, eax
jne 0x456927
jmp 0x456936
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0045cf60
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4568ea
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x270], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004458f0
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret
Function at 0x457fe0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], 0x80004005
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 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], 0
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x4580c9
mov edx, dword [ebp - 4]
push edx
push str.MyWaitServiceStatusOK__dwWaitCount:__d
call fcn.0044a070
add esp, 8
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x458060
cmp dword [0x572594], 0
je 0x45805c
int3
jmp 0x4580d0
xor edx, edx
jne 0x45804c
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0xc]
jne 0x45806e
jmp 0x4580c9
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x24]
jne 0x45807c
cmp dword [ebp - 4], 0xa
jbe 0x458080
jmp 0x4580d0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e8
jae 0x4580a1
mov dword [ebp - 0xc], 0x3e8
jmp 0x4580b1
cmp dword [ebp - 0xc], 0x2710
jbe 0x4580b1
mov dword [ebp - 0xc], 0x2710
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x45801d
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret
Function at 0x458250
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 1
call fcn.0044cf50
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x10000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4582b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x536740
call fcn.0044a070
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x458420
push 0xf01ff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4582f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x5367d0
call fcn.0044a070
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x458408
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 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
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4583dd
cmp dword [ebp - 0x24], 4
jne 0x4583dd
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4583c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4583c1
cmp dword [ebp - 0x24], 1
jne 0x458372
mov dword [ebp - 8], 1
jmp 0x4583c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x1388
jbe 0x458384
jmp 0x4583c1
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3e8
jae 0x4583a5
mov dword [ebp - 0x30], 0x3e8
jmp 0x4583b5
cmp dword [ebp - 0x30], 0x2710
jbe 0x4583b5
mov dword [ebp - 0x30], 0x2710
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x458351
jmp 0x4583db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x536860
call fcn.0044a070
add esp, 0xc
jmp 0x4583f5
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 8]
push ecx
push 0x5366dc
call fcn.0044a070
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
jmp 0x45840f
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x458a60
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x458a7e
mov eax, 1
jmp 0x458b2a
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x458a96
mov eax, 1
jmp 0x458b2a
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x458ab1
xor eax, eax
jmp 0x458b2a
lea ecx, [ebp - 0x10]
push ecx
push 0x536b10
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
jne 0x458b05
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
jmp 0x458b25
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x458b25
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x458b25
xor eax, eax
jmp 0x458b2a
mov eax, 1
mov esp, ebp
pop ebp
ret