Function at 0x10067280
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x10]
push SysReAllocString
push eax
mov dword [ebp - 0x38], ecx
xor bl, bl
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], edi
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x1006747b
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1006744e
cmp esi, 0xffffffff
je 0x1006744e
push esi
call dword [sym.imp.MSVCR110.dll_malloc]
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1006744e
push edi
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10067436
cmp esi, dword [ebp - 8]
jne 0x10067436
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x10067364
xor esi, esi
mov dword [ebp - 0x2c], esi
jmp 0x10067436
mov ecx, esi
shr ecx, 0xe
mov edx, esi
mov eax, esi
shr edx, 0x19
add ecx, esi
shr eax, 0xc
add ecx, edx
add eax, 0xd
add eax, ecx
mov dword [ebp - 0x28], eax
je 0x10067436
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10067436
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
push edi
mov edx, esi
call fcn.100670a0
add esp, 8
test eax, eax
je 0x10067436
mov eax, dword [ebp - 0x28]
push eax
push edi
push eax
push edi
push 0x26
push str.E54635FC_4016_4A34_A7B0_0D4E3E1FC257
call sym.iImportLib.dll_int___cdecl_elex::safe::RC4_Encrypt_unsigned_char___int__unsigned_char___int__unsigned_char_const___int_
add esp, 0x18
test eax, eax
jne 0x10067436
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0x54534347
test eax, eax
je 0x100673ed
push 0xe
push eax
lea eax, [ebp - 0x20]
push 0xe
push eax
call dword [sym.imp.MSVCR110.dll_memcpy_s]
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push 0x1c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10067436
cmp dword [ebp - 8], 0x1c
jne 0x10067436
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10067436
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 8], eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x30]
mov esi, dword [sym.imp.MSVCR110.dll_free]
call esi
add esp, 4
test edi, edi
je 0x1006744e
push edi
call esi
add esp, 4
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1006745e
push eax
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10067468
push eax
call esi
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret