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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x636d78]
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.00521970
test eax, eax
jne 0x521a56
or eax, 0xffffffff
jmp 0x521d35
push 0
push 0x80
push 3
push 0
push 1
push accept
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
call fcn.00521d50
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x521a86
cmp dword [ebp - 0xc], 0xffffffff
jne 0x521a90
mov eax, 0xfffffffe
jmp 0x521d35
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 0x521ab8
cmp dword [ebp - 0x10], 0x200000
jbe 0x521acc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x521d35
mov eax, dword [ebp - 0x10]
add eax, 0x400
push eax
call fcn.0044d150
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.00582ec0
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 0x521b39
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 0x521b39
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x521b65
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.0044d15b
add esp, 4
mov eax, 0xfffffffc
jmp 0x521d35
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 0x521c33
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x10]
jae 0x521c7c
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
movzx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x521c57
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x521c59
jmp 0x521c2a
push 0x28
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x48]
push ecx
call fcn.00584ae2
add esp, 0xc
test eax, eax
jne 0x521c7a
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x521c7c
jmp 0x521c2a
cmp dword [ebp - 0x1c], 0
je 0x521c8a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jb 0x521cac
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.0044d15b
add esp, 4
mov eax, 0xfffffffb
jmp 0x521d35
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 0x521cd7
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 4]
cmp ecx, 0xb8
je 0x521cf6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0044d15b
add esp, 4
mov eax, 0xfffffffa
jmp 0x521d35
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.005865c0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0044d15b
add esp, 4
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005824ce
mov esp, ebp
pop ebp
ret