joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403400
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push str.255.255.255.255
push esi
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.00402b90
add esp, 8
test al, al
je 0x40343b
mov dword [edi], 0xffffffff
mov byte [edi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.0.0.0.0
push esi
call fcn.00402b90
add esp, 8
test al, al
jne 0x4034bd
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x403457
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x403471
mov dword [edi], eax
mov byte [edi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x1c], 2
movups xmmword [ebp - 0x10], xmm0
mov dword [ebp + 8], 0
jb 0x403492
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4034c1
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4034c1
mov eax, dword [ecx + 0x18]
push ecx
mov esi, dword [eax + 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
mov byte [edi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x28]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
call fcn.00402fb0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
jne 0x40398f
push 0x4013f0
push str.Cannot_receive_data_from_the_network__the_destination_buffer_is_invalid_
call fcn.00403cf0
push eax
call fcn.004011c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [edi + 4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fca
mov esp, ebp
pop ebp
ret 0x14
push 0
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.00403b20
mov ecx, dword [ebp - 0x20]
add esp, 0xc
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
movups xmmword [ebp - 0x14], xmm0
push edi
call fcn.004021f0
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x4039e6
call fcn.00403b60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fca
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x10]
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402f90
push dword [ebp - 0x12]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov word [ecx], ax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fca
mov esp, ebp
pop ebp
ret 0x14
Function at 0x403a30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0x14]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
call fcn.004020f0
cmp dword [ebp + 0xc], 0xffe3
jbe 0x403aa7
push 0x4013f0
push str._the_number_of_bytes_to_send_is_greater_than_sf::UdpSocket::MaxDatagramSize_
push str.Cannot_send_data_over_the_network
call fcn.00403cf0
push eax
call fcn.004011c0
add esp, 8
push eax
call fcn.004011c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fca
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.004034d0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b20
add esp, 0xc
mov ecx, esi
movups xmm0, xmmword [eax]
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
movups xmmword [ebp - 0x14], xmm0
push ebx
call fcn.004021f0
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x403afb
call fcn.00403b60
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fca
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fca
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403c30
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], vtable.DefaultErrStreamBuf.0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
cmp eax, esi
je 0x403c9d
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push 2
sub esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, edi
push eax
push esi
push 1
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char___char__]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
call fcn.00404739
add esp, 4
mov ecx, edi
pop edi
pop esi
jmp dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
Function at 0x403e80
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
cmp eax, esi
je 0x403ee7
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push 2
sub esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, edi
push eax
push esi
push 1
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char___char__]
pop edi
xor eax, eax
pop esi
ret

Function at 0x404a9e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404add
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404add
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404add
cmp dword [ecx + 0x74], 0xe
jbe 0x404add
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov edi, edx
push 0
push eax
call fcn.004ab0f0
push 0x1ff
push 0
push 0x58b448
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x118], 0x1ff
call fcn.004ab0f0
add esp, 0x18
test edi, edi
je 0x4056af
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4054e0
sub esi, ecx
je 0x4054fb
nop dword [eax + eax]
cmp byte [edi + esi], 0x5c
je 0x405530
sub esi, 1
jne 0x4054f0
lea eax, [ebp - 0x110]
push eax
push 0x2001d
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4055f5
mov dword [ebp - 0x110], 0
jmp 0x405688
cmp esi, 0x104
jae 0x4056af
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405541
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x40556c
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405560
sub ecx, edx
inc ecx
jmp 0x405571
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004aab70
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405587
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4055ac
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4055a0
sub ecx, edx
inc ecx
jmp 0x4055b1
mov ecx, 0x104
lea eax, [ebp - 0x10c]
mov byte [ebp + ecx - 0x109], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
push eax
push 0x80000001
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40562e
mov dword [ebp - 0x10c], 0
jmp 0x405677
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 7
push 0
push 0
push 0
push str.Akeo_ConsultingRufus
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40562e
mov dword [ebp - 0x10c], 0
jmp 0x405677
lea eax, [ebp - 0x118]
push eax
push 0x58b448
lea eax, [ebp - 0x114]
push eax
push 0
lea eax, [edi + esi]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x40566d
test eax, eax
jne 0x405677
cmp dword [ebp - 0x114], 1
jne 0x405677
cmp dword [ebp - 0x118], eax
jbe 0x405677
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x405688
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x405699
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x405990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x55a750], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov ebx, ecx
je 0x4059bf
push ecx
call fcn.00424e40
add esp, 4
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4059c7
xor esi, esi
jmp 0x4059d9
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4059d0
sub esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test ebx, ebx
jne 0x405a05
push 0x8a
push str.D:_a_rufus_rufus_src_registry.h
push str.key_name___NULL
call fcn.004dfbbc
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.004aa320
add esp, 8
test eax, eax
je 0x405a2b
push 0x91
push str.D:_a_rufus_rufus_src_registry.h
push str.strchr_key_name_____NULL
call fcn.004dfbbc
add esp, 0xc
push 0x5c
push ebx
call fcn.004aa320
add esp, 8
test eax, eax
jne 0x4059fc
lea eax, [ebp - 4]
push eax
push 0x2001d
push 0
push 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405a5b
mov dword [ebp - 4], edi
jmp 0x405aa9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 7
push 0
push 0
push 0
push str.SOFTWAREAkeo_ConsultingRufus
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405a84
mov dword [ebp - 8], edi
jmp 0x405a9b
push esi
push dword [ebp - 0xc]
push 1
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb edi, edi
inc edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x405aa9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x405ab7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, dword [0x5a3188]
push edi
sete bl
mov edi, edx
test esi, esi
js 0x406953
cmp esi, 0x80
jb 0x40677d
cmp esi, 0xc0
jbe 0x406794
push 0x185
push str.D:_a_rufus_rufus_srcdrive.c
push str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.004dfbbc
add esp, 0xc
add esi, 0xffffff80
cmp esi, 0x40
ja 0x406953
mov edx, dword [ebp + 8]
mov eax, edx
mov ecx, dword [ebp + 0xc]
or eax, ecx
je 0x40684c
test ebx, ebx
je 0x406940
xor eax, eax
nop word [eax + eax]
cmp edx, dword [eax*8 + 0x5a31a8]
jne 0x4067d2
cmp ecx, dword [eax*8 + 0x5a31ac]
je 0x40684c
cmp edx, dword [eax*8 + 0x5a31b0]
jne 0x4067e4
cmp ecx, dword [eax*8 + 0x5a31b4]
je 0x40683c
cmp edx, dword [eax*8 + 0x5a31b8]
jne 0x4067f6
cmp ecx, dword [eax*8 + 0x5a31bc]
je 0x40683f
cmp edx, dword [eax*8 + 0x5a31c0]
jne 0x406808
cmp ecx, dword [eax*8 + 0x5a31c4]
je 0x406844
add eax, 4
cmp eax, 0x10
jb 0x4067c0
cmp dword [ebp + 0x10], 0
jne 0x406953
push ecx
push edx
push str.Error:_Could_not_find_a_partition_at_offset__lld_on_this_disk
call fcn.0044b0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
inc eax
jmp 0x406847
add eax, 2
jmp 0x406847
add eax, 3
cmp eax, 0x10
jae 0x406810
inc eax
push eax
push esi
push str.Harddisk_luPartition_lu
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.004050d0
mov eax, dword [0x52a3d0]
add esp, 0x14
movq xmm0, qword [str._GLOBALROOT]
mov dword [ebp - 0x14c], eax
mov ax, word [0x52a3d4]
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push 0xf6
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 0xd], 0
push eax
movq qword [ebp - 0x154], xmm0
mov byte [ebp - 0x146], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x406910
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4068b8
sub ecx, edx
cmp ecx, 0x14
jb 0x406910
test edi, edi
je 0x4068f0
mov eax, 0x103
sub eax, ecx
mov ecx, 2
cmp eax, ecx
cmova eax, ecx
push eax
lea eax, [ebp - 0x154]
push 0x52a9b0
push eax
call fcn.004d16a0
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
call fcn.004e03cf
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x406953
call fcn.0044b6b0
push eax
lea ecx, [ebp - 0x4c]
push ecx
push str.Could_not_find_a_DOS_volume_name_for__s:__s
call fcn.0044b0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
jne 0x406953
push str.Error:_Searching_for_a_partition_on_a_non_matching_disk
call fcn.0044b0b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x407580
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0
push eax
push 0xc8
lea eax, [ebp - 0xd8]
mov edi, ecx
push eax
push 0
push 0
push 0x560000
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40760e
cmp dword [ebp - 0xdc], 0
jbe 0x40760e
mov eax, dword [ebp - 0xd8]
cmp eax, 1
jb 0x40760e
cmp eax, 2
jb 0x407606
push esi
push str.Ignoring_drive__s_as_it_spans_multiple_disks__RAID__
call fcn.0044b0b0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd0]
jmp 0x40763d
push 0
lea eax, [ebp - 0xdc]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407678
cmp dword [ebp - 0xdc], 0
je 0x407671
mov eax, dword [ebp - 0xc]
cmp eax, 0x40
jl 0x40768f
push eax
push esi
push str.Device_Number_for_device__s_is_too_big___d____ignoring_device
call fcn.0044b0b0
add esp, 0xc
push str.NOTE:_This_may_be_due_to_an_excess_of_Virtual_Drives__such_as_hidden_ones_created_by_the_XBox_PC_app
call fcn.0044b0b0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov eax, str._empty_data_
jmp 0x40767d
call fcn.0044b6b0
push eax
push esi
push str.Could_not_get_device_number_for_device__s__s
call fcn.0044b0b0
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x407c50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x407c97
call fcn.0044b6b0
push eax
push str.GetLogicalDriveStrings_failed:__s
call fcn.0044b0b0
add esp, 8
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
cmp eax, 0x69
jbe 0x407cbe
push 0x69
push eax
push str.GetLogicalDriveStrings:_Buffer_too_small__required__lu_vs.__zu_
call fcn.0044b0b0
add esp, 0xc
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x78]
mov bl, 0x43
lea esi, [ebp - 0x78]
test al, al
je 0x407d17
nop word [eax + eax]
movsx eax, al
push eax
call fcn.004e1260
add esp, 4
test eax, eax
je 0x407cf0
movsx eax, byte [esi]
push eax
call fcn.004e01e0
add esp, 4
cmp bl, al
je 0x407d14
test esi, esi
jne 0x407cf8
xor eax, eax
jmp 0x407d09
mov eax, esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d00
sub eax, edx
inc esi
add esi, eax
mov al, byte [esi]
test al, al
jne 0x407cd0
jmp 0x407d23
mov al, byte [ebp - 0x78]
cmp byte [esi], 0
je 0x407d23
inc bl
cmp bl, 0x5a
jle 0x407cc3
xor eax, eax
movzx ecx, bl
cmp bl, 0x5a
pop esi
cmovle eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x408440
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004a99b0
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
lea eax, [ebp - 0x1008]
xorps xmm0, xmm0
push 0
push eax
mov esi, ecx
movlpd qword [ebp - 0x1010], xmm0
call fcn.004ab0f0
add esp, 0xc
xor edx, edx
mov ecx, esi
push 1
push 1
call fcn.00405fd0
add esp, 8
mov dword [ebp - 0x1018], eax
cmp eax, 0xffffffff
jne 0x4084ad
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x1014]
push ecx
push 0x1000
lea ecx, [ebp - 0x1008]
push ecx
push 0
push 0
push 0x70050
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40856a
cmp dword [ebp - 0x1014], 0
jbe 0x40856a
xor ebx, ebx
cmp dword [ebp - 0x1004], ebx
jbe 0x40857e
mov eax, dword [ebp - 0x1008]
lea edi, [ebp - 0xfb8]
test eax, eax
jne 0x40850a
cmp byte [edi], 0xef
je 0x408555
cmp eax, 1
jne 0x408544
test edi, edi
je 0x408544
mov edx, edi
mov eax, 0x52c018
mov esi, 0xc
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x408538
add edx, 4
add eax, 4
sub esi, 4
jae 0x408520
mov eax, 1
jmp 0x40853a
xor eax, eax
test eax, eax
jne 0x408555
mov eax, dword [ebp - 0x1008]
inc ebx
add edi, 0x90
cmp ebx, dword [ebp - 0x1004]
jb 0x408501
jmp 0x40857e
lea eax, [ebx + ebx*8]
add eax, eax
mov esi, dword [ebp + eax*8 - 0xfd0]
mov edi, dword [ebp + eax*8 - 0xfcc]
jmp 0x40858a
call fcn.0044b6b0
push eax
push esi
push str.Could_not_get_layout_for_drive_0x_02x:__s
call fcn.0044b0b0
add esp, 0xc
mov esi, dword [ebp - 0x1010]
mov edi, dword [ebp - 0x100c]
mov eax, dword [ebp - 0x1018]
test eax, eax
je 0x40859b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x40a440
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str..:]
push ebx
push esi
push edi
push 0
push 0x80
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x52b05c]
mov ebx, edx
push 3
mov word [ebp - 8], ax
mov al, byte [0x52b05e]
mov cl, byte [esi]
push 0
push 3
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
push 0xc0000000
push eax
mov byte [ebp - 0x41], cl
mov byte [ebp - 8], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a4bf
call fcn.0044b6b0
push eax
movsx eax, byte [ebp - 0x41]
push eax
call fcn.004e01e0
add esp, 4
push eax
push str.Failed_to_open__c:_for_flushing:__s
call fcn.0044b0b0
add esp, 0xc
jmp 0x40a4f6
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40a4eb
call fcn.0044b6b0
push eax
movsx eax, byte [ebp - 0x41]
push eax
call fcn.004e01e0
add esp, 4
push eax
push str.Failed_to_flush__c:__s
call fcn.0044b0b0
add esp, 0xc
test edi, edi
je 0x40a4f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x33
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x40a537
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0040a0d0
test eax, eax
je 0x40a54d
test ebx, ebx
jne 0x40a537
movsx eax, byte [esi]
push eax
call fcn.004e01e0
add esp, 4
push eax
lea eax, [ebp - 0x40]
push eax
push str.Successfully_remounted__s_as__c:
call fcn.0044b0b0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x40a575
call fcn.0044b6b0
push eax
movsx eax, byte [esi]
push eax
call fcn.004e01e0
add esp, 4
push eax
lea eax, [ebp - 0x40]
push eax
push str.Could_not_remount__s_as__c:__s
call fcn.0044b0b0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
mov dword [0x55a318], 0xe0031209
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret