Function at 0x4a50f0
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.00498a80
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 0x4a593a
mov eax, dword [esp + 0x90]
cmp eax, 0x2a
jbe 0x4a5932
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.004a4850
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 0x4a5871
jmp 0x4a51c0
mov ecx, dword [ebx]
cmp ecx, edi
jne 0x4a5902
mov edx, dword [ebx + 4]
cmp edx, esi
jne 0x4a5902
cmp dword [ebx + 0xc], 0x454c4946
mov eax, dword [esp + 0x9c]
lea esi, [ebx + 0xc]
lea edx, [esi + eax]
mov dword [esp + 0x30], edx
jne 0x4a5785
test byte [esi + 0x16], 1
je 0x4a577e
cmp dword [esp + 0x2c], 0
jne 0x4a522a
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, eax
or edi, ecx
je 0x4a5222
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], 1
jmp 0x4a522a
mov dword [esp + 0x1c], 1
movzx ebx, word [esi + 0x14]
add ebx, esi
cmp ebx, esi
mov dword [esp + 0x18], ebx
jb 0x4a5797
jmp 0x4a5244
mov edx, dword [esp + 0x30]
lea edi, [ebx + 0x10]
cmp edi, edx
ja 0x4a5797
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4a5797
mov ecx, 0x10
cmp dword [ebx + 4], ecx
jb 0x4a5766
cmp byte [ebx + 9], 0
jne 0x4a5747
sub eax, ecx
je 0x4a56e4
sub eax, ecx
je 0x4a52f6
sub eax, 0x60
jne 0x4a5747
test byte [esi + 0x16], 2
jne 0x4a5747
test byte [ebx + 8], 1
je 0x4a52cc
lea ecx, [ebx + 0x48]
cmp ecx, edx
ja 0x4a5747
mov edx, dword [edi]
or edx, dword [edi + 4]
jne 0x4a5747
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 0x4a5741
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a5747
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 0x4a5741
movzx edx, byte [ebx + 8]
push edx
push str.attribute_list__02x_n
call fcn.0048f080
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x4a5747
test byte [esi + 0x16], 2
jne 0x4a5747
test byte [ebx + 8], 1
je 0x4a5641
movzx eax, word [ebx + 0xc]
mov ecx, dword [ebx + 4]
push eax
push ecx
push str.len__u_flags__04x_n
call fcn.0048f080
add esp, 0xc
test word [ebx + 0xc], 0xc001
jne 0x4a5747
lea edx, [ebx + 0x48]
cmp edx, dword [esp + 0x30]
ja 0x4a5747
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x4a5747
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 0x4a5747
movzx ecx, byte [eax]
test ecx, ecx
je 0x4a5747
mov eax, ecx
and eax, 0xf
sar ecx, 4
cmp eax, 8
mov edi, ecx
jg 0x4a5747
cmp edi, 8
jg 0x4a5747
lea ebp, [eax + edx]
cmp ebp, esi
ja 0x4a5747
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.00549cb0
xor eax, eax
add esp, 0xc
cmp edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x4a5747
lea eax, [edi + ebp]
cmp eax, esi
ja 0x4a5747
test byte [eax - 1], 0x80
push edi
push ebp
je 0x4a53fc
or eax, 0xffffffff
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push edx
jmp 0x4a5401
lea eax, [esp + 0x28]
push eax
call fcn.00549cb0
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.0048f080
mov ecx, dword [esp + 0xac]
add esp, 0x14
push 0
push esi
push edi
push 0
push ecx
call int.0054a160
push edx
mov edx, dword [esp + 0xd8]
push eax
push edx
call fcn.004af360
test eax, eax
je 0x4a5613
mov eax, dword [esp + 0x9c]
push eax
call fcn.004a4850
mov ecx, dword [esp + 0x98]
push ebp
push ebx
push 0
push ecx
mov edi, eax
call int.0054a160
mov ecx, dword [esp + 0x9c]
mov esi, eax
xor eax, eax
cmp edx, eax
jb 0x4a548f
ja 0x4a5489
cmp esi, ecx
jbe 0x4a548f
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 0x4a55eb
mov ebx, dword [esp + 0xd4]
mov ebp, dword [esp + 0xd8]
add esi, edi
mov dword [esp + 0x60], esi
mov esi, edi
jmp 0x4a54d0
lea ecx, [esi + 0x1a]
cmp ecx, dword [esp + 0x60]
ja 0x4a5604
cmp word [esi + 4], 0x1a
jb 0x4a559d
cmp dword [esi], 0xffffffff
je 0x4a5604
push ebp
push ebx
push str.this_frn__016I64x_n
call fcn.0048f080
mov edx, dword [esi]
push edx
push str.al_type__u_n
call fcn.0048f080
movzx eax, word [esi + 4]
push eax
push str.al_rl__u_n
call fcn.0048f080
movzx ecx, byte [esi + 6]
push ecx
push str.al_nl__u_n
call fcn.0048f080
movzx edx, byte [esi + 7]
push edx
push str.al_o2n__u_n
call fcn.0048f080
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.al_svcn__I64u_n
call fcn.0048f080
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
push str.al_bfrn__016I64x_n
call fcn.0048f080
movzx ecx, word [esi + 0x18]
add esp, 0x44
push ecx
push str.al_aid__u_n
call fcn.0048f080
add esp, 8
cmp dword [esi], 0x80
jne 0x4a5580
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
je 0x4a55a9
movzx eax, word [esi + 4]
add esi, eax
cmp esi, edi
jae 0x4a54d0
push edi
call fcn.004a4890
mov ebx, dword [esp + 0x18]
jmp 0x4a5747
movzx ecx, word [esi + 4]
push ecx
push str.bad_al_len__u_n
jmp 0x4a55f7
mov eax, dword [esi + 0x10]
cmp ebx, eax
mov ecx, dword [esi + 0x14]
jne 0x4a55b7
cmp ebp, ecx
je 0x4a5604
push ecx
push eax
push str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.0048f080
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.004a4890
mov ebx, dword [esp + 0x18]
jmp 0x4a5747
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.read_size__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
push edi
call fcn.004a4890
mov ebx, dword [esp + 0x18]
jmp 0x4a5747
mov ecx, dword [esp + 0x98]
push esi
push edi
push 0
push ecx
call int.0054a160
push edx
push eax
push str.bad_file_pos__I64u_n
push 0xffff0000
call fcn.0048f0a0
mov ebx, dword [esp + 0x28]
add esp, 0x10
jmp 0x4a5747
mov edx, dword [esp + 0x30]
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a5747
movzx esi, word [ebx + 0x14]
add esi, ebx
cmp esi, ebx
jb 0x4a5747
mov edi, edi
lea ecx, [esi + 0x1a]
cmp ecx, edx
ja 0x4a5747
movzx ecx, word [esi + 4]
cmp cx, 0x1a
jb 0x4a5747
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a5747
cmp eax, 0x80
jne 0x4a5693
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x4a56a1
movzx ecx, cx
add esi, ecx
cmp esi, ebx
jae 0x4a5660
jmp 0x4a5747
mov eax, dword [esi + 0x10]
cmp dword [esp + 0xd4], eax
mov ecx, dword [esi + 0x14]
jne 0x4a56bd
cmp dword [esp + 0xd8], ecx
je 0x4a5747
push ecx
push eax
push str._NTFS_ATTRIBUTE_TYPE_DATA_in__016I64x_n
call fcn.0048f080
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 0x4a5747
xor eax, eax
cmp byte [ebx + 8], al
sete al
test al, 1
je 0x4a5747
lea eax, [ebx + 0x16]
cmp eax, edx
ja 0x4a5747
movzx eax, word [ebx + 0x14]
add eax, ebx
lea edi, [eax + 0x24]
cmp edi, edx
ja 0x4a5747
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 0x4a58d4
cmp dword [esp + 0x10], 3
je 0x4a588a
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 0x4a5240
jmp 0x4a5797
mov ecx, dword [ebx + 4]
push ecx
push str.bad_attribute_len__u_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
jmp 0x4a5797
push str.get_fd:_not_inuse_n
jmp 0x4a578a
push str.get_fd:_not_a_file_record_n
push 0xffff0000
call fcn.0048f0a0
add esp, 8
cmp dword [esp + 0x2c], 0
je 0x4a57d8
cmp dword [esp + 0x1c], 0
jne 0x4a57d8
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.0048f0a0
mov dword [esp + 0x34], 1
jmp 0x4a581f
cmp dword [esp + 0x14], 0
je 0x4a58d9
cmp dword [esp + 0x4c], 0
jne 0x4a58d9
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.0048f0a0
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 0x4a51c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FSCTL_GET_NTFS_FILE_RECORD_failed__u_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
cmp dword [0x599128], 0
je 0x4a58bd
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.0048f080
add esp, 0x18
mov edx, dword [esp + 0x28]
push edx
call fcn.004a4890
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xbc
ret 0x10
or dword [ebp + 0x20], ecx
jmp 0x4a588a
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.0048f0a0
add esp, 0x14
jmp 0x4a588a
cmp dword [0x599128], 0
je 0x4a58bd
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.0048f0a0
add esp, 0x10
jmp 0x4a588a
push eax
push str.bad_BytesPerFileRecordSegment__u_n
jmp 0x4a5946
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FSCTL_GET_NTFS_VOLUME_DATA_failed__u_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
pop ebp
add esp, 0xbc
ret 0x10