joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026293
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001eb5d
xor ebx, ebx
cmp dword [0x1003ae9c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10026369
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10026449
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10026449
push eax
call fcn.1001eaef
mov dword [esp], 0x1002dfdc
push edi
mov dword [0x1003ae9c], eax
call esi
push eax
call fcn.1001eaef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003aea0], eax
call esi
push eax
call fcn.1001eaef
mov dword [0x1003aea4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10020c4b
test eax, eax
pop ecx
pop ecx
je 0x10026337
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001af90
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10026369
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001eaef
cmp eax, ebx
pop ecx
mov dword [0x1003aeac], eax
je 0x10026369
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001eaef
pop ecx
mov dword [0x1003aea8], eax
mov eax, dword [0x1003aea8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100263ee
cmp dword [0x1003aeac], ecx
je 0x100263ee
push eax
call fcn.1001eb66
push dword [0x1003aeac]
mov esi, eax
call fcn.1001eb66
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100263ee
cmp edi, ebx
je 0x100263ee
call esi
cmp eax, ebx
je 0x100263bb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100263bb
test byte [ebp - 0x18], 1
jne 0x100263ee
lea eax, [ebp - 0x10]
push eax
call fcn.10020c82
test eax, eax
pop ecx
je 0x100263d6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001af90
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100263e5
or dword [ebp + 0x10], 0x200000
jmp 0x10026429
or dword [ebp + 0x10], 0x40000
jmp 0x10026429
mov eax, dword [0x1003aea0]
cmp eax, dword [ebp - 8]
je 0x10026429
push eax
call fcn.1001eb66
cmp eax, ebx
pop ecx
je 0x10026429
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10026429
mov eax, dword [0x1003aea4]
cmp eax, dword [ebp - 8]
je 0x10026429
push eax
call fcn.1001eb66
cmp eax, ebx
pop ecx
je 0x10026429
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003ae9c]
call fcn.1001eb66
cmp eax, ebx
pop ecx
je 0x10026449
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002644b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401350
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
push str.._
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
cmp eax, 8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
jle 0x4013a7
push 9
push ebx
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
mov word [esp + 0x30], dx
jmp 0x4013af
push ebx
lea eax, [esp + 0x1c]
push eax
call ebp
mov ecx, 0x3a
cmp cx, word [esp + 0x22]
jne 0x4013c2
xor edx, edx
mov word [esp + 0x24], dx
push ebx
call edi
cmp eax, 1
jne 0x4013d6
push 0x49bcb4
lea eax, [esp + 0x1c]
push eax
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call edi
push 0
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0x80002004
push esi
call edi
test eax, eax
jne 0x401468
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4014bc
test ebp, ebp
je 0x401464
push 0
lea eax, [esp + 0x24]
push eax
push 2
call dword [0x4c3000]
test eax, eax
je 0x401464
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0x800024dc
push esi
call edi
movzx esi, word [ebx]
shl esi, 0x10
or esi, 0x8004
call fcn.00401120
lea edi, [esp + 0x18]
call fcn.00403020
mov ecx, edi
call fcn.00402610
mov eax, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460f10
add esp, 0x214
ret
Function at 0x401770
Capabilities:
Modify service
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x1810
call fcn.00462080
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x180c], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x4018f8
push ebx
push 0xf003f
push 0x49bcbc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x4018f0
push 0xfff
lea eax, [esp + 0x819]
push 0
push eax
mov byte [esp + 0x820], 0
call fcn.00460290
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x81c]
push edx
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x4018e9
push ebp
push edi
push str.SystemCurrentControlSetServices_
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x49bcbc
lea ecx, [esp + 0x20]
push ecx
call esi
push str.Instances
lea edx, [esp + 0x20]
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x49bd78
call ebp
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add eax, eax
push eax
push 0x49bd78
push 1
push str.DefaultInstance
lea eax, [esp + 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push str.Top
lea ecx, [esp + 0x20]
push ecx
call esi
push str.586333
call ebp
add eax, eax
push eax
push str.586333
push 1
push str.Altitude
lea edx, [esp + 0x2c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.Flags
lea ecx, [esp + 0x2c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
call edi
cmp dword [esp + 0x81c], 2
pop edi
pop ebp
je 0x4018e5
push 0
push 0
push 0
push str.FltMgr
push 0
push str.FSFilter_Activity_Monitor
push 0
push 1
push 1
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esi, dword [esp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [esp + 0x1810]
pop esi
xor ecx, esp
call fcn.00460f10
add esp, 0x1810
ret
Function at 0x401910
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4889a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
xor ebp, ebp
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebp
call fcn.00401020
mov dword [esp + 0x2c], ebp
mov edi, dword [eax]
cmp edi, ebp
je 0x40196a
cmp dword [edi + 4], ebp
jne 0x401965
mov ecx, dword [edi]
push ecx
call fcn.004824b0
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x40196c
xor edi, edi
mov esi, dword [sym.imp.imagehlp.dll_ImageLoad]
push ebp
push edi
call esi
mov dword [esp + 0x2c], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4019ca
mov edi, eax
add eax, 8
push eax
call ebx
cmp eax, ebp
jne 0x4019c6
cmp edi, ebp
je 0x4019c6
mov eax, dword [edi]
cmp eax, ebp
je 0x4019ad
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x4019bd
push eax
call fcn.0043d7ae
add esp, 4
push edi
call fcn.0043d7ae
add esp, 4
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401020
mov dword [esp + 0x2c], 1
mov edi, dword [eax]
cmp edi, ebp
je 0x4019fb
cmp dword [edi + 4], ebp
jne 0x4019f6
mov eax, dword [edi]
push eax
call fcn.004824b0
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x4019fd
xor edi, edi
push ebp
push edi
call esi
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x401a45
mov edi, eax
add eax, 8
push eax
call ebx
test eax, eax
jne 0x401a41
cmp edi, ebp
je 0x401a41
mov eax, dword [edi]
cmp eax, ebp
je 0x401a28
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x401a38
push eax
call fcn.0043d7ae
add esp, 4
push edi
call fcn.0043d7ae
add esp, 4
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.imagehlp.dll_ImageUnload]
cmp eax, ebp
je 0x401a72
cmp esi, ebp
je 0x401a6f
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
mov dx, word [edx + 4]
cmp dx, word [ecx + 4]
jne 0x401a6f
mov dword [esp + 0x1c], 1
push eax
call edi
cmp esi, ebp
je 0x401a79
push esi
call edi
cmp dword [esp + 0x1c], ebp
je 0x401ab2
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
call fcn.00402110
test eax, eax
je 0x401ab2
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x401ad0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
push edi
push 0
call fcn.00401180
add esp, 4
cmp eax, 0xffffffff
jne 0x401b0e
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00460f10
add esp, 0x80c
ret
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push 0x200
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Drivers_
lea ecx, [esp + 0xc]
push ecx
call esi
push str.Estdlock.SYS
lea edx, [esp + 0xc]
push edx
call esi
push 0x200
lea eax, [esp + 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x408]
push 0x5c
push ecx
call fcn.00460f4c
add esp, 8
test eax, eax
je 0x401bbe
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea esi, [eax + 2]
push str.Estdlock.sys
push esi
call edi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x40c]
push eax
call fcn.00401910
add esp, 8
test eax, eax
jne 0x401bb9
push str.Estdlock64.sys
push esi
call edi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x40c]
push edx
call fcn.00401910
add esp, 8
test eax, eax
je 0x401bbe
call fcn.00401770
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00460f10
add esp, 0x80c
ret
Function at 0x402110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x40213d
push esi
call edi
test eax, 0x10000
je 0x402163
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x402163
mov eax, 1
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00460f10
add esp, 0x414
ret
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00402850
add esp, 4
test eax, eax
je 0x402148
lea ecx, [esp + 0x20c]
push ecx
mov ecx, ebx
call fcn.00402850
add esp, 4
test eax, eax
je 0x402148
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x210]
call fcn.004029d0
mov ecx, dword [esp + 0x418]
dec eax
add esp, 4
neg eax
sbb eax, eax
pop edi
xor ecx, esp
inc eax
call fcn.00460f10
add esp, 0x414
ret

Function at 0x4021c0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x38]
push esi
test ebp, ebp
je 0x4021d4
mov dword [ebp], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x4021f3
pop esi
pop ebp
add esp, 0x2c
ret
push edi
push 0xf003f
push 0x49bcbc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x402246
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x424
jne 0x402236
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x2c
ret
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret
cmp dword [esp + 0x3c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4022ca
lea eax, [esp + 0x44]
call fcn.004012e0
test eax, eax
je 0x4022ca
cmp dword [esp + 0x44], 0
jne 0x4022bf
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x402283
call ebx
cmp eax, 0x426
jne 0x4022bf
cmp dword [esp + 0x1c], 1
je 0x4022ca
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4022b8
mov dword [esp + 0x1c], 4
jmp 0x4022bf
cmp dword [esp + 0x1c], 1
je 0x4022ca
test ebp, ebp
je 0x4022ca
mov dword [ebp], 1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
call ebx
mov ebx, eax
test esi, esi
jne 0x4022f3
cmp ebx, 0x430
jne 0x4022f3
test ebp, ebp
je 0x4022ee
mov dword [ebp], 1
mov esi, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret
Function at 0x402850
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push esi
push edi
mov edi, ecx
push 0
push edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x402898
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00460f10
add esp, 0x220
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.0043d7b9
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4028ea
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4028e1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x402904
push ebp
call fcn.0043d7ae
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00460f10
add esp, 0x220
ret
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x4029a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x402920
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04x_
push ecx
call fcn.004637bb
add esp, 0x10
push 0x49bcb8
lea edx, [esp + 0x28]
push edx
call ebx
push str.FileVersion
lea eax, [esp + 0x28]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x402982
mov ecx, dword [esp + 0x10]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x402920
jmp 0x40299f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402990
pop ebx
push ebp
call fcn.0043d7ae
mov ecx, dword [esp + 0x22c]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00460f10
add esp, 0x220
ret
Function at 0x403020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40308c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0
push str.SDiskPath
push edx
call ebx
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call ebp
xor eax, eax
test esi, esi
sete al
test eax, eax
jne 0x4030f3
lea ecx, [esp + 0xc]
push ecx
push 0x20019
xor esi, esi
push esi
push str.SoftwareLenovo_
push SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4030db
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push edi
push esi
push esi
push str.SDiskPath
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call ebp
xor edx, edx
test esi, esi
sete dl
mov esi, edx
test esi, esi
jne 0x4030f1
push edi
call fcn.00402da0
add esp, 4
test eax, eax
je 0x4030f1
push edi
call fcn.00402c40
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40ce60
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push esi
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40cea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb30
mov esi, eax
call fcn.00465920
mov dword [eax], esi
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
add esp, 0x10
ret

Function at 0x40cec0
Capabilities:
Get volume information via ioctl

Disassembly:
sub esp, 0x68
push esi
push 0
lea eax, [esp + 8]
push eax
push 0x60
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x90064
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40cf04
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb30
mov esi, eax
call fcn.00465920
mov dword [eax], esi
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 0x68
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push eax
push ecx
push 0
push edx
call fcn.00460820
pop esi
add esp, 0x68
ret
Function at 0x40d0c0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
and eax, 3
xor ebp, ebp
sub eax, ebp
push esi
mov esi, ecx
je 0x40d0eb
sub eax, 1
je 0x40d0e4
sub eax, 1
je 0x40d0dd
xor eax, eax
jmp 0x40d0f0
mov eax, 3
jmp 0x40d0f0
mov eax, 2
jmp 0x40d0f0
mov eax, 1
push ebp
push ebp
push 3
push ebp
push 3
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40d125
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb30
mov esi, eax
call fcn.00465920
mov dword [eax], esi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x40d15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb30
mov edi, eax
call fcn.00465920
mov dword [eax], edi
mov eax, ebx
mov edx, ebx
jmp 0x40d16e
mov edx, dword [esp + 0x10]
push 1
push ebp
push ebp
push edx
call fcn.00460820
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x18], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x1c], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x40d0ca
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
and eax, 3
xor ebp, ebp
sub eax, ebp
push esi
mov esi, ecx
je 0x40d0eb
sub eax, 1
je 0x40d0e4
sub eax, 1
je 0x40d0dd
xor eax, eax
jmp 0x40d0f0
mov eax, 3
jmp 0x40d0f0
mov eax, 2
jmp 0x40d0f0
mov eax, 1
push ebp
push ebp
push 3
push ebp
push 3
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40d125
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb30
mov esi, eax
call fcn.00465920
mov dword [eax], esi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x40d15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb30
mov edi, eax
call fcn.00465920
mov dword [eax], edi
mov eax, ebx
mov edx, ebx
jmp 0x40d16e
mov edx, dword [esp + 0x10]
push 1
push ebp
push ebp
push edx
call fcn.00460820
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x18], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x1c], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret