joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407650
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429690
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x449b88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
jne 0x40769b
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x4076b9
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
push eax
mov dword [esi], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40778f
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
call fcn.00428923
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407776
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x407766
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + 0xc]
push edx
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
push edi
push 0
call ebx
test eax, eax
je 0x407742
mov ecx, dword [ebp - 0x18]
push ecx
xor edi, edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
jmp 0x407797
call fcn.00407180
mov edi, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
mov dword [esi], 0
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
jmp 0x407797
mov ecx, dword [ebp - 0x18]
push ecx
mov edi, 0x8007000e
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
jmp 0x407797
mov edi, 0x8007000e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004071a0
mov edi, eax
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409373
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40934f
cmp eax, 2
jne 0x409361
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40936f
test eax, eax
je 0x40936c
cmp byte [eax + esi - 1], 0
je 0x40936f
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4093e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4093f9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x409403
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x409a90
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x104]
push 0x100
push edx
call dword [sym.imp.MSVCR100.dll__vsnprintf_s]
add esp, 0x14
cmp dword [esi + 0x160], 0
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
mov dword [ebp - 0x108], eax
jne 0x409aee
mov ecx, eax
push ecx
call dword [sym.imp.MSVCR100.dll_puts]
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x409b23
push 0
lea edx, [ebp - 0x108]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428a52
mov esp, ebp
pop ebp
ret
Function at 0x409ca0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call fcn.00409260
mov ebx, eax
cmp ebx, esi
je 0x409d1a
mov eax, dword [ebp - 0x110]
cmp eax, esi
je 0x409d05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push esi
push esi
push esi
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
push eax
mov dword [ebp - 0x114], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x409d9c
mov edi, edi
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00409ca0
mov ebx, eax
cmp ebx, esi
jne 0x409cf4
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
mov dword [ebp - 0x114], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x409d50
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x409db5
push eax
call ebx
mov dword [ebp - 0x110], esi
mov eax, dword [ebp - 0x118]
push eax
mov ecx, edi
mov dword [ebp - 0x10c], esi
call fcn.00409110
mov edi, eax
mov eax, dword [ebp - 0x110]
cmp eax, esi
je 0x409dd8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a52
mov esp, ebp
pop ebp
ret 4
Function at 0x409f90
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x409fe9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x409fda
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40a119
push 0x104
lea ecx, [ebp - 0x10b]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a07f
cmp eax, 0x104
je 0x40a07f
push 0xf003f
mov cl, 0x22
push 0
mov byte [ebp - 0x10c], cl
push 0
mov byte [ebp + eax - 0x10b], cl
mov byte [ebp + eax - 0x10a], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40a092
push 0x400
lea edx, [ebp - 0x50c]
push edx
push 0xd80a
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40a06a
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0x50c]
push 0x400
push eax
call fcn.00408af0
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea ecx, [ebp - 0x50c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40a10d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x50c]
push eax
push 0xd80b
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40a0fe
push str.Could_not_start_service
lea ecx, [ebp - 0x50c]
push 0x400
push ecx
call fcn.00408af0
add esp, 0xc
push 0
push edi
lea edx, [ebp - 0x50c]
push edx
jmp 0x40a077
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00428a52
mov esp, ebp
pop ebp
ret
Function at 0x40a130
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x824], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40a197
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x40a186
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a18c
mov edi, dword [ebp - 0x824]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40a1ad
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40a207
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0xd80a
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40a1f8
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00408af0
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x404]
push edx
jmp 0x40a344
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a265
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0xd80c
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40a1f8
push str.Could_not_open_service
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.00408af0
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x404]
push edx
jmp 0x40a344
lea eax, [ebp - 0x820]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40a2de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40a2de
cmp eax, 0x425
jne 0x40a296
cmp dword [ebp - 0x81c], 3
je 0x40a2de
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xd80e
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40a2cc
push str.Could_not_stop_service
lea edx, [ebp - 0x404]
push 0x400
push edx
call fcn.00408af0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x824], eax
call esi
push edi
call esi
cmp dword [ebp - 0x824], 0
jne 0x40a197
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80d
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40a33a
push str.Could_not_delete_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00408af0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00428a52
mov esp, ebp
pop ebp
ret
Function at 0x40b4f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40b511
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x409f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40b538
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d450
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.0040a130
test eax, eax
jne 0x40d46e
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x44abdc]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], str.APPID
mov dword [ebp - 0x18], 0x4310c0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040ceb0
cmp eax, ebx
jl 0x40d5a0
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00409260
cmp eax, ebx
je 0x40d4ea
push eax
call fcn.004071a0
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x40d4df
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.545C8D56_7A88_492D_B38D_559657A3DD4C
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004091c0
cmp eax, ebx
je 0x40d540
push eax
call fcn.004071a0
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x40d52a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40d535
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x40d590
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.004093a0
mov ecx, edi
call fcn.00409f90
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x40d590
call fcn.00409c80
lea ecx, [ebp - 0x18]
call fcn.00409c80
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.00409c80
lea ecx, [ebp - 0x18]
call fcn.00409c80
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d5c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.0040a130
test eax, eax
jne 0x40d5d8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00409260
cmp eax, esi
je 0x40d621
push eax
call fcn.004071a0
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x40d619
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.545C8D56_7A88_492D_B38D_559657A3DD4C
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00409260
cmp eax, esi
je 0x40d672
push eax
call fcn.004071a0
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x40d65e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x40d669
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [0x44abdc]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], str.APPID
mov dword [ebp - 0x1c], 0x4310c0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0040ceb0
mov dword [ebp - 4], eax
cmp edi, esi
je 0x40d6b6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x40d6c1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e6e0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x44a840
call fcn.0040b0f0
mov dword [ebp - 0x408], eax
test eax, eax
js 0x40e74d
mov ecx, dword [0x44abd0]
test ecx, ecx
je 0x40e72b
mov edx, dword [0x44a80c]
push edx
call ecx
add esp, 4
mov dword [ebp - 0x408], eax
test eax, eax
js 0x40e74d
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call sym.UNS.exe_public:_static_long_int___cdecl_NAP_SHA::ShaModule::InitializeSecurity_void_
test eax, eax
js 0x40e747
call sym.UNS.exe_public:_static_long_int___cdecl_NAP_SHA::ShaModule::RegisterSdkSha_void_
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40e7fb
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0xd80a
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne case.0x40e7aa.0
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp eax, 0x50
ja case.0x40e7aa.1
movzx edx, byte [eax + 0x40e8a0]
jmp dword [edx*4 + 0x40e890]
push 0x8007000e
call fcn.004026e0
push 0x80070057
call fcn.004026e0
push 0x80004005
call fcn.004026e0
push 0
push 0x434ab4
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push 0xf01ff
push 0x434ab4
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x431490
push 0
push 0
push 0x431488
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea ecx, [ebp - 0x40c]
push ecx
push 1
push esi
mov dword [ebp - 0x40c], str.Intel_R__Management_and_Security_Application_User_Notification_Service___Updates_the_Windows_Event_Log_with_notifications_of_pre_defined_events_received_from_the_local_Intel_R__Management_and_Security_Application_Device.
call ebx
lea edx, [ebp - 0x410]
push edx
push 3
push esi
mov dword [ebp - 0x410], 1
call ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.0040d880
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00428a52
mov esp, ebp
pop ebp
ret 8
Function at 0x40eb30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__stricmp]
push 0x433f84
push esi
call edi
add esp, 8
test eax, eax
je 0x40ebab
push str.console
push esi
call edi
add esp, 8
test eax, eax
jne 0x40ebab
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00408860
add esp, 8
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.MSVCR100.dll_getchar]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40eb9c
call fcn.00403d70
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40eb9c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40ebab
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp byte [0x44abcc], 0
pop edi
pop esi
je 0x40ebbf
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov ecx, 0x44a528
call fcn.0040ea50
cmp al, 1
jne 0x40ebf3
mov edx, dword [ebp + 0x14]
push edx
mov ecx, 0x44a528
call fcn.0040d6d0
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416ec0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x44
xor edi, edi
push edi
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x229], 0
mov dword [ebp - 0x248], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x230], esi
cmp esi, edi
je 0x416f28
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x416f3b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x234], edi
cmp dword [ebx], edi
jbe 0x417028
lea esp, [esp]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebx + edi*8 + 4]
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x228]
lea esi, [ebx + edi*8 + 4]
push ecx
push edx
push 0
mov dword [ebp - 0x238], 0x100
mov dword [ebp - 0x24c], 0xf
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov eax, dword [ebp - 0x240]
cmp eax, 2
je 0x416fa5
cmp eax, 4
jne 0x417001
test byte [ebx + edi*8 + 8], 7
je 0x417001
mov ecx, dword [esi]
lea eax, [ebp - 0x244]
push eax
push ecx
call sub.ADVAPI32.dll_ConvertSidToStringSidA
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x23c]
push 0
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.00416ac0
push eax
lea ecx, [ebp - 0x254]
push ecx
mov ecx, edi
call fcn.004163d0
mov edx, dword [ebp - 0x230]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41701b
mov eax, dword [ebp - 0x234]
inc eax
movzx edi, ax
mov dword [ebp - 0x234], eax
cmp edi, dword [ebx]
jb 0x416f50
jmp 0x417022
mov byte [ebp - 0x229], 1
mov esi, dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x229]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a52
mov esp, ebp
pop ebp
ret