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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov byte [ebp - 2], 0
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [ebp - 0x10], 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
jne 0x48e6c6
lea esi, [edi + 0xe]
jmp 0x48e77a
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.0048e1a0
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x48e77a
mov eax, dword [edi]
mov ecx, edi
push dword [ebx + 0x1c]
call dword [eax]
mov esi, eax
cmp esi, 0x1779
jne 0x48e6f6
mov byte [ebp - 1], 1
jmp 0x48e708
cmp esi, 0x15e
jne 0x48e704
mov byte [ebp - 2], 1
jmp 0x48e708
test esi, esi
jne 0x48e77a
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jne 0x48e77a
cmp byte [ebp + 8], al
je 0x48e74a
push 1
push eax
push 0xfffffbe0
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48e74a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test esi, esi
jne 0x48e77a
mov ebx, eax
jmp 0x48e795
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ebx, dword [ebp - 0x18]
push 0x420
push esi
mov eax, dword [eax + 0x20]
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 - 0x1c], edx
test edx, edx
jne 0x48e7d4
lea esi, [eax + 0xe]
mov ebx, dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x48e792
test edi, edi
je 0x48e792
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 0x48e7a2
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x18]
test ebx, ebx
je 0x48e7b6
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x48e911
cmp byte [ebp - 1], 0
je 0x48e905
pop edi
pop esi
mov eax, 0x1779
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x41f]
mov dword [ebp - 0x14], esi
lea ecx, [edx + 0x41f]
cmp edx, eax
ja 0x48e7ef
cmp ecx, ebx
jb 0x48e7ef
sub ebx, edx
jmp 0x48e84d
movaps xmm1, xmmword [str.gggggggggggggggg]
lea ecx, [ebx + 0x30]
lea eax, [edx + 0x10]
mov dword [ebp - 0x10], 0x10
sub ebx, edx
mov dword [ebp - 0x14], 0x400
nop dword [eax]
sub dword [ebp - 0x10], 1
lea ecx, [ecx + 0x40]
movups xmm0, xmmword [ecx - 0x70]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [ebx + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
jne 0x48e810
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx]
mov edx, 0x420
sub edx, eax
nop word [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
sub edx, 1
jne 0x48e860
mov ebx, dword [ebp - 0x1c]
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 0x48e895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48e8a4
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]
test esi, esi
jne 0x48e777
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x14]
shl eax, 2
push eax
push dword [ebx + 0x18]
push dword [ebp - 8]
call fcn.004abd70
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 0x48e8f3
push eax
push esi
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 0x48e795
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