Function at 0x6fa9e0f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
cmp dword [ebx + 0x240], 0x10
ja 0x6fa9e170
mov eax, dword [ebx + 0x234]
mov dword [esp], eax
call fcn.6fa1c390
test eax, eax
mov esi, eax
jne 0x6fa9e175
mov eax, dword [ebx + 0x23c]
test eax, eax
jne 0x6fa9e160
mov eax, dword [ebx + 0x240]
test eax, eax
jne 0x6fa9e180
mov eax, dword [ebx + 0x24c]
or eax, dword [ebx + 0x248]
je 0x6fa9e3f0
lea eax, [ebx + 0x224]
lea edi, [ebx + 0x204]
lea ebp, [ebx + 0x1f4]
mov dword [esp + 0x18], eax
jmp 0x6fa9e217
cmp eax, 1
je 0x6fa9e400
lea esi, [esi]
mov esi, 0x10
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [ebx + 0x238]
lea ecx, [ebx + 0x224]
lea edi, [ebx + 0x204]
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x6fa9e1d0
cmp eax, 0xc
jne 0x6fa9e1d0
mov eax, dword [ebx + 0x224]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x204], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov dword [ebx + 0x210], 0x1000000
jmp 0x6fa9e290
lea ebp, [ebx + 0x1f4]
mov dword [esp + 0x1c], eax
lea ecx, [ebp + eax]
mov edx, ebp
movzx eax, byte [edx + 0x30]
xor byte [edx], al
add edx, 1
cmp edx, ecx
jne 0x6fa9e1e0
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
shld edx, eax, 3
shl eax, 3
add dword [ebx + 0x248], eax
adc dword [ebx + 0x24c], edx
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6fa15fa0
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 8
mov dword [esp], eax
call fcn.6fa1cdf0
mov eax, dword [ebx + 0x248]
mov edx, dword [ebx + 0x24c]
bswap eax
bswap edx
mov dword [ebx + 0x230], eax
mov dword [ebx + 0x22c], edx
mov eax, ebp
lea esi, [esi]
movzx edx, byte [eax + 0x30]
xor byte [eax], dl
add eax, 1
cmp edi, eax
jne 0x6fa9e250
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6fa15fa0
mov eax, dword [ebp]
mov dword [edi], eax
mov eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], ebp
call fcn.6fa1cdf0
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x214], edx
mov edx, dword [edi + 4]
mov dword [ebx + 0x218], edx
mov edx, dword [edi + 8]
mov dword [ebx + 0x21c], edx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0x220], edx
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.6fa1cdf0
mov dword [ebx + 0x240], 0
mov dword [ebx + 0x248], 0
mov dword [ebx + 0x24c], 0
mov dword [ebx + 0x23c], 1
mov eax, dword [esp + 0x48]
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x6fa9e420
lea eax, [ebx + 0x1f4]
mov ebp, dword [esp + 0x44]
xor edi, edi
mov dword [esp + 0x1c], esi
mov esi, edi
mov edi, ebx
mov ebx, eax
lea esi, [esi]
lea edi, [edi]
xor eax, eax
mov edx, dword [ebp + eax]
xor dword [edi + eax + 0x1f4], edx
add eax, 4
cmp eax, 0x10
jne 0x6fa9e322
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.6fa15fa0
add dword [edi + 0x248], 0x80
adc dword [edi + 0x24c], 0
add esi, 0x10
add ebp, 0x10
cmp dword [esp + 0x18], esi
ja 0x6fa9e320
mov ebx, edi
mov edi, esi
add dword [esp + 0x44], edi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x48]
lea eax, [ebx + 0x1f4]
mov dword [esp + 0x18], eax
sub ebp, edi
add ebp, dword [esp + 0x44]
cmp dword [esp + 0x48], edi
jbe 0x6fa9e175
mov edi, dword [esp + 0x44]
jmp 0x6fa9e398
cmp edi, ebp
je 0x6fa9e175
mov eax, dword [ebx + 0x240]
add edi, 1
movzx ecx, byte [edi - 1]
lea edx, [eax + 1]
mov dword [ebx + 0x240], edx
xor byte [ebx + eax + 0x1f4], cl
cmp edx, 0x10
jne 0x6fa9e390
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6fa15fa0
add dword [ebx + 0x248], 0x80
mov dword [ebx + 0x240], 0
adc dword [ebx + 0x24c], 0
jmp 0x6fa9e390
mov esi, 1
jmp 0x6fa9e175
mov edx, dword [ebx + 0x240]
cmp edx, 0xf
jg 0x6fa9e170
xor edi, edi
test edx, edx
jne 0x6fa9e36a
jmp 0x6fa9e2ef
xor edi, edi
jmp 0x6fa9e36a