Function at 0x80f980
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
cmp dword [esp + 0x40], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x80faee
cmp edi, 8
jb 0x80fa0f
mov ebx, dword [esp + 0x38]
nop word cs:[eax + eax]
mov esi, dword [esp]
xor ecx, dword [esi]
xor edx, dword [esi + 4]
lea eax, [esi + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea ecx, [esp + 4]
mov edx, ebx
push 1
call fcn.0080e8c0
add esp, 4
mov ecx, dword [esp + 4]
mov dword [ebp], ecx
mov edx, dword [esp + 8]
mov dword [ebp + 4], edx
add ebp, 8
add edi, 0xfffffff8
cmp edi, 7
ja 0x80f9d0
test edi, edi
je 0x80fc32
mov dword [esp + 0x10], edx
xor eax, eax
lea ebx, [edi - 1]
cmp ebx, 6
ja case.default.0x80fa36
mov dword [esp + 0xc], ecx
add dword [esp], edi
xor ecx, ecx
xor edi, edi
xor edx, edx
jmp dword [ebx*4 + 0x93f728]
mov ecx, dword [esp]
movzx eax, byte [ecx - 1]
dec ecx
mov dword [esp], ecx
shl eax, 0x10
mov edx, dword [esp]
movzx ecx, byte [edx - 1]
dec edx
mov dword [esp], edx
shl ecx, 8
or eax, ecx
mov edx, dword [esp]
movzx ecx, byte [edx - 1]
dec edx
mov dword [esp], edx
or eax, ecx
mov ecx, eax
mov edx, dword [esp]
movzx eax, byte [edx - 1]
dec edx
mov dword [esp], edx
shl eax, 0x18
mov esi, dword [esp]
movzx edx, byte [esi - 1]
dec esi
mov dword [esp], esi
shl edx, 0x10
or eax, edx
mov edi, ecx
mov edx, dword [esp]
movzx ecx, byte [edx - 1]
dec edx
mov dword [esp], edx
shl ecx, 8
or eax, ecx
mov edx, edi
mov ecx, dword [esp]
movzx ecx, byte [ecx - 1]
or eax, ecx
mov ecx, dword [esp + 0xc]
xor eax, ecx
mov dword [esp + 4], eax
xor edx, dword [esp + 0x10]
mov dword [esp + 8], edx
lea ecx, [esp + 4]
mov edx, dword [esp + 0x38]
push 1
call fcn.0080e8c0
add esp, 4
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 0x10
mov dword [esp], eax
mov dword [ebp], ecx
mov edi, ecx
shr edi, 0x18
mov edx, dword [esp + 8]
mov eax, edx
shr eax, 0x10
mov dword [ebp + 4], edx
jmp 0x80fc44
cmp edi, 8
jb 0x80fb83
nop word [eax + eax]
mov dword [esp + 0x10], ebp
mov ebx, ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp]
mov esi, dword [eax]
mov dword [esp + 4], esi
mov ebp, dword [eax + 4]
add eax, 8
mov dword [esp], eax
mov dword [esp + 8], ebp
lea ecx, [esp + 4]
mov edx, dword [esp + 0x38]
push 0
call fcn.0080e8c0
mov edx, ebp
mov ecx, esi
mov ebp, dword [esp + 0x14]
add esp, 4
xor ebx, dword [esp + 4]
mov esi, edi
mov edi, dword [esp + 0xc]
xor edi, dword [esp + 8]
mov byte [ebp], bl
mov byte [ebp + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 2], al
shr ebx, 0x18
mov byte [ebp + 3], bl
mov ebx, edi
mov edi, esi
mov byte [ebp + 4], bl
mov byte [ebp + 5], bh
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 6], al
shr ebx, 0x18
mov byte [ebp + 7], bl
add ebp, 8
add edi, 0xfffffff8
cmp edi, 7
ja 0x80fb00
mov ebx, dword [esp + 0x3c]
test edi, edi
je 0x80fc0c
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp]
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov esi, eax
mov dword [esp + 8], eax
lea ecx, [esp + 4]
mov edx, dword [esp + 0x38]
push 0
call fcn.0080e8c0
add esp, 4
lea eax, [edi - 1]
cmp eax, 6
ja case.default.0x80fbd5
mov ecx, dword [esp + 0xc]
xor ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
xor edx, dword [esp + 8]
add ebp, edi
jmp dword [eax*4 + 0x93f744]
mov eax, edx
shr eax, 0x10
mov byte [ebp - 1], al
dec ebp
mov byte [ebp - 1], dh
dec ebp
mov byte [ebp - 1], dl
dec ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 1], al
dec ebp
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 1], al
dec ebp
mov byte [ebp - 1], ch
dec ebp
mov byte [ebp - 1], cl
mov edx, esi
mov ecx, dword [esp + 0x14]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [ebx + 6], al
shr edx, 0x18
jmp 0x80fc68
mov eax, ecx
shr eax, 0x10
mov dword [esp], eax
mov edi, ecx
shr edi, 0x18
mov eax, edx
shr eax, 0x10
mov esi, edx
shr esi, 0x18
mov ebx, dword [esp + 0x3c]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov ecx, dword [esp]
mov byte [ebx + 2], cl
mov ecx, edi
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
mov byte [ebx + 6], al
mov edx, esi
mov byte [ebx + 7], dl
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x80faa9