joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x459033
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45901a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ccfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004602e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8e457c
call fcn.0047e615
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x45fa53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047e615
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45fa4c
push 0
mov ecx, eax
call fcn.00456af0
mov dword [esi + 0xc], eax
jmp 0x45fa55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x45fa55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x480ca2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x480cda
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.0047ed2f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047ed07
jmp 0x480ce6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482395
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 0x4823d7
call fcn.00487e66
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4823d7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4823ce
xor eax, eax
jmp 0x4823df
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004823e5
pop edi
pop esi
pop ebx
ret 4
Function at 0x488396
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 0x4883c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4883e2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004882fc
jmp 0x4883e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4883e2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004882fc
test edi, edi
mov eax, edi
jne 0x4883cc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4027d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4027e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402824
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402820
lea ebx, [ebx]
cmp esi, eax
jae 0x402824
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402810
cmp esi, eax
jb 0x40282a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4058e4
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
jne 0x4058f0
xor eax, eax
jmp 0x4058f3
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx]
cmp ecx, eax
je 0x405918
test esi, esi
jne 0x405905
xor eax, eax
jmp 0x405908
mov eax, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je case.default.0x40597e
mov eax, dword [ebx + 4]
cmp eax, 0x100
jne 0x405a98
cmp dword [esi + 0xd8], 0
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xf4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xf8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
je case.default.0x40597e
push 0x11
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
lea ecx, [edi + 1]
jns 0x40596f
mov edi, ecx
mov eax, dword [ebx + 8]
add eax, 0xffffffdb
cmp eax, 3
ja case.default.0x40597e
jmp dword [eax*4 + 0x405af0]
test edi, edi
jne 0x40599f
cmp dword [esp + 0x10], ecx
jle 0x4059a9
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x4059a9
cmp dword [esp + 0x18], ecx
jle 0x4059a9
sub dword [esp + 0x18], ecx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xec], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], edx
jmp 0x405ad7
test edi, edi
jne 0x4059f5
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0xd0]
jge 0x405a05
push ecx
push edi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x405a05
mov edx, dword [esp + 0x18]
cmp edx, dword [esi + 0xd0]
jge 0x405a05
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0xec], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf4], edx
jmp 0x405ad1
test edi, edi
jne 0x405a4d
cmp dword [esp + 0xc], ecx
jle 0x4059a9
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x4059a9
cmp dword [esp + 0x14], ecx
jle 0x4059a9
sub dword [esp + 0x14], ecx
jmp 0x4059a9
test edi, edi
jne 0x405a7f
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xcc]
jge 0x405a05
push edi
push ecx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x405a05
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0xcc]
jge 0x405a05
add dword [esp + 0x14], ecx
jmp 0x405a05
cmp eax, 0x101
jne case.default.0x40597e
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xf4]
cmp eax, ecx
jle 0x405abb
mov dword [esi + 0xec], ecx
mov dword [esi + 0xf4], eax
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xf8]
cmp eax, ecx
jle 0x405ad7
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf8], eax
mov ecx, esi
call fcn.004055d0
push ebx
mov ecx, esi
call fcn.00449f2b
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x406030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e008
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 4], vtable.CGdiObject.0
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], vtable.CBrush.0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 8]
call fcn.004525e8
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x24]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 4], vtable.CBrush.0
mov dword [esp + 0x14], eax
lea ecx, [esp + 4]
call fcn.004037f0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret 0x18

Function at 0x4060d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x47e048
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], vtable.CGdiObject.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], vtable.CPen.0
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x40]
push ecx
push 1
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x10]
call fcn.004525e8
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004526c0
mov ecx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004520db
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.00451ca7
push edi
mov ecx, esi
call fcn.004526c0
lea ecx, [esp + 0xc]
call fcn.0045263b
or eax, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], vtable.CPen.0
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc]
call fcn.004037f0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 0x18
Function at 0x407600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x47e418
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0044b354
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x4c]
push str.Gifmap
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40764d
xor eax, eax
jmp 0x407699
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407649
push 0
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00455525
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00407580
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00455874
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x40a810
Capabilities:
Copy file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x354
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x350], eax
push esi
mov esi, dword [esp + 0x35c]
push edi
mov edi, dword [esp + 0x364]
lea eax, [esp + 0x254]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
push ecx
push 0x48bdc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a880
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0045e17e
add esp, 0x354
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [esp + 0x13], 0
lea esp, [esp]
test byte [esp + 0x18], 0x10
jne 0x40a8d6
push edi
lea edx, [esp + 0x15c]
push edx
call esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x15c]
push ecx
call ebp
push 1
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x4c]
push eax
call ebx
test eax, eax
je 0x40a8f8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a8a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
sete bl
jmp 0x40a8fc
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x360]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0045e17e
add esp, 0x354
ret
Function at 0x40a930
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x354
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x350], eax
push edi
mov edi, dword [esp + 0x35c]
lea eax, [esp + 0x250]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
push ecx
push 0x48bdc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x40a997
xor al, al
pop edi
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0045e17e
add esp, 0x354
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [esp + 0x10], 0
test byte [esp + 0x18], 0x10
jne 0x40a9ec
push edi
lea edx, [esp + 0x15c]
push edx
call ebp
push 0x48b9c4
lea eax, [esp + 0x15c]
push eax
call esi
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x15c]
push edx
call esi
lea eax, [esp + 0x44]
push eax
call ebx
test eax, eax
je 0x40aa10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
sete al
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x360]
neg eax
pop esi
sbb al, al
pop ebp
pop ebx
pop edi
xor ecx, esp
and eax, dword [esp]
call fcn.0045e17e
add esp, 0x354
ret

Function at 0x40aa50
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aab0
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aa80
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.Web1800AutoStart
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x40aab4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ecx
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret
Function at 0x40aad0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ab42
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.Web1800AutoStart
push ecx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ab59
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0045e17e
add esp, 0x114
ret
mov eax, dword [esp]
push ebx
push str.Web1800AutoStart
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.0045f020
add esp, 8
test eax, eax
je 0x40aba6
cmp byte [esp + 0x11c], 0
mov byte [eax], 0
je 0x40aba6
lea eax, [esp + 0x10]
push eax
call fcn.0040a930
add esp, 4
mov ecx, dword [esp + 0x114]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0045e17e
add esp, 0x114
ret

Function at 0x40abc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ed60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40acbf
mov edi, 0x1388
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0xff
push edi
push 0
lea eax, [ebp + 8]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp esi, 1
jne 0x40ac2f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40acb8
cmp esi, 0x102
jne 0x40ac58
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40ac07
test esi, esi
je 0x40acb8
lea esp, [esp]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40ac8c
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40ac60
mov dword [ebp - 0x18], 0xffffffff
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call ebx
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test esi, esi
je 0x40acb8
cmp esi, 0xffffffff
jne 0x40ac07
mov dword [ebp - 4], 0xffffffff
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 0x40ace0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x20
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.0044b354
lea eax, [esp]
push eax
push 0x28
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40ad28
push eax
push eax
push str.Current_proccess_cant_apply_for_the_reboot_priviledge_
call fcn.0045320f
xor eax, eax
add esp, 0x20
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40ad22
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
push edx
push 0x10
mov dword [esp + 0x24], eax
mov eax, edx
push eax
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ad22
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x20
ret

Function at 0x40ada0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ed80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x40ae10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40ae34
call fcn.0040ace0
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 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
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 0x40ae50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40ae60
mov eax, 1
ret 4
push esi
push eax
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40ae7e
mov eax, 1
pop esi
ret 4
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret 4
Function at 0x40aea0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40aeda
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40aee0
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40af2c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, 1
add esp, 0x1c
ret

Function at 0x40af40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eda0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 0x74]
call fcn.00435680
mov ecx, esi
call fcn.00449efa
mov byte [esi + 0x25e5], 1
mov eax, dword [esi + 0x27f0]
test eax, eax
je 0x40afa5
push str.Post_WM_QUIT_Message
push eax
call fcn.00430fd0
add esp, 8
push 0
push 0
push 0x12
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [esi + 0x27f0]
test esi, esi
je 0x40afcd
push str.force_to_quit
push esi
call fcn.00430fd0
add esp, 8
push 0
call fcn.0045f90c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x27f0]
test eax, eax
je 0x40afef
push str.CRTSClientDlg::CloseDialog_unknown_exception.
push eax
call fcn.00430fd0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40affc
ret