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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6aae20]
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.005242e0
test eax, eax
jne 0x5243c6
or eax, 0xffffffff
jmp 0x5246a5
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
call fcn.005246c0
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5243f6
cmp dword [ebp - 0xc], 0xffffffff
jne 0x524400
mov eax, 0xfffffffe
jmp 0x5246a5
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 0x524428
cmp dword [ebp - 0x10], 0x200000
jbe 0x52443c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x5246a5
mov eax, dword [ebp - 0x10]
add eax, 0x400
push eax
call fcn.0044fb5b
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.00588eb0
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 0x5244a9
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 0x5244a9
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5244d5
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.0044fb50
add esp, 4
mov eax, 0xfffffffc
jmp 0x5246a5
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 0x5245a3
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x10]
jae 0x5245ec
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
movzx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x5245c7
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x5245c9
jmp 0x52459a
push 0x28
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x48]
push ecx
call fcn.0058ad23
add esp, 0xc
test eax, eax
jne 0x5245ea
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x5245ec
jmp 0x52459a
cmp dword [ebp - 0x1c], 0
je 0x5245fa
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jb 0x52461c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.0044fb50
add esp, 4
mov eax, 0xfffffffb
jmp 0x5246a5
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 0x524647
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 4]
cmp ecx, 0xb8
je 0x524666
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0044fb50
add esp, 4
mov eax, 0xfffffffa
jmp 0x5246a5
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.0058c7e0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0044fb50
add esp, 4
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret