joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc90
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470030
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x6c], edi
xor esi, esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x60], esi
cmp dword [edi + 8], esi
je 0x40cdd9
push 0x42
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x58]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x40cdd9
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [edi + 8]
mov edx, 4
mov dword [ebp - 0x68], eax
mul edx
mov dword [ebp - 0x64], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433269
mov ebx, eax
add esp, 4
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp - 0x68]
cmp esi, eax
jae 0x40cd65
test esi, esi
js 0x40cd60
cmp esi, dword [edi + 8]
jge 0x40cd60
mov edi, dword [edi + 4]
lea eax, [esi*4]
add edi, eax
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x40cd55
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401be0
mov eax, dword [edi]
mov edi, dword [ebp - 0x6c]
mov dword [ebx + esi*4], eax
inc esi
jmp 0x40cd27
call fcn.0043340a
push 0
push 0
push 0
push 0
push ebx
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x40cdae
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
xor ecx, ecx
mov edx, 1
cmp eax, 0xea
cmove ecx, edx
mov dword [ebp - 0x70], ecx
mov esi, dword [ebp - 0x70]
jmp 0x40cdc7
push ebx
call fcn.00433272
add esp, 4
push dword [ebp - 0x5c]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x40ce10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470076
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x496534]
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 esi, edx
mov eax, ecx
mov dword [ebp - 0x270], eax
xor edi, edi
test eax, eax
je 0x40d013
push eax
lea ecx, [ebp - 0x264]
call fcn.00401ff0
mov dword [ebp - 4], edi
push 0x5c
push dword [ebp - 0x264]
call fcn.0044e876
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x264]
test ecx, ecx
jne 0x40ce82
or ecx, 0xffffffff
jmp 0x40ce86
sub ecx, eax
sar ecx, 1
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x40cea0
push 1
push 0x4857e0
lea ecx, [ebp - 0x264]
call fcn.00401780
push 1
push 0x4865e8
lea ecx, [ebp - 0x264]
call fcn.00401780
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x26c], eax
cmp eax, ebx
je 0x40cff1
mov edi, dword [ebp + 8]
mov dword [ebp - 0x274], 1
nop dword [eax]
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.00401ff0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf20
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00401780
test byte [ebp - 0x260], 0x10
je 0x40cf92
test edi, edi
je 0x40cfa3
lea eax, [ebp - 0x234]
push 0x48622c
push eax
call fcn.00451d34
add esp, 8
test eax, eax
je 0x40cfa3
lea eax, [ebp - 0x234]
push 0x486230
push eax
call fcn.00451d34
add esp, 8
test eax, eax
je 0x40cfa3
mov ecx, dword [ebp - 0x268]
mov edx, esi
push edi
call fcn.0040ce10
add esp, 4
jmp 0x40cfa3
lea eax, [ebp - 0x268]
mov ecx, esi
push eax
push dword [esi + 8]
call fcn.0043e02a
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cfc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cf00
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x274]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d013
mov ecx, dword [eax]
push eax
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x410350
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x41042e
push esi
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4103a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4103c4
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 1
jne 0x41042e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.Global_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x110]
test eax, eax
je 0x410430
pop edi
or eax, 0x80000000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 8

Function at 0x410450
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.h_PrinterDriverUnInstaller_PrevInstance
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x41047b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41048c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
neg esi
pop edi
sbb esi, esi
and esi, 2
mov eax, esi
pop esi
ret
cmp eax, 5
jne 0x410480
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
neg esi
pop edi
sbb esi, esi
and esi, 2
mov eax, esi
pop esi
ret

Function at 0x4104b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.Global_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.gh_Canon_OIP_PrinterDriverCommonMutex
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x41052a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410548
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov ecx, dword [ebp - 4]
neg esi
pop edi
sbb esi, esi
xor ecx, ebp
and esi, 2
mov eax, esi
pop esi
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x41052f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
jmp 0x41052f
Function at 0x410560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x4105a3
mov edi, dword [esi + 0x3b0]
test edi, edi
je 0x41059b
call fcn.004350f7
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x3b4]
test ecx, ecx
je 0x41059b
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x3b4], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x3b4]
test eax, eax
je 0x4105be
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x3b4], 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41060a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x3b4], eax
test eax, eax
je 0x4105ff
call fcn.004350f7
mov eax, dword [eax + 8]
mov dword [esi + 0x3b0], eax
mov esi, dword [esi + 0x3b4]
call fcn.004350f7
pop edi
mov dword [eax + 0xc], esi
xor eax, eax
pop esi
pop ebp
ret 4
pop edi
mov eax, 0x21
pop esi
pop ebp
ret 4
pop edi
mov eax, 0x20
pop esi
pop ebp
ret 4

Function at 0x410620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, 1
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x410706
test edi, edi
je 0x410706
cmp dword [ecx + 0x380], 0
lea eax, [ebp - 0x20c]
je 0x41066e
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x4106c0
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00456340
push 0
push 0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00456574
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0xffffffffffffffff
push 0x104
push ebx
call fcn.00409310
add esp, 0x18
xor ecx, ecx
test eax, eax
cmovs esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ae75
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411780
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470798
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x496534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push edi
push 0x70
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
test ebx, ebx
jle 0x411874
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x4117d6
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
add ebx, 1
mov dword [ebp - 4], 0
jns 0x4117f7
push 0x80070057
call fcn.00401e60
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x411814
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401cb0
mov esi, dword [ebp - 0x10]
push ebx
push esi
push 0x70
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [esi - 8]
push esi
call fcn.00451f0d
add esp, 8
test eax, eax
js 0x4117ed
cmp eax, dword [esi - 8]
jg 0x4117ed
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.00455c09
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp eax, 1
mov eax, 1
cmove edi, eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411874
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 esp, ebp
pop ebp
ret
Function at 0x424020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471c88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x496534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push str.CheckCoreEdition
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00430720
add esp, 0x10
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
xor edi, edi
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x4240f1
push str.Win2012_2016
lea eax, [ebp - 0x14]
push 7
push eax
call fcn.00430970
add esp, 0xc
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push 0x20119
push 0x487bf0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00424550
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4240e6
push edi
push edi
push edi
push edi
push str.ServerCoreExtended
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4240c8
lea edi, [eax - 1]
jmp 0x4240e6
push 0
push 0
push 0
push 0
push str.NanoServer
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
test esi, esi
je 0x4240f1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.return___d
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.00430970
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.00430900
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 0x424b20
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x323c
call fcn.0044b8a0
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x3238]
push edi
push edx
push 0x4856d8
push eax
mov edi, ecx
call esi
push 0x1000
lea eax, [ebp - 0x21d4]
push 0
push eax
call fcn.0044f210
push 0x1190
lea eax, [ebp - 0x11d4]
push 0
push eax
call fcn.0044f210
lea eax, [ebp - 0x44]
push 0x10
push eax
call fcn.0045a87e
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0045a94d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x21d4]
push str.____Date:_s___Time:_s____
push eax
call esi
add esp, 0x44
lea eax, [ebp - 0x3238]
push eax
lea eax, [ebp - 0x21d4]
push eax
lea eax, [ebp - 0x11d4]
push str.__s____s
push eax
call esi
push 0x487e2c
lea eax, [ebp - 0x11d4]
push 0x8c8
push eax
call fcn.00456afc
add esp, 0x1c
cmp byte [0x49c3f6], 0
je 0x424c46
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x424c46
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x323c]
mov dword [ebp - 0x323c], 0
push eax
lea eax, [ebp - 0x11d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x11d4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x49c3f5], 0
pop edi
pop esi
je 0x424c81
lea eax, [ebp - 0x3238]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WIWatch
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x424c81
lea ecx, [ebp - 0x11d4]
push ecx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x429650
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x894
mov eax, dword [0x496534]
xor eax, esp
mov dword [esp + 0x890], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.DoGetDriverSetSize_Start
mov dword [esp + 0x30], edx
mov esi, ecx
mov dword [esp + 0x2c], eax
call fcn.00424d20
add esp, 4
xor eax, eax
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x690]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push 0x208
push edi
push eax
mov dword [esp + 0x24], ebx
call fcn.0044f210
add esp, 0xc
lea eax, [esp + 0x488]
push 0x208
push edi
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [esp + 0x280]
push 0x208
push edi
push eax
call fcn.0044f210
add esp, 0xc
test esi, esi
je 0x42985e
push 0x486438
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42985e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x284]
push eax
call esi
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x280]
push eax
lea eax, [esp + 0x48c]
push eax
call esi
lea eax, [esp + 0x280]
push eax
push str._s.
push 0x104
push eax
call fcn.00409370
add esp, 0x10
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x42985e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [eax + eax]
test byte [esp + 0x30], 0x10
jne 0x4297f2
push 0x48622c
lea eax, [esp + 0x60]
push eax
call esi
test eax, eax
je 0x4297f2
push 0x486230
lea eax, [esp + 0x60]
push eax
call esi
test eax, eax
je 0x4297f2
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x48c]
push eax
lea eax, [esp + 0x698]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x6a0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoW]
mov ebx, eax
test ebx, ebx
jne 0x429809
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
add edi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x429770
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
cmp eax, 0x12
mov ecx, 0x57
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x429863
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x429844
mov eax, dword [esp + 0x10]
push eax
push str.DoGetDriverSetSize_End__d
mov dword [ecx], eax
call fcn.00424d20
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x429863
push edi
push str.DoGetDriverSetSize_End__d
mov dword [eax], edi
call fcn.00424d20
add esp, 8
jmp 0x429863
mov ebx, 0x57
push str.DoGetDriverSetSize_End
call fcn.00424d20
mov ecx, dword [esp + 0x8a0]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
Function at 0x430970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
lea eax, [ecx - 1]
xor esi, esi
mov dword [ebp - 4], esi
lea edx, [edi + 1]
cmp eax, 6
ja case.default.0x430995
movzx eax, byte [eax + 0x430a64]
jmp dword [eax*4 + 0x430a5c]
cmp dword [0x49c410], esi
je case.default.0x430995
mov edi, edx
jmp case.default.0x430995
cmp dword [0x49c410], 2
cmove edi, edx
lea eax, [ecx - 3]
cmp eax, 3
ja case.default.0x4309ba
jmp dword [eax*4 + 0x430a6c]
mov esi, dword [0x4982a0]
shr esi, 2
and esi, edx
jmp case.default.0x4309ba
mov esi, dword [0x4982a0]
shr esi, 1
and esi, edx
jmp case.default.0x4309ba
test byte [0x4982a0], dl
cmovne esi, edx
test edi, edi
jne 0x4309eb
test esi, esi
je 0x430a53
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x430a44
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push ecx
call fcn.004313a0
mov ebx, eax
test ebx, ebx
je 0x430a41
test edi, edi
je 0x430a2b
cmp dword [0x49c408], 0
je 0x430a24
push dword [ebp - 4]
push ebx
call fcn.00431980
jmp 0x430a2b
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x430a38
push ebx
push dword [ebp + 0xc]
call fcn.004317d0
push ebx
call fcn.00433272
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
jne 0x430a53
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4317d0
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472c90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x496534]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.V4Installer
push 0
mov dword [ebp - 0x18], 0
mov ebx, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x431847
push 0x493240
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80004005
push eax
call fcn.0044f8e6
lea eax, [ebp - 0x18]
push eax
push 1
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x431892
lea eax, [ebp - 0x18]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x431892
push 0x493240
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x80004005
push eax
call fcn.0044f8e6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 0
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x14]
call fcn.00433269
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4318cf
push 0x493240
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x80004005
push eax
call fcn.0044f8e6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp + 8]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4318ed
jmp dword [eax*4 + 0x43196c]
mov ebx, 4
jmp case.default.0x4318ed
mov ebx, 2
jmp case.default.0x4318ed
mov ebx, 1
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 1
push dword [edi]
push 0x99999999
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x431930
test esi, esi
je 0x43193b
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test edi, edi
je 0x431948
push edi
call fcn.00433272
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x431956
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8