joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bce50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.004bef30
add esp, 4
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jne 0x4bcec7
cmp dword [ebp - 0x120], 1
jne 0x4bcec7
cmp byte [ebp - 0xe], 1
jne 0x4bcec7
mov dword [edi], 1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
call fcn.004bbd10
test eax, eax
je 0x4bcee6
mov dword [edi], 3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
call fcn.004bbdf0
test eax, eax
je 0x4bcf05
mov dword [edi], 2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
jne 0x4bceb7
cmp dword [esi], 0
jne 0x4bceb7
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004e4746
mov esp, ebp
pop ebp
ret

Function at 0x4bd100
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push ebx
call fcn.004e6be2
add esp, 8
test eax, eax
jne 0x4bd129
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004e8ba0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4bd164
xor eax, eax
mov ecx, 7
mov esi, str._auditpol.exe
push 0x206
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004e8ba0
push ebx
lea edx, [ebp - 0x414]
push str.__backup__file:_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
call fcn.004bc0d0
test eax, eax
je 0x4bd1f7
call fcn.004bde60
push 0
push 0
test eax, eax
je 0x4bd1e7
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
call fcn.004bdec0
jmp 0x4bd218
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
jmp 0x4bd209
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 0x20
setg al
pop edi
xor ecx, ebp
pop esi
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4bd790
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004e8ba0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4bd7d2
mov ebx, 0x562d68
jmp 0x4bd86a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str.NULL
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esi + 8]
push str.Privilege_Rights
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x4bd864
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.004be8d0
mov edx, dword [0x56d800]
mov ecx, dword [esi + 4]
test eax, eax
je 0x4bd849
lea ebx, [ebp - 0x414]
jmp 0x4bd873
mov ebx, 0x562d68
call fcn.004bdf00
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
lea ebx, [ebp - 0x20c]
mov edx, dword [0x56d800]
mov ecx, dword [esi + 4]
call fcn.004bdf00
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4bdfa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x458]
push 0
push eax
mov dword [ebp - 0x45c], 0x22c
call fcn.004e8ba0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push 0
push 2
call ebx
lea ecx, [ebp - 0x45c]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x460], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4be132
lea edx, [ebp - 0x438]
push str.explorer.exe
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x4be11c
mov eax, dword [ebp - 0x454]
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
mov edi, eax
mov dword [ebp - 0x230], 0x22c
call fcn.004e8ba0
add esp, 0xc
push 0
push 2
call ebx
lea edx, [ebp - 0x230]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4be09a
lea esp, [esp]
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004f2bd4
add esp, 8
test eax, eax
je 0x4be0c1
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4be070
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x468]
push edx
push eax
mov dword [ebp - 0x468], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov esi, dword [ebp - 0x468]
test esi, esi
je 0x4be0a1
mov edx, dword [ebp - 0x454]
lea ecx, [ebp - 0x464]
push ecx
push edx
mov dword [ebp - 0x464], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp - 0x464], esi
je 0x4be14c
mov esi, dword [ebp - 0x460]
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4be000
push esi
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.004e4746
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4c47b0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
je 0x4c49af
lea ecx, [ebp - 0x410]
push ecx
push 0x5020f8
push 1
push ebx
push 0x5021c8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c49a9
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
js 0x4c499b
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c4993
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DesktopMonitor
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c498d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c4985
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c4967
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.Name
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c494a
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e8ba0
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c4920
mov ebx, dword [ebp - 0x424]
push 0xcc
lea edi, [ebp - 0x40c]
call fcn.004c2ef0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c48a5
jmp 0x4c496d
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c4985
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4c4fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd94
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x7e
xor esi, esi
mov ebx, ecx
lea edx, [ebp - 0x82]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xd94], eax
mov word [ebp - 0x84], cx
call fcn.004e8ba0
push 0xfe
lea ecx, [ebp - 0x182]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x184], ax
call fcn.004e8ba0
add esp, 0x18
lea edx, [ebp - 0xd88]
push edx
push str.HARDWAREDESCRIPTIONSystem
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xd88], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4c5145
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xd8c]
push eax
mov eax, dword [ebp - 0xd88]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0xd90]
push edx
push esi
push str.SystemBiosVersion
push eax
mov dword [ebp - 0xd90], esi
mov dword [ebp - 0xd8c], 0x80
call edi
lea ecx, [ebp - 0xd8c]
push ecx
mov ecx, dword [ebp - 0xd88]
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0xd90]
push eax
push esi
push str.SystemBiosDate
push ecx
mov dword [ebp - 0xd8c], 0x100
call edi
push 0x7fe
lea eax, [ebp - 0xd82]
xor edx, edx
push esi
push eax
mov word [ebp - 0xd84], dx
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
jmp 0x4c50e0
movzx ecx, word [ebp + eax - 0x84]
mov word [ebp + eax - 0xd84], cx
add eax, 2
cmp cx, si
jne 0x4c50e0
lea ecx, [ebp - 0xd84]
push 0xd
push ecx
call fcn.004e53f9
add esp, 8
cmp eax, esi
je 0x4c5138
xor edx, edx
mov word [eax], dx
xor eax, eax
jmp 0x4c5120
movzx ecx, word [ebp + eax - 0xd84]
mov word [ebp + eax - 0x84], cx
add eax, 2
cmp cx, si
jne 0x4c5120
mov eax, dword [ebp - 0xd88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3fe
lea edx, [ebp - 0x582]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x584], cx
call fcn.004e8ba0
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x584]
push str.Vendor:_s_Date:_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0xd94]
push 0xce
lea edi, [ebp - 0x584]
call fcn.004c2ef0
mov ecx, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4c5f70
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
je 0x4c616f
lea ecx, [ebp - 0x410]
push ecx
push 0x5020f8
push 1
push ebx
push 0x5021c8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c6169
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
js 0x4c615b
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c6153
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_Keyboard
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c614d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c6145
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c6127
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.Description
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c610a
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e8ba0
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c60e0
mov ebx, dword [ebp - 0x424]
push 0xd2
lea edi, [ebp - 0x40c]
call fcn.004c2ef0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c6065
jmp 0x4c612d
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c6145
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4c6440
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
je 0x4c663f
lea ecx, [ebp - 0x410]
push ecx
push 0x5020f8
push 1
push ebx
push 0x5021c8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c6639
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
js 0x4c662b
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c6623
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_PointingDevice
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c661d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c6615
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c65f7
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.Description
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c65da
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e8ba0
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c65b0
mov ebx, dword [ebp - 0x424]
push 0xd4
lea edi, [ebp - 0x40c]
call fcn.004c2ef0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c6535
jmp 0x4c65fd
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c6615
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4c6b40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 2
push edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], esi
lea ebx, [ebx]
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
jmp 0x4c6b90
movzx ecx, word [eax + 0x526204]
mov word [ebp + eax - 0x10], cx
add eax, 2
test cx, cx
jne 0x4c6b90
lea eax, [ebp - 0x10]
lea edx, [esi + 0x41]
push eax
mov word [ebp - 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x220], eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x4c6d3b
push 0x800
call fcn.004e5420
push 0x800
mov edi, eax
push 0
push edi
mov dword [ebp - 0x228], edi
call fcn.004e8ba0
push edi
lea edx, [ebp - 0x10]
call fcn.004c6650
push 9
push edi
mov dword [ebp - 0x224], eax
mov esi, edi
call fcn.004e53f9
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x4c6d1f
lea esp, [esp]
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004e8ba0
mov eax, ebx
sub eax, esi
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0x210]
push esi
push ecx
call fcn.004ebc70
add esp, 0x18
cmp dword [ebp - 0x224], 0
je 0x4c6d07
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c6c86
test dx, dx
je 0x4c6c82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c6c86
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c6c60
xor eax, eax
jmp 0x4c6c8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c6d07
lea eax, [ebp - 0x10]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c6c94
mov edi, dword [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4c6cb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c6cd5
mov edx, dword [0x51ccdc]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x22c]
mov dword [edi], edx
mov edi, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ebp - 0x214], 1
lea esi, [ebx + 2]
push 9
push esi
call fcn.004e53f9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4c6c10
push 0x800
push 0
push edi
call fcn.004e8ba0
push edi
call fcn.004e577a
mov esi, dword [ebp - 0x21c]
add esp, 0x10
inc esi
mov dword [ebp - 0x21c], esi
cmp esi, 0x1a
jl 0x4c6b80
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret
Function at 0x4c7e60
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
je 0x4c8093
lea ecx, [ebp - 0x410]
push ecx
push 0x5020f8
push 1
push ebx
push 0x5021c8
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4c808d
mov eax, dword [ebp - 0x410]
lea ecx, [ebp - 0x414]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x414], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
js 0x4c807f
mov eax, dword [ebp - 0x414]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x414]
js 0x4c8077
lea edx, [ebp - 0x418]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DisplayConfiguration
mov dword [ebp - 0x418], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4c8071
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
cmp eax, ebx
je 0x4c8069
mov ecx, dword [eax]
lea edx, [ebp - 0x420]
push edx
lea edx, [ebp - 0x41c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x420], ebx
je 0x4c804b
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x434]
push edx
push ebx
push str.Caption
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp word [ebp - 0x434], 1
je 0x4c802e
push 0x3fe
lea edx, [ebp - 0x40a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x40c], cx
call fcn.004e8ba0
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x40c]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4c7fd2
lea eax, [ebp - 0x40c]
push str.mv_video_hook_driver
push eax
call fcn.004e571a
add esp, 8
test eax, eax
jne 0x4c802e
lea eax, [ebp - 0x40c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4c8002
sub eax, edx
sar eax, 1
je 0x4c802e
mov ebx, dword [ebp - 0x424]
push 0xda
lea edi, [ebp - 0x40c]
call fcn.004c2ef0
add esp, 4
xor ebx, ebx
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x418]
cmp eax, ebx
jne 0x4c7f55
jmp 0x4c8051
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
cmp ecx, ebx
je 0x4c8069
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret