joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430f30
Capabilities:
Check mutex on windows

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push 0xc
mov dword [esi], vtable.CPUIDSDK.0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x430f76
mov dword [eax], vtable.CTList_class_CInterface_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x430f78
xor eax, eax
push 0xc
mov dword [esi + 0x20], eax
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x430f97
mov dword [eax], vtable.CTList_class_CIOSpace_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x430f99
xor eax, eax
push 0xc
mov dword [esi + 0x18], eax
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x430fb8
mov dword [eax], vtable.CTList_class_CRegisterSpace_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x430fba
xor eax, eax
push 0xc
mov dword [esi + 0x1c], eax
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x430fd9
mov dword [eax], vtable.CTList_class_CDevice_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x430fdb
xor eax, eax
push 0xc
mov dword [esi + 0x24], eax
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x430ffa
mov dword [eax], vtable.CTList_class_CPLL_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x430ffc
xor eax, eax
push 0xc
mov dword [esi + 0x30], eax
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x43101b
mov dword [eax], vtable.CTList_class_CTimer_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x43101d
xor eax, eax
push 0xc
mov dword [esi + 0x28], eax
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x43103c
mov dword [eax], vtable.CTList_class_CSensor_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x43103e
xor eax, eax
push str.CPUIDSDK
push ebx
push ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43106b
mov dword [esi + 8], 1
mov dword [esi + 4], ebx
push 0xc
mov byte [0x4cc0e4], bl
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x431096
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], vtable.CTList_class_CCommand_.0
mov dword [esi + 0x10], eax
mov eax, esi
pop esi
pop ebx
ret
mov dword [esi + 0x10], ebx
mov eax, esi
pop esi
pop ebx
ret
Function at 0x431ec0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x58
mov eax, dword [0x4ca09c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x64]
push edi
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x432016
push esi
push edi
call fcn.00472897
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43200c
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x4a497c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43200c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x431fed
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 2]
movzx eax, word [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x431f9f
mov edx, dword [esp + 0x14]
push edx
lea eax, [ebx + 0x10]
push 0x100
push eax
call fcn.004310e0
add esp, 0xc
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x431fed
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [ebx + 0x110]
push 0x100
push edx
call fcn.004310e0
add esp, 0xc
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [ebx], ecx
movzx edx, word [eax + 8]
mov dword [ebx + 4], edx
movzx ecx, word [eax + 0xe]
mov dword [ebx + 8], ecx
movzx edx, word [eax + 0xc]
mov dword [ebx + 0xc], edx
push esi
call fcn.004728c7
add esp, 4
pop esi
mov ecx, dword [esp + 0x60]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004811b7
add esp, 0x58
ret 8
Function at 0x4451d0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [ecx + 0x210]
xor eax, eax
cmp edx, 0xffffffff
je 0x445206
mov ecx, dword [ecx + 0x21c]
push esi
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x445205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret 4

Function at 0x445210
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [ecx + 0x214]
xor eax, eax
cmp edx, 0xffffffff
je 0x445246
mov ecx, dword [ecx + 0x218]
push esi
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x445245
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret 4
Function at 0x46fc60
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov ebp, eax
call esi
mov edi, eax
push 0x4acc54
mov dword [esp + 0x2c], edi
call esi
xor esi, esi
push 2
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x46fe0a
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x46fcd5
cmp eax, 0x80010119
jne 0x46fdb1
lea eax, [esp + 0x10]
push eax
push 0x4b124c
push 1
push esi
push 0x4b130c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x46fdb1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push ebp
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x46fdb1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push esi
push esi
push edi
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jl 0x46fdb1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
push edx
push 1
push 0xfa0
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], 1
jne 0x46fdb1
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
push ecx
push eax
call edx
cmp word [esp + 0x30], 0x2011
jne 0x46fdb1
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0x10]
cmp edi, esi
je 0x46fdb1
cmp edi, 0x4000
jg 0x46fdb1
mov eax, dword [eax + 0xc]
mov ecx, dword [ebx + 0xc]
push edi
push eax
push ecx
call fcn.00482f30
mov edx, dword [ebx + 0x10]
add esp, 0xc
mov word [edx + 6], di
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46fdc5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x46fdd9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x46fded
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
push ebp
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret
Function at 0x477ea2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x477edb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477e65
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040ea70
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4799fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x479a3f
call fcn.004747d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x479a3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x479a5a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004795b3
test ebx, ebx
mov esi, eax
je 0x479a58
test edi, edi
je 0x479a58
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x47a6f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x49ddb2
call fcn.0048396e
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004747d3
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x47a740
call fcn.004747d3
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x47a751
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x47a75e
or eax, 0xffffffff
jmp 0x47a8ba
mov ecx, esi
call fcn.0047a247
mov dword [ebp - 0x14], eax
call fcn.00476ef7
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x47a7dc
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x47a7dc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x47a7dc
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00404d00
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x47a7dc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x47a7dc
mov ecx, ebx
call fcn.004737d7
test eax, eax
je 0x47a7dc
push 0
mov ecx, ebx
call fcn.004737f2
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004788df
push dword [ebp - 0x14]
call fcn.00476e4f
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0047a4fd
xor edi, edi
cmp eax, edi
je 0x47a839
test byte [esi + 0x3c], 0x10
je 0x47a823
push 4
pop edi
mov ecx, esi
call fcn.004736be
test ax, 0x100
je 0x47a819
push 5
pop edi
push edi
mov ecx, esi
call fcn.00476a17
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x47a839
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00473859
or dword [ebp - 4], 0xffffffff
jmp 0x47a864
cmp dword [ebp - 0x28], edi
je 0x47a872
push 1
mov ecx, ebx
call fcn.004737f2
cmp dword [ebp - 0x2c], edi
je 0x47a882
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x47a89b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x47a89b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0047a281
cmp dword [esi + 0x58], edi
je 0x47a8b7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004839da
ret
Function at 0x47c5ab
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ca09c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x47c5eb
push 0x4af0a0
push 4
push eax
call fcn.00481ba5
push eax
call fcn.00413110
add esp, 0x10
jmp 0x47c5fd
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x47c66b
push edi
call fcn.00483ada
mov edi, dword [eax]
call fcn.00483ada
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00483697
add esp, 0x18
mov ebx, eax
call fcn.00483ada
cmp dword [eax], 0
je 0x47c64b
call fcn.00483ada
push dword [eax]
call fcn.004729c3
pop ecx
jmp 0x47c652
call fcn.00483ada
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x47c66b
cmp ebx, esi
jae 0x47c66b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x47c66d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004811b7
leave
ret
Function at 0x47e095
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 0x47e0c3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e0e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047dfff
jmp 0x47e0e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e0e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0047dfff
test edi, edi
mov eax, edi
jne 0x47e0cb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4cdc68]
test ecx, ecx
je 0x47e1a4
jmp 0x47e094
ret 8

Function at 0x4811b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ca09c]
jne 0x4811c1
repz ret
jmp fcn.00485be3

Function at 0x48cea5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4cacf0]
je 0x48cec0
inc edi
cmp edi, 0x17
jb 0x48ceb1
cmp edi, 0x17
jae 0x48d040
push ebp
push 3
call fcn.00492973
cmp eax, 1
pop ecx
je 0x48d00c
push 3
call fcn.00492973
test eax, eax
pop ecx
jne 0x48cef4
cmp dword [0x4ca0d0], 1
je 0x48d00c
cmp ebx, 0xfc
je 0x48d03f
push 0x4affa4
mov ebx, 0x314
push ebx
mov ebp, 0x4ce418
push ebp
call fcn.00481ba5
add esp, 0xc
test eax, eax
je 0x48cf2a
push esi
push esi
push esi
push esi
push esi
call fcn.00486886
add esp, 0x14
push 0x104
mov esi, 0x4ce431
push esi
push 0
mov byte [0x4ce535], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48cf6e
push 0x4aff8c
push 0x2fb
push esi
call fcn.00481ba5
add esp, 0xc
test eax, eax
je 0x48cf6e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00486886
add esp, 0x14
push esi
call fcn.004838b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48cfb3
push esi
call fcn.004838b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ce72c
push 0x4aff88
sub ecx, eax
push ecx
push eax
call fcn.004837cb
add esp, 0x14
test eax, eax
je 0x48cfb3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00486886
add esp, 0x14
jmp 0x48cfb5
xor esi, esi
push 0x4a08ac
push ebx
push ebp
call fcn.0048360a
add esp, 0xc
test eax, eax
je 0x48cfd5
push esi
push esi
push esi
push esi
push esi
call fcn.00486886
add esp, 0x14
push dword [edi*8 + 0x4cacf4]
push ebx
push ebp
call fcn.0048360a
add esp, 0xc
test eax, eax
je 0x48cff7
push esi
push esi
push esi
push esi
push esi
call fcn.00486886
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C
push ebp
call fcn.004927b6
add esp, 0xc
jmp 0x48d03f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48d03f
cmp ebp, 0xffffffff
je 0x48d03f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cacf4]
push dword [esi]
call fcn.004838b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4927b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00488529
xor ebx, ebx
cmp dword [0x4ce97c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49288c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49296c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b116c
push edi
call esi
cmp eax, ebx
je 0x49296c
push eax
call fcn.004884bb
mov dword [esp], 0x4b115c
push edi
mov dword [0x4ce97c], eax
call esi
push eax
call fcn.004884bb
mov dword [esp], 0x4b1148
push edi
mov dword [0x4ce980], eax
call esi
push eax
call fcn.004884bb
mov dword [0x4ce984], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048549f
test eax, eax
pop ecx
pop ecx
je 0x49285a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486886
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49288c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004884bb
cmp eax, ebx
pop ecx
mov dword [0x4ce98c], eax
je 0x49288c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004884bb
pop ecx
mov dword [0x4ce988], eax
mov eax, dword [0x4ce988]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x492911
cmp dword [0x4ce98c], ecx
je 0x492911
push eax
call fcn.00488532
push dword [0x4ce98c]
mov esi, eax
call fcn.00488532
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x492911
cmp edi, ebx
je 0x492911
call esi
cmp eax, ebx
je 0x4928de
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4928de
test byte [ebp - 0x18], 1
jne 0x492911
lea eax, [ebp - 0x10]
push eax
call fcn.004854d6
test eax, eax
pop ecx
je 0x4928f9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486886
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x492908
or dword [ebp + 0x10], 0x200000
jmp 0x49294c
or dword [ebp + 0x10], 0x40000
jmp 0x49294c
mov eax, dword [0x4ce980]
cmp eax, dword [ebp - 8]
je 0x49294c
push eax
call fcn.00488532
cmp eax, ebx
pop ecx
je 0x49294c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49294c
mov eax, dword [0x4ce984]
cmp eax, dword [ebp - 8]
je 0x49294c
push eax
call fcn.00488532
cmp eax, ebx
pop ecx
je 0x49294c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ce97c]
call fcn.00488532
cmp eax, ebx
pop ecx
je 0x49296c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49296e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x495422
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4ca09c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004953b7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00481f20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x495471
cmp dword [ebp - 0x1c], 5
jb 0x495489
jmp 0x495485
cmp dword [ebp - 0x10], 1
jne 0x495489
cmp dword [ebp - 0x1c], 4
ja 0x495485
jne 0x495489
cmp dword [ebp - 0x18], 0
jbe 0x495489
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b11dc
call fcn.0049528b
test eax, eax
jge 0x4954aa
mov byte [0x4cc0d0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004811b7
add ebp, 0x78
leave
ret

Function at 0x495ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e393
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ca09c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
push 0x1000
call fcn.00442bd0
or edi, 0xffffffff
xor ebx, ebx
push 0x400
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.CSoftwareInterface.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call fcn.00472897
mov dword [esi + 0x1c], eax
push 0x200
mov byte [eax], bl
call fcn.00472897
mov dword [esi + 0x20], eax
push 0x400
mov byte [eax], bl
call fcn.00472897
mov dword [esi + 0x30], eax
push 0x200
mov byte [eax], bl
call fcn.00472897
mov dword [esi + 0x34], eax
push 0x210
mov byte [eax], bl
call fcn.00472897
add esp, 0x14
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 1
je 0x495b63
mov ecx, eax
call fcn.00430e90
jmp 0x495b65
xor eax, eax
push 0xc
mov byte [esp + 0x24], bl
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov byte [esi + 0x40], bl
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x84], ebx
call fcn.00472897
add esp, 4
cmp eax, ebx
je 0x495bae
mov ecx, eax
call fcn.00495a90
mov dword [esi + 0x80], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret