joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eed0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x44b228
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ecx, dword [0x452f50]
mov eax, dword [0x452f4c]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], eax
call fcn.00442460
xor edi, edi
cmp esi, edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
jne 0x43ef4f
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00441700
xor al, al
jmp 0x43f0e6
push 0x148
push edi
push esi
call fcn.0042af00
movzx edx, word [esp + 0x94]
push edx
call fcn.0043bd93
movzx ebp, ax
add esp, 0x10
cmp bp, di
jne 0x43ef7b
movzx ebp, word [0x466810]
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x6c], bp
mov dword [esi], 2
mov dword [esi + 4], 0x1234567e
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cx, word [esp + 0x20]
mov dl, byte [esp + 0x22]
mov al, byte [esp + 0x26]
mov word [esi + 0x10], cx
lea ecx, [esp + 0x18]
mov byte [esi + 0x12], dl
mov byte [esi + 0x13], al
push ecx
lea ecx, [esp + 0x34]
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], 0x1e
call fcn.00441ba0
cmp dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
jle 0x43f084
lea ebx, [eax + 0x80]
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x43efff
add edi, 1
add ebx, 0x194
cmp edi, eax
jl 0x43efe2
test eax, eax
jle 0x43f084
cmp edi, eax
jge 0x43f084
mov edx, dword [esp + 0x1c]
imul edi, edi, 0x194
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], 8
lea ecx, [esi + 0xa4]
add edx, edi
lea esp, [esp]
movzx edi, byte [edx + eax + 0x14c]
mov word [ecx - 0x20], di
movzx edi, byte [edx + eax + 0x144]
mov word [ecx], di
add eax, 1
add ecx, 2
cmp eax, 8
jl 0x43f030
mov word [esi + 0x94], bx
mov eax, dword [esp + 0x14]
push 0x40
add edx, 0x154
push edx
lea ecx, [esi + 0xc4]
mov word [esi + eax*2 + 0xa4], bx
push ecx
mov dword [esp + 0x20], 0x40
call fcn.004300a0
jmp 0x43f0a7
lea edx, [esp + 0x14]
push edx
lea eax, [esi + 0xc4]
push eax
push ebp
mov dword [esp + 0x20], 0x30
call fcn.00442e20
add esp, 4
push eax
call fcn.004432c0
lea ecx, [esp + 0x74]
add esp, 0xc
push ecx
call fcn.0043e6c0
add esp, 4
push 0
mov dword [esi + 0x124], eax
add esi, 0x130
push esi
push 0
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00441700
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00428d80
add esp, 0x6c
ret
Function at 0x440270
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45cf98
push 0x42b4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x462600]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x4403aa
call fcn.00440090
push esi
push esi
push esi
push esi
push str.ActivationV3
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi], eax
cmp eax, esi
je 0x4403aa
mov eax, dword [edi + 0x14]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov dword [ebp - 0x1c], eax
push ebx
call esi
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
add ecx, 0xa
push ecx
call fcn.0040bebf
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x4403aa
push str.http:__
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [edi + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x1c], 0
push 0
push 0x4280200
push 0
push 0
push esi
mov edx, dword [edi]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [edi + 0xc], eax
test eax, eax
je 0x4403aa
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
mov esi, dword [ebp + 0x10]
mov edi, edi
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x44038c
add dword [ebp - 0x20], ecx
add ebx, ecx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x44038c
test ecx, ecx
je 0x44038c
cmp dword [ebp - 0x20], esi
jb 0x440360
mov eax, dword [ebp - 0x20]
cmp eax, esi
jb 0x4403a3
mov edx, dword [ebp + 0xc]
mov byte [edx + esi - 1], 0
add esi, 0xffffffff
mov dword [ebp - 0x20], esi
jmp 0x4403aa
mov ecx, dword [ebp + 0xc]
mov byte [eax + ecx], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.004403cd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4412c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa0]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0xa8]
push edi
xor ebx, ebx
push 0x7e
mov edi, ecx
lea ecx, [esp + 0x22]
push ebx
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov word [esp + 0x28], bx
call fcn.0042af00
add esp, 0xc
cmp esi, 0x200
mov dword [esp + 0x10], ebx
ja 0x441454
mov esi, dword [esp + 0xa8]
cmp esi, 1
jb 0x441454
push ebp
mov ecx, edi
call fcn.00440fe0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x441464
push str..PHYSICALDRIVE
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x1c]
push eax
add ebp, 0x30
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea ecx, [esp + 0x34]
push ecx
mov word [esp + eax*2 + 0x38], bp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44139d
mov dword [edi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x210], eax
jmp 0x441464
push ebx
add esi, 0xffffffff
push ebx
shl esi, 9
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4413d5
cmp eax, esi
jne 0x4413d5
mov esi, dword [esp + 0xb4]
shr esi, 9
add esi, 1
shl esi, 9
push esi
call fcn.0040bebf
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4413f4
mov dword [edi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [edi + 0x210], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x441464
push 0
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44143e
mov dword [edi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0xb4]
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x210], eax
mov eax, dword [esp + 0x14]
push esi
add eax, ebx
push eax
push ecx
call fcn.004300a0
add esp, 0xc
mov dword [esp + 0x10], esi
push ebx
call fcn.0040beef
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x441466
mov dword [edi + 0x210], ebx
mov dword [edi + 0x20c], 3
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428d80
add esp, 0x90
ret 0x14
Function at 0x441490
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xb4]
mov ebx, ecx
xor ebp, ebp
push 0x7e
lea ecx, [esp + 0x2a]
push ebp
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], bp
call fcn.0042af00
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0xbc]
lea edx, [ebp - 0x12]
add esp, 0xc
cmp edx, 0xc
ja 0x4416a3
cmp edi, 0x200
ja 0x4416a3
add ebp, 0xffffffff
shl ebp, 9
lea eax, [edi + ebp]
add eax, dword [esp + 0xbc]
cmp eax, 0x3c00
ja 0x4416a3
push esi
mov ecx, ebx
call fcn.00440fe0
mov edi, eax
cmp edi, 0xffffffff
je 0x4416b7
push str..PHYSICALDRIVE
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x24]
push edx
add edi, 0x30
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
push 3
push 0
push 3
mov word [esp + eax*2 + 0x38], di
push 0xc0000000
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44168b
push 0
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x441684
cmp eax, ebp
jne 0x441684
mov esi, dword [esp + 0xbc]
shr esi, 9
add esi, 1
shl esi, 9
push esi
call fcn.0040bebf
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4415e1
mov esi, dword [esp + 0x10]
mov dword [esi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0x210], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4416b7
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x441654
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
add ecx, ebx
push ecx
call fcn.004300a0
add esp, 0xc
push 0
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
jne 0x441640
push 0
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x441654
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + 0x20c], ecx
mov dword [eax + 0x210], ecx
jmp 0x44166e
mov esi, dword [esp + 0x10]
mov dword [esi + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x210], eax
push ebx
call fcn.0040beef
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x4416b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x20c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x210], eax
jmp 0x4416b7
mov dword [ebx + 0x20c], 3
mov dword [ebx + 0x210], 0
xor eax, eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428d80
add esp, 0x98
ret 0x14
Function at 0x4417f0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
xor edx, edx
push edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
push edx
push eax
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00428d80
add esp, 0x14
ret 8
Function at 0x441840
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x46c
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x468], eax
mov eax, dword [esp + 0x478]
push ebx
push str.Floppy
push eax
call fcn.00429171
add esp, 8
test eax, eax
mov eax, dword [esp + 0x478]
setne cl
sub eax, 2
je 0x4418a6
sub eax, 1
je 0x4418af
sub eax, 2
je 0x44189f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00428d80
add esp, 0x46c
ret 0xc
mov ebx, 0x4526f4
jmp 0x4418b4
test cl, cl
mov ebx, 0x4526e4
jne 0x4418b4
mov ebx, 0x452704
push esi
push 0x12
push 0
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x441a42
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push edi
mov eax, 0x1c
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
push eax
xor ebp, ebp
push ebp
push ebx
push ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x441a23
nop
lea ecx, [esp + 0x5c]
push ecx
push ebp
push ebx
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push esi
mov dword [esp + 0x28], 0
call edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x441a08
cmp ecx, 0x400
ja 0x441a08
xor eax, eax
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x6c]
push edx
push esi
mov dword [esp + 0x90], 6
mov dword [esp + 0x3c], 0x1c
call edi
test eax, eax
je 0x441a08
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x441a08
push 0
lea ecx, [esp + 0x18]
push ecx
push 0xc
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x441a01
mov eax, dword [esp + 0x480]
cmp eax, dword [esp + 0x1c]
je 0x441a2e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
push ecx
add ebp, 1
push ebp
push ebx
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x441910
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x441a40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x38]
pop edi
pop ebp
mov ecx, dword [esp + 0x470]
pop esi
pop ebx
xor ecx, esp
call fcn.00428d80
add esp, 0x46c
ret 0xc
Function at 0x441a60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x2c
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [0x45344c]
push ebx
push ebp
push esi
mov si, word [esp + 0x3c]
mov dword [esp + 0xc], eax
xor eax, eax
mov ebx, ecx
mov ecx, dword [0x453450]
lea edx, [esp + 0xc]
push edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x10], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x441b81
sub eax, 1
je 0x441ae8
sub eax, 2
je 0x441ae8
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00428d80
add esp, 0x2c
ret 4
push edi
push str._X:
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
lea ecx, [esp + 0x28]
push ecx
mov word [esp + 0x34], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x441b6a
push 0x227
call fcn.0040bebf
push 0x227
mov esi, eax
push 0
push esi
call fcn.0042af00
add esp, 0x10
push esi
push edi
mov ecx, ebx
mov dword [esi + 4], 0x227
call fcn.004417f0
test eax, eax
je 0x441b5a
cmp dword [esi + 0x1c], 7
jne 0x441b5a
mov ebp, 1
push esi
call fcn.0040beef
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00428d80
add esp, 0x2c
ret 4
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00428d80
add esp, 0x2c
ret 4

Function at 0x441bb0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x24
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x20], eax
mov edx, dword [0x4533e0]
mov eax, dword [0x4533d8]
mov ecx, dword [0x4533dc]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
mov ax, word [0x4533e4]
mov dword [esp + 0x30], ecx
mov cx, word [esp + 0x44]
push 0
lea edx, [esp + 0x30]
push edx
or edi, 0xffffffff
mov dword [esp + 0x24], 0
mov word [esp + 0x40], ax
mov word [esp + 0x42], 0
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x441c36
or eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00428d80
add esp, 0x24
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x441c5c
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00428d80
add esp, 0x24
ret 4
Function at 0x441c80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x21c
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
jne 0x441cb7
xor eax, eax
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00428d80
add esp, 0x21c
ret 4
mov eax, dword [0x45344c]
mov ecx, dword [0x453450]
mov edx, dword [0x453454]
push esi
push 0x206
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov ax, word [0x453458]
lea ecx, [esp + 0x1e]
push 0
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov word [esp + 0x24], 0
call fcn.0042af00
mov eax, dword [esp + 0x234]
add esp, 0xc
push eax
mov ecx, edi
mov word [esp + 0x14], ax
mov word [esp + 0xc], ax
call fcn.00441bb0
mov esi, eax
cmp esi, 0xffffffff
jne 0x441d1f
xor eax, eax
jmp 0x441d51
push ebx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
push 0x104
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x1c]
push edx
push ebx
push esi
mov ecx, edi
call fcn.00441840
pop ebx
mov ecx, dword [esp + 0x220]
pop esi
pop edi
xor ecx, esp
call fcn.00428d80
add esp, 0x21c
ret 4

Function at 0x441e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x78
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push ebx
mov ebx, dword [esp + 0x84]
push esi
push edi
mov ecx, 0x16
mov esi, str.SYSTEMCurrentControlSetServicesDiskEnum
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
lea edx, [esp + 0x34]
push edx
add eax, 0x30
push reloc.OLEAUT32.dll_SysReAllocString
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441f37
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040bebf
add esp, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
mov esi, eax
push esi
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call edi
test eax, eax
jne 0x441f1f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 - 2]
cmp eax, esi
je 0x441ef4
cmp word [eax], 0x5c
je 0x441ef4
sub eax, 2
cmp eax, esi
jne 0x441ee7
add eax, 2
cmp word [eax + 2], 0x26
je 0x441f1f
movzx ecx, word [eax]
mov edx, ebx
add eax, 2
mov word [edx], cx
movzx ecx, word [eax]
add edx, 2
test cx, cx
je 0x441f1a
cmp cx, 0x26
jne 0x441f03
mov word [edx], 0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x441f37
push esi
call fcn.0040beef
add esp, 4
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00428d80
add esp, 0x78
ret 8
Function at 0x441fb0
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push edi
mov dword [esp + 8], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x442002
push ebp
mov ebp, dword [esp + 0x14]
push esi
jmp 0x441fd0
test bl, 1
je 0x441fed
mov ecx, dword [esp + 0x10]
lea esi, [edi + 0x41]
push esi
call fcn.00441a60
test eax, eax
je 0x441fed
mov word [ebp], si
add ebp, 2
add edi, 1
shr ebx, 1
jne 0x441fd0
pop esi
mov word [ebp], 0
pop ebp
pop edi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x10]
mov word [eax], di
pop edi
pop ebx
pop ecx
ret 4

Function at 0x442010
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x453454]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x2c]
test eax, eax
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov cx, word [0x453458]
mov dword [esp + 0xc], edi
mov word [esp + 0x18], cx
jle 0x4420d9
push ebx
push ebp
mov dword [esp + 0xc], 0
add edi, 0x80
mov dword [esp + 0x10], eax
push esi
push edi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x4420a3
mov dx, word [ebx]
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x24], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x4420a3
add esi, 1
add ebx, 2
cmp esi, ebp
jl 0x442081
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [edi + 0xd4]
push ecx
lea edx, [ebx + esi]
mov ecx, dword [eax + edx*4]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00441e30
add ebx, 0x65
add edi, 0x194
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
jne 0x442070
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
xor ecx, esp
call fcn.00428d80
add esp, 0x24
ret 8