Function at 0x48e740
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov byte [ebp - 2], 0
push esi
push edi
xor edi, edi
mov dword [ebp - 0x28], ebx
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [ebp - 0xc], edi
mov byte [ebp - 1], 0
lea eax, [eax*4 + 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x48e96f
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0048e260
mov edi, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jne 0x48e974
mov eax, dword [edi]
mov ecx, edi
push dword [ebx + 0x1c]
call dword [eax]
mov esi, eax
cmp esi, 0x1779
jne 0x48e7b2
mov byte [ebp - 1], 1
jmp 0x48e7c8
cmp esi, 0x15e
jne 0x48e7c0
mov byte [ebp - 2], 1
jmp 0x48e7c8
test esi, esi
jne 0x48e974
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jne 0x48e974
cmp byte [ebp + 8], al
je 0x48e815
push 1
push eax
push 0xfffffbe0
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48e815
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test esi, esi
jne 0x48e974
mov ebx, eax
jmp 0x48e98f
mov eax, dword [ebp - 0x18]
xor esi, esi
push 0x420
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x20]
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
je 0x48e96f
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
lea eax, [ecx + 0x41f]
cmp edx, eax
ja 0x48e85d
lea eax, [edx + 0x41f]
cmp eax, ecx
jae 0x48e8bd
mov eax, dword [ebp - 0xc]
lea edx, [ecx + 0x30]
movaps xmm1, xmmword [str.gggggggggggggggg]
add eax, 0x10
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, 0x10
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x400
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm0, xmmword [edx - 0x70]
xorps xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [ebx + eax - 0x40]
xorps xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edx - 0x50]
xorps xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edx - 0x40]
xorps xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
sub ecx, 1
jne 0x48e882
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
sub ebx, edx
lea ecx, [eax + edx]
mov edx, 0x420
sub edx, eax
nop
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
sub edx, 1
jne 0x48e8d0
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push edx
push eax
push 0x420
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48e905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48e914
cmp dword [ebp - 0x24], 0x420
mov eax, 0x1d
cmovne esi, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x28]
test esi, esi
jne 0x48e974
mov eax, dword [ebx + 0x14]
shl eax, 2
push eax
push dword [ebx + 0x18]
push dword [ebp - 8]
call fcn.004ac080
mov eax, dword [ebx + 0x14]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edi
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x48e960
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
inc dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
xor ebx, ebx
xor edi, edi
jmp 0x48e98f
mov esi, 0xe
cmp byte [ebp + 8], 0
je 0x48e98c
test edi, edi
je 0x48e98c
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [ebx + 0x1c]
push 1
call dword [eax + 4]
mov ebx, dword [ebp - 8]
test edi, edi
je 0x48e99c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x18]
test ebx, ebx
je 0x48e9b0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48e9d2
cmp byte [ebp - 1], 0
je 0x48e9c6
pop edi
pop esi
mov eax, 0x1779
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 2], 0
mov eax, 0x15e
cmovne esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret