joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c730
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], 0
cmp dword [edi + 4], 0
jne 0x46c7cc
lea eax, [ebp - 0xa4]
push eax
call fcn.0046c850
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov esi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
push ecx
mov ecx, dword [ebp - 0x98]
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x9c]
sub ecx, edx
push ecx
push esi
push edx
push 0
push 0x40000000
push 0
push dword [eax + 0x84]
mov ecx, edi
call fcn.00421be0
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x664]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00426fe0
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
lea ecx, [ebp - 0x90]
mov eax, dword [eax]
movzx esi, word [eax]
mov eax, dword [ebp - 0x94]
cmp eax, ecx
je 0x46c7f9
push eax
call fcn.006140b6
add esp, 4
test si, si
jne 0x46c80d
mov eax, dword [edi + 0x10]
add eax, 0x6d8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x6d8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
mov byte [edi + 0x18], 1
xor ecx, ebp
pop edi
pop esi
call fcn.005c358e
mov esp, ebp
pop ebp
ret 4

Function at 0x46ccd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x6ce488]
xor eax, esp
mov dword [esp + 0x10], eax
movups xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0042c730
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x46cd66
lea eax, [esp + 4]
push eax
call fcn.0046c850
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov esi, dword [esi + 0x6f0]
test eax, eax
je 0x46cd41
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub eax, edx
mov ecx, dword [esp + 4]
push 0x54
push eax
mov eax, dword [esp + 0x14]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x46cd80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x6ce488]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042cbd0
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x46ce10
lea eax, [esp + 4]
push eax
call fcn.0046c850
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov esi, dword [esi + 0x6f0]
test eax, eax
je 0x46cdeb
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub eax, edx
mov ecx, dword [esp + 4]
push 0x54
push eax
mov eax, dword [esp + 0x14]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631630
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005c3873
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005c16b4
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4802f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
mov dword [ebp - 0x14], 1
sbb edi, edi
lea eax, [ebp - 0x10]
and edi, 1
neg esi
push eax
sbb esi, esi
push 0x6acd28
and esi, 2
push 0
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005c358e
mov esp, ebp
pop ebp
ret

Function at 0x4803f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 3
push accept
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x480434
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634138
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x44
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x14], 0
push 0
push eax
call fcn.005feb40
mov ax, word [ebp + 8]
lea ecx, [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x64], str.winsta0default
mov dword [ebp - 0x40], 1
mov word [ebp - 0x3c], ax
push esi
call fcn.004178d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x480de6
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401c70
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x480e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x480e3e
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x480e60
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480e80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634168
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x480f86
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0xf003f
push 0x6acdd4
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x480f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.OpenSCManager_failed___d_
push eax
call fcn.00402970
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
jmp 0x480f53
push 2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x480f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.OpenService_failed___d_
push eax
call fcn.00402970
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
jmp 0x480f53
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push ebx
call edi
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x480f72
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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 0x80004005
call fcn.00401f90
int3
Function at 0x481030
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ecx
push 0
push eax
call fcn.005feb40
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x481082
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x481101
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [ebp - 0x20c]
mov esi, str.EXPLORER.EXE
push eax
call fcn.00613ffc
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4810ea
test cx, cx
je 0x4810e6
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4810ea
add eax, 4
add esi, 4
test cx, cx
jne 0x4810c4
xor eax, eax
jmp 0x4810ef
sbb eax, eax
or eax, 1
test eax, eax
je 0x48111b
lea eax, [ebp - 0x230]
push eax
push ebx
call edi
test eax, eax
jne 0x4810b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c358e
mov esp, ebp
pop ebp
ret
Function at 0x481170
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6ba618
push 0x5fd9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x6ce488]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 0x2b0], ecx
mov ebx, 2
mov dword [ebp - 0x2b4], ebx
xor edi, edi
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2b8], edi
push 0x22c
push edi
lea eax, [ebp - 0x2ac]
push eax
call fcn.005feb40
add esp, 0xc
mov dword [ebp - 4], edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x2b8], esi
cmp esi, 0xffffffff
jne 0x48120b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x2b4], ebx
jmp 0x4812b0
mov dword [ebp - 0x2ac], 0x22c
lea eax, [ebp - 0x2ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4811f8
nop word [eax + eax]
mov eax, dword [ebp - 0x2a4]
cmp dword [ebp - 0x2b0], eax
jne 0x48129e
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x2c0], edi
test edi, edi
jne 0x4812da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x64
push edi
lea eax, [ebp - 0x80]
push eax
call fcn.005feb40
push dword [ebp - 0x2a4]
push dword [ebp - 0x2b0]
push esi
push str.error:_d:_d:_d
lea eax, [ebp - 0x80]
push eax
call fcn.00419ae0
add esp, 0x20
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [ebp - 0x2b8]
lea eax, [ebp - 0x2ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x481230
mov dword [ebp - 4], 0xfffffffe
call fcn.0048134f
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2bc]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4812b0
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x2b0]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2c4]
mov dword [ecx], eax
xor ebx, ebx
mov dword [ebp - 0x2b4], ebx
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4812b0
Function at 0x481590
Capabilities:
Find taskbar

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6341c8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
push 0x6a2efc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x481736
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x481736
push 0
push str.Shell_TrayWnd
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.ReBarWindow32
push 0
push eax
call esi
push 0
push str.MSTaskSwWClass
push 0
push eax
call esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
call fcn.00481170
test eax, eax
je 0x481662
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
xor eax, eax
movlpd qword [ebp - 0x6c], xmm0
mov word [ebp - 0x36], ax
lea ecx, [ebp - 0x14]
mov eax, 5
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x46], xmm0
movlpd qword [ebp - 0x3e], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x70], str.WinSta0Default
mov word [ebp - 0x48], ax
mov dword [ebp - 0x4c], 1
call fcn.004178d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4816db
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00401c70
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0
push eax
push 0
push 1
push dword [ebp - 0x1c]
call edi
push ecx
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00401af0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x481720
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 5
xor edx, edx
mov ecx, esi
call fcn.00480d60
add esp, 4
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x482ab0
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634328
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], esi
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.004178d0
mov dword [ebp - 4], 0
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x482c67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x6acff4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00417800
test al, al
jne 0x482b30
push 7
push 0x6acff4
lea ecx, [ebp - 0x10]
call fcn.00401e40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jle 0x482c05
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x482c05
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x482c05
lea eax, [edi + 1]
push eax
call fcn.005c386a
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x482c05
push esi
push edi
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x482ba1
push esi
call fcn.005c3e37
add esp, 4
jmp 0x482c05
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x6a2f8c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x482bc4
push esi
call fcn.005c3e37
add esp, 4
jmp 0x482c05
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov edx, ecx
mov eax, dword [eax + 0xc]
mov edi, eax
shr edx, 0x10
mov dword [ebp - 0x1c], edx
movzx ebx, cx
shr edi, 0x10
movzx esi, ax
call fcn.005c3e37
add esp, 4
lea eax, [ebp - 0x10]
push esi
push edi
push ebx
push dword [ebp - 0x1c]
push str._d._d._d._d
push eax
call fcn.00402970
mov ebx, dword [ebp - 0x24]
add esp, 0x18
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
push edi
call fcn.00401b80
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x482c34
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x482c53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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 0x80004005
call fcn.00401f90
int3
Function at 0x482c80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634366
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x220], edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x214], edi
push eax
push ebx
mov dword [ebp - 0x224], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x482d1e
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x482e85
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x69fdb8
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00417800
test al, al
jne 0x482e67
push esi
push 0x69fdb8
mov ecx, edi
call fcn.00401e40
jmp 0x482e67
push esi
call fcn.005c386a
add esp, 4
mov dword [ebp - 0x214], eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [ebp - 0x214]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x218], 0
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x482e8f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x214], esi
mov dword [ebp - 4], 1
test dword [ebp - 0x218], 0xfffffffc
jbe 0x482e32
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005feb40
mov ecx, dword [ebp - 0x228]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x210]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edx, dword [ebp - 0x21c]
test edx, edx
jne 0x482e0b
xor ecx, ecx
jmp 0x482e1f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482e10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x214]
call fcn.00401e40
mov esi, dword [ebp - 0x214]
push 1
push ebx
call fcn.005c385c
add esi, 0xfffffff0
push esi
call fcn.00401b80
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x482e67
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f90
push 0x80004005
call fcn.00401f90
int3
Function at 0x482ea0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x482f22
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x482f22
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x482f22
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret