joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fe0
Capabilities:
Terminate process
Terminate thread

Disassembly:
mov eax, ecx
mov ecx, dword [eax + 0x12c]
test ecx, ecx
je 0x401ff1
jmp 0x43bc60
mov ecx, dword [0x4900e8]
test dword [eax + 0x138], ecx
je 0x40200a
push str.CATIExtEvent::TerminateAllMsgThreads:_ERROR_m_pDriverMessage_is_NULL
call fcn.0040aac0
pop ecx
ret
mov eax, dword [0x4955c0]
test eax, eax
je 0x43bc88
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4955c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4955c0], 0
jmp fcn.0043a8b0

Function at 0x403930
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4910b0]
sub esp, 0x518
test eax, eax
push edi
mov edi, ecx
je 0x403a7d
push esi
lea eax, [esp + 0x18]
push 0
push eax
mov esi, 0xfa
call fcn.0040aad0
push eax
call fcn.0044c420
add esp, 0xc
cmp eax, 1
jne 0x4039e3
lea ecx, [esp + 8]
push ecx
push 0x2001f
push 0
lea edx, [esp + 0x28]
mov eax, 4
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4039e3
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.ATIPOLLINTERVAL
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4039d8
mov esi, dword [esp + 0x10]
cmp esi, 0xfa
jae 0x4039cb
mov esi, 0xfa
jmp 0x4039d8
cmp esi, 0x1388
jbe 0x4039d8
mov esi, 0x1388
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.HKeyPollerTimerEvent
push 0
push 1
push 0
mov dword [0x4910bc], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [edi + 0x24], eax
jne 0x403a19
mov edx, dword [0x4900e8]
test dword [edi + 0x34], edx
je 0x403a19
push str.FAILURE:_Failed_to_create_event_for_HKeyPollerTimerEvent
call fcn.0040aac0
add esp, 4
mov eax, dword [0x4910b0]
push 0
push esi
push 0x4d2
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x28], eax
test eax, eax
mov eax, dword [edi + 0x34]
jne 0x403a49
mov ecx, dword [0x4900e8]
test ecx, eax
je 0x403a61
push esi
push str.FAILURE:_Failed_to_SetTimer__tick_u
jmp 0x403a59
mov edx, dword [0x4900e8]
test edx, eax
je 0x403a61
push esi
push str.Timer_for_hotkey_poller_setup_ok__tick_u
call fcn.0040aac0
add esp, 8
mov eax, dword [edi + 0x28]
test eax, eax
pop esi
je 0x403a7d
mov eax, dword [edi + 0x24]
test eax, eax
je 0x403a7d
mov eax, 1
pop edi
add esp, 0x518
ret
xor eax, eax
pop edi
add esp, 0x518
ret
Function at 0x409c00
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push edi
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
test esi, esi
sete al
lea ecx, [esp + 0x3c]
mov dword [edx], 0x8001
mov dword [edx + 4], 0x620
push eax
push ecx
mov ecx, dword [esp + 0x40]
push 0x2c
lea eax, [esp + 0x14]
push eax
push 0x620
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x409c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
mov eax, 1
je 0x409c7e
mov edi, dword [esp + 0x40]
test edi, edi
je 0x409c7e
mov ecx, 0xb
lea esi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x2c
ret
mov eax, 1
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x409fd0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
cmp dword [0x491098], 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
jae 0x40a127
test byte [0x49116c], 2
jne 0x40a127
mov ecx, 0x491a60
call fcn.0042d710
cmp eax, dword [0x492b3c]
jae 0x40a127
push eax
mov ecx, 0x491a60
call fcn.00430450
mov esi, eax
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x20], esi
je 0x40a127
push 3
mov ecx, esi
call fcn.00437340
test al, 4
je 0x40a127
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00437120
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a060
sub eax, edx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
je 0x40a127
lea eax, [ebx + 1]
push eax
mov dword [ebp - 4], edi
call fcn.0045e556
add esp, 4
mov esi, eax
jmp 0x40a09a
test esi, esi
mov dword [ebp - 4], 0xffffffff
je 0x40a10a
lea ecx, [ebx + 1]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00437120
push eax
push esi
call fcn.0045de50
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a101
mov ecx, dword [ebp - 0x14]
push str.ExtEvent_SetDefault32BppOn2ndDrv
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0045de40
add esp, 4
mov eax, dword [0x4910b0]
push 0
push 0x7d0
push 0x14d0
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4910c0], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a740
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
push edi
xor eax, eax
push eax
mov ecx, 0x188
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0xb
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push 0x2c
lea ecx, [esp + 0x18]
push ecx
push 0x620
lea edx, [esp + 0x4c]
push edx
push str..pipeExtEventPipe_Service
mov dword [esp + 0x5c], 0x35
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x54], 0x8001
mov dword [esp + 0x58], 0x620
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x40a7b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40ac30
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push esi
push edi
xor eax, eax
push 4
push eax
mov ecx, 0x80
lea edi, [esp + 0x30]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40ac86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.bGlobalServiceAlive._failed_to_open_SCM._err_d
push eax
call fcn.0045e4c9
lea ecx, [esp + 0x34]
push ecx
call fcn.00411060
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x491098], 7
mov eax, str.Ati_HotKey_Poller
jbe 0x40ac99
mov eax, str.Ati_External_Event_Utility
push 4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40acdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.bGlobalServiceAlive._failed_to_OpenService._err_d
push edx
call fcn.0045e4c9
lea eax, [esp + 0x34]
push eax
call fcn.00411060
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0xc]
mov dword [esp + 0x1c], ecx
push edx
mov dword [esp + 0x24], ecx
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40ad40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.bGlobalServiceAlive._failed_to_QueryServiceStatus._err_d
push eax
call fcn.0045e4c9
lea ecx, [esp + 0x34]
push ecx
call fcn.00411060
add esp, 0x10
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov ecx, dword [0x491164]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
push eax
xor ebp, ebp
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], eax
call fcn.00424f40
mov esi, eax
add esp, 8
test esi, esi
je 0x40b3bc
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00426c10
add esp, 8
test eax, eax
jne 0x40b3bc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40b3c9
mov eax, SysReAllocString
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push 0
push str.Control_PanelDesktop_
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b43f
mov ecx, 0x41
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push str.ScreenSaverIsSecure
push edx
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b434
lea eax, [esp + 0x38]
push eax
call fcn.0045eb6d
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40b458
lea edx, [esp + 0x10]
push edx
push esi
call fcn.00426d10
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebp, ebp
pop edi
setne al
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x40c010
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x650
cmp dword [0x491098], 8
push esi
push edi
jb 0x40c045
call fcn.00427d30
push 0x55
mov ecx, 0x491a60
call fcn.00431dd0
push 0x1388
call fcn.00427d50
add esp, 4
mov eax, dword [0x492b40]
push eax
mov ecx, 0x491a60
call fcn.00430450
test eax, eax
je 0x40c064
push 0
mov ecx, eax
call fcn.00437340
jmp 0x40c066
xor eax, eax
and eax, 2
mov esi, eax
mov eax, dword [0x4910cc]
test eax, eax
je 0x40c0b0
mov ecx, dword [0x4910d8]
test ecx, ecx
je 0x40c0b0
push esi
call fcn.00421cc0
test esi, esi
jne 0x40c18d
mov eax, dword [0x492b40]
push eax
mov ecx, 0x491a60
call fcn.00430450
test eax, eax
je 0x40c144
mov ecx, eax
call fcn.00437330
jmp 0x40c146
mov eax, dword [0x49115c]
test eax, eax
je 0x40c12a
test byte [0x49116c], 2
je 0x40c12a
xor eax, eax
mov ecx, 0x188
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x491164]
mov dword [esp + 0x48], eax
push 1
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x2c
lea edx, [esp + 0x18]
push edx
push 0x620
lea eax, [esp + 0x4c]
push eax
push str..pipeExtEventPipe_Service
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x54], 0x8001
mov dword [esp + 0x58], 0x620
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x40c12a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040bec0
call fcn.0040bf60
jmp 0x40c08c
xor eax, eax
test ah, 0x20
je 0x40c155
push 0
call fcn.0040bd90
add esp, 4
mov ecx, 0x491a60
call fcn.0042dce0
test eax, eax
je 0x40c188
mov eax, dword [0x4900e8]
test eax, eax
je 0x40c179
push str.LARGEDESKTOP_FORCEDREMOVE_flag_detected_at_resume
call fcn.0040aac0
add esp, 4
mov ecx, dword [0x4910b8]
test ecx, ecx
je 0x40c188
call fcn.004017a0
call fcn.00440a60
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c350
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x492b40]
push ebx
push esi
push edi
push eax
mov ecx, 0x491a60
call fcn.00430450
test eax, eax
je 0x40c37e
push 0
mov ecx, eax
call fcn.00437340
jmp 0x40c380
xor eax, eax
and eax, 2
mov ebx, eax
mov eax, dword [0x49115c]
test eax, eax
mov dword [0x4955ac], 0
je 0x40c409
test byte [0x49116c], 2
je 0x40c409
xor eax, eax
mov ecx, 0x188
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [0x491164]
mov dword [esp + 0x50], eax
push 1
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x2c
lea edx, [esp + 0x20]
push edx
push 0x620
lea eax, [esp + 0x54]
push eax
push str..pipeExtEventPipe_Service
mov dword [esp + 0x64], 0x17
mov dword [esp + 0x5c], 0x8001
mov dword [esp + 0x60], 0x620
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x40c409
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4910d8]
test ecx, ecx
je 0x40c467
push 1
call fcn.004176f0
mov ecx, 0x491a60
xor esi, esi
call fcn.0042d340
test eax, eax
jbe 0x40c45a
lea ebx, [ebx]
push esi
mov ecx, 0x491a60
call fcn.0042d680
test eax, eax
je 0x40c44b
mov ecx, dword [0x4910d8]
push esi
call fcn.00418940
mov ecx, 0x491a60
inc esi
call fcn.0042d340
cmp esi, eax
jb 0x40c430
mov eax, dword [0x4910d8]
test eax, eax
je 0x40c467
test ebx, ebx
jne 0x40c49d
mov eax, dword [0x492b40]
push eax
mov ecx, 0x491a60
call fcn.00430450
test eax, eax
je 0x40c484
mov ecx, eax
call fcn.00437330
jmp 0x40c486
xor eax, eax
test ah, 0x20
je 0x40c49d
mov ecx, dword [0x4910b0]
push 0x4d4
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c4b0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x49115c]
test eax, eax
push edi
mov dword [0x4955ac], 0
je 0x40c541
test byte [0x49116c], 2
je 0x40c541
xor eax, eax
mov ecx, 0x188
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x491164]
mov dword [esp + 0x48], eax
push 1
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x2c
lea edx, [esp + 0x18]
push edx
push 0x620
lea eax, [esp + 0x4c]
push eax
push str..pipeExtEventPipe_Service
mov dword [esp + 0x5c], 0x17
mov dword [esp + 0x54], 0x8001
mov dword [esp + 0x58], 0x620
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x40c541
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4910d8]
test ecx, ecx
je 0x40c552
push 1
call fcn.004176f0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40c560
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x49115c]
test eax, eax
push edi
je 0x40c5e7
test byte [0x49116c], 2
je 0x40c5e7
xor eax, eax
mov ecx, 0x188
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x491164]
mov dword [esp + 0x48], eax
push 1
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push 0x2c
lea edx, [esp + 0x18]
push edx
push 0x620
lea eax, [esp + 0x4c]
push eax
push str..pipeExtEventPipe_Service
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x54], 0x8001
mov dword [esp + 0x58], 0x620
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
je 0x40c5e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4910d8]
test ecx, ecx
je 0x40c5f8
push 0
call fcn.004176f0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40dec0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
test dword [0x4900e8], 0x10000
mov dword [esp + 0x14], 1
je 0x40defe
push str.WinMain:_StartBlobalService_Trigger__n
call fcn.0040aac0
add esp, 4
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x40df41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.bGlobalServiceAlive._failed_to_open_SCM._err_d
push eax
call fcn.0045e4c9
lea ecx, [esp + 0x24]
push ecx
call fcn.00411060
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x491098], 7
mov eax, str.Ati_HotKey_Poller
jbe 0x40df54
mov eax, str.Ati_External_Event_Utility
push 0x10
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40df98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.StartGlobalService._failed_to_OpenService._err_d
push edx
call fcn.0045e4c9
lea eax, [esp + 0x24]
push eax
call fcn.00411060
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0
push 0
push edi
inc esi
call ebx
test eax, eax
jne 0x40dfbe
push 0x1f4
call ebp
cmp esi, 0xa
jl 0x40dfa6
cmp esi, 0xa
jne 0x40dfea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push str.StartGlobalService._failed_to_StartService._err_d
push ecx
call fcn.0045e4c9
lea edx, [esp + 0x24]
push edx
call fcn.00411060
add esp, 0x10
xor ebx, ebx
jmp 0x40dfee
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
test dword [0x4900e8], 0x10000
je 0x40e017
push str.WinMain:_StartBlobalService_Finish__n
call fcn.0040aac0
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411160
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x24]
xor edi, edi
test eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
je 0x41118a
mov edi, 1
test ecx, ecx
je 0x41118f
inc edi
test edx, edx
je 0x411194
inc edi
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x4111aa
lea eax, [esi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov esi, dword [esi + 0x6c]
test esi, esi
je 0x4111d0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
add esp, 0xc
ret 0x14

Function at 0x411210
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push str.Entering_CNTService::Initialize__
mov esi, ecx
call fcn.0040aac0
mov eax, dword [esi + 0x4c]
push 2
push eax
push str.CNTService::SetStatus__lu___lu_
call fcn.0040aac0
mov ecx, dword [esi + 0x4c]
add esp, 0x10
lea ebx, [esi + 0x50]
push ebx
push ecx
mov dword [esi + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp edi, ebp
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jne 0x4112d5
cmp eax, ebp
jne 0x41128a
lea eax, [esi + 4]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, ebp
je 0x4112a6
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push ebp
push 0x68
push ebp
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esi + 0x4c]
push 1
push edx
push str.CNTService::SetStatus__lu___lu_
call fcn.0040aac0
mov eax, dword [esi + 0x4c]
add esp, 0xc
push ebx
push eax
mov dword [esi + 0x54], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp eax, ebp
jne 0x4112e7
lea ecx, [esi + 4]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, ebp
je 0x411303
push ebp
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
push ebp
push 0x69
push ebp
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [esi + 0x4c]
push 4
push eax
push str.CNTService::SetStatus__lu___lu_
call fcn.0040aac0
mov ecx, dword [esi + 0x4c]
add esp, 0xc
push ebx
push ecx
mov dword [esi + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.Leaving_CNTService::Initialize__
call fcn.0040aac0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x411350
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x5c]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], str.WinSta0Default
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], esi
mov word [esp + 0x44], si
mov dword [esp + 0x48], esi
mov word [esp + 0x46], si
mov eax, str.Ati2evxx.exe__NoLogOnClient
jne 0x4113a2
mov eax, str.Ati2evxx.exe__Client
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x80]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x4113dd
push str.Failed_to_Create_Ati2evxx.exe_process_n
call fcn.0040aac0
add esp, 4
xor eax, eax
pop esi
add esp, 0x54
ret 8
push str.Client_Ati2evxx.exe_created_n
call fcn.0040aac0
mov eax, dword [esp + 8]
add esp, 4
cmp eax, esi
je 0x411401
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
add esp, 0x54
ret 8

Function at 0x411b00
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push ecx
push 0x411a50
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x411b36
push str.FAILURE:_HandlerEx:_Failed_to_create_thread.
call fcn.0040aac0
add esp, 4
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x4122c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
push edi
mov edi, dword [esp + 0x1c]
mov dword [edi], 0
jbe 0x412355
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
add esi, 4
mov dword [esp + 0x10], eax
mov ebx, 4
lea ecx, [ecx]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi - 4]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412335
cmp dword [esp + 0x28], ebx
jne 0x412335
cmp dword [esp + 0x24], 1
jne 0x412344
mov ecx, dword [esi]
mov eax, dword [edi]
or eax, ecx
jmp 0x412342
mov eax, dword [esi + 4]
test eax, eax
je 0x412344
mov edx, dword [esi]
mov eax, dword [edi]
or eax, edx
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add esi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x4122f0
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret