Function at 0x80fd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], 0
cmp dword [esp + 0x48], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x80fe93
cmp esi, 8
jb 0x80fdb6
mov ebx, esi
mov esi, eax
nop word cs:[eax + eax]
xor ecx, dword [esi]
xor edx, dword [esi + 4]
add esi, 8
mov dword [esp], ecx
mov dword [esp + 4], edx
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
call sym.adb.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov byte [edi], cl
mov byte [edi + 1], ch
mov eax, ecx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], dl
mov byte [edi + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
add ebx, 0xfffffff8
cmp ebx, 7
ja 0x80fd50
mov eax, esi
mov esi, ebx
test esi, esi
je 0x80fff3
mov ebx, esi
mov esi, eax
mov dword [esp + 0xc], edx
xor eax, eax
lea edx, [ebx - 1]
cmp edx, 6
ja case.default.0x80fde2
mov dword [esp + 8], ecx
add esi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, edx
xor edx, edx
jmp dword [ebx*4 + 0x93f760]
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
dec esi
or eax, ecx
mov ecx, eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x10
or eax, edx
mov ebp, ecx
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 8
or eax, ecx
mov edx, ebp
movzx ecx, byte [esi - 1]
or eax, ecx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
xor eax, ecx
xor edx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, esp
push ebp
push dword [esp + 0x40]
push esi
push eax
call sym.adb.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov byte [edi], cl
mov byte [edi + 1], ch
mov eax, ecx
shr eax, 0x10
mov dword [esp + 8], eax
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov ebp, eax
mov byte [edi + 3], al
mov byte [edi + 4], dl
mov byte [edi + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
mov ebx, edx
shr ebx, 0x18
mov esi, ebx
mov byte [edi + 7], bl
jmp 0x81000b
cmp esi, 8
jb 0x80ff3d
mov dword [esp + 0x10], esi
mov esi, eax
nop word cs:[eax + eax]
mov ebx, ecx
mov dword [esp + 0xc], edx
mov eax, dword [esi]
mov dword [esp + 8], eax
mov ebp, dword [esi + 4]
add esi, 8
mov dword [esp], eax
mov dword [esp + 4], ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
call sym.adb.exe_DES_decrypt3
mov edx, ebp
mov ecx, dword [esp + 0x18]
add esp, 0x10
xor ebx, dword [esp]
mov ebp, dword [esp + 0xc]
xor ebp, dword [esp + 4]
mov byte [edi], bl
mov byte [edi + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
shr ebx, 0x18
mov byte [edi + 3], bl
mov ebx, ebp
mov byte [edi + 4], bl
mov byte [edi + 5], bh
mov eax, ebp
shr eax, 0x10
mov byte [edi + 6], al
shr ebx, 0x18
mov byte [edi + 7], bl
add edi, 8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff8
mov dword [esp + 0x10], eax
cmp eax, 7
ja 0x80feb0
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov eax, esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x80ffcd
mov dword [esp + 0x10], esi
mov esi, ebp
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ebp, ecx
mov dword [esp], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov eax, esp
push esi
mov esi, dword [esp + 0x14]
push dword [esp + 0x40]
push dword [esp + 0x40]
push eax
call sym.adb.exe_DES_decrypt3
add esp, 0x10
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x80ff96
mov ecx, dword [esp + 8]
xor ecx, dword [esp]
mov edx, dword [esp + 0xc]
xor edx, dword [esp + 4]
add edi, esi
jmp dword [eax*4 + 0x93f77c]
mov eax, edx
shr eax, 0x10
mov byte [edi - 1], al
dec edi
mov byte [edi - 1], dh
dec edi
mov byte [edi - 1], dl
dec edi
mov eax, ecx
shr eax, 0x18
mov byte [edi - 1], al
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi - 1], al
dec edi
mov byte [edi - 1], ch
dec edi
mov byte [edi - 1], cl
mov edx, dword [esp + 0x14]
mov ecx, ebp
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 0x81002b
mov eax, ecx
shr eax, 0x10
mov dword [esp + 8], eax
mov ebp, ecx
shr ebp, 0x18
mov eax, edx
shr eax, 0x10
mov esi, edx
shr esi, 0x18
mov ebx, dword [esp + 0x44]
mov byte [ebx], cl
mov byte [ebx + 1], ch
mov ecx, dword [esp + 8]
mov byte [ebx + 2], cl
mov ecx, ebp
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
mov esi, dword [esp + 0x38]
jmp 0x80fe36