joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x4ba7e8], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x405dc6
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x4ba7e8
mov dword [0x4ba7e8], 0x11c
mov dword [0x4ba7ec], 6
mov dword [0x4ba7f0], 1
mov word [0x4ba8fc], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x4b69f8], eax
jmp 0x405dcb
mov eax, dword [0x4b69f8]
cmp eax, esi
je 0x405dda
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x405efa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x405ef8
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x405ef8
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x405ef8
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x405e30
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x405eaf
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x405ef8
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x405ef8
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x405ef8
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x405e96
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x4914c4
push 0x26
jmp 0x405eb5
cmp word [esi + edi*2 - 4], 0x5c
je 0x405ec3
push 0x4914c0
add edi, 1
push edi
push esi
call fcn.00405b80
jmp 0x405ec3
push 0x4914c4
push eax
call fcn.00405c20
mov esi, eax
add esp, 8
test esi, esi
je 0x405ef8
push esi
call fcn.00459e88
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0046067a
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x405ef8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x405e30
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

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

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.00406140
mov esi, eax
add esp, 4
test esi, esi
je 0x4062f2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4062d4
test al, 0x50
je 0x4062f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4062e7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x4087de
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00452e20
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 0xa
ja case.default.0x408807
jmp dword [eax*4 + 0x408866]
mov eax, 0x48ead8
jmp 0x408860
mov eax, str.MIPS
jmp 0x408860
mov eax, str.ALPHA
jmp 0x408860
mov eax, 0x48eaf8
jmp 0x408860
mov eax, 0x48eb00
jmp 0x408860
mov eax, 0x48eb08
jmp 0x408860
mov eax, str.IA64
jmp 0x408860
mov eax, str.ALPHA64
jmp 0x408860
mov eax, str.MSIL
jmp 0x408860
mov eax, str.AMD64
jmp 0x408860
mov eax, str.IA32_ON_WIN64
jmp 0x408860
mov eax, str.UNKNOWN
mov esp, ebp
pop ebp
ret
Function at 0x408892
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0x2a4
mov eax, 0x477824
call fcn.00450819
mov esi, 0x114
lea eax, [ebp - 0x158]
push esi
xor edi, edi
push edi
push eax
call fcn.00452e20
add esp, 0xc
mov dword [ebp - 0x158], esi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40893e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 2
lea ecx, [ebp - 0x2b0]
mov esi, eax
call fcn.00409bf5
lea eax, [ebp - 0x2b0]
mov dword [ebp - 4], edi
push str.GetVersionEx_failed__err_
push eax
call fcn.0040b812
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x2b0]
call fcn.0040a427
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00408d5d
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push edi
call fcn.00406d81
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040732e
lea ecx, [ebp - 0x2b0]
jmp 0x408b1c
push 0x24
lea eax, [ebp - 0x17c]
push edi
push eax
call fcn.00452e20
add esp, 0xc
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x154]
push 2
pop esi
cmp eax, 4
jne 0x40897f
cmp dword [ebp - 0x148], 1
jne 0x408a93
xor eax, eax
jmp 0x408b24
cmp eax, 5
jne 0x4089c8
mov eax, dword [ebp - 0x150]
test eax, eax
jne 0x408994
inc eax
jmp 0x408b24
cmp eax, 1
jne 0x4089a1
push 2
pop eax
jmp 0x408b24
cmp eax, esi
jne 0x408a93
cmp word [ebp - 0x17c], 9
je 0x4089c4
cmp word [ebp - 0x17c], 6
je 0x4089c4
mov eax, esi
jmp 0x408b24
push 3
jmp 0x40899b
push 6
pop edx
cmp eax, edx
jne 0x408a65
mov ecx, dword [ebp - 0x150]
test ecx, ecx
jne 0x4089fb
cmp word [ebp - 0x17c], 9
je 0x4089f4
cmp word [ebp - 0x17c], dx
je 0x4089f4
push 5
jmp 0x40899b
mov eax, edx
jmp 0x408b24
cmp ecx, 1
jne 0x408a1b
cmp word [ebp - 0x17c], 9
je 0x408a17
cmp word [ebp - 0x17c], dx
je 0x408a17
push 7
jmp 0x40899b
push 8
jmp 0x40899b
cmp ecx, esi
jne 0x408a3f
push 9
pop eax
cmp word [ebp - 0x17c], ax
je 0x408a38
cmp word [ebp - 0x17c], dx
jne 0x408b24
push 0xa
jmp 0x40899b
cmp ecx, 3
jne 0x408a93
cmp word [ebp - 0x17c], 9
je 0x408a5e
cmp word [ebp - 0x17c], dx
je 0x408a5e
push 0xb
jmp 0x40899b
push 0xc
jmp 0x40899b
cmp eax, 0xa
jne 0x408a93
cmp dword [ebp - 0x150], edi
jne 0x408a93
cmp word [ebp - 0x17c], 9
je 0x408a8c
cmp word [ebp - 0x17c], dx
je 0x408a8c
push 0xd
jmp 0x40899b
push 0xe
jmp 0x40899b
push 1
push esi
lea ecx, [ebp - 0x218]
call fcn.00409bf5
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push str.Unknown_version:_major
push eax
call fcn.0040b812
pop ecx
pop ecx
push dword [ebp - 0x154]
lea ecx, [ebp - 0x218]
call fcn.0040a427
lea eax, [ebp - 0x218]
push str.__minor
push eax
call fcn.0040b812
pop ecx
pop ecx
push dword [ebp - 0x150]
lea ecx, [ebp - 0x218]
call fcn.0040a427
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x218]
call fcn.00408d5d
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
push edi
call fcn.00406d81
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0040732e
lea ecx, [ebp - 0x218]
call fcn.00408790
or eax, 0xffffffff
call fcn.004507c3
ret
Function at 0x40c2b2
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xdc
mov eax, 0x477ce3
call fcn.00450887
mov edi, ecx
mov esi, dword [edi + 4]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
cmp dword [eax + 4], ebx
je 0x40c2f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x40c490
add eax, 0x10
push eax
push 4
push edi
push 0x40c092
push ebx
push ebx
call fcn.0045a97c
mov ecx, dword [edi + 4]
add esp, 0x18
mov dword [ecx + 4], eax
mov eax, dword [edi + 4]
cmp dword [eax + 4], ebx
je 0x40c486
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40c3cc
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040862b
mov dword [ebp - 0x4c], eax
push 1
push 2
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.00409bf5
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 3
push str.SetThreadPriority_failed:
push eax
call fcn.0040b812
pop ecx
pop ecx
push dword [ebp - 0x4c]
lea eax, [ebp - 0xe8]
push eax
call fcn.0040bb75
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00408d5d
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
push ebx
call fcn.00406d81
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040732e
lea ecx, [ebp - 0xe8]
call fcn.00408790
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040732e
mov dword [ebp - 4], ebx
jmp 0x40c3cc
mov eax, dword [edi + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40c477
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040862b
mov edi, eax
push 1
push 2
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
call fcn.00409bf5
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 8
push str.ResumeThread_failed:
push eax
call fcn.0040b812
pop ecx
pop ecx
lea eax, [ebp - 0xe8]
push edi
push eax
call fcn.0040bb75
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00408d5d
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
push ebx
call fcn.00406d81
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040732e
lea ecx, [ebp - 0xe8]
call fcn.00408790
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040732e
jmp 0x40c486
mov eax, dword [edi + 4]
mov byte [eax + 0xc], 1
mov eax, dword [edi + 4]
mov byte [eax + 0xd], bl
mov bl, 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004507d4
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40cc03
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x410021
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478a9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b6070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x12
lea ecx, [esi + 0x1e4]
call fcn.00407241
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x1c8]
call fcn.00407241
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x1ac]
call fcn.00407241
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x188]
call fcn.00407241
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x170]
call fcn.00407241
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x158]
call fcn.00407241
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x13c]
call fcn.00407241
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x124]
call fcn.00407241
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x10c]
call fcn.00407241
mov byte [ebp - 4], 9
lea ecx, [esi + 0xf4]
call fcn.00407241
mov byte [ebp - 4], 8
lea ecx, [esi + 0xdc]
call fcn.00407241
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc4]
call fcn.00407241
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa8]
call fcn.00407241
mov byte [ebp - 4], 5
lea ecx, [esi + 0x90]
call fcn.00407241
mov byte [ebp - 4], 4
lea ecx, [esi + 0x78]
call fcn.00407241
mov byte [ebp - 4], 3
lea ecx, [esi + 0x60]
call fcn.00407241
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407241
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407241
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00407241
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410eaa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc4
mov eax, 0x478cda
call fcn.00450819
mov ebx, ecx
push str.Enter_updtShimAPIClass::GetVerifierInfo
push 3
call fcn.00406d9c
mov edi, 0x48ee0c
mov byte [ebx + 0x1a4], 0
lea esi, [ebx + 0x188]
and dword [esi], 0
push edi
call fcn.00459e88
add esp, 0xc
lea ecx, [ebx + 0x18c]
push eax
push edi
call fcn.00407411
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push dword [0x4b6f48]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x410f86
lea ecx, [ebp - 0xd0]
call fcn.00408d76
mov esi, eax
and dword [ebp - 4], 0
push str._GetVerifierInfo__Open_key:
push esi
call fcn.0040b812
push dword [0x4b6f48]
push esi
call fcn.0040b812
push str._failed
push esi
call fcn.0040b812
add esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.0040878b
xor al, al
jmp 0x411064
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 0
push str.VerifyDriverLevel
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 4
call edi
test eax, eax
je 0x410fbd
push str.Query_VerifyDriverLevel_failed
push 2
call fcn.00406d9c
pop ecx
pop ecx
jmp 0x41103f
xor ecx, ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
push str.VerifyDrivers
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
call edi
test eax, eax
jne 0x41103f
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
shr edx, 1
mov dword [ebp - 0x34], eax
inc edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0040732b
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040c92e
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040732b
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
push 0
push 0
push str.VerifyDrivers
push dword [ebp - 0x30]
call edi
push dword [esi]
lea ecx, [ebx + 0x18c]
call fcn.004073ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c8fc
lea esi, [ebx + 0x188]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
push str.Exit_updtShimAPIClass::GetVerifierInfo
setne al
push 3
mov byte [ebx + 0x1a4], al
call fcn.00406d9c
pop ecx
pop ecx
mov al, 1
call fcn.004507c3
ret
Function at 0x41190d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4b6070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWARENVIDIA_CorporationGlobalNvBackend
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x58], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411949
xor al, al
jmp 0x41199a
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x4e
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push str.Link
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411945
cmp dword [ebp - 0x58], esi
je 0x41197a
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x54], si
je 0x41198c
lea eax, [ebp - 0x54]
push eax
call fcn.00459e88
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.0040751f
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045079d
mov esp, ebp
pop ebp
ret 4
Function at 0x4128ac
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x479077
call fcn.004507e5
mov edi, ecx
mov esi, 0x48ee0c
xor ebx, ebx
push esi
call fcn.00459e88
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00407411
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push str.SOFTWARENVIDIA_Corporation_nForce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41299e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push str.PackageVersion
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
shr edx, 1
mov esi, eax
mov dword [ebp - 0x18], ebx
inc edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040732b
push eax
push edx
lea ecx, [ebp - 0x24]
call fcn.0040c92e
mov dword [ebp - 4], ebx
test esi, esi
jne 0x412964
lea ecx, [ebp - 0x24]
call fcn.0040732b
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push str.PackageVersion
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412964
push dword [esi]
mov ecx, edi
call fcn.004073ea
jmp 0x412987
mov esi, str.Unsupported
push esi
call fcn.00459e88
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00407411
push str.Cannot_get_PackageVersion
push 2
call fcn.00406d9c
pop ecx
pop ecx
push dword [ebp - 0x14]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040c8fc
mov al, bl
call fcn.004507ae
ret
Function at 0x4250af
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478a9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b6070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00407270
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407270
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407270
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407270
mov byte [ebp - 4], 3
lea ecx, [esi + 0x60]
call fcn.00407270
mov byte [ebp - 4], 4
lea ecx, [esi + 0x78]
call fcn.00407270
mov byte [ebp - 4], 5
lea ecx, [esi + 0x90]
call fcn.00407270
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa8]
call fcn.00407270
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc4]
call fcn.00407270
mov byte [ebp - 4], 8
lea ecx, [esi + 0xdc]
call fcn.00407270
mov byte [ebp - 4], 9
lea ecx, [esi + 0xf4]
call fcn.00407270
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x10c]
call fcn.00407270
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x124]
call fcn.00407270
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x13c]
call fcn.00407270
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x158]
call fcn.00407270
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x170]
call fcn.00407270
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x188]
call fcn.00407270
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x1ac]
call fcn.00407270
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x1c8]
call fcn.00407270
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x1e4]
call fcn.00407270
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x425ccf
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x110
mov eax, 0x47bbaf
call fcn.00450819
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x54]
push 0x4914c0
mov edx, esi
call fcn.004234e0
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 0x48ee0c
push edi
call fcn.00459e88
pop ecx
push eax
lea ecx, [esi + 0x1c]
push edi
call fcn.00407411
push 0xa
pop ecx
push 0x14
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x54]
call fcn.004071ba
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
cmp word [ebp - 0x3c], bx
jne 0x425d3c
mov eax, ebx
jmp 0x425d46
lea eax, [ebp - 0x3c]
push eax
call fcn.00459e88
pop ecx
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00407411
test edi, edi
jne 0x425dc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov byte [ebp - 4], 1
push str.GetVolumeInfo_Filessytem_failed_caption
push edi
call fcn.0040b812
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.0040bb75
push str.__ErrorCode
push edi
call fcn.0040b812
add esp, 0x18
mov ecx, edi
push esi
call fcn.0040a427
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x6c]
push eax
push 1
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 1
jmp 0x425e61
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], ebx
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x70], ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.004071ba
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x425e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov byte [ebp - 4], 3
push str.GetVolumeInfo_Size_failed_caption
push edi
call fcn.0040b812
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.0040bb75
push str.__ErrorCode
push edi
call fcn.0040b812
add esp, 0x18
mov ecx, edi
push esi
call fcn.0040a427
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
push eax
push 1
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00407241
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.0040878b
jmp 0x425e9b
mov ecx, dword [ebp - 0x74]
mov bl, 1
mov eax, dword [ebp - 0x70]
shrd ecx, eax, 0x14
shr eax, 0x14
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp - 0x7c]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [esi + 0x34], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00407241
mov al, bl
call fcn.004507c3
ret 4
Function at 0x4263c1
Capabilities:
Get storage device properties

Disassembly:
push 0xc4
mov eax, 0x47bcb6
call fcn.00450819
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x38]
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
push edx
push dword [eax + 4]
mov dword [ebp - 0x1c], ebx
push eax
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x426464
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov dword [ebp - 4], ebx
push str.IOCTL_STORAGE_QUERY_PROPERTY_ec
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.0040878b
xor al, al
jmp 0x426466
mov al, 1
call fcn.004507c3
ret 8