joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b64a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x158], ecx
lea ecx, [ebp - 0x14c]
push ecx
push 0x10
push eax
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x15c], esi
lea ebx, [ebp - 0x34]
call fcn.0040be05
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 0x14]
mov eax, ebx
push eax
call fcn.0040b4b9
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x150], edx
cmp edx, 0x10
jae 0x40b6d6
xor ecx, ecx
test edx, edx
je 0x40b7e8
mov eax, ebx
sub edi, eax
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [esi + eax], bl
cmp ecx, edx
jb 0x40b6c0
jmp 0x40b7e8
mov esi, dword [ebp - 0x154]
mov edi, dword [ebp - 0x158]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
add dword [ebp - 0x154], eax
sub dword [ebp - 0x150], eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x158]
push eax
push edi
call fcn.0040ba97
mov esi, dword [ebp - 0x150]
lea eax, [esi - 1]
cmp eax, 0xe
ja 0x40b79d
push esi
push dword [ebp - 0x154]
push edi
call fcn.00451390
add dword [ebp - 0x154], esi
push 0x10
pop edx
sub edx, esi
push edx
lea ecx, [ebp + esi - 0x24]
lea eax, [esi + edi]
push ecx
push eax
call fcn.00451390
add esp, 0x18
xor ecx, ecx
test esi, esi
je 0x40b776
mov dword [ebp - 0x150], edi
lea eax, [ebp - 0x24]
sub dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
lea eax, [ebp + ecx - 0x24]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc ecx
mov byte [eax + 0x10], dl
cmp ecx, esi
jb 0x40b75f
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.0040ba97
add esi, 0x10
and dword [ebp - 0x150], 0
mov dword [ebp - 0x160], esi
mov esi, dword [ebp - 0x150]
mov eax, dword [ebx]
xor dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
xor dword [ebp - 0x20], eax
mov eax, dword [ebx + 8]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
xor dword [ebp - 0x18], eax
push dword [ebp - 0x160]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x15c]
call fcn.00451390
mov eax, dword [ebp - 0x160]
add dword [ebp - 0x15c], eax
add esp, 0xc
mov dword [ebp - 0x158], ebx
mov ebx, edi
test esi, esi
jne 0x40b6d6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00450b32
leave
ret 0x14
Function at 0x40bd3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x4a2ff8], 0
jne 0x40bd50
call fcn.0040c439
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x104], 0x11
push ebx
push esi
mov esi, dword [ecx]
mov dword [eax], esi
push edi
mov edi, dword [ecx + 4]
mov dword [eax + 4], edi
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x100], 0xa
add eax, 0x14
and dword [ebp + 0x10], 0
mov dword [ebp - 0x18], edx
mov ebx, ecx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4a1af8]
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x4a1af8]
rol edx, 0x10
rol ebx, 8
xor edx, ebx
movzx ebx, cl
mov ebx, dword [ebx*4 + 0x4a1af8]
rol ebx, 0x18
xor edx, ebx
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4a1af8]
mov ebx, dword [ebp + 0x10]
xor edx, dword [ebx + 0x4a1a80]
add dword [ebp + 0x10], 4
xor esi, edx
xor edi, esi
xor dword [ebp - 0x18], edi
mov edx, dword [ebp - 0x18]
xor ecx, edx
mov dword [eax - 4], esi
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
add eax, 0x10
cmp dword [ebp + 0x10], 0x28
jb 0x40bd8d
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x40be05
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x4a2ff8], 0
jne 0x40be19
call fcn.0040c439
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
and dword [ebp + 0x10], 0
push ebx
mov dword [eax + 0x104], 0x12
push esi
mov esi, dword [ecx]
mov dword [eax], esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
push edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x100], 0xa
lea ecx, [eax + 0x14]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4a1af8]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x4a1af8]
rol edi, 0x10
rol ebx, 8
xor edi, ebx
movzx ebx, dl
mov ebx, dword [ebx*4 + 0x4a1af8]
rol ebx, 0x18
xor edi, ebx
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4a1af8]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ebx + 0x4a1a80]
push 4
xor esi, edi
mov edi, dword [ebp - 0x1c]
xor edi, esi
xor dword [ebp - 0x18], edi
mov dword [ecx], edi
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x18]
xor edx, edi
mov dword [ecx + 4], edi
pop edi
add dword [ebp + 0x10], edi
mov dword [ecx - 4], esi
mov dword [ecx + 8], edx
add ecx, 0x10
cmp dword [ebp + 0x10], 0x28
jb 0x40be59
mov ecx, dword [eax + 0x100]
shl ecx, 2
mov dword [ebp + 8], edi
cmp ecx, edi
jbe 0x40bf68
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 7
mov ebx, 0x1010101
and ecx, ebx
imul ecx, ecx, 0x1b
mov dword [ebp + 0x10], edx
mov edi, 0xff7f7f7f
and edx, edi
add edx, edx
xor ecx, edx
mov edx, ecx
shr edx, 7
and edx, ebx
imul edx, edx, 0x1b
mov esi, ecx
and esi, edi
add esi, esi
xor edx, esi
mov esi, edx
shr esi, 7
and esi, ebx
imul esi, esi, 0x1b
mov ebx, edx
and ebx, edi
add ebx, ebx
xor esi, ebx
xor dword [ebp + 0x10], esi
mov edi, ecx
xor edi, dword [ebp + 0x10]
mov ebx, edx
xor ebx, dword [ebp + 0x10]
rol ebx, 0x10
rol edi, 0x18
xor ebx, edi
mov edi, dword [ebp + 0x10]
rol edi, 8
xor ebx, edi
xor ebx, esi
xor ebx, edx
xor ebx, ecx
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [eax + ecx*4], ebx
mov ecx, dword [eax + 0x100]
shl ecx, 2
cmp dword [ebp + 8], ecx
jb 0x40bee3
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x40bff8
Capabilities:
Check for time delay via queryperformancecounter
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.___total_physical_size__lu_MB_QueryPerformanceCounter]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push dword [ebp - 0x20c]
push str._I64u__u
push eax
call fcn.00450c76
add esp, 0x14
lea esi, [ebp + eax - 0x204]
test edi, edi
je 0x40c06c
push edi
push 0x469ce0
push esi
call fcn.00450c76
add esp, 0xc
add esi, eax
call fcn.0041df9c
push eax
mov edi, 0x469cdc
push edi
push esi
call fcn.00450c76
add esi, eax
call fcn.0041df89
push eax
push edi
push esi
call fcn.00450c76
add esi, eax
add esp, 0x18
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetSystemTimeAsFileTime]
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push str._u__u_
push esi
call fcn.00450c76
add esp, 0x10
add esi, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x469cd0
call dword [sym.imp.___total_physical_size__lu_MB_GetDiskFreeSpaceA]
push dword [ebp - 0x218]
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
push str._lu__lu__lu__lu_
push esi
call fcn.00450c76
add esi, eax
call fcn.0041df89
push eax
push edi
push esi
call fcn.00450c76
add esp, 0x24
add esi, eax
call dword [sym.imp.___total_physical_size__lu_MB_GetTickCount]
push eax
push edi
push esi
call fcn.00450c76
add esi, eax
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call ebx
push esi
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push str._I64u__u
push esi
call fcn.00450c76
add esp, 0x14
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x220]
call fcn.0040bf72
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 8
Function at 0x40c175
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x11c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xfc
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00450230
xor eax, eax
add esp, 0xc
push dword [ebp + 0x10]
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.0040bf72
lea eax, [ebp - 0x11c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.0040bd3c
mov esi, dword [ebp + 0x14]
lea edi, [ebx + 8]
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 esi, dword [sym.imp.___total_physical_size__lu_MB_GetTickCount]
and dword [ebx], 0
and dword [ebx + 4], 0
call esi
mov edi, eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebx + 8]
push eax
push eax
call fcn.0040b7fb
inc dword [ebx]
jne 0x40c207
inc dword [ebx + 4]
call esi
sub eax, edi
cmp eax, 0x64
jb 0x40c1ef
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0x10
Function at 0x40c439
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
xor ecx, ecx
inc eax
push edi
mov edx, eax
and dl, 0x80
movzx edx, dl
mov byte [ebp + ecx - 0x304], al
mov byte [ebp + ecx - 0x205], al
mov byte [ebp + eax - 0x104], cl
inc ecx
neg edx
sbb edx, edx
and edx, 0x11b
lea esi, [eax + eax]
xor edx, esi
xor eax, edx
cmp eax, 1
jne 0x40c454
xor ecx, ecx
mov dword [ecx + 0x4a1a80], eax
test eax, eax
je 0x40c4a6
movzx eax, byte [ebp + eax - 0x104]
movzx eax, byte [ebp + eax - 0x2eb]
jmp 0x40c4a8
xor eax, eax
add ecx, 4
cmp ecx, 0x28
jb 0x40c48a
xor edx, edx
test dl, dl
je 0x40c4ce
movzx eax, dl
movzx eax, byte [ebp + eax - 0x104]
lea ecx, [ebp - 0x205]
sub ecx, eax
movzx eax, byte [ecx]
jmp 0x40c4d0
xor eax, eax
lea ecx, [eax + eax]
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor ecx, eax
add ecx, ecx
xor eax, ecx
mov ecx, eax
shr ecx, 8
xor al, cl
xor al, 0x63
je 0x40c501
movzx ecx, al
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x303]
jmp 0x40c503
xor ecx, ecx
test al, al
je 0x40c51c
movzx esi, al
movzx esi, byte [ebp + esi - 0x104]
movzx edi, byte [ebp + esi - 0x2eb]
jmp 0x40c51e
xor edi, edi
shl ecx, 8
movzx esi, al
or ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, edi
mov edi, ecx
rol edi, 8
mov byte [edx + 0x4a1ef8], al
mov eax, edx
mov dword [eax*4 + 0x4a0a80], ecx
mov dword [eax*4 + 0x4a0e80], edi
mov edi, ecx
rol edi, 0x10
rol ecx, 0x18
mov dword [eax*4 + 0x4a1680], ecx
mov dword [eax*4 + 0x4a1af8], esi
movzx esi, dl
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov ebx, ecx
shr ebx, 8
xor bl, cl
xor bl, 5
mov dword [eax*4 + 0x4a1280], edi
je 0x40c5b7
mov ecx, esi
shl ecx, 3
xor ecx, esi
shl ecx, 2
xor ecx, esi
add ecx, ecx
mov ebx, ecx
shr ebx, 8
movzx esi, bl
movzx ecx, cl
xor esi, ecx
xor esi, 5
movzx ecx, byte [ebp + esi - 0x104]
lea esi, [ebp - 0x205]
sub esi, ecx
mov bl, byte [esi]
jmp 0x40c5b9
xor bl, bl
test bl, bl
je 0x40c5d2
movzx ecx, bl
movzx ecx, byte [ebp + ecx - 0x104]
movzx ecx, byte [ebp + ecx - 0x29c]
jmp 0x40c5d4
xor ecx, ecx
test bl, bl
je 0x40c5ed
movzx esi, bl
movzx esi, byte [ebp + esi - 0x104]
movzx edi, byte [ebp + esi - 0x216]
jmp 0x40c5ef
xor edi, edi
test bl, bl
je 0x40c60e
movzx esi, bl
movzx esi, byte [ebp + esi - 0x104]
movzx esi, byte [ebp + esi - 0x23d]
mov dword [ebp - 0x308], esi
jmp 0x40c615
and dword [ebp - 0x308], 0
test bl, bl
je 0x40c62e
movzx esi, bl
movzx esi, byte [ebp + esi - 0x104]
movzx esi, byte [ebp + esi - 0x225]
jmp 0x40c630
xor esi, esi
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, dword [ebp - 0x308]
shl ecx, 8
or ecx, esi
mov esi, ecx
rol esi, 8
mov dword [eax*4 + 0x4a23f8], esi
mov esi, ecx
rol esi, 0x10
mov dword [eax*4 + 0x4a1ff8], ecx
rol ecx, 0x18
mov dword [eax*4 + 0x4a2bf8], ecx
movzx ecx, bl
inc edx
mov dword [eax*4 + 0x4a27f8], esi
mov dword [eax*4 + 0x4a0680], ecx
cmp edx, 0x100
jb 0x40c4b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [0x4a2ff8], 1
pop ebx
call fcn.00450b32
leave
ret
Function at 0x40cc04
Capabilities:
Get disk information
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041f685
push 0
push 0
push 3
push 0
push 3
push Ordinal_2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_CreateFileA]
push 0
lea ecx, [ebp - 0x618]
push ecx
lea ecx, [ebp - 0x40c]
and ecx, 0x1ff
push 0x200
lea edx, [ebp - 0x40c]
sub edx, ecx
push edx
push eax
mov dword [ebp - 0x614], eax
call dword [sym.imp.___total_physical_size__lu_MB_ReadFile]
mov esi, dword [sym.imp.___total_physical_size__lu_MB_CloseHandle]
test eax, eax
jne 0x40cd2d
push dword [ebp - 0x614]
call esi
push 0x4a3000
push str.SetVolumeMountPointA
mov edi, 0x469f14
push edi
call fcn.0042f670
test eax, eax
je 0x40cd2d
push 0x4a2ffc
push str.DeleteVolumeMountPointA
push edi
call fcn.0042f670
test eax, eax
je 0x40cd2d
xor eax, eax
mov cl, byte [ebp + eax - 0x108]
mov byte [ebp + eax - 0x20c], cl
inc eax
test cl, cl
jne 0x40ccbe
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ccd8
mov esi, 0x469ef8
movsw word es:[edi], word [esi]
call fcn.0040fa0c
cmp eax, 0xffffffff
jne 0x40ccf5
xor eax, eax
jmp 0x40cd38
push eax
lea eax, [ebp - 0x610]
push 0x469ef0
push eax
call fcn.00450c76
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x610]
push eax
call dword [0x4a3000]
lea eax, [ebp - 0x610]
push eax
call dword [0x4a2ffc]
jmp 0x40cd35
push dword [ebp - 0x614]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret 4

Function at 0x40ced5
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040cdd9
test eax, eax
je 0x40cf7c
mov eax, dword [0x4a3018]
test eax, eax
jne 0x40cf7c
push esi
push edi
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetConsoleTitleA]
call dword [sym.imp.___total_physical_size__lu_MB_GetCurrentProcessId]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_GetTickCount]
push eax
lea eax, [ebp - 0x404]
push str._d__d
push eax
call dword [sym.imp.e_to_open__s_wsprintfA]
mov esi, dword [sym.imp.___total_physical_size__lu_MB_SetConsoleTitleA]
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
xor edi, edi
push 0x28
call dword [sym.imp.___total_physical_size__lu_MB_Sleep]
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.e_to_open__s_FindWindowA]
mov dword [0x4a3018], eax
test eax, eax
jne 0x40cf6c
inc edi
cmp edi, 0xa
jl 0x40cf46
lea eax, [ebp - 0x804]
push eax
call esi
mov eax, dword [0x4a3018]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret
Function at 0x40d5bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.___total_physical_size__lu_MB_GetProcAddress]
mov esi, ecx
push str.Initialize
push dword [esi]
call edi
mov ebx, dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
mov dword [esi + 8], eax
test eax, eax
jne 0x40d5eb
call ebx
mov dword [ebp - 4], eax
push str.Connect
push dword [esi]
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40d600
call ebx
mov dword [ebp - 4], eax
push str.ReadData
push dword [esi]
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x40d615
call ebx
mov dword [ebp - 4], eax
push str.Disconnect
push dword [esi]
call edi
mov dword [esi + 0x14], eax
test eax, eax
jne 0x40d62a
call ebx
mov dword [ebp - 4], eax
push str.Uninitialize
push dword [esi]
call edi
mov dword [esi + 0x18], eax
test eax, eax
jne 0x40d63f
call ebx
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40d654
cmp dword [esi + 0x18], 0
je 0x40d654
call eax
mov dword [esi + 4], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e5e8
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e38
call fcn.00453130
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x4e38], eax
xor eax, eax
lea edi, [ebp - 0x4e30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x4e20
xor ebx, ebx
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x4e24]
push ebx
push eax
mov dword [ebp - 0x4e34], ebx
call fcn.00450230
add esp, 0xc
push ebx
push dword [ebp - 0x4e38]
mov dword [ebp - 0x4e2c], ebx
push 0x469d6c
mov dword [ebp - 0x4e30], ebx
call fcn.0042f614
pop ecx
pop ecx
push eax
call fcn.00438ad2
mov edi, eax
cmp edi, ebx
jne 0x40e663
xor eax, eax
jmp 0x40e6d8
push ebx
lea eax, [ebp - 0x4e34]
push eax
push esi
lea eax, [ebp - 0x4e24]
push eax
push 0xc
lea eax, [ebp - 0x4e30]
push eax
push 0x2d1400
push dword [edi]
call dword [sym.imp.___total_physical_size__lu_MB_DeviceIoControl]
push edi
test eax, eax
jne 0x40e695
call fcn.00438b96
jmp 0x40e65f
call fcn.00438b96
mov ecx, dword [ebp - 0x4e14]
mov eax, 0x469fcc
lea edx, [ebp + ecx - 0x4e24]
cmp ecx, ebx
jne 0x40e6b2
mov edx, eax
mov ecx, dword [ebp - 0x4e18]
cmp ecx, ebx
je 0x40e6c3
lea eax, [ebp + ecx - 0x4e24]
push edx
push eax
push str._s__s
call fcn.0042f614
push eax
call fcn.004503c5
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4
Function at 0x40e9f2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
push str..PhysicalDrive_d
push esi
call fcn.00451ad6
add esp, 0xc
cmp eax, 1
je 0x40ea58
push esi
call fcn.0040e8b4
test eax, eax
je 0x40ea35
mov esi, dword [eax + 8]
push eax
call fcn.0045038b
pop ecx
mov eax, esi
jmp 0x40ea5b
or dword [ebp - 0x6c], 0xffffffff
push 0x64
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00428697
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret 4
Function at 0x40f885
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x118], 0x41
mov edi, 0x46a8cc
xor ebx, ebx
push ebx
push 5
call fcn.0044dfdf
push dword [ebp - 0x118]
test eax, eax
je 0x40f965
lea eax, [ebp - 0x114]
push str.._c:
push eax
call fcn.00450c76
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call fcn.0040e8b4
mov esi, eax
cmp esi, ebx
je 0x40f9e6
mov ecx, dword [esi]
mov dword [ebp - 0x11c], ebx
cmp ecx, ebx
jbe 0x40f910
lea eax, [esi + 8]
mov edx, ecx
mov ebx, dword [ebp + 8]
cmp dword [eax], ebx
jne 0x40f90a
inc dword [ebp - 0x11c]
add eax, 0x18
dec edx
jne 0x40f8fd
cmp dword [ebp - 0x11c], ecx
jne 0x40f959
push 0
push dword [ebp - 0x118]
push edi
call fcn.0042f614
pop ecx
pop ecx
push eax
push 2
call dword [sym.imp.___total_physical_size__lu_MB_DefineDosDeviceA]
test eax, eax
jne 0x40f959
push dword [ebp - 0x118]
push str.drive_letter__c_cant_be_removed_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x364
push str.DRIVELIST
call fcn.0044dc85
add esp, 0x14
push esi
call fcn.0045038b
pop ecx
jmp 0x40f9e6
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00450c76
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.___total_physical_size__lu_MB_QueryDosDeviceA]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00428697
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 8]
jne 0x40f9e6
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call dword [sym.imp.___total_physical_size__lu_MB_DefineDosDeviceA]
test eax, eax
jne 0x40f9e6
push dword [ebp - 0x118]
push str.drive_letter__c_cant_be_removed_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x370
push str.DRIVELIST
call fcn.0044dc85
add esp, 0x14
inc dword [ebp - 0x118]
cmp dword [ebp - 0x118], 0x5a
jle 0x40f8aa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00450b32
leave
ret 4

Function at 0x40fa0c
Capabilities:
Get disk information

Disassembly:
call dword [sym.imp.___total_physical_size__lu_MB_GetLogicalDrives]
test eax, eax
je 0x40fa28
push 2
pop ecx
xor edx, edx
inc edx
shl edx, cl
test eax, edx
je 0x40fa2c
inc ecx
cmp ecx, 0x1a
jl 0x40fa19
or eax, 0xffffffff
ret
lea eax, [ecx + 0x41]
ret
Function at 0x41022e
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [sym.imp.___total_physical_size__lu_MB_DeviceIoControl]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 8
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 0x7405c
push ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
je 0x410283
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
jmp 0x4102c1
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x4102c1
mov eax, dword [ebp - 8]
mul dword [ebp - 0xc]
push ebx
push dword [ebp - 0x10]
push edx
push eax
call fcn.00453310
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edx
push eax
call fcn.00453310
mov ebx, eax
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 4