joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411116
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xfffffffe
and edi, 1
cmp word [ebx], 0
mov dword [ebp - 0x14], edi
je 0x4112ed
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x41114b
mov edi, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call esi
add eax, edi
mov edi, dword [ebp - 0x10]
push edi
lea ebx, [ebx + eax*2]
call esi
and dword [ebp - 8], 0
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x411177
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x411189
push edi
call fcn.004662e5
test eax, eax
pop ecx
je 0x411189
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.00434695
cmp dword [ebp - 8], 0
je 0x4111a5
push 0x47d0f0
lea ecx, [ebp + 8]
call fcn.0042af26
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004663ce
push dword [ebp + 8]
call fcn.0040a26f
add esp, 0x10
push dword [ebp + 8]
call esi
inc eax
lea edi, [eax + eax]
mov eax, dword [ebp + 8]
mov word [edi + eax - 2], 0x5c
mov eax, dword [ebp + 8]
and word [edi + eax], 0
cmp dword [ebp - 0xc], 0
je 0x411290
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0042af26
test byte [ebp - 0x264], 0x10
jne 0x41123b
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x41122f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411277
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41122a
inc eax
mov dword [ebp - 4], eax
jmp 0x411277
call fcn.0040b91f
test eax, eax
pop ecx
je 0x411277
jmp 0x41122a
cmp word [ebp - 0x238], 0x2e
jne 0x411263
cmp word [ebp - 0x236], 0
je 0x411277
cmp word [ebp - 0x236], 0x2e
jne 0x411263
cmp word [ebp - 0x234], 0
je 0x411277
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411116
test eax, eax
pop ecx
pop ecx
jne 0x411277
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00403bb2
test eax, eax
jne 0x4111ec
jmp 0x41129e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41129b
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402a12
xor edi, edi
cmp dword [ebp - 8], edi
je 0x4112db
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x4112ce
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4112db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x4112d8
xor eax, eax
inc eax
jmp 0x4112d8
call fcn.0040b91f
cmp eax, edi
pop ecx
je 0x4112db
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0042602e
cmp word [ebx], di
jne 0x411148
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x412ad9
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x493003], 1
je 0x412af1
push str.UCallBackhWnd
call fcn.0040bcd7
test eax, eax
pop ecx
jne 0x412af4
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x412b2f
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x412b2f
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x4132b6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042aed6
cmp word [ebx], 0x5c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea edi, [eax + esi*2]
mov dword [ebp - 8], 2
jne 0x41338f
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x413325
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
je 0x413325
mov dword [ebp + 8], esi
push edi
inc ebx
push 0x324
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [edi], 0
mov esi, edi
je 0x4133f6
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x41337c
mov edi, dword [ebp - 4]
push ebx
push esi
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.004662e5
add esp, 0x14
test eax, eax
je 0x41337c
push 0x47d0f0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.004131fe
pop ecx
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x41333f
jmp 0x4133f6
push ebx
call fcn.0040ca55
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.004662e5
test eax, eax
pop ecx
pop ecx
je 0x4133c0
push esi
lea ecx, [ebp + 8]
call fcn.00426075
push 0x47d0f0
lea ecx, [ebp + 8]
call fcn.0042af26
mov esi, dword [ebp + 8]
push esi
push 0x47d340
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040a26f
push esi
call fcn.004662e5
add esp, 0x14
test eax, eax
je 0x4133ee
push dword [ebp - 4]
call fcn.004131fe
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0042602e
lea ecx, [ebp - 0xc]
call fcn.0042602e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413a63
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x41c
lea ecx, [ebp - 4]
call fcn.0042aed6
mov eax, dword [ebp - 4]
mov esi, eax
push esi
xor ebx, ebx
push 0x208
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
push esi
push str.__OldDir
call fcn.00429dbf
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x413ab4
cmp word [esi], 0x2a
jne 0x413ad6
inc esi
inc esi
mov dword [ebp + 8], esi
je 0x413ad6
push 0x104
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, ebx
je 0x413ad0
push esi
lea ecx, [ebp - 4]
call fcn.0042af26
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.00409aad
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call fcn.0040cf55
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
push esi
push 0x47d398
call fcn.00429e0f
push 0x5c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp dword [ebp + 0xc], ebx
mov edi, eax
mov word [edi + 2], bx
jne 0x413b1b
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
push esi
push 0x47d384
mov word [edi], bx
call fcn.00429e0f
call fcn.0040a64b
mov ecx, dword [ebp - 8]
push esi
push 0x47d370
mov word [esi + 4], bx
call fcn.00429e0f
lea ecx, [ebp - 0xc]
call fcn.0042602e
lea ecx, [ebp - 4]
call fcn.0042602e
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x415797
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x49062c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x4157c0
cmp dword [0x48fe74], ebx
jne 0x4157c0
mov dword [0x48fe70], ebx
movzx eax, byte [esp + 0x30]
add dword [0x48fe74], 1
cmp dword [0x48fe6c], ebx
mov dword [esp + 0x30], eax
jne 0x415805
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x415698
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x48fe6c], eax
jne 0x415805
sub dword [0x48fe74], 1
xor esi, esi
jmp 0x4158f5
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp esi, 0x3e8
jb 0x41582c
push ebx
call fcn.00427960
pop ecx
cmp dword [esp + 0x34], 2
jne 0x4158c2
cmp esi, ebx
jne 0x4158c2
push 0xa
pop esi
jmp 0x4158c2
cmp dword [esp + 0x34], 2
je 0x415855
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x4158ce
cmp byte [0x48e2ac], bl
jle 0x4158ce
push 0xa
pop eax
cmp esi, eax
ja 0x415866
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x4158ba
cmp dword [0x48fe70], ebx
jne 0x4158ce
cmp dword [esp + 0x34], 2
je 0x415890
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x4158c2
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4158c2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x48e2ac], bl
jg 0x415877
cmp dword [0x48fe70], ebx
je 0x415844
push 0x49062c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x48fe70]
sub dword [0x48fe74], 1
pop ebp
jne 0x4158ee
mov dword [0x48fe70], ebx
mov esi, eax
mov edi, 0x49062c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x416397
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 8]
mov ax, word [ecx]
cmp ax, 0x40
jne 0x4163c1
add ecx, 2
push ecx
call fcn.0040ca55
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040a64b
jmp 0x41640a
cmp ax, 0x23
jne 0x4163d6
add ecx, 2
push 0
push ecx
call fcn.004112f4
pop ecx
pop ecx
jmp 0x41640a
xor edx, edx
cmp ax, dx
je 0x4163e6
push ecx
call fcn.00416366
pop ecx
leave
ret
push esi
push edi
push 0x10
pop ecx
mov esi, str.PATH____SystemRoot_SYSTEM32
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push edx
push edx
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x48feb8
movsw word es:[edi], word [esi]
call fcn.0041ff01
pop edi
pop esi
xor eax, eax
leave
ret
Function at 0x418976
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp word [eax], 0
jne 0x418a29
push ebx
push ebp
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [esp + 0x14]
mov ecx, esi
mov edi, eax
call fcn.00426075
lea eax, [edi + 0x3c]
push eax
mov ecx, esi
call fcn.0042aeff
push dword [esi]
call fcn.004662e5
test eax, eax
pop ecx
jne 0x4189be
push dword [esi]
call fcn.00416366
pop ecx
and dword [esp + 0x14], 0
lea ebx, [edi + edi]
mov edi, dword [esi]
add edi, ebx
call fcn.00427c6b
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.PECMDDEVI_lu_lu.tmp.dir
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418a0a
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jl 0x4189c6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
add eax, eax
mov word [eax + ecx], 0x5c
mov ecx, dword [esi]
and word [eax + ecx + 2], 0
mov eax, dword [esi]
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x41ddfb
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
sete byte [ebp - 4]
call fcn.00403b20
mov edi, dword [ebp + 8]
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 3]
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 2], 0x2a
mov byte [ebp - 3], 0
mov byte [ebp - 1], 0
call fcn.00415905
mov eax, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
cmp word [eax], bx
mov esi, 0x49062c
push esi
je 0x41df01
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 4], bl
je 0x41de71
cmp dword [0x48fde4], ebx
jne 0x41df6e
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 2]
mov byte [0x48e2a1], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x48fe20], 1
jne 0x41de9c
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x41de9c
mov byte [0x48e2a1], 0
push 0x48fb8c
push 0x10000
push edi
push 0x41c682
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x18], eax
cmp word [edi], bx
jne 0x41dee3
cmp byte [0x48fe20], 0
je 0x41dffc
call esi
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x41dffc
push 0x14
mov ecx, 0x48feb8
call fcn.0040b352
jmp 0x41ded1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0xbb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x48fde4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
push str.LogohWnd
mov ebx, str.SOFTWAREPELOGON
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 0x1c], 4
call fcn.00426db8
push str.LogohWnd
push ebx
push edi
call fcn.00426ea6
xor ecx, ecx
add esp, 0x24
cmp dword [ebp - 0x10], ecx
jne 0x41df7a
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jne 0x41df7a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41dffc
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x48fde4]
mov al, byte [ebp - 3]
jne 0x41df97
test al, al
jne 0x41df94
cmp byte [ebp - 1], al
jne 0x41df94
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
neg ecx
sbb ecx, ecx
lea edi, [ebp - 0xc]
and ecx, edi
neg al
push ecx
sbb eax, eax
add eax, 0x67
push eax
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp byte [ebp - 1], 0
mov ebx, eax
je 0x41dfdd
mov edi, 0x48fde4
mov dword [ebp - 0x18], 0xfa0
jmp 0x41dff7
mov edi, dword [ebp - 0x24]
jmp 0x41dff7
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jae 0x41dffc
push 0xa
mov ecx, 0x48feb8
call fcn.0040b352
cmp dword [edi], 0
jne 0x41dfe2
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x41e5ab
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x98
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x47bedc
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.00434695
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.0040c2fb
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.0042aed6
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040a477
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040aafe
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x47d384
mov dword [ebp - 0x18], eax
call fcn.00429dbf
movzx eax, si
push eax
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x24], si
call fcn.0042965b
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.0041b590
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov ebx, 0x49062c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push 0
push 0x47d3f8
mov ecx, edi
call fcn.0040f7cf
test eax, eax
je 0x41e67d
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x47d388
call fcn.00429dbf
and dword [ebp + 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041c5fe
lea ecx, [ebp + 0xc]
call fcn.0042602e
lea ecx, [ebp + 0x68]
call fcn.0042602e
lea ecx, [ebp + 0x64]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x41f4ca
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x20a
lea ecx, [ebp - 4]
call fcn.0042aed6
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.0042af26
mov cl, byte [ebp + 0xc]
test cl, 0x20
mov eax, str.unknown
je 0x41f521
mov eax, 0x47ae44
test cl, 0x10
je 0x41f52b
mov eax, str.reboot
test cl, 2
je 0x41f535
mov eax, str.logout
test cl, 4
je 0x41f53f
mov eax, str.suspend
test cl, 8
je 0x41f549
mov eax, str.hiber
test cl, 0x40
je 0x41f553
mov eax, str.poweroff
test cl, cl
jns 0x41f55c
mov eax, str.lock
push eax
lea ecx, [ebp - 4]
call fcn.0042af26
push 0x47aff8
lea ecx, [ebp - 4]
call fcn.0042af26
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0042af26
push dword [ebp - 4]
mov ecx, 0x48feb8
call fcn.0041e8ce
lea ecx, [ebp - 4]
call fcn.0042602e
leave
ret

Function at 0x41f594
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call fcn.0041f4ca
push 2
push str.SeShutdownPrivilege
and esi, 0x4000
call fcn.0040cf93
push 2
push str.SeRemoteShutdownPrivilege
call fcn.0040cf93
add esp, 0x18
call fcn.0040b702
xor edi, edi
test byte [ebp + 0xc], 1
jne 0x41f5f8
cmp eax, 0x60002
jb 0x41f5f8
xor eax, eax
cmp dword [ebp + 8], edi
setne al
push eax
push 1
push edi
push 0x47a8e8
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x41f617
lea eax, [ebp - 4]
push eax
push 1
push 2
push edi
push 1
push 0x16
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push str.NtShutdownSystem
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, edi
je 0x41f643
xor eax, eax
cmp dword [ebp + 8], edi
sete al
inc eax
push eax
call ecx
pop edi
pop esi
leave
ret
Function at 0x4260ef
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
mov byte [esi], 0
je 0x42611d
test byte [0x4901c4], 4
jne 0x42611d
push 2
mov byte [esi], 1
or byte [0x4901c4], 4
push str.SeDebugPrivilege
call fcn.0040cf93
pop ecx
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x426db8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x48fb88]
push esi
xor esi, esi
cmp ax, si
jne 0x426de4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48fd6c]
jmp 0x426e2c
push esi
lea ecx, [ebp - 4]
push ecx
push esi
movzx eax, ax
or eax, 0x20019
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x426e2c
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x426e2f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x48fb88]
push esi
xor esi, esi
cmp ax, si
jne 0x426e5b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48ffe0]
jmp 0x426ea3
push esi
lea ecx, [ebp - 4]
push ecx
push esi
movzx eax, ax
or eax, 0x20006
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x426ea3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x426ea6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x48fb88]
test ax, ax
jne 0x426ec6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48ffe4]
leave
ret
and dword [ebp - 4], 0
movzx eax, ax
lea ecx, [ebp - 4]
push ecx
or eax, 2
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426f02
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x427185
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0042605a
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0042605a
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x48feb8
call fcn.0040b047
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0042602e
lea ecx, [ebp - 8]
call fcn.0042602e
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
push 0x47a8e8
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427262
cmp byte [eax], 0x2d
jne 0x427244
mov dword [ebp + 0xc], 0x47b452
cmp byte [eax], 0
je 0x427262
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push edi
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret