Function at 0x6ba770
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x58], 0
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x44]
je 0x6ba863
mov dword [esp + 0xc], edi
cmp dword [esp + 0x44], 8
jl 0x6ba828
mov ebx, dword [esp + 0x44]
nop word cs:[eax + eax]
xor ecx, dword [ebp]
xor ecx, dword [esp + 0x18]
xor edx, dword [ebp + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
xor edx, dword [esp + 0x1c]
mov dword [esp + 8], edx
add ebx, 0xfffffff8
add ebp, 8
push 1
push dword [esp + 0x4c]
lea ecx, [esp + 0xc]
push ecx
mov edi, eax
call fcn.006b94c0
mov eax, edi
add esp, 0xc
mov ecx, dword [esp + 4]
xor ecx, dword [esp + 0x20]
mov dword [esi], ecx
mov edx, dword [esp + 8]
xor edx, edi
mov dword [esi + 4], edx
add esi, 8
cmp dword [esp + 0xc], 0xf
ja 0x6ba7d0
mov dword [esp + 0xc], ebx
mov dword [esp], ecx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x6ba923
mov dword [esp + 0x10], eax
xor eax, eax
lea ecx, [ebx - 1]
cmp ecx, 6
ja case.default.0x6ba84f
add ebp, ebx
mov dword [esp + 0x14], esi
jmp dword [ecx*4 + 0xa26088]
mov esi, edx
xor ecx, ecx
lea ebx, [esp + 4]
jmp 0x6baa35
cmp edi, 9
mov dword [esp + 0xc], edi
jl 0x6ba95b
mov dword [esp + 0x10], eax
nop word cs:[eax + eax]
mov dword [esp + 0x14], esi
mov ebx, ecx
mov edi, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov eax, dword [ebp]
mov dword [esp], eax
xor eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov esi, dword [ebp + 4]
mov eax, esi
xor eax, dword [esp + 0x10]
mov dword [esp + 8], eax
lea eax, [ecx - 8]
mov dword [esp + 0xc], eax
add ebp, 8
push 0
push dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
call fcn.006b94c0
mov ecx, dword [esp + 0xc]
mov edx, esi
mov esi, dword [esp + 0x20]
add esp, 0xc
xor ebx, dword [esp + 4]
xor ebx, dword [esp + 0x18]
xor edi, dword [esp + 8]
xor edi, dword [esp + 0x1c]
mov byte [esi], bl
mov byte [esi + 1], bh
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
shr ebx, 0x18
mov byte [esi + 3], bl
mov ebx, edi
mov byte [esi + 4], bl
mov byte [esi + 5], bh
mov eax, edi
shr eax, 0x10
mov byte [esi + 6], al
shr ebx, 0x18
mov byte [esi + 7], bl
add esi, 8
cmp dword [esp + 0x24], 0x10
ja 0x6ba880
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
jmp 0x6ba967
mov eax, edx
mov dword [esp + 0x10], eax
mov edi, edx
mov eax, edx
shr eax, 0x18
mov dl, al
mov eax, dword [esp]
mov esi, eax
shr esi, 0x10
mov dword [esp + 0xc], esi
mov bh, ah
mov bl, al
mov esi, edx
mov edx, eax
mov ecx, dword [esp + 0x10]
shr edx, 0x18
shr edi, 0x10
mov ebp, esi
mov eax, esi
mov ch, ah
jmp 0x6baa96
test edi, edi
mov edi, dword [esp + 0x4c]
je 0x6bab0d
mov dword [esp + 0x14], esi
mov ebx, ecx
mov esi, edx
mov edx, dword [ebp]
mov ecx, dword [esp + 0x20]
mov dword [esp], edx
xor ecx, edx
mov dword [esp + 4], ecx
mov ebp, dword [ebp + 4]
xor eax, ebp
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 0
push dword [esp + 0x4c]
push eax
call fcn.006b94c0
add esp, 0xc
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp eax, 7
ja case.default.0x6ba9c7
xor ebx, dword [esp + 4]
xor ebx, dword [esp + 0x18]
mov edx, ebx
mov ebx, ecx
mov ecx, esi
xor ecx, dword [esp + 8]
xor ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add esi, ebx
jmp dword [eax*4 + 0xa260a4]
mov ebx, dword [esp]
jmp 0x6bab06
mov esi, edx
xor ecx, ecx
lea ebx, [esp + 4]
jmp 0x6baa21
lea ebx, [esp + 4]
jmp 0x6baa15
xor ecx, ecx
lea ebx, [esp + 4]
jmp 0x6baa41
mov esi, edx
xor ecx, ecx
lea ebx, [esp + 4]
jmp 0x6baa2b
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x10
movzx ecx, byte [ebp - 1]
dec ebp
shl ecx, 8
or eax, ecx
lea ebx, [esp + 4]
movzx ecx, byte [ebp - 1]
dec ebp
or eax, ecx
mov esi, edx
mov ecx, eax
movzx eax, byte [ebp - 1]
dec ebp
shl eax, 0x18
movzx edx, byte [ebp - 1]
dec ebp
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp - 1]
dec ebp
shl edx, 8
or eax, edx
movzx edx, byte [ebp - 1]
or eax, edx
mov edx, esi
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
xor ebp, eax
xor ebp, dword [esp]
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x1c]
xor eax, ecx
xor eax, edx
mov dword [esp + 8], eax
push 1
push dword [esp + 0x4c]
push ebx
call fcn.006b94c0
add esp, 0xc
mov ebx, dword [esp + 0x20]
xor ebx, dword [esp + 4]
mov eax, ebx
shr eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esi], ebx
mov edx, ebx
shr edx, 0x18
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 8]
mov edi, ecx
shr edi, 0x10
mov dword [esi + 4], ecx
mov ebp, ecx
shr ebp, 0x18
mov esi, dword [esp + 0x4c]
mov byte [esi], bl
mov byte [esi + 1], bh
mov eax, dword [esp + 0xc]
mov byte [esi + 2], al
mov byte [esi + 3], dl
mov byte [esi + 4], cl
mov byte [esi + 5], ch
mov eax, edi
mov edi, esi
mov byte [esi + 6], al
mov edx, ebp
jmp 0x6bab31
mov ebx, dword [esp]
jmp 0x6baaec
mov ebx, dword [esp]
jmp 0x6baaf9
mov ebx, dword [esp]
jmp 0x6baaf0
mov eax, ecx
shr eax, 0x18
mov byte [esi - 1], al
dec esi
mov ebx, dword [esp]
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
jmp 0x6baae8
mov ebx, dword [esp]
jmp 0x6bab02
mov ebx, dword [esp]
mov byte [esi - 1], ch
dec esi
mov byte [esi - 1], cl
dec esi
mov eax, edx
shr eax, 0x18
mov byte [esi - 1], al
dec esi
mov eax, edx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov byte [esi - 1], dh
dec esi
mov byte [esi - 1], dl
mov ecx, ebx
mov edx, ebp
mov byte [edi], cl
mov byte [edi + 1], ch
mov eax, ecx
shr eax, 0x10
mov byte [edi + 2], al
shr ecx, 0x18
mov byte [edi + 3], cl
mov byte [edi + 4], dl
mov byte [edi + 5], dh
mov eax, edx
shr eax, 0x10
mov byte [edi + 6], al
shr edx, 0x18
mov byte [edi + 7], dl
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp]
jmp 0x6bab0b