joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3230
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x506426
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x61bf20]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004ef562
cmp dword [0x6549f8], ebx
je 0x4a32a0
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004ed089
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x61bf20]
push ebp
push edi
mov edi, 1
mov dword [0x6549f8], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4a32c9
mov dword [esp + 0x20], ebx
jmp 0x4a32d0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004f185a
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004ed1c2
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4a332e
mov dword [esp + 0x14], ebx
jmp 0x4a3335
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4a334f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a3349
cmp eax, 2
jne 0x4a334f
mov dword [esp + 0x18], edi
jmp 0x4a3353
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a3361
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004eeb97
mov edi, eax
cmp edi, ebx
jne 0x4a3371
xor eax, eax
jmp 0x4a3374
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a339c
mov ecx, esi
call fcn.004f185a
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4a33b4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x6549f8], 0
test eax, eax
je 0x4a33dd
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4a33dd
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004ed089
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004ed089
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4a52f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x506618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004f407a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004a5230
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004f3fa8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4a53b7
cmp dword [esp + 0x40], 1
jne 0x4a53b5
cmp ecx, eax
jge 0x4a53b7
mov eax, ecx
cmp eax, 0x12c
jge 0x4a53c3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004a5410
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004f40ec
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4a96a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x506b06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x61bf20]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004ef562
mov edx, dword [0x61bf20]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4a96fa
mov dword [esp + 0x1c], ebx
jmp 0x4a9701
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004f185a
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004ed1c2
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4a9752
mov dword [esp + 0x14], ebx
jmp 0x4a9759
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4a9774
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4a976e
cmp eax, 2
jne 0x4a9774
mov dword [esp + 0x18], edi
jmp 0x4a9778
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4a9786
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004eeb97
mov edi, eax
cmp edi, ebx
jne 0x4a9796
xor eax, eax
jmp 0x4a9799
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4a97c1
mov ecx, esi
call fcn.004f185a
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4a97dd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a97fc
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4a97fc
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004ed089
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004ed089
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4aca60
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4acaaa
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4acad9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4acb1b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4b6e20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4b6ec3
test eax, eax
jbe 0x4b6ec3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4b6ec3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4b6e6e
xor esi, esi
jmp 0x4b6e74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4b6e9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041f380
add esi, eax
push esi
mov ebx, esi
call fcn.0041f380
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4b6e80
pop ebp
test edi, edi
pop edi
jne 0x4b6ec3
test ebx, ebx
je 0x4b6ec3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004dac10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4b7005
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4b711d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b711d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004eebbe
mov esi, eax
test esi, esi
je 0x4b711d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4b711d
mov ecx, esi
call fcn.004b6f70
cmp edi, eax
jge 0x4b711d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4b70a3
mov dword [esp + 0x34], 1
jmp 0x4b70fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4b711d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004b5800
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4edf08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f8e6c
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4edf39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004edf4c
pop edi
pop esi
pop ebx
ret 8

Function at 0x4ef562
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ef59a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ed530
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ed508
jmp 0x4ef5a6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f0f26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f0f68
call fcn.004f8e6c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f0f68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f0f5f
xor eax, eax
jmp 0x4f0f70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f0f76
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f939c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f93ca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f93e8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f9302
jmp 0x4f93e8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f93e8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f9302
test edi, edi
mov eax, edi
jne 0x4f93d2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4fc20c
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4fc234
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4fc245
push 2
call edi
test ax, ax
jge 0x4fc245
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004eeb97
cmp dword [esi + 0x30], ebx
jne 0x4fc31f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004eeb97
cmp eax, dword [esp + 0x34]
jne 0x4fc31f
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4fc2bb
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4fc300
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4fc31f
cmp eax, 0x205
je 0x4fc31f
cmp eax, 0x201
je 0x4fc31f
cmp eax, 0x204
je 0x4fc31f
cmp eax, ebx
jne 0x4fc2e6
cmp dword [esp + 0x1c], 0x1b
je 0x4fc31f
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x67b32c]
jbe 0x4fc315
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4fc278
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401f20
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
je 0x401f3a
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401f52
push eax
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x401f58
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x401f99
push dword [esi + 4]
push 0x5ca058
push str.Unable_to_lock_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x401fb0
call fcn.004f9e40
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_lock_the_computer.
push 0x5ca058
push 0x10
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x401fc0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x401fde
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401ff2
push eax
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x401ff8
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x402039
push dword [esi + 4]
push 0x5ca058
push str.Unable_to_log_off_the_computer.
push 0xfffe
push 0x20
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402050
call fcn.004f9e40
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Unable_to_log_off_the_computer.
push 0x5ca058
push 0x10
push dword [ebp + 8]
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402840
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xc
dec eax
push esi
cmp eax, 5
ja case.0x402853.4
jmp dword [eax*4 + 0x4029f8]
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
mov dword [esp + 0x10], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x402893
push 0
push 0
push str.the_computer
push str.shut_down
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
mov ecx, dword [ebp + 0x10]
or ecx, 2
call fcn.005089c0
mov edi, edi
test eax, eax
je 0x4029ee
push eax
push 0
push str.Unable_to_shut_down_the_computer.
push esi
call sym.SystemInformer.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.shut_down
push str.preforms_a_hard
push str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.004017e0
mov esi, dword [ebp + 8]
add esp, 0xc
push 1
push dword [eax + 4]
push str.the_computer
push str.shut_down
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
push 2
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
lea ebx, [ebx]
test eax, eax
jns 0x4029ee
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.SystemInformer.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.shut_down
push str.forces_a_critical
push str.This_option__s__s_in_an_disorderly_manner_and_may_cause_corrupted_files_or_instability_in_the_system.
call fcn.004017e0
mov esi, dword [ebp + 8]
add esp, 0xc
push 1
push dword [eax + 4]
push str.the_computer
push str.shut_down
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
push 0x80000000
push 6
push 6
call dword [sym.imp.ntdll.dll_NtSetSystemPowerState]
test eax, eax
jns 0x4029ee
push 0
push eax
push str.Unable_to_shut_down_the_computer.
push esi
lfence
call sym.SystemInformer.exe_PhShowStatus
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
mov dword [esp + 0x10], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
mov esi, dword [ebp + 8]
test eax, eax
je 0x4029cd
push 0
push 0
push str.the_computer
push str.update_and_shutdown
push esi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je case.0x402853.4
push 0x80000000
push 0x49
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
jne 0x4028a8
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402a20
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edx
push eax
mov edi, ecx
mov dword [ebp - 0xc], 0x1c
mov esi, 0xc0000001
mov dword [ebp - 8], str.EnableWarnings
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x402a6d
push 0
push 0
push str.the_computer
push str.restart
push edi
call sym.SystemInformer.exe_PhShowConfirmMessage
test al, al
je 0x402c22
lea eax, ds:[ebp - 0xc]
mov dword [ebp - 0xc], 0x34
push eax
mov dword [ebp - 8], str.EnableBootObjectsEnumerate
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
mov dword [ebp - 0xc], 0x48
lea eax, [ebp - 0xc]
mov dword [ebp - 8], str.EnableUpdateDefaultFirmwareBootEntry
push eax
setne bl
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
mov cl, bl
setne bh
call fcn.0051c980
mov dword [ebp - 8], eax
test eax, eax
je 0x402b8c
mov ecx, dword ds:[ebp - 4]
cmp ecx, dword [eax]
jae 0x402af4
lfence
mov eax, dword [eax + 8]
sub esp, 0x10
mov edx, esp
mov esi, dword [eax + ecx*4]
mov cl, bh
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
call fcn.0051c140
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, eax
mov ebx, esi
call fcn.0051cb20
lea ecx, [ecx]
test esi, esi
js 0x402b6c
push 0x80000000
push 5
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
test eax, eax
je 0x402c22
push eax
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x402c0d
push dword [esi + 4]
push 0x5ca058
push str.Unable_to_configure_the_boot_application.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402c22
mov edi, edi
call fcn.004f9e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ebx
cmp ebx, 0xc0000022
je 0x402b7e
cmp esi, 0xc0000005
jne 0x402b8c
mov esi, ebx
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
jmp 0x402baf
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x402b9f
movzx eax, si
jmp 0x402baf
mov eax, esi
and eax, 0xfff0000
cmp eax, 0xb0000
jne 0x402bbe
mov eax, esi
test eax, eax
je 0x402bbe
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
jmp 0x402bc7
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
mov esi, eax
test esi, esi
je 0x402c0d
lfence
lfence
push dword [esi + 4]
push 0x5ca058
push str.Unable_to_configure_the_boot_application.
push 0xfffe
push 0x20
push edi
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x402c22
lfence
call fcn.004f9e40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unable_to_configure_the_boot_application.
push 0x5ca058
push 0x10
push edi
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret