Function at 0x524510
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6d2e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0
mov ecx, dword [ebp - 8]
call fcn.00524460
test eax, eax
jne 0x524546
or eax, 0xffffffff
jmp 0x524825
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
call fcn.00524840
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x524576
cmp dword [ebp - 0xc], 0xffffffff
jne 0x524580
mov eax, 0xfffffffe
jmp 0x524825
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0x8000
jb 0x5245a8
cmp dword [ebp - 0x10], 0x200000
jbe 0x5245bc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x524825
mov eax, dword [ebp - 0x10]
add eax, 0x400
push eax
call fcn.0044fdfb
add esp, 4
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00588e80
add esp, 0xc
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x524629
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x524629
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x524655
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0044fdf0
add esp, 4
mov eax, 0xfffffffc
jmp 0x524825
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x44], 0x5c
mov byte [ebp - 0x43], 0
mov byte [ebp - 0x42], 0x44
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x40], 0x65
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0x76
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 0x69
mov byte [ebp - 0x3b], 0
mov byte [ebp - 0x3a], 0x63
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x38], 0x65
mov byte [ebp - 0x37], 0
mov byte [ebp - 0x36], 0x5c
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x34], 0x52
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x32], 0x61
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0x73
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x2e], 0x41
mov byte [ebp - 0x2d], 0
mov byte [ebp - 0x2c], 0x63
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x2a], 0x64
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0xcc
mov byte [ebp - 0x25], 0xcc
mov byte [ebp - 0x24], 0xcc
mov byte [ebp - 0x23], 0xcc
mov byte [ebp - 0x22], 0xcc
mov byte [ebp - 0x21], 0xcc
mov byte [ebp - 0x20], 0x90
mov byte [ebp - 0x1f], 0x90
mov byte [ebp - 0x1e], 0x90
mov byte [ebp - 0x1d], 0x90
mov eax, dword [ebp - 0x10]
sub eax, 0x400
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], 0
jmp 0x524723
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x10]
jae 0x52476c
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
movzx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x524747
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x524749
jmp 0x52471a
push 0x28
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x48]
push ecx
call fcn.0058acf3
add esp, 0xc
test eax, eax
jne 0x52476a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x52476c
jmp 0x52471a
cmp dword [ebp - 0x1c], 0
je 0x52477a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jb 0x52479c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.0044fdf0
add esp, 4
mov eax, 0xfffffffb
jmp 0x524825
mov eax, dword [ebp - 0x1c]
add eax, 0x80
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
movzx ecx, byte [eax - 1]
test ecx, ecx
jne 0x5247c7
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 4]
cmp ecx, 0xb8
je 0x5247e6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0044fdf0
add esp, 4
mov eax, 0xfffffffa
jmp 0x524825
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [ebp - 0x4c], 0
push 4
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0058c7b0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0044fdf0
add esp, 4
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058848d
mov esp, ebp
pop ebp
ret