Function at 0x27524371
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x104
mov dword [ebp - 0x20], 0x275ba414
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.27524308
mov dword [esp + 8], 0x104
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, word [eax]
test ax, ax
je 0x2752441e
add dword [ebp - 0xc], 1
jmp 0x27524405
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x7fffffff
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, word [eax]
cmp ax, 0x5c
je 0x27524453
mov eax, dword [ebp - 0x10]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
mov word [eax], 0
sub dword [ebp - 0x10], 1
jmp 0x27524424
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x2752448e
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x10]
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x28]
add edx, ecx
cbw
mov word [edx], ax
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
jmp 0x2752445a
mov dword [esp + 4], 0x44
lea eax, [ebp - 0xbc]
mov dword [esp], eax
call fcn.27524308
mov dword [esp + 4], 0x10
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.27524308
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x27524831
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
sub esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 0x28]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.27524308
mov dword [ebp - 0xd0], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xd0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x27524834
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xd4]
add eax, 4
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xd4]
add eax, 4
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x44], eax
jbe 0x2752464f
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x48]
add edx, ecx
mov dword [eax], edx
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0xd4]
add eax, 4
mov dword [ebp - 0xd4], eax
jmp 0x2752461d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x27524837
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
movsx eax, al
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x2752483a
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
movsx eax, al
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x2752483d
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
movsx eax, al
add dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 0xc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
add eax, edx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x54]
add eax, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x54]
add eax, edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xd8], 0
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.27524339
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
add eax, edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
test al, al
setne al
test al, al
je 0x275247f2
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x40]
add edx, ecx
cbw
mov word [edx], ax
add dword [ebp - 0x1c], 1
jmp 0x275247b7
mov eax, dword [ebp - 0x1c]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x40]
add eax, edx
mov word [eax], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 0xdc], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0xe4]
mov dword [esp], eax
mov eax, dword [ebp - 0x78]
call eax
jmp 0x2752483e
nop
jmp 0x2752483e
nop
jmp 0x2752483e
nop
jmp 0x2752483e
nop
jmp 0x2752483e
nop
mov ebx, dword [ebp - 4]
leave
ret