joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425894
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x45434c
mov ebx, str.CDeviceInfSection::Init
push ebx
push 5
mov esi, ecx
call fcn.00405a24
add esp, 0xc
cmp dword [esi + 0x68], 0
je 0x4258c8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4259a7
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4258df
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pInfFile_is_NULL._n
jmp 0x42595c
push dword [ebp + 0xc]
push edi
call fcn.0043965b
pop ecx
pop ecx
test eax, eax
jne 0x4258fd
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pInfFile_is_Zero_length._n
jmp 0x42595c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x425918
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pInfFile_is_not_found._n
jmp 0x42595c
push edi
lea ecx, [esi + 0x1c]
call fcn.00401d8b
push edi
lea ecx, [esi + 0x34]
call fcn.00401d8b
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x425940
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pSectionName_is_NULL._n
jmp 0x42595c
push dword [ebp + 0x18]
push edi
call fcn.0043965b
pop ecx
pop ecx
test eax, eax
jne 0x42597b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pSectionName_is_Zero_length._n
push ebx
push 5
call fcn.00405a24
add esp, 0xc
push 0x454368
push ebx
push 5
call fcn.00405a24
add esp, 0xc
xor eax, eax
jmp 0x4259a6
push edi
lea ecx, [esi + 0x4c]
call fcn.00401d8b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42598e
mov dword [esi + 0x64], eax
push 0x454368
xor edi, edi
push ebx
inc edi
push 5
mov dword [esi + 0x68], edi
call fcn.00405a24
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x4259ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0x45434c
mov ebx, str.CIniSections::Init
push ebx
push 5
mov edi, ecx
call fcn.00405a24
add esp, 0xc
cmp dword [edi + 0x28], 0
je 0x4259e1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x425a70
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4259f8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pInfFile_is_NULL._n
jmp 0x425a2f
push dword [ebp + 0xc]
push esi
call fcn.0043965b
pop ecx
pop ecx
test eax, eax
jne 0x425a16
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pInfFile_is_Zero_length._n
jmp 0x425a2f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x425a4e
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.pInfFile_is_not_found._n
push ebx
push 5
call fcn.00405a24
add esp, 0xc
push 0x454368
push ebx
push 5
call fcn.00405a24
add esp, 0xc
xor eax, eax
jmp 0x425a6f
push esi
lea ecx, [edi + 0x10]
call fcn.00401d8b
push 0x454368
xor esi, esi
push ebx
inc esi
push 5
mov dword [edi + 0x28], esi
call fcn.00405a24
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x425a76
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.DELDRV.exe_public:_int___thiscall_CDeviceInfSection::Init_wchar_t_const___unsigned_int__class_CInfStringTable___wchar_t_const___unsigned_int_
Function at 0x4264d8
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x44b25c
call fcn.004386c4
mov edi, ecx
mov dword [ebp - 0x14], edi
lea ebx, [edi + 4]
mov dword [edi], vtable.CChangeDir.0
xor esi, esi
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], esi
call fcn.004331f7
push esi
push 0x44d8ac
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00401db2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x31
lea ecx, [eax + eax]
push str...CommonFileUtil.cpp
push ecx
mov dword [ebp - 0x10], eax
call fcn.0042ae50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x42655c
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
mov ecx, ebx
call fcn.00401d8b
push esi
call fcn.0042afb6
pop ecx
mov eax, edi
call fcn.00438692
ret

Function at 0x4265cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push eax
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426600
test al, 0x10
je 0x426600
inc ebx
lea ecx, [ebp - 0x1c]
call fcn.004010d7
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret

Function at 0x426617
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x44b27f
call fcn.004386f7
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push str.pFileName___1_lS__n
mov esi, str.FILEEXISTW
push esi
push 5
mov edi, eax
call fcn.00405a24
push edi
push str.dwRet__0x_1_lx_._n
push esi
push 5
call fcn.00405a24
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.004010d7
xor eax, eax
cmp edi, 0xffffffff
setne al
call fcn.004386a6
ret
Function at 0x427ee6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x468e84], 0
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x220]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ebx
mov edi, 0x80004005
je 0x427fc7
and dword [ebp - 0x224], 0
push 0x455788
call fcn.00401fef
mov esi, eax
pop ecx
test esi, esi
jne 0x427f5b
push str.Shell32.dll_SAW_LoadLibrary_failed._n
push str.GetKnownFolderPath
push 4
call fcn.00405a24
add esp, 0xc
jmp 0x427fc0
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x427f81
push str.SHGetKnownFolderPath_GetProcAddress_failed._n
push str.GetKnownFolderPath
push 4
call fcn.00405a24
add esp, 0xc
jmp 0x427fb9
lea ecx, [ebp - 0x224]
push ecx
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
push dword [ebp + 0x18]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x427fad
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.00401d8b
push dword [ebp - 0x224]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x42807c
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00438dc0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
sub esp, 0x10
lea esi, [ebp - 0x220]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x224], 0xffff
movsd dword es:[edi], dword [esi]
call fcn.00427d1d
add esp, 0x14
test eax, eax
jne 0x42801a
mov eax, 0x80070057
jmp 0x42807c
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004280a1
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x42807a
cmp word [ebp - 0x210], bx
je 0x428067
lea eax, [ebp - 0x210]
push eax
call fcn.0043860f
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x22c]
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.00401db2
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret
Function at 0x429015
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4558c0
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00405a24
xor esi, esi
xor eax, eax
add esp, 0xc
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x4290b3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4290b3
push edi
call fcn.00401fef
mov edi, eax
pop ecx
test edi, edi
je 0x4290b3
push 5
lea eax, [ebp - 0x10]
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x429093
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0043a497
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4558dc
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00405a24
add esp, 0xc
mov ax, si
jmp 0x4290c9
push 0x4558f8
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00405a24
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438628
leave
ret 4
Function at 0x42c386
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x42c3c4
mov ecx, dword [0x467018]
push 0x756e
call fcn.00409c24
push eax
mov ecx, edi
call fcn.0040983e
push dword [0x468654]
mov ecx, edi
push 0x44df48
call fcn.00409a22
push dword [edi]
push 0x20e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x20c
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push 0
push 0x401
push eax
mov dword [esi + 0x18], eax
call ebx
push 0x32
push dword [0x4690d4]
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x42c420
push 0x32
push dword [0x4690d0]
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42c435
push 0
push eax
push 0x170
push 0x228
push dword [esi + 4]
call edi
push eax
call ebx
mov eax, dword [esi + 4]
xor ebx, ebx
push ebx
push ebx
push 0x40000
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0042c32f
cmp dword [esi + 0x10], ebx
jne 0x42c45b
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
test byte [0x46868c], 0x10
je 0x42c46e
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
jmp 0x42c478
push 0x80
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x42c63d
Capabilities:
Delete registry key

Disassembly:
push 0x1c
mov eax, 0x44b994
call fcn.004386c4
mov dword [ebp - 0x14], ecx
xor edi, edi
lea ecx, [ebp - 0x1c]
inc edi
call fcn.0042c4ac
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
test ebx, ebx
je 0x42c6e9
push 0x2000000
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
call fcn.0042cc14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42c6e7
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0042c897
mov esi, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x24]
je 0x42c6c6
mov ebx, dword [ebp - 0x10]
cmp dword [esi + 0x14], 8
jb 0x42c6ad
mov eax, dword [esi]
jmp 0x42c6af
mov eax, esi
mov ecx, dword [ebp - 0x14]
push eax
push ebx
call fcn.0042c63d
add esi, 0x18
and edi, eax
cmp esi, dword [ebp - 0x24]
jne 0x42c6a3
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0042c5a8
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x42c6df
and edi, 1
lea ecx, [ebp - 0x28]
call fcn.004052ea
mov esi, edi
lea ecx, [ebp - 0x1c]
call fcn.0042c4fc
mov eax, esi
call fcn.00438692
ret 8
Function at 0x42caac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.0042cb68
test eax, eax
je 0x42cb3e
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi + 4]
call ebx
mov eax, dword [ebp - 4]
lea edi, [eax + 2]
test eax, eax
je 0x42cb35
cmp edi, eax
jbe 0x42cb35
cmp dword [esi + 0x20], 0
je 0x42cafc
push dword [esi + 0x20]
call fcn.0042afb6
and dword [esi + 0x20], 0
pop ecx
push 0x292
push str...CommonRegistry.cpp
push edi
call fcn.0042ae50
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
je 0x42cb3d
push edi
push 0
push eax
call fcn.00438dc0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
push 0
push 0
push dword [ebp + 8]
push dword [esi + 4]
call ebx
mov eax, dword [esi + 0x20]
shr edi, 1
mov dword [esi + 0x24], edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42cb86
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov ebx, ecx
mov edi, esi
push esi
jmp 0x42cbef
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.004394ab
add esp, 0xc
test eax, eax
je 0x42cbfe
push 0x105
lea eax, [ebp - 0x210]
inc edi
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42cbc3
jmp 0x42cc01
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret 4
Function at 0x42f2e6
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
mov edi, pe_nt_image_headers32
lea eax, [ebp - 0x40c]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x618], ebx
call fcn.00439aca
push esi
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.004391ef
add esp, 0x18
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x42f353
xor eax, eax
jmp 0x42f422
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.ProfileImagePath
push dword [ebp - 0x618]
mov dword [ebp - 0x61c], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x618]
test eax, eax
je 0x42f390
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42f34c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043965b
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
pop ecx
je 0x42f3ca
push 0x44d8a8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004391ef
add esp, 0xc
push str.NTUSER.DAT
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004391ef
push 0x208
lea eax, [ebp - 0x614]
push ebx
push eax
call fcn.00438dc0
add esp, 0x18
lea eax, [ebp - 0x614]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x614]
push eax
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret 4
Function at 0x42fac0
Capabilities:
Enumerate gui resources

Disassembly:
push 0x3c0
mov eax, 0x44be6e
call fcn.004386f7
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x3c8]
call fcn.004331f7
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x354], ebx
je 0x42fb2c
add esi, 8
cmp dword [esi + 0x14], 8
jb 0x42faf9
mov eax, dword [esi]
jmp 0x42fafb
mov eax, esi
push eax
push str.pPrinterName___1_ls__n
push str.CPrinterCtrlW::CloseQueue
push 4
call fcn.00405a24
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x42fb18
mov esi, dword [esi]
push esi
push 0x42fc9b
call dword [sym.imp.USER32.dll_EnumWindows]
xor ebx, ebx
inc ebx
jmp 0x42fc82
cmp dword [esi + 4], ebx
je 0x42fc82
push str.printui.dll
call fcn.00401fef
pop ecx
mov dword [ebp - 0x3cc], eax
test eax, eax
je 0x42fc82
push 0x43027e
push 0x457834
push str.USER32.DLL
push str.printui.dll
lea ecx, [ebp - 0x10c]
call fcn.00401052
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
call fcn.004014df
push 0x4301bb
push 0x457860
push str.USER32.DLL
push str.printui.dll
lea ecx, [ebp - 0x64]
call fcn.00401052
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004014df
push 0x4301c0
push 0x457870
push str.USER32.DLL
push str.printui.dll
lea ecx, [ebp - 0xb8]
call fcn.00401052
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.004014df
add esi, 8
cmp dword [esi + 0x14], 8
jb 0x42fbdf
mov eax, dword [esi]
jmp 0x42fbe1
mov eax, esi
push ebx
push ebx
push eax
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHInvokePrinterCommandW]
test eax, eax
jne 0x42fc0c
cmp dword [esi + 0x14], 8
jb 0x42fbfa
mov eax, dword [esi]
jmp 0x42fbfc
mov eax, esi
push ebx
push ebx
push eax
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHInvokePrinterCommandW]
test eax, eax
je 0x42fc2b
cmp dword [esi + 0x14], 8
jb 0x42fc14
mov esi, dword [esi]
push esi
push str.pPrinterName___1_ls__n
push str.CPrinterCtrlW::CloseQueue
push 4
call fcn.00405a24
add esp, 0x10
jmp 0x42fc3f
push str.SHInvokePrinterCommand_is_failed._n
push str.CPrinterCtrlW::CloseQueue
push 4
call fcn.00405a24
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00401102
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401102
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], bl
call fcn.00401102
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c8]
call fcn.004338c2
mov eax, ebx
call fcn.004386a6
ret 4
Function at 0x430822
Capabilities:
Create process on windows

Disassembly:
push 0x228
mov eax, 0x44bea1
call fcn.004386f7
mov esi, ecx
mov ecx, dword [ebp + 8]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x234], ecx
mov ebx, edx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], edx
cmp dword [esi + 4], edx
je 0x430a15
cmp dword [ebp + 0xc], eax
je 0x430975
push 0x104
lea eax, [ebp - 0x218]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, str.__OQ:
push edi
call fcn.0043860f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.00401db2
mov edi, 0x45773c
push edi
call fcn.0043860f
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.004053dd
push 8
add esi, 8
pop edi
cmp dword [esi + 0x14], edi
jb 0x4308c0
mov esi, dword [esi]
xor ecx, ecx
cmp word [esi], cx
jne 0x4308cb
mov eax, ecx
jmp 0x4308d2
push esi
call fcn.0043860f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004053dd
mov esi, 0x45773c
push esi
call fcn.0043860f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.004053dd
cmp dword [ebp - 0x21c], edi
push 5
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x430953
cmp dword [ebp - 0x21c], edi
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push ecx
push eax
push str.ShellExecute_failed__error__1_d___parameter__2_ls___n
push str.CPrinterCtrlW::ViewQueue
push 2
call fcn.00405a24
add esp, 0x14
jmp 0x430a13
cmp dword [ebp - 0x21c], edi
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
push str.ShellExecute_success._parameter__1_ls__2_ls___n
jmp 0x43093f
push 8
add esi, 8
pop edi
cmp dword [esi + 0x14], edi
jb 0x430984
mov eax, dword [esi]
jmp 0x430986
mov eax, esi
push dword [ebp + 0x10]
push edx
push eax
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHInvokePrinterCommandW]
test eax, eax
je 0x4309b8
cmp dword [esi + 0x14], edi
jb 0x43099e
mov esi, dword [esi]
push esi
push str.pPrinterName___1_ls__n
push str.CPrinterCtrlW::ViewQueue
push 4
call fcn.00405a24
xor ebx, ebx
add esp, 0x10
inc ebx
jmp 0x430a13
push str.SHInvokePrinterCommand_is_failed._n
push str.CPrinterCtrlW::ViewQueue
push 4
call fcn.00405a24
add esp, 0xc
cmp dword [esi + 0x14], edi
jb 0x4309d5
mov eax, dword [esi]
jmp 0x4309d7
mov eax, esi
push dword [ebp + 0x10]
xor ecx, ecx
push ecx
push eax
push 5
push dword [ebp - 0x234]
call dword [sym.imp.SHELL32.dll_SHInvokePrinterCommandW]
test eax, eax
je 0x4309ff
cmp dword [esi + 0x14], edi
jb 0x4309f7
mov esi, dword [esi]
push esi
push str.pPrinterName___1_s__n
jmp 0x4309a4
push str.SHInvokePrinterCommand_is_failed._n
push str.CPrinterCtrlW::ViewQueue
push 4
call fcn.00405a24
add esp, 0xc
xor edx, edx
push edx
push 1
lea ecx, [ebp - 0x230]
call fcn.00401ba5
mov eax, ebx
call fcn.004386a6
ret 0xc
Function at 0x434391
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x467750]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x104
xor edi, edi
and dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x220], ecx
call fcn.00439aca
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
push 8
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4344db
push esi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4344cb
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x44d8a8
push esi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x210]
mov edi, dword [ebp - 0x220]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push edi
push str.File___1_s__nfile_version:_____2_u_._3_u_._4_u_._5_u__n
push str.GetFileVersion
push 5
call fcn.00405a24
mov ecx, dword [ebp - 0x210]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
push edi
push str.File___1_s__nproduct_version:__2_u_._3_u_._4_u_._5_u__n
push str.GetFileVersion
push 5
call fcn.00405a24
mov ecx, dword [ebp - 0x210]
add esp, 0x40
cmp dword [ebp + 0x14], 0
je 0x4344b8
mov eax, dword [ecx + 0x10]
mov dword [ebx], eax
mov eax, dword [ecx + 0x14]
jmp 0x4344c0
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x214]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret