joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b77ad
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x11c], 0x15
mov dword [ebp - 0x118], 0x15
mov dword [ebp - 0x114], 8
mov dword [ebp - 0x110], 0x54
mov dword [ebp - 0x10c], 0x54
mov dword [ebp - 0x108], 0x58
mov dword [ebp - 0x120], 0
jmp 0x4b780d
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 3
jge 0x4b78e7
push 0x104
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.004e9480
add esp, 0xc
mov edx, dword [ebp - 0x120]
add edx, 1
push edx
push str.TX_PREEPS_GEN_d
lea eax, [ebp - 0x104]
push eax
call fcn.004e998d
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + edx*4 - 0x11c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push 0x566c78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*4], eax
push 0x104
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.004e9480
add esp, 0xc
mov eax, dword [ebp - 0x120]
add eax, 1
push eax
push str.TX_AMP_GEN_d
lea ecx, [ebp - 0x104]
push ecx
call fcn.004e998d
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + eax*4 - 0x110]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x566c8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4], eax
jmp 0x4b77fe
mov esp, ebp
pop ebp
ret

Function at 0x4b804d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
shl eax, 3
push eax
call fcn.004e9f6e
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 3
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.004e9480
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x4b808c
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
jge 0x4b80c2
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx]
push eax
push str.0x_.2X
lea ecx, [ebp - 0x14]
push ecx
call fcn.004e998d
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004e96f0
add esp, 8
jmp 0x4b8083
push 0x566d04
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e96f0
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x4b80ee
push 0
push 0x6744a8
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4b80f8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e9e5d
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4b9876
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov dword [ebp - 0x220], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4b98a1
push str._Send_Genesys_ScanDevice_:_CreateHandle_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4b998d
push 0x200
push 0
lea eax, [ebp - 0x200]
push eax
call fcn.004e9480
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.004e9480
add esp, 0xc
mov byte [ebp - 0x210], 0xf8
mov byte [ebp - 0x20f], 0xff
mov byte [ebp - 0x205], 1
mov edx, dword [ebp + 8]
push edx
push 0x1e
lea eax, [ebp - 0x200]
push eax
push 0x200
push 0x10
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.004bf2d3
add esp, 0x1c
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4b998b
mov eax, dword [ebp - 0x180]
and eax, 0xff
cmp eax, 0x53
jne 0x4b998b
mov ecx, dword [ebp - 0x17f]
and ecx, 0xff
cmp ecx, 0x4d
jne 0x4b998b
mov edx, dword [ebp - 0x17e]
and edx, 0xff
cmp edx, 0x49
jne 0x4b998b
cmp dword [ebp + 0x10], 0x200
ja 0x4b996c
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x200]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004e9b20
add esp, 0xc
jmp 0x4b9984
push 0x200
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e9b20
add esp, 0xc
mov eax, 1
jmp 0x4b998d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4b9cc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push str.GetHandleID
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x104
push 0
lea eax, [ebp - 0x308]
push eax
call fcn.004e9480
add esp, 0xc
movsx ecx, byte [ebp + 8]
cmp ecx, 0x43
jl 0x4b9d0e
movsx edx, byte [ebp + 8]
push edx
push 0x566e98
lea eax, [ebp - 0x308]
push eax
call fcn.004e998d
add esp, 0xc
jmp 0x4b9d27
movsx ecx, byte [ebp + 8]
push ecx
push 0x566ea0
lea edx, [ebp - 0x308]
push edx
call fcn.004e998d
add esp, 0xc
lea eax, [ebp - 0x308]
push eax
push str.Drive__s_handle
lea ecx, [ebp - 0x204]
push ecx
call fcn.004e998d
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4ba0a3
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.004e9480
add esp, 0xc
cmp dword [0x56d5a8], 0
je 0x4ba112
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x674414]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004ba540
add esp, 8
test eax, eax
jne 0x4ba110
mov ecx, dword [ebp + 8]
sub ecx, 1
imul ecx, ecx, 0xff
add ecx, 0x6748c8
push ecx
push 0x566ee0
lea edx, [ebp - 0x108]
push edx
call fcn.004e998d
add esp, 0xc
jmp 0x4ba161
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 0x674490]
cmp ecx, 0x43
jl 0x4ba142
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x674490]
push eax
push 0x566ee4
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e998d
add esp, 0xc
jmp 0x4ba161
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x674490]
push eax
push 0x566eec
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e998d
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x4ba197
xor eax, eax
jmp 0x4ba1f7
cmp dword [ebp + 0x10], 0
jne 0x4ba1a4
mov eax, 1
jmp 0x4ba1f7
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x674458]
cmp ecx, 1
jne 0x4ba1f2
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0x90020
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4ba42b
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4ba4a1
push 0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ba497
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4ba4a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.004e9480
add esp, 0xc
movsx ecx, byte [ebp + 8]
push ecx
push 0x566f04
lea edx, [ebp - 0x108]
push edx
call fcn.004e998d
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jne 0x4ba4fa
xor eax, eax
jmp 0x4ba53c
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e9480
add esp, 0xc
movsx edx, byte [ebp + 8]
push edx
push 0x566f08
lea eax, [ebp - 0x108]
push eax
call fcn.004e998d
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004ba42b
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4ba5eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [0x674784], 0xff
mov dword [0x674780], 0xff
mov dword [ebp - 0x11c], 0
jmp 0x4ba623
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x18
jge 0x4ba67b
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x11c]
mov dword [ecx*8 + 0x674358], edx
mov dword [ebp - 0x124], 0
jmp 0x4ba65a
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 4
jge 0x4ba679
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x124]
mov byte [edx + ecx*8 + 0x67435c], 0xff
jmp 0x4ba64b
jmp 0x4ba614
mov byte [ebp - 0x128], 0
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.004e9480
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4ba6ba
mov dl, byte [ebp - 0x118]
mov byte [ebp - 0x128], dl
mov byte [ebp - 0x10], 0
push 0x104
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.004e9480
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004b8167
add esp, 8
mov dl, byte [ebp - 0x22c]
mov byte [ebp - 0x10], dl
mov dword [ebp - 0x11c], 0
jmp 0x4ba70c
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x18
jge 0x4ba7b7
mov ecx, dword [ebp - 0x11c]
add ecx, 0x43
mov byte [ebp - 0x120], cl
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.004e9480
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov cl, byte [ebp - 0x120]
push ecx
call fcn.004ba4a8
add esp, 8
test eax, eax
je 0x4ba7b2
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jl 0x4ba766
jmp 0x4ba6fd
cmp dword [ebp - 0x14], 0
jge 0x4ba76e
jmp 0x4ba6fd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov al, byte [ebp - 0x120]
mov byte [edx + ecx*8 + 0x67435c], al
movsx ecx, byte [ebp - 0x120]
movsx edx, byte [ebp - 0x128]
cmp ecx, edx
jne 0x4ba79b
mov eax, dword [ebp - 0xc]
mov dword [0x674784], eax
movsx ecx, byte [ebp - 0x120]
movsx edx, byte [ebp - 0x10]
cmp ecx, edx
jne 0x4ba7b2
mov eax, dword [ebp - 0xc]
mov dword [0x674780], eax
jmp 0x4ba6fd
mov esp, ebp
pop ebp
ret
Function at 0x4bb731
Capabilities:
Print debug messages
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov dword [ebp - 0x410], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x4bb75c
push str._Inquiry_And_ReadFlashID_:_Device_handle_is_not_valid_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4bb84a
push 0
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 0x414]
push edx
push 0
push 0
push 0
push 0
push 0x90020
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x400
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x40c]
push eax
call fcn.004bb84e
add esp, 0x10
mov dword [ebp - 0x410], eax
push 0
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [ebp - 0x414]
push eax
push 0
push 0
push 0
push 0
push 0x90028
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp - 0x410], 0
je 0x4bb844
cmp dword [ebp + 0x10], 0x400
ja 0x4bb82c
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e9b20
add esp, 0xc
jmp 0x4bb844
push 0x400
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e9b20
add esp, 0xc
mov eax, dword [ebp - 0x410]
mov esp, ebp
pop ebp
ret

Function at 0x4bbbc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x90], 4
jne 0x4bbc22
cmp dword [ebp - 0x8c], 0x5a
je 0x4bbc20
mov dword [ebp - 0xa4], 1
jmp 0x4bbc51
cmp dword [ebp - 0x90], 5
jne 0x4bbc51
cmp dword [ebp - 0x8c], 0
jne 0x4bbc3e
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x8c], 1
jne 0x4bbc51
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0xa4]
mov esp, ebp
pop ebp
ret

Function at 0x4bbc5b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x90], 4
jne 0x4bbcbd
cmp dword [ebp - 0x8c], 0x5a
je 0x4bbcbb
mov dword [ebp - 0xa4], 1
jmp 0x4bbcec
cmp dword [ebp - 0x90], 5
jne 0x4bbcec
cmp dword [ebp - 0x8c], 0
jne 0x4bbcd9
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x8c], 1
jne 0x4bbcec
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x9c]
mov esp, ebp
pop ebp
ret
Function at 0x4bbdb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
cmp dword [0x675ac4], 0
je 0x4bbdee
mov edi, 0x56701c
lea edx, [ebp - 0x100]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4bbe16
mov edi, 0x567048
lea edx, [ebp - 0x100]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.004e96f0
add esp, 8
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x100]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x108], 0xffffffff
je 0x4bbe96
mov dword [ebp - 0x104], 0xff
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push str.CreateFileName
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c1c93
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
mov dword [ebp - 0x558], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s_s
lea eax, [ebp - 0x108]
push eax
call fcn.004e998d
add esp, 0x10
push 0x675ad8
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e96e0
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.004e96e0
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x310]
push eax
push str._s_s_s
lea ecx, [ebp - 0x554]
push ecx
call fcn.004e998d
add esp, 0x14
lea edx, [ebp - 0x450]
push edx
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x55c], eax
cmp dword [ebp - 0x55c], 0xffffffff
jne 0x4c1d39
xor eax, eax
jmp 0x4c1e37
mov dword [ebp - 8], 0
mov dword [ebp - 0x558], 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
cmp dword [ebp - 8], 0
jne 0x4c1e0e
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e96e0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e9ff0
add esp, 8
test eax, eax
je 0x4c1ddf
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004e9ff0
add esp, 8
test eax, eax
je 0x4c1ddf
lea ecx, [ebp - 0x310]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004e96e0
add esp, 8
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e96f0
add esp, 8
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c1e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4c1e09
mov dword [ebp - 8], 1
jmp 0x4c1d5e
mov ecx, dword [ebp - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.004e96e0
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call fcn.004ea2e0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4c30d3
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x8d58], 0
je 0x4c3132
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8d58]
xor eax, eax
mov al, byte [edx + 0x674458]
test eax, eax
je 0x4c3132
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8d58]
mov al, byte [edx + 0x674490]
push eax
call fcn.0047ee54
add esp, 4
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x8a90], eax
jmp 0x4c3149
mov ecx, dword [ebp - 0x10c]
call fcn.004dc941
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x8a90], eax
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x8a90], 0
jne 0x4c3176
push 0
push 0x567b1c
push str.Test_fail__device_exist_
mov ecx, dword [ebp - 0x10c]
call fcn.0050b84e
xor eax, eax
jmp 0x4c330b
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e9480
add esp, 0xc
cmp dword [0x56d5a8], 0
je 0x4c31ee
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x8d58]
mov ecx, dword [eax*4 + 0x674414]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004ba540
add esp, 8
test eax, eax
jne 0x4c31ec
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x8d58]
sub ecx, 1
imul ecx, ecx, 0xff
add ecx, 0x6748c8
push ecx
push 0x567b40
lea edx, [ebp - 0x108]
push edx
call fcn.004e998d
add esp, 0xc
jmp 0x4c3258
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x8d58]
movsx edx, byte [ecx + 0x674490]
cmp edx, 0x43
jl 0x4c3230
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x8d58]
movsx edx, byte [ecx + 0x674490]
push edx
push str.._c:
lea eax, [ebp - 0x108]
push eax
call fcn.004e998d
add esp, 0xc
jmp 0x4c3258
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8d58]
movsx eax, byte [edx + 0x674490]
push eax
push str..PhysicalDrive_d
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e998d
add esp, 0xc
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x8a9c], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x8a9c], eax
mov edx, dword [ebp - 0x10c]
cmp dword [edx + 0x8a9c], 0xffffffff
jne 0x4c32ba
push 0
push 0x567b60
push str.Cant_get_disk_handle
mov ecx, dword [ebp - 0x10c]
call fcn.0050b84e
xor eax, eax
jmp 0x4c330b
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8a9c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90020
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x8a9c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4c688e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x74]
call fcn.004c30d3
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x8a90], eax
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x8a90], 0
jne 0x4c68b9
jmp 0x4c6a65
push 0x465
mov ecx, dword [ebp - 0x74]
call fcn.0050d114
mov dword [ebp - 0x70], eax
push 0x3e9
mov ecx, dword [ebp - 0x74]
call fcn.0050d114
mov dword [ebp - 4], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
call fcn.0050d3d2
lea ecx, [ebp - 0x28]
push ecx
call fcn.004b7fcd
add esp, 4
mov dword [ebp - 0x10], eax
push 0x414
mov ecx, dword [ebp - 0x74]
call fcn.0050d114
mov dword [ebp - 4], eax
push 0x10
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 4]
call fcn.0050d3d2
lea eax, [ebp - 0x28]
push eax
call fcn.004b7fcd
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 9
push ecx
call fcn.004e9f6e
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x2c]
shl edx, 9
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.0043966c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
push 0x2a
mov ecx, dword [ebp - 0x2c]
shl ecx, 9
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x8a9c]
push edx
mov eax, dword [ebp - 0x74]
mov cl, byte [eax + 0x8a95]
push ecx
mov edx, dword [ebp - 0x74]
mov al, byte [edx + 0x8a94]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x8a98]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x8aa4]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x8aa0]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x8a8c]
push edx
call fcn.0047f33a
add esp, 0x2c
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x8a90], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
push 0x567e54
mov ecx, dword [ebp - 0x70]
call fcn.0050d3ab
mov eax, dword [ebp - 0x18]
push eax
push str.Write_:__d
lea ecx, [ebp - 0x6c]
push ecx
call fcn.004e998d
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.0050d3ab
push 1
mov ecx, dword [ebp - 0x74]
call fcn.0050c537
push 0
mov eax, dword [ebp - 0x2c]
shl eax, 9
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.004395a7
push 1
push 1
push 1
push 1
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.00437874
push 0x105
push 0
push 0
mov ecx, dword [ebp - 0x74]
add ecx, 0x8aac
call fcn.00406160
mov ecx, dword [ebp - 0x74]
call fcn.004c330f
mov edx, dword [ebp - 0xc]
push edx
call fcn.004e9e5d
add esp, 4
mov esp, ebp
pop ebp
ret