joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024c7
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
mov edi, ecx
call fcn.00402476
test eax, eax
je 0x4024f6
xor eax, eax
inc eax
jmp 0x4025ba
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x402519
push esi
add edi, 0x30
push edi
push str.Couldnt_open_service_manager
jmp 0x402565
push 0x104
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push str.RPCSS
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push 1
push 2
push 0x110
push 0xf01ff
add edi, 0x30
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x7c], eax
push ebx
cmp eax, esi
jne 0x402570
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4025b8
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push 1
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], str.AVerScheduleService.exe_is_a_service_application_used_to_monitor_schedule_program.
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4025a0
push str._ScheduleService__CServiceModule__Install__ChangeServiceConfig2_failed
push 1
call fcn.0040dc6a
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop edi
call fcn.004583c3
add ebp, 0x194
leave
ret

Function at 0x4025d0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.00402476
test eax, eax
jne 0x4025e5
inc eax
jmp 0x40267a
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
jne 0x402611
push ebp
add esi, 0x30
push esi
push str.Couldnt_open_service_manager
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x402678
push ebx
push 0x10020
lea ebx, [esi + 0x30]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
jne 0x402639
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x40266f
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x402665
xor eax, eax
inc eax
jmp 0x402677
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x1c
ret
Function at 0x40267f
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call fcn.0045b31a
xor edi, edi
add esp, 0xc
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x254], edi
je 0x4026f4
add esi, 0x30
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x402701
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x402701
lea eax, [ebp - 0x204]
push eax
call fcn.0045b198
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004583c3
leave
ret

Function at 0x402c51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x402c6a
push 0x80004005
call fcn.00401445
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x402cd9
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x402cd4
cmp dword [ebp + 0x10], ebx
jbe 0x402cca
cmp dword [ebp + 0x10], 2
jbe 0x402cbc
cmp dword [ebp + 0x10], 7
jne 0x402cca
test cl, 1
jne 0x402cca
shr ecx, 1
cmp ecx, 1
jb 0x402cca
cmp word [esi + ecx*2 - 2], bx
jne 0x402cca
cmp ecx, 1
jbe 0x402cd9
cmp word [esi + ecx*2 - 4], bx
jmp 0x402cc8
test cl, 1
jne 0x402cca
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x402cd9
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x402cd9
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x402ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x402cf6
push 0x80004005
call fcn.00401445
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0x14]
je 0x402d09
cmp eax, 0xffffffff
jne 0x402d18
push 0x57
pop eax
jmp 0x402d39
cmp eax, 0xffffffff
jne 0x402d18
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
dec eax
and eax, 6
inc eax
push eax
push 0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0x10

Function at 0x402d3e
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x402d8f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x402da0
push 0xd
pop eax
jmp 0x402dcd
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402da3
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x403ca2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00402c10
mov ebx, eax
cmp ebx, esi
je 0x403d12
lea ecx, [ebp - 0x70]
call fcn.00402b9b
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004583c3
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403d2a
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00403ca2
cmp eax, esi
jne 0x403d5c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x403d1a
lea ecx, [ebp - 0x70]
call fcn.00402b9b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00402b31
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00402b9b
mov eax, esi
jmp 0x403cf8
Function at 0x40673b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x4888f6
call fcn.00458405
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x4067a3
call fcn.0040298a
mov esi, eax
jmp 0x4068a1
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4067bc
call fcn.0040298a
jmp 0x406896
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4067b2
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x20], edi
cmp eax, edi
jae 0x406827
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4067f3
lea ecx, [ebp]
call fcn.00403992
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.0040383f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004583c3
add ebp, 0x408
leave
ret 0x10
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004051f7
mov dword [ebp - 4], 1
jmp 0x406857
cmp dword [ebp], esi
jne 0x406863
mov esi, 0x8007000e
jmp 0x406898
push edi
push dword [ebp]
push edi
push dword [ebp - 0x18]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4067b2
mov edx, dword [ebp]
push dword [ebp + 0x41c]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.00406153
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4067f8
lea ecx, [ebp]
call fcn.00403992
jmp 0x4067f8
Function at 0x4085ba
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x48fed4
push 0x64
push esi
mov ebx, 0x4ba1a0
push 0x4b6080
mov ecx, ebx
mov dword [ebp - 0x70], eax
call fcn.00403a6d
mov esi, 0x490e44
lea edi, [ebp + 0x19c]
lea eax, [ebp + 0x19c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x70]
mov dword [0x4ba3f4], 1
movsw word es:[edi], word [esi]
call fcn.00402433
mov esi, eax
xor edi, edi
pop ecx
pop ecx
cmp esi, edi
je 0x408672
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x4086bc
push str.RegServer
push esi
call edi
test eax, eax
je 0x4086c5
push 0x490e08
push esi
call edi
test eax, eax
je 0x4086d2
lea eax, [ebp + 0x19c]
push eax
push esi
call fcn.00402433
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x408637
xor edi, edi
mov esi, 0x20019
push esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.00402c10
mov dword [ebp - 0x70], eax
cmp eax, edi
je 0x4086d6
lea ecx, [ebp - 0x7c]
call fcn.00402b9b
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004583c3
add ebp, 0x1a8
leave
ret 0x10
mov ecx, ebx
call fcn.00406462
jmp 0x4086a2
push 0
push 1
mov ecx, ebx
call fcn.0040636e
jmp 0x4086a2
push 1
jmp 0x4086c7
push esi
push str.563B9604_2884_46EB_8C8E_0C6C26D06247
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call fcn.00402c10
cmp eax, edi
je 0x408707
mov esi, eax
lea ecx, [ebp - 0x74]
call fcn.00402b9b
lea ecx, [ebp - 0x7c]
call fcn.00402b9b
mov eax, esi
jmp 0x4086a2
lea eax, [ebp - 0x80]
push eax
push str.LocalService
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], 0x104
call fcn.00402c51
mov dword [0x4ba3f4], edi
cmp eax, edi
jne 0x408737
mov dword [0x4ba3f4], 1
mov ecx, ebx
call fcn.00408570
mov esi, dword [0x4ba3e0]
jmp 0x4086f3

Function at 0x4087fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408851
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
jne 0x40884b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x408855
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4088a3
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
jne 0x40889d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x408957
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call fcn.0045b396
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call fcn.0045b4d1
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
push esi
push edi
call fcn.0045bc62
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.0045b59b
pop ecx
pop edi
pop esi
ret
Function at 0x408ff2
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str._ScheduleService__CScheduleWnd__ShutDown__Entry
push 1
call fcn.0040dc6a
pop ecx
pop ecx
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 0x40901f
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409068
xor eax, eax
jmp 0x409077
push esi
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x40a532
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__Entry
push 1
mov dword [ebp - 4], esi
call fcn.0040dc6a
mov eax, dword [ebp + 8]
xor ebx, ebx
pop ecx
pop ecx
cmp eax, ebx
je 0x40a6b0
cmp eax, 4
je 0x40a69d
cmp eax, 5
jbe 0x40a6dc
cmp eax, 7
jbe 0x40a58d
cmp eax, 0x12
jne 0x40a6dc
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
test eax, eax
je 0x40a58d
push 3
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
cmp dword [esi + 0x8c], ebx
je 0x40a6dc
cmp dword [esi + 0x9c], ebx
je 0x40a6dc
push str.PowrProf.dll
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x40a6dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetActiveScheme
push edi
call esi
cmp eax, ebx
je 0x40a694
lea ecx, [ebp + 8]
push ecx
push ebx
call eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [ebp - 0x10], bl
jne 0x40a639
push str.PowerWriteDCValueIndex
push edi
call esi
cmp eax, ebx
je 0x40a68b
push ebx
push 0x4a1954
push 0x4a18b4
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40a68b
push str.PowerSetActiveScheme
push edi
call esi
cmp eax, ebx
je 0x40a632
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40a62b
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__DC_wakeup_Disable_OK_
jmp 0x40a682
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__PowerSetActiveScheme_Fail_
jmp 0x40a682
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__DC_wakeup_Disable_Fail_
jmp 0x40a682
cmp byte [ebp - 0x10], 1
jne 0x40a68b
push str.PowerWriteACValueIndex
push edi
call esi
cmp eax, ebx
je 0x40a68b
push ebx
push 0x4a1954
push 0x4a18b4
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40a68b
push str.PowerSetActiveScheme
push edi
call esi
cmp eax, ebx
je 0x40a67d
push dword [ebp + 8]
push ebx
call eax
test eax, eax
jne 0x40a62b
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__AC_wakeup_Disable_OK_
jmp 0x40a682
push str._ScheduleService__CScheduleWnd__DoPowerBroadcast__AC_wakeup_Disable_Fail_
push 1
call fcn.0040dc6a
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x9c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a6dc
mov dword [esi + 0x90], ebx
mov dword [ebp + 8], ebx
cmp dword [esi + 0x8c], ebx
je 0x40a6dc
jmp 0x40a6b3
mov dword [ebp + 8], ebx
push 0x96
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00409cb9
test eax, eax
je 0x40a6cc
or eax, 0xffffffff
jmp 0x40a6de
mov eax, dword [ebp + 8]
add eax, 0xffffff88
push eax
push 6
mov ecx, esi
call fcn.00408c49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40aef7
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 8
mov eax, 0x488dbd
call fcn.004583d2
push dword [0x4b6c84]
mov eax, dword [ebp + 0x40c]
push dword [0x4b6c7c]
mov dword [ebp - 0x14], eax
call fcn.004088ed
pop ecx
pop ecx
test eax, eax
jg 0x40af4d
push 0x492860
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x40b16c
push 0x30
pop eax
mov esi, 0x1fe
push esi
mov word [ebp], ax
xor ebx, ebx
lea eax, [ebp + 2]
push ebx
push eax
call fcn.0045b7f0
add esp, 0xc
call fcn.00420c18
push eax
lea ecx, [ebp - 0x10]
call fcn.00401832
push 0x30
pop eax
push esi
mov word [ebp + 0x200], ax
lea eax, [ebp + 0x202]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0045b7f0
mov esi, 0x100
push esi
lea eax, [ebp + 0x200]
push eax
push dword [0x4b6c94]
push dword [0x4b6c88]
push dword [0x4b6c7c]
call fcn.00408911
push dword [0x4b6c94]
lea eax, [ebp + 0x200]
push eax
call fcn.0045c247
add esp, 0x28
test eax, eax
je 0x40b065
mov edi, dword [ebp - 0x10]
push esi
lea eax, [ebp + 0x200]
push eax
push dword [0x4b6c94]
push dword [0x4b6c90]
push edi
call fcn.00408911
push dword [0x4b6c94]
lea eax, [ebp + 0x200]
push eax
call fcn.0045c247
add esp, 0x1c
test eax, eax
je 0x40b065
lea eax, [ebp + 0x200]
push eax
call fcn.00457dfa
cmp word [ebp + eax*2 + 0x1fe], 0x5c
pop ecx
je 0x40b034
lea eax, [ebp + 0x200]
push 0x49285c
push eax
call fcn.0045c1fa
pop ecx
pop ecx
push esi
lea eax, [ebp]
push eax
push dword [0x4b6c94]
push dword [0x4b6c8c]
push edi
call fcn.00408911
push dword [0x4b6c94]
lea eax, [ebp]
push eax
call fcn.0045c247
add esp, 0x1c
test eax, eax
jne 0x40b146
mov edi, 0x200
push edi
lea eax, [ebp + 0x200]
push ebx
push eax
call fcn.0045b7f0
push edi
lea eax, [ebp]
push ebx
push eax
call fcn.0045b7f0
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.004017f7
push esi
lea eax, [ebp + 0x200]
push eax
push dword [0x4b6c94]
push dword [0x4b6c88]
push dword [0x4b6c7c]
call fcn.004088a7
lea eax, [ebp + 0x200]
push eax
push dword [0x4b6c7c]
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00406358
mov edi, dword [ebp - 0x10]
push esi
lea eax, [ebp + 0x200]
push eax
push dword [0x4b6c94]
push dword [0x4b6c90]
push edi
call fcn.004088a7
lea eax, [ebp + 0x200]
push eax
call fcn.00457dfa
add esp, 0x3c
cmp word [ebp + eax*2 + 0x1fe], 0x5c
je 0x40b112
lea eax, [ebp + 0x200]
push 0x49285c
push eax
call fcn.0045c1fa
pop ecx
pop ecx
push esi
lea eax, [ebp]
push eax
push dword [0x4b6c94]
push dword [0x4b6c8c]
push edi
call fcn.004088a7
lea eax, [ebp]
push eax
lea eax, [ebp + 0x200]
push eax
push 0x492844
push dword [ebp - 0x14]
call fcn.00406358
add esp, 0x24
jmp 0x40b161
lea eax, [ebp]
push eax
lea eax, [ebp + 0x200]
push eax
push 0x492844
push dword [ebp - 0x14]
call fcn.00406358
add esp, 0x10
lea ecx, [edi - 0x10]
call fcn.00401548
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004583c3
add ebp, 0x404
leave
ret
Function at 0x40d88a
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00457dfa
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
je 0x40d8da
lea eax, [ebp - 0x20c]
push 0x49285c
push eax
call fcn.0045c1fa
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push 0x493f64
push eax
call fcn.0045c1fa
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
push 0
push str.LOG_LEVEL
push 0x493f44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004583c3
leave
ret

Function at 0x40d9fb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b8db8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x40da2c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40db24
or dword [esi + 8], 0xffffffff
mov eax, dword [esi + 4]
cmp eax, 1
jg 0x40da55
add esi, 0xc
push 0
push esi
call fcn.0045d834
pop ecx
pop ecx
test eax, eax
jne 0x40db21
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40db21
dec eax
cmp dword [ebp + 8], eax
jne 0x40da96
push dword [ebp + 8]
add esi, 0xc
push esi
lea eax, [ebp - 0x20c]
push 0x493f80
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0045d834
add esp, 0x18
test eax, eax
jne 0x40db21
lea eax, [ebp - 0x20c]
push eax
jmp 0x40da4a
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x418], eax
mov ebx, 0x493f80
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
mov eax, dword [ebp + 8]
inc eax
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push ebx
push eax
call edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0045d834
add esp, 0x28
pop edi
pop ebx
test eax, eax
jne 0x40db07
mov eax, dword [ebp + 8]
inc eax
push eax
mov ecx, esi
call fcn.0040d9fb
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0045d778
pop ecx
pop ecx
cmp dword [ebp + 8], 1
jne 0x40db21
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.0045d778
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004583c3
leave
ret 4