Function at 0x6fa03600
Capabilities:
Decompress data using aplib
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.6fa02f00
test eax, eax
je 0x6fa03776
cmp dword [eax + 0x10], 0x6f2d728b
mov esi, eax
lea ecx, [eax + 0x10]
je 0x6fa03780
lea edx, [eax + 0x23b8]
mov eax, ecx
jmp 0x6fa03648
cmp dword [eax], 0x6f2d728b
je 0x6fa03657
add eax, 1
cmp edx, eax
ja 0x6fa03640
cmp ecx, eax
jne 0x6fa038fd
mov ecx, dword [eax + 0x2c]
lea edi, [eax + 0x40]
test ecx, ecx
jne 0x6fa03760
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.6fa1eed0
test eax, eax
jne 0x6fa03a2a
mov eax, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x60]
test eax, eax
je 0x6fa03a6d
mov eax, dword [edi + 8]
add eax, edi
movzx edx, byte [eax]
and edx, 3
cmp dl, 2
jne 0x6fa039e3
mov ecx, dword [esp + 0x3c]
add eax, 0x20
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.6faa4e50
test eax, eax
jne 0x6fa0399c
test ebp, ebp
je 0x6fa03701
mov dword [esp], ebp
call fcn.6faa4ec8
mov ebp, dword [edi + 0xc]
mov dword [esp], ebp
call fcn.6faa4ea0
test eax, eax
mov dword [ebx + 0x60], eax
je 0x6fa03ab2
mov edx, dword [edi + 8]
mov dword [esp + 8], ebp
mov dword [esp], eax
add edx, edi
mov dword [esp + 4], edx
call fcn.6faa4e90
mov ebp, dword [edi + 0x14]
test ebp, ebp
jne 0x6fa03791
mov eax, dword [esi]
lea edx, [eax - 1]
xor eax, eax
test edx, edx
mov dword [esi], edx
jne 0x6fa03751
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 0x6fa037d0
jbe 0x6fa03665
mov eax, 0xffffffff
jmp 0x6fa03751
mov eax, ecx
mov ecx, dword [eax + 0x2c]
lea edi, [eax + 0x40]
test ecx, ecx
jne 0x6fa03760
jmp 0x6fa03665
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x6fa037a3
mov dword [esp], eax
call fcn.6faa4ec8
mov ebp, dword [edi + 0x14]
mov dword [esp], ebp
call fcn.6faa4ea0
test eax, eax
mov dword [ebx + 0x68], eax
je 0x6fa03b6c
add edi, dword [edi + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.6faa4e90
jmp 0x6fa03733
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 0x6fa03665
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 0x6fa03968
mov ecx, dword [esp + 0x48]
cmp ecx, 6
jbe 0x6fa03968
cmp dword [esp + 0x44], 2
jbe 0x6fa038c5
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 0x6fa03891
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 0x6fa03665
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 0x6fa03665
movzx edx, byte [ecx + 1]
xor byte [ebp + 1], dl
cmp dword [esp + 0x44], 1
je 0x6fa03665
movzx edx, byte [ecx + 2]
xor byte [ebp + 2], dl
jmp 0x6fa03665
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x6fa03b23
movzx eax, byte [eax]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6fa03b7e
mov edx, 4
mov eax, ebx
call fcn.6fa01410
cmp esi, 1
je 0x6fa03b16
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 0x6fa03751
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 0x6fa03980
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
jmp 0x6fa03665
test ebp, ebp
je 0x6fa03af4
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6fa03b7e
mov edx, 4
mov eax, ebx
call fcn.6fa01410
cmp esi, 1
je 0x6fa03ada
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a08
jmp 0x6fa03941
test ebp, ebp
je 0x6fa03b05
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6fa03b7e
mov edx, 4
mov eax, ebx
call fcn.6fa01410
cmp esi, 1
je 0x6fa03ae7
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a04
jmp 0x6fa03941
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x6fa03b4e
movzx ebx, byte [edx]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6fa03b7e
mov dword [esp], eax
call fcn.6fa1cfc0
cmp ebx, 1
je 0x6fa03b34
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29fc
jmp 0x6fa03941
test ebp, ebp
je 0x6fa03b5d
movzx ebx, byte [ebp]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6fa03b7e
mov dword [esp], 1
call fcn.6fa1cfc0
cmp ebx, 1
je 0x6fa03b41
mov edx, dword [0x6fac26e0]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ff
jmp 0x6fa03941
mov esi, dword [0x6fac2a8c]
call esi
mov ecx, 0x10028dd
mov edx, dword [eax]
mov eax, ebx
call fcn.6fa07890
call esi
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x6fa03751
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa039d6
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03a1d
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6fa039b0
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6fa039f7
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03939
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6fa03913
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03a60
mov edx, dword [0x6fac26e8]
mov edx, dword [edx]
jmp 0x6fa03aa5
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6fa03a3e
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6fa03a7f
mov esi, dword [0x6fac2a8c]
call esi
mov ecx, 0x10028ce
jmp 0x6fa03abf
mov dword [esp], 1
call fcn.6faa4ee8
lea esi, [esi]