Function at 0x45f9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x48], 0
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
je 0x45fb21
cmp ebp, 8
jb 0x45fa4d
xor ecx, dword [eax]
xor edx, dword [eax + 4]
lea eax, [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
push dword [esp + 0x40]
push dword [esp + 0x40]
push esi
lea ecx, [esp + 0xc]
push ecx
mov ebx, eax
call sym.adb.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp]
mov edx, dword [esp + 4]
add ebp, 0xfffffff8
mov eax, ecx
mov byte [edi], cl
mov byte [edi + 1], ch
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
mov byte [edi + 4], dl
mov byte [edi + 5], dh
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
mov eax, ebx
cmp ebp, 7
ja 0x45f9e0
mov ebp, dword [esp + 0x34]
and ebp, 7
test ebp, ebp
je 0x45fc77
lea ebx, [ebp - 1]
mov esi, eax
xor eax, eax
mov dword [esp + 8], edx
cmp ebx, 6
ja case.default.0x45fa75
mov dword [esp + 0xc], ecx
add esi, ebp
xor ecx, ecx
xor ebp, ebp
xor edx, edx
jmp dword [ebx*4 + 0x58cb88]
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
mov ebp, ecx
shl edx, 0x10
or eax, edx
movzx ecx, byte [esi - 1]
dec esi
mov edx, ebp
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 1]
or eax, ecx
mov ecx, dword [esp + 0xc]
mov ebp, dword [esp + 0x40]
xor edx, dword [esp + 8]
xor eax, ecx
mov dword [esp], eax
mov eax, esp
mov dword [esp + 4], edx
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push eax
call sym.adb.exe_DES_encrypt3
add esp, 0x10
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x44]
mov eax, ecx
mov byte [edi], cl
mov byte [edi + 1], ch
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
mov byte [edi + 4], dl
mov byte [edi + 5], dh
shr eax, 0x10
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 7], al
jmp 0x45fc7b
cmp ebp, 8
jb 0x45fbd9
mov dword [esp + 8], eax
nop
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ebp
mov ebx, ecx
mov dword [esp + 0x10], edx
mov ebp, dword [eax + 4]
mov esi, dword [eax]
add eax, 8
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], ebp
sub esp, 0x10
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call sym.adb.exe_DES_decrypt3
mov edx, ebp
mov ebp, dword [esp + 0x1c]
mov ecx, esi
add esp, 0x10
mov esi, dword [esp + 0x10]
xor ebx, dword [esp]
add ebp, 0xfffffff8
xor esi, dword [esp + 4]
mov eax, ebx
mov byte [edi], bl
mov byte [edi + 1], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [edi + 2], al
mov byte [edi + 3], bl
mov eax, esi
mov ebx, esi
mov byte [edi + 4], bl
mov byte [edi + 5], bh
shr eax, 0x10
shr ebx, 0x18
mov byte [edi + 6], al
mov byte [edi + 7], bl
add edi, 8
cmp ebp, 7
ja 0x45fb30
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 8]
and ebp, 7
test ebp, ebp
je 0x45fc7b
mov dword [esp + 0xc], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
sub esp, 0x10
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp], ecx
call sym.adb.exe_DES_decrypt3
add esp, 0x10
lea eax, [ebp - 1]
cmp eax, 6
ja case.default.0x45fc3c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
add edi, ebp
xor ecx, dword [esp]
xor edx, dword [esp + 4]
jmp dword [eax*4 + 0x58cba4]
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 + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x45fc7b
mov ebx, dword [esp + 0x44]
mov eax, ecx
mov byte [ebx], cl
mov byte [ebx + 1], ch
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov byte [ebx + 5], dh
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
jmp 0x45fac1