joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1054b39
Capabilities:
Parse pe header

Disassembly:
bsf ecx, ebp
mov dh, byte [esp + 7]
lea esp, [esp + 9]
sub esp, 0x1d
pushfd
jmp 0x105473a
xchg word [esp + 3], dx
mov dh, 1
mov ch, bh
cmp cx, cx
mov ecx, 0x3ee6357c
jmp 0x1054680
mov ecx, eax
xchg byte [esp + 2], ch
add esp, 5
lea ecx, [ebp - 0x17]
mov esi, edx
mov word [esp + 1], bp
jmp 0x1054717
std
mov dh, byte [esp + 0xf]
neg edx
neg edx
pop si
bts dx, sp
jmp 0x10546d3
pop dword [esp + 3]
xchg esi, edx
xchg ch, cl
push edx
lea ecx, reloc.MSVCRT.dll___dllonexit
jmp 0x105478c
inc si
lea esp, [esp + 2]
push si
push dword [esp + 9]
xchg byte [esp], ch
mov esi, 0xbabab6d0
jmp 0x1054701
mov byte [esp + 0x23], dh
lea esp, [esp + 0x18]
mov si, ax
sbb dx, 0x1a86
pop esi
bswap ecx
jmp 0x10546f0
std
mov esi, ecx
mov ch, cl
dec cl
inc ecx
lea edx, [edx + esi]
jmp 0x10547a4
lea ecx, reloc.MSVCRT.dll___dllonexit
cld
cld
dec ch
mov si, sp
btr ecx, edx
jmp 0x105474f
mov dword [esp + 1], ecx
mov cl, al
mov word [esp + 2], ax
mov dl, ch
mov dh, ah
lea edx, [edx*4]
jmp 0x1054765
xchg word [esp + 5], cx
mov esi, ebp
mov dword [esp + 8], ebx
mov cx, si
mov dl, byte [esp + 5]
bt edx, esi
jmp 0x105520b
mov dh, 0x6b
call fcn.01054a2a
mov dword [esp + 0x30], esi
call fcn.01054b54
adc al, 0x9e
or al, 0x6b
cmpsb byte [esi], byte es:[edi]
and dword [edi - 0xd], ebp
arpl word [esi], ax
cmc
adc eax, 0xffe5e876
invalid
in eax, 0xff
invalid
clc
mov edx, dword [esp]
mov dh, 0xf8
and cx, bp
mov si, 0x5a37
not cx
jmp 0x1054b1c
push dword [esp + 5]
xchg cx, si
mov dl, byte [esp + 0xa]
xchg dword [esp + 0xb], esi
add esp, 0xa
add esp, 5
jmp 0x1054e9a
mov ch, 0xee
mov si, 0x8b6a
bswap edx
pop word [esp + 1]
lea esi, [ebp*4]
mov dword [esp + 6], esp
jmp 0x1054fe8

Function at 0x1054b54
Capabilities:
Parse pe header

Disassembly:
mov byte [esp + 1], bh
push ebp
push ecx
lea esp, [esp + 6]
lea esp, [esp + 2]
jmp 0x1054b71
mov word [esp + 1], bx
jmp 0x1054b3e
mov eax, dword fs:[0x30]
jmp 0x1054bfc
mov dword [esp + 0x30], edi
lea esp, [esp + 0x30]
jmp 0x1054b5b
mov eax, dword [eax + 8]
jmp 0x1054bcf
lea ecx, [ecx + 0x1c]
mov eax, dword [ecx]
pop ecx
mov eax, dword [eax]
jmp 0x1054b99
push eax
jmp 0x1054001
mov eax, dword [eax + 0xc]
push ecx
mov ecx, eax
jmp 0x1054baf

Function at 0x1054b8a
Capabilities:
Parse pe header

Disassembly:
pop word [esp + 1]
push ebp
mov dword [esp + 0x2c], ebp
call fcn.01054b39
Function at 0x401350
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0x214
mov eax, dword [0x4bdbb0]
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 0x4a2054
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 [0x4c9050]
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.004644d0
add esp, 0x214
ret
Function at 0x401770
Capabilities:
Modify service
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x1810
call fcn.00465640
mov eax, dword [0x4bdbb0]
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 0x4a205c
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.00463850
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 0x4a205c
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 0x4a2118
call ebp
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add eax, eax
push eax
push 0x4a2118
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.004644d0
add esp, 0x1810
ret
Function at 0x401910
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x48c3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
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.00485a70
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.00440d2e
add esp, 4
push edi
call fcn.00440d2e
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.00485a70
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.00440d2e
add esp, 4
push edi
call fcn.00440d2e
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 [0x4bdbb0]
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.004644d0
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.0046450c
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.004644d0
add esp, 0x80c
ret
Function at 0x402110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4bdbb0]
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.004644d0
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.004644d0
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 0x4a205c
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 [0x4bdbb0]
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.004644d0
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.00440d39
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.00440d2e
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004644d0
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.00466e9b
add esp, 0x10
push 0x4a2058
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.00440d2e
mov ecx, dword [esp + 0x22c]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004644d0
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.00468ee0
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.00468ee0
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.00463de0
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.00468ee0
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.00468ee0
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.00463de0
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.00468ee0
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.00468ee0
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.00463de0
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 0x40ee00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x40ee34
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
call fcn.00463d12
add esp, 4
cmp dword [esp + 0x3c], 0
mov edi, eax
mov dword [esp + 0x30], 0
jbe 0x40ef51
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, esi
neg eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x30]
xor ecx, ecx
add edx, dword [esp + 0x34]
adc ecx, dword [esp + 0x38]
xor eax, eax
push eax
push esi
push ecx
push edx
call fcn.00463de0
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [esp + 0x20]
sub eax, 3
je 0x40ef06
sub eax, 1
jne 0x40ef36
cmp ebp, esi
jle 0x40eebf
mov eax, dword [esp + 0x24]
push esi
push eax
jmp 0x40eecd
test ebp, ebp
jle 0x40ef70
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push edi
call fcn.004638d0
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ef36
push edi
call fcn.00463c35
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, esi
jle 0x40ef23
mov ecx, dword [esp + 0x24]
push esi
push edi
push ecx
jmp 0x40ef2e
test ebp, ebp
jle 0x40ef70
mov edx, dword [esp + 0x24]
push ebp
push edi
push edx
call fcn.004638d0
add esp, 0xc
mov eax, dword [esp + 0x30]
add ebp, dword [esp + 0x28]
add dword [esp + 0x24], esi
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x3c]
jb 0x40ee70
push edi
call fcn.00463c35
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x20
push esi
push 0
push edi
call fcn.00463850
push edi
call fcn.00463c35
add esp, 0x10
jmp 0x40ef5a

Function at 0x40f020
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f07a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18