Function at 0x6fa035d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov dword [esp + 0x3c], edx
call fcn.6fa02ed0
test eax, eax
je 0x6fa03746
cmp dword [eax + 0x10], 0x6f2d728b
mov esi, eax
lea ecx, [eax + 0x10]
je 0x6fa03750
lea edx, [eax + 0x23b8]
mov eax, ecx
jmp 0x6fa03618
cmp dword [eax], 0x6f2d728b
je 0x6fa03627
add eax, 1
cmp edx, eax
ja 0x6fa03610
cmp ecx, eax
jne 0x6fa038cd
mov ecx, dword [eax + 0x2c]
lea edi, [eax + 0x40]
test ecx, ecx
jne 0x6fa03730
add edi, dword [eax + 0x38]
lea eax, [ebx + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x20]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
add eax, edi
mov dword [esp], eax
call fcn.6fa1ece0
test eax, eax
jne 0x6fa039fa
mov eax, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x60]
test eax, eax
je 0x6fa03a3d
mov eax, dword [edi + 8]
add eax, edi
movzx edx, byte [eax]
and edx, 3
cmp dl, 2
jne 0x6fa039b3
mov ecx, dword [esp + 0x3c]
add eax, 0x20
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.6faa4c60
test eax, eax
jne 0x6fa0396c
test ebp, ebp
je 0x6fa036d1
mov dword [esp], ebp
call fcn.6faa4cd8
mov ebp, dword [edi + 0xc]
mov dword [esp], ebp
call fcn.6faa4cb0
test eax, eax
mov dword [ebx + 0x60], eax
je 0x6fa03a82
mov edx, dword [edi + 8]
mov dword [esp + 8], ebp
mov dword [esp], eax
add edx, edi
mov dword [esp + 4], edx
call fcn.6faa4ca0
mov ebp, dword [edi + 0x14]
test ebp, ebp
jne 0x6fa03761
mov eax, dword [esi]
lea edx, [eax - 1]
xor eax, eax
test edx, edx
mov dword [esi], edx
jne 0x6fa03721
mov dword [esp + 0x3c], eax
mov dword [esp], esi
call dword [0x6fac2968]
mov eax, dword [esp + 0x3c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [eax + 0x28]
lea ebp, [edi + ecx]
mov dword [esp + 0x40], ecx
cmp byte [ebp], 1
je 0x6fa037a0
jbe 0x6fa03635
mov eax, 0xffffffff
jmp 0x6fa03721
mov eax, ecx
mov ecx, dword [eax + 0x2c]
lea edi, [eax + 0x40]
test ecx, ecx
jne 0x6fa03730
jmp 0x6fa03635
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x6fa03773
mov dword [esp], eax
call fcn.6faa4cd8
mov ebp, dword [edi + 0x14]
mov dword [esp], ebp
call fcn.6faa4cb0
test eax, eax
mov dword [ebx + 0x68], eax
je 0x6fa03b3c
add edi, dword [edi + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.6faa4ca0
jmp 0x6fa03703
movzx edx, byte [ebp + 2]
lea ecx, [ebp + 4]
mov dword [esp + 0x54], ecx
mov ecx, edx
movzx edx, byte [ebp + 3]
shl ecx, 8
shl edx, 0x10
or edx, ecx
movzx ecx, byte [ebp + 1]
or edx, ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], ecx
add ecx, edi
test edx, edx
mov dword [esp + 0x50], ecx
lea ecx, [edx - 1]
mov dword [esp + 0x44], ecx
je 0x6fa03635
mov ecx, dword [esp + 0x40]
add ecx, 0x44
mov dword [esp + 0x5c], ecx
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
lea edx, [ecx + 0x40]
add ecx, 0x44
mov dword [esp + 0x58], edx
add edx, eax
cmp dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
setge byte [esp + 0x5c]
add ecx, 0x48
cmp dword [esp + 0x58], ecx
setge cl
or cl, byte [esp + 0x5c]
mov byte [esp + 0x40], cl
mov ecx, dword [esp + 0x4c]
or ecx, edx
and ecx, 3
sete cl
test byte [esp + 0x40], cl
je 0x6fa03938
mov ecx, dword [esp + 0x48]
cmp ecx, 6
jbe 0x6fa03938
cmp dword [esp + 0x44], 2
jbe 0x6fa03895
lea ebp, [ecx - 4]
mov dword [esp + 0x58], esi
xor ecx, ecx
shr ebp, 2
add ebp, 1
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x4c]
mov esi, dword [edx + ecx*4]
xor esi, dword [ebp + ecx*4]
mov dword [edx + ecx*4], esi
add ecx, 1
cmp ecx, dword [esp + 0x40]
jb 0x6fa03861
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x58]
shl ebp, 2
add dword [esp + 0x54], ebp
add dword [esp + 0x50], ebp
sub dword [esp + 0x44], ebp
cmp ebp, dword [esp + 0x48]
je 0x6fa03635
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
movzx edx, byte [ecx]
xor byte [ebp], dl
mov edx, dword [esp + 0x44]
test edx, edx
je 0x6fa03635
movzx edx, byte [ecx + 1]
xor byte [ebp + 1], dl
cmp dword [esp + 0x44], 1
je 0x6fa03635
movzx edx, byte [ecx + 2]
xor byte [ebp + 2], dl
jmp 0x6fa03635
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x6fa03af3
movzx eax, byte [eax]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6fa03b4e
mov edx, 4
mov eax, ebx
call fcn.6fa01410
cmp esi, 1
je 0x6fa03ae6
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ea
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str._s___d:_d_
mov dword [esp], edx
call dword [0x6fac2698]
mov eax, 0xffffffff
jmp 0x6fa03721
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x50]
xor edx, edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], ebx
lea esi, [esi]
movzx ebx, byte [ebp + edx + 4]
xor byte [ecx + edx], bl
add edx, 1
cmp eax, edx
jne 0x6fa03950
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
jmp 0x6fa03635
test ebp, ebp
je 0x6fa03ac4
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6fa03b4e
mov edx, 4
mov eax, ebx
call fcn.6fa01410
cmp esi, 1
je 0x6fa03aaa
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a08
jmp 0x6fa03911
test ebp, ebp
je 0x6fa03ad5
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6fa03b4e
mov edx, 4
mov eax, ebx
call fcn.6fa01410
cmp esi, 1
je 0x6fa03ab7
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a04
jmp 0x6fa03911
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x6fa03b1e
movzx ebx, byte [edx]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6fa03b4e
mov dword [esp], eax
call fcn.6fa1cdd0
cmp ebx, 1
je 0x6fa03b04
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29fc
jmp 0x6fa03911
test ebp, ebp
je 0x6fa03b2d
movzx ebx, byte [ebp]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6fa03b4e
mov dword [esp], 1
call fcn.6fa1cdd0
cmp ebx, 1
je 0x6fa03b11
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ff
jmp 0x6fa03911
mov esi, dword [0x6fac2a8c]
call esi
mov ecx, 0x10028dd
mov edx, dword [eax]
mov eax, ebx
call fcn.6fa07810
call esi
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x6fa03721
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa039a6
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa039ed
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6fa03980
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6fa039c7
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03909
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6fa038e3
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03a30
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03a75
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6fa03a0e
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6fa03a4f
mov esi, dword [0x6fac2a8c]
call esi
mov ecx, 0x10028ce
jmp 0x6fa03a8f
mov dword [esp], 1
call fcn.6faa4cf8
lea esi, [esi]