Function at 0x10002e39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
mov dword [ebp - 8], 0x1000eccd
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
call fcn.10002c79
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10002d79
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x3c]
push edx
push 0
call fcn.10002c79
add esp, 8
mov dword [ebp - 0x98], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10002b29
add esp, 8
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x10002eef
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov cx, word [esi + ecx*2]
mov word [eax + edx*2], cx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x10002ec2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x10002f18
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x10002eff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x10002f45
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x10002f1e
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x28]
movsx eax, byte [edx]
test eax, eax
je 0x10002f81
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x28]
movsx dx, byte [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x10002f4c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x10002fab
push 0
call dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10002d79
add esp, 8
mov dword [ebp - 0x68], eax
push 0
mov edx, dword [ebp - 0x40]
push edx
call dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10002b29
add esp, 8
mov dword [ebp - 0x58], 0
push 0
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10003027
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x48]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], 0
jmp 0x1000307f
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x70]
jae 0x10003096
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0xc]
inc ebp
hlt
mov dword [eax], edx
jmp 0x1000306d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10002d79
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x100030c3
push 0
call dword [ebp - 0x20]
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10002d79
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x100030f0
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 1
push edx
call dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x100030dc
add byte [ebp + 5], dh
push 0
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
or byte [ebx], al
dec ebp
cld