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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push edi
mov dword [ebp - 0x150], ecx
cmp dword [ebp + 8], 0
jne 0x4861f3
xor eax, eax
jmp 0x486517
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x486240
jmp 0x4864d8
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x48625e
cmp dword [ebp - 0x3c], 0x18ae0
jae 0x486263
jmp 0x4864d8
push 0
push 0
push 0x18ae0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x486280
jmp 0x4864d8
mov eax, dword [ebp - 0x3c]
sub eax, 0x18ae0
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x4862ab
jmp 0x4864d8
mov edx, dword [ebp - 0x3c]
sub edx, 0x18ae0
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [ebp - 0x28], 0x42
mov byte [ebp - 0x27], 0x4d
mov byte [ebp - 0x26], 0x57
mov byte [ebp - 0x25], 0x21
mov byte [ebp - 0x24], 0x21
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x78
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 2
mov dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x3c]
sub edx, 0x18ae1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x486319
jmp 0x4864d8
push 0x5c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x486336
jmp 0x4864d8
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
call sub.ntdll.dll_strlen
add esp, 4
add eax, 0x1e
mov dword [ebp - 0x20], eax
push 5
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
push eax
call fcn.0042cd64
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486375
jmp 0x4864d8
mov ecx, dword [ebp - 0xc]
add ecx, 5
mov dword [ebp - 0xc], ecx
push 5
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042cd64
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4863aa
jmp 0x4864d8
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 3
push 0x53763c
mov ecx, dword [ebp - 0x14]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 0x144], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x144]
push eax
call fcn.0041eee0
add esp, 0xc
push 0x5c
push 0
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x486437
jmp 0x4864d8
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0xc]
push eax
call sub.ntdll.dll_strlen
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041eee0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 2
push 0x120116
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x48648a
jmp 0x4864d8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ntdll.dll_atol]
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4864c5
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x30]
je 0x4864c7
jmp 0x4864d8
mov dword [ebp - 4], 1
xor ecx, ecx
test ecx, ecx
jne 0x486216
cmp dword [ebp - 8], 0
je 0x4864fd
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004a90a8
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x486514
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 4