joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b77a0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004af142
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x467983
xor al, al
jmp 0x467aaf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4679a5
xor al, al
jmp 0x467aaf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4679b8
xor al, al
jmp 0x467aaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4679cc
xor al, al
jmp 0x467aaf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004a2eed
test eax, eax
jne 0x467a00
xor al, al
jmp 0x467aaf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6cd8d4
mov dword [esp + 0x20], ebp
call fcn.004af142
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004abddd
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004abe34
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x467a94
mov ax, word [ebx]
test ax, ax
je 0x467a86
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00467ad0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x467a6a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004abe34
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x468010
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004ad4c9
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x468056
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004931a8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x6ede24
push ecx
call fcn.00494841
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x468960
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 0x468a03
test eax, eax
jbe 0x468a03
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x468a03
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 0x4689ae
xor esi, esi
jmp 0x4689b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4689df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403950
add esi, eax
push esi
mov ebx, esi
call fcn.00403950
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4689c0
pop ebp
test edi, edi
pop edi
jne 0x468a03
test ebx, ebx
je 0x468a03
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00493cb0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x468b45
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 0x468c5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468c5d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a6922
mov esi, eax
test esi, esi
je 0x468c5d
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 0x468c5d
mov ecx, esi
call fcn.00468ab0
cmp edi, eax
jge 0x468c5d
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 0x468be3
mov dword [esp + 0x34], 1
jmp 0x468c3e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x468c5d
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.004680b0
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 0x46ef30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00475300
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x46f029
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0040ce70
test eax, eax
jne 0x46f029
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0040ce70
test eax, eax
jne 0x46f029
lea edx, [esp + 0x10]
push 0x6eedd4
push edx
call fcn.004943b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46effa
lea eax, [esp + 0x10]
push 0x6eedd0
push eax
call fcn.004943b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46effa
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x46effd
mov byte [esi], 0
push 0x6eed64
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x475240
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b8248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4752f0
mov eax, dword [0x6f4ee0]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004a52c6
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004a5315
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004a5272
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4752d7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4752d7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a4e96
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x477e40
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b85e0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x477fe7
mov ecx, dword [0x6f4ee0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x477f3c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00476b60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004a4fcf
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004a4e96
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6eed64
call fcn.004a4f04
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00476f20
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004a4fcf
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004a4e96
lea ecx, [esp + 0xc]
call fcn.004a53aa
mov ecx, dword [esp + 0xc]
push 0x6eefd4
push ecx
call fcn.004932d4
add esp, 8
test eax, eax
je 0x477f64
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x477e9d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004a4e96
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a4e96
jmp 0x477feb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00477be0
test eax, eax
push 0
je 0x477fcf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00476280
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x477fb5
cmp eax, 0x64
jg 0x477fa3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x477f40
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x477f40
cmp eax, 0x64
jge 0x477f3c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x477f40
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00476280
mov esi, eax
jmp 0x477f40
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x477ff5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x483b00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x483b4c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x483b4c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x483b36
push eax
call ebp
test ax, ax
jl 0x483b44
inc esi
add edi, 4
cmp esi, 6
jb 0x483b28
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00483800
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x487870
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4878d0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4878d0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4878d0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4878d0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4878e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4889f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x488a39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x488eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00488a60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00488ae0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00488ae0
lea ecx, [esi + 0xc]
call fcn.004a4e21
lea ecx, [esi + 0x10]
call fcn.004a4e21
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048a070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048a070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048a070
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a4e96
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a4e96
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48a260
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48a2c6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48a2c6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48a2a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a72c6
Capabilities:
Get graphical window text

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

Function at 0x4a8ac1
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 0x4a8b03
call fcn.004af142
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a8b03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a8afa
xor eax, eax
jmp 0x4a8b0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a8b11
pop edi
pop esi
pop ebx
ret 4

Function at 0x4af672
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 0x4af6a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4af6be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004af5d8
jmp 0x4af6be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4af6be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004af5d8
test edi, edi
mov eax, edi
jne 0x4af6a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401720
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x40a945
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
lea ecx, [esp]
mov dword [esp + 4], 0
call fcn.0040a3f8
lea eax, [esp + 0x108]
mov dword [esp + 0x2a0], 1
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4017a7
lea ecx, [esp + 8]
push 0xff
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x4017a2
lea edx, [esp + 8]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4017a2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator
call sub.WSOCK32.dll_WSACleanup
push esi
mov esi, dword [esp + 0x2ac]
lea eax, [esp + 4]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2a4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x29c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2a4
ret 4

Function at 0x402710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x104
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x128]
push str.keyset.sys
push ecx
lea edx, [ebp - 0x22c]
push str._s_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x20]
push ebx
push eax
call sub.MFC42.DLL_CFile::CFile
push 0x2c
push 0x40dfa8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040a500
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407480
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4074b1
push eax
push eax
push 0x40d488
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop esi
add esp, 0x14
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
push 0
je 0x40750a
push 0
push 0x40d450
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop esi
add esp, 0x14
ret
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x407524
push eax
push eax
push 0x40d42c
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop esi
add esp, 0x14
ret
Function at 0x408cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ac08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push esi
push edi
lea eax, [ebp - 0x148]
mov dword [ebp - 0x10], esp
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x148]
push str.slvhis.pk
push ecx
lea edx, [ebp - 0x24c]
push str._s_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x24c]
xor esi, esi
lea ecx, [ebp - 0x28]
push 0x3000
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::GetLength
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [0x40df98]
xor ebx, ebx
and eax, 0xffff
shr edx, 4
lea eax, [eax + eax*2]
mov dword [ebp - 0x18], edx
cmp edx, eax
jle 0x408d92
mov ebx, edx
sub ebx, eax
mov edi, ebx
mov dword [ebp - 0x14], edi
cmp edi, edx
jge 0x408dde
mov esi, 0x18
lea ecx, [ebp - 0x44]
push esi
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFile::Read
mov eax, edi
mov ecx, esi
sub eax, ebx
lea esi, [ebp - 0x44]
lea edx, [eax + eax*2]
mov eax, ecx
shr ecx, 2
lea edi, [edx*8 + 0x40dfd8]
mov edx, dword [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x14], eax
mov edi, eax
xor esi, esi
jmp 0x408d97
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFile::Close
mov ecx, edi
mov edi, 0xffffff00
mov edx, 0xffffff
cmp ecx, 0x3e8
jae 0x408e3a
lea eax, [ecx + ecx*2]
and byte [eax*8 + 0x40dfd9], 0
mov eax, ecx
sub eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
and dword [eax + 0x40dfd8], edi
or dword [eax + 0x40dfe0], edx
or dword [eax + 0x40dfe4], edx
mov dword [eax + 0x40dfec], esi
and dword [eax + 0x40dfd8], 0xffff
mov dword [eax + 0x40dfdc], esi
inc ecx
jmp 0x408df2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040a500
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ac48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
push edi
lea eax, [ebp - 0x264]
mov dword [ebp - 0x10], esp
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x264]
push str.slvhis.pk
push ecx
lea edx, [ebp - 0x160]
push str._s_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
push 0x3000
push eax
call sub.MFC42.DLL_CFile::CFile
mov bl, 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFile::GetLength
cmp eax, 0x18
jbe 0x408fa7
push 2
push 0xffffffffffffffe8
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Seek
lea ecx, [ebp - 0x5c]
push 0x18
push ecx
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [0x413ff0]
mov ecx, dword [ebp - 0x5c]
mov edx, eax
mov esi, ecx
and edx, 0xff
and esi, 0xff
cmp esi, edx
jbe 0x408f63
lea eax, [ebp - 0x160]
push 0x1001
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040a500
jmp 0x408faf
mov edx, eax
xor edx, ecx
test dl, dl
jne 0x408faf
and ecx, 0xff00
and eax, 0xff00
cmp ecx, eax
jbe 0x408faf
lea eax, [ebp - 0x160]
push 0x1001
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040a500
jmp 0x408faf
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x160]
push 0x3001
push ecx
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [ebp - 0x40]
push 2
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call dword [edx + 0x30]
push 0x18
push 0x413ff0
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040a500
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.0040a500
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret