Function at 0x436aff
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45c386
call fcn.004423d0
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call fcn.0043765e
mov ebx, dword [ebp + 8]
mov eax, dword [0x468164]
push ebx
push 1
pop edi
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
mov byte [ebp - 0xd], 3
call fcn.004437f9
lea eax, [ebp - 0x1c]
push 0x468164
push eax
call fcn.00442c00
add esp, 0x18
test eax, eax
je 0x436b62
push str.ani_format_error
push str.error
call fcn.00457f48
pop ecx
pop ecx
xor eax, eax
jmp 0x436e19
push ebx
push edi
lea eax, [ebp - 0xd]
push edi
push eax
call fcn.004437f9
push ebx
push edi
push edi
push esi
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 1]
push edi
push eax
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 2]
push edi
push eax
call fcn.004437f9
add esp, 0x40
push ebx
push edi
lea eax, [esi + 3]
push edi
push eax
call fcn.004437f9
push ebx
push 1
lea edi, [esi + 6]
push 2
push edi
call fcn.004437f9
add esp, 0x20
cmp byte [ebp - 0xd], 6
jne 0x436bc6
push ebx
push 1
lea eax, [ebp + 8]
push 4
push eax
call fcn.004437f9
add esp, 0x10
push ebx
push 1
lea eax, [esi + 8]
push 2
push eax
call fcn.004437f9
push ebx
push 1
lea eax, [esi + 0xa]
push 2
push eax
call fcn.004437f9
push ebx
push 1
lea eax, [esi + 4]
push 1
push eax
call fcn.004437f9
push ebx
push 0xe
lea eax, [ebp - 0x30]
push 1
push eax
call fcn.004437f9
movsx eax, word [edi]
add esp, 0x40
push 0x64
push eax
movzx eax, byte [esi]
push eax
mov ecx, esi
call fcn.004375cd
push ebx
push 1
lea eax, [esi + 0xc]
push 0x20
push eax
call fcn.004437f9
add esp, 0x10
cmp byte [ebp - 0xd], 3
jne 0x436c3d
movsx eax, word [edi]
push ebx
push eax
push 8
push dword [esi + 0x30]
call fcn.004437f9
add esp, 0x10
jmp 0x436c6f
cmp byte [ebp - 0xd], 4
jb 0x436c6f
and dword [ebp + 8], 0
cmp word [edi], 0
jle 0x436c6f
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 8]
push ebx
push 1
lea eax, [eax + ecx*8]
push 8
push eax
call fcn.004437f9
movsx eax, word [edi]
add esp, 0x10
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x436c4d
and dword [ebp + 8], 0
cmp word [edi], 0
jle 0x436c96
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*8 + 2]
push eax
call fcn.00437831
movsx eax, word [edi]
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
pop ecx
jl 0x436c79
and dword [ebp - 0x18], 0
cmp byte [esi], 0
jbe 0x436d5d
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ecx - 0x28], eax
je 0x436d4a
cmp word [edi], ax
mov dword [ebp + 8], eax
jle 0x436d4a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
je 0x436ced
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x436ced
mov ecx, eax
call fcn.00437afe
push dword [ebp - 0x20]
call fcn.004423ef
pop ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
and dword [eax + ecx*4], 0
push 0x20
call fcn.00442735
pop ecx
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
test eax, eax
je 0x436d15
mov ecx, eax
call fcn.00437ae7
jmp 0x436d17
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ecx + edx*4], eax
movzx eax, byte [esi + 1]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, edx
mov ecx, dword [eax + ecx*4]
push ebx
call fcn.00437c56
movsx eax, word [edi]
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x436cc3
movzx eax, byte [esi]
inc dword [ebp - 0x18]
add dword [ebp - 0x14], 4
cmp dword [ebp - 0x18], eax
jl 0x436ca9
cmp byte [ebp - 0xd], 4
jb 0x436dc3
push ebx
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.004437f9
xor eax, eax
add esp, 0x10
cmp word [edi], ax
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
jle 0x436dc3
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x30]
movzx edx, word [eax + ecx*8 + 2]
movzx ebx, byte [eax + ecx*8]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 4]
xor edx, 0x4728
mov dword [ebp - 0x20], ecx
add ecx, edx
xor ebx, 0x1381
add ebx, ecx
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x18], ebx
xor ecx, 0x14ad
inc dword [ebp + 8]
mov dword [eax + 4], ecx
movsx eax, word [edi]
cmp dword [ebp + 8], eax
jl 0x436d81
mov al, byte [esi + 3]
xor edx, edx
test al, al
mov dword [esi + 0x2c], edx
je 0x436dfe
movzx eax, al
cmp eax, edx
jle 0x436e16
movsx edi, word [edi]
mov ebx, eax
cmp edx, edi
jge 0x436df5
mov eax, dword [esi + 0x30]
lea ecx, [eax + edx*8 + 4]
mov eax, edi
sub eax, edx
mov edx, dword [ecx]
add dword [esi + 0x2c], edx
add ecx, 8
dec eax
jne 0x436dea
dec ebx
movzx edx, byte [esi + 2]
jne 0x436ddb
jmp 0x436e16
movsx ecx, word [edi]
cmp ecx, edx
jle 0x436e16
mov eax, dword [esi + 0x30]
add eax, 4
mov edx, dword [eax]
add dword [esi + 0x2c], edx
add eax, 8
dec ecx
jne 0x436e0b
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4