Function at 0x4a48f0
Capabilities:
Enumerate pe sections
Get volume information via ioctl
Read file on windows

Disassembly:
sub esp, 0xbc
push ebp
mov ebp, dword [esp + 0xd0]
push ebp
call fcn.00498a90
mov edx, dword [esp + 0xc4]
push 0
lea eax, [esp + 0x2c]
push eax
push 0x60
lea ecx, [esp + 0x6c]
push ecx
push 0
push 0
push 0x90064
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a513a
mov eax, dword [esp + 0x90]
cmp eax, 0x2a
jbe 0x4a5132
push ebx
push esi
xor ecx, ecx
add eax, 0xf
push edi
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], eax
call fcn.004a4070
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xd8]
mov edi, dword [esp + 0xd4]
push 0
mov ebx, eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xd8]
push ecx
push ebx
push 8
lea edx, [esp + 0x58]
push edx
push 0x90068
and esi, 0xffff
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a5071
jmp 0x4a49c0
mov ecx, dword [ebx]
cmp ecx, edi
jne 0x4a5102
mov edx, dword [ebx + 4]
cmp edx, esi
jne 0x4a5102
cmp dword [ebx + 0xc], 0x454c4946
mov eax, dword [esp + 0x9c]
lea esi, [ebx + 0xc]
lea edx, [esi + eax]
mov dword [esp + 0x30], edx
jne 0x4a4f85
test byte [esi + 0x16], 1
je 0x4a4f7e
cmp dword [esp + 0x2c], 0
jne 0x4a4a2a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, eax
or edi, ecx
je 0x4a4a22
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], 1
jmp 0x4a4a2a
mov dword [esp + 0x1c], 1
movzx ebx, word [esi + 0x14]
add ebx, esi
cmp ebx, esi
mov dword [esp + 0x18], ebx
jb 0x4a4f97
jmp 0x4a4a44
mov edx, dword [esp + 0x30]
lea edi, [ebx + 0x10]
cmp edi, edx
ja 0x4a4f97
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4a4f97
mov ecx, 0x10
cmp dword [ebx + 4], ecx
jb 0x4a4f66
cmp byte [ebx + 9], 0
jne 0x4a4f47
sub eax, ecx
je 0x4a4ee4
sub eax, ecx
je 0x4a4af6
sub eax, 0x60
jne 0x4a4f47
test byte [esi + 0x16], 2
jne 0x4a4f47
test byte [ebx + 8], 1
je 0x4a4acc
lea ecx, [ebx + 0x48]
cmp ecx, edx
ja 0x4a4f47
mov edx, dword [edi]
or edx, dword [edi + 4]
jne 0x4a4f47
mov eax, dword [ebx + 0x30]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x34]
or eax, 2
mov dword [ebp + 4], ecx
mov dword [esp + 0x10], eax
cmp eax, 3
jmp 0x4a4f41
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a4f47
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
or eax, 2
mov dword [ebp], ecx
mov dword [ebp + 4], 0
mov dword [esp + 0x10], eax
cmp eax, 3
jmp 0x4a4f41
movzx edx, byte [ebx + 8]
push edx
push str.attribute_list__02x_n
call fcn.0048f0a0
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x4a4f47
test byte [esi + 0x16], 2
jne 0x4a4f47
test byte [ebx + 8], 1
je 0x4a4e41
movzx eax, word [ebx + 0xc]
mov ecx, dword [ebx + 4]
push eax
push ecx
push str.len__u_flags__04x_n
call fcn.0048f0a0
add esp, 0xc
test word [ebx + 0xc], 0xc001
jne 0x4a4f47
lea edx, [ebx + 0x48]
cmp edx, dword [esp + 0x30]
ja 0x4a4f47
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x4a4f47
movzx ecx, word [ebx + 0x20]
mov esi, dword [ebx + 4]
lea eax, [ecx + ebx]
sub esi, ecx
add esi, eax
lea edx, [eax + 1]
cmp edx, esi
ja 0x4a4f47
movzx ecx, byte [eax]
test ecx, ecx
je 0x4a4f47
mov eax, ecx
and eax, 0xf
sar ecx, 4
cmp eax, 8
mov edi, ecx
jg 0x4a4f47
cmp edi, 8
jg 0x4a4f47
lea ebp, [eax + edx]
cmp ebp, esi
ja 0x4a4f47
xor ecx, ecx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
push edx
lea ecx, [esp + 0x58]
push ecx
call fcn.00548d20
xor eax, eax
add esp, 0xc
cmp edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x4a4f47
lea eax, [edi + ebp]
cmp eax, esi
ja 0x4a4f47
test byte [eax - 1], 0x80
push edi
push ebp
je 0x4a4bfc
or eax, 0xffffffff
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push edx
jmp 0x4a4c01
lea eax, [esp + 0x28]
push eax
call fcn.00548d20
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add esp, 0xc
push ebp
push ebx
push esi
push edi
push str.mapping_pair_cluster_offset:__I64d__cluster_count:__I64u_n
call fcn.0048f0a0
mov ecx, dword [esp + 0xac]
add esp, 0x14
push 0
push esi
push edi
push 0
push ecx
call fcn.005491d0
push edx
mov edx, dword [esp + 0xd8]
push eax
push edx
call fcn.004aebe0
test eax, eax
je 0x4a4e13
mov eax, dword [esp + 0x9c]
push eax
call fcn.004a4070
mov ecx, dword [esp + 0x98]
push ebp
push ebx
push 0
push ecx
mov edi, eax
call fcn.005491d0
mov ecx, dword [esp + 0x9c]
mov esi, eax
xor eax, eax
cmp edx, eax
jb 0x4a4c8f
ja 0x4a4c89
cmp esi, ecx
jbe 0x4a4c8f
mov esi, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xd0]
push 0
lea edx, [esp + 0x6c]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4deb
mov ebx, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd8]
add esi, edi
mov dword [esp + 0x60], esi
mov esi, edi
jmp 0x4a4cd0
lea ecx, [esi + 0x1a]
cmp ecx, dword [esp + 0x60]
ja 0x4a4e04
cmp word [esi + 4], 0x1a
jb 0x4a4d9d
cmp dword [esi], 0xffffffff
je 0x4a4e04
push ebp
push ebx
push str.this_frn__016I64x_n
call fcn.0048f0a0
mov edx, dword [esi]
push edx
push str.al_type__u_n
call fcn.0048f0a0
movzx eax, word [esi + 4]
push eax
push str.al_rl__u_n
call fcn.0048f0a0
movzx ecx, byte [esi + 6]
push ecx
push str.al_nl__u_n
call fcn.0048f0a0
movzx edx, byte [esi + 7]
push edx
push str.al_o2n__u_n
call fcn.0048f0a0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.al_svcn__I64u_n
call fcn.0048f0a0
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
push str.al_bfrn__016I64x_n
call fcn.0048f0a0
movzx ecx, word [esi + 0x18]
add esp, 0x44
push ecx
push str.al_aid__u_n
call fcn.0048f0a0
add esp, 8
cmp dword [esi], 0x80
jne 0x4a4d80
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
je 0x4a4da9
movzx eax, word [esi + 4]
add esi, eax
cmp esi, edi
jae 0x4a4cd0
push edi
call fcn.004a40b0
mov ebx, dword [esp + 0x18]
jmp 0x4a4f47
movzx ecx, word [esi + 4]
push ecx
push str.bad_al_len__u_n
jmp 0x4a4df7
mov eax, dword [esi + 0x10]
cmp ebx, eax
mov ecx, dword [esi + 0x14]
jne 0x4a4db7
cmp ebp, ecx
je 0x4a4e04
push ecx
push eax
push str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add esp, 0xc
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], 1
call fcn.004a40b0
mov ebx, dword [esp + 0x18]
jmp 0x4a4f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.read_size__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
push edi
call fcn.004a40b0
mov ebx, dword [esp + 0x18]
jmp 0x4a4f47
mov ecx, dword [esp + 0x98]
push esi
push edi
push 0
push ecx
call fcn.005491d0
push edx
push eax
push str.bad_file_pos__I64u_n
push 0xffff0000
call fcn.0048f0c0
mov ebx, dword [esp + 0x28]
add esp, 0x10
jmp 0x4a4f47
mov edx, dword [esp + 0x30]
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a4f47
movzx esi, word [ebx + 0x14]
add esi, ebx
cmp esi, ebx
jb 0x4a4f47
mov edi, edi
lea ecx, [esi + 0x1a]
cmp ecx, edx
ja 0x4a4f47
movzx ecx, word [esi + 4]
cmp cx, 0x1a
jb 0x4a4f47
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a4f47
cmp eax, 0x80
jne 0x4a4e93
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x4a4ea1
movzx ecx, cx
add esi, ecx
cmp esi, ebx
jae 0x4a4e60
jmp 0x4a4f47
mov eax, dword [esi + 0x10]
cmp dword [esp + 0xd4], eax
mov ecx, dword [esi + 0x14]
jne 0x4a4ebd
cmp dword [esp + 0xd8], ecx
je 0x4a4f47
push ecx
push eax
push str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
add esp, 0xc
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 1
jmp 0x4a4f47
xor eax, eax
cmp byte [ebx + 8], al
sete al
test al, 1
je 0x4a4f47
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a4f47
movzx eax, word [ebx + 0x14]
add eax, ebx
lea edi, [eax + 0x24]
cmp edi, edx
ja 0x4a4f47
mov edx, dword [eax + 0x20]
or dword [esp + 0x10], 1
mov dword [ebp + 0x20], edx
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
mov edx, dword [eax + 8]
mov dword [ebp + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
mov edx, dword [eax + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x1c], eax
test byte [esi + 0x16], 2
jne 0x4a50d4
cmp dword [esp + 0x10], 3
je 0x4a508a
add ebx, dword [ebx + 4]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0xdc]
add esi, 0xc
cmp ebx, esi
mov dword [esp + 0x18], ebx
jae 0x4a4a40
jmp 0x4a4f97
mov ecx, dword [ebx + 4]
push ecx
push str.bad_attribute_len__u_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
jmp 0x4a4f97
push str.get_fd:_not_inuse_n
jmp 0x4a4f8a
push str.get_fd:_not_a_file_record_n
push 0xffff0000
call fcn.0048f0c0
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x4a4fd8
cmp dword [esp + 0x1c], 0
jne 0x4a4fd8
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
push edx
push eax
push esi
push edi
push str.retry_with_base__016I64x_for__016I64x_n
push 0xffff0000
call fcn.0048f0c0
mov dword [esp + 0x34], 1
jmp 0x4a501f
cmp dword [esp + 0x14], 0
je 0x4a50d9
cmp dword [esp + 0x4c], 0
jne 0x4a50d9
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push ecx
push edx
push esi
push edi
push str.retry_with_type_data__016I64x_for__016I64x_n
push 0xffff0000
call fcn.0048f0c0
mov dword [esp + 0x64], 1
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
add esp, 0x18
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xd8]
push ecx
push ebx
push 8
lea edx, [esp + 0x58]
push edx
push 0x90068
mov dword [esp + 0xf4], esi
and esi, 0xffff
push eax
mov dword [esp + 0xf4], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4a49c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FSCTL_GET_NTFS_FILE_RECORD_failed__u_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
cmp dword [0x5980a4], 0
je 0x4a50bd
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
push eax
push ecx
push str.got_ntfs_file_record__I64x__I64u__d_n
call fcn.0048f0a0
add esp, 0x18
mov edx, dword [esp + 0x28]
push edx
call fcn.004a40b0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xbc
ret 0x10
or dword [ebp + 0x20], ecx
jmp 0x4a508a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
push ecx
push edx
push eax
push str.couldnt_get_fd_from__016I64x__x_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x14
jmp 0x4a508a
cmp dword [0x5980a4], 0
je 0x4a50bd
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
push ecx
push edx
push str.FRN_not_in_use__I64x_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
jmp 0x4a508a
push eax
push str.bad_BytesPerFileRecordSegment__u_n
jmp 0x4a5146
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FSCTL_GET_NTFS_VOLUME_DATA_failed__u_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
pop ebp
add esp, 0xbc
ret 0x10