Function at 0x436517
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x45c35e
call fcn.004423d0
sub esp, 0x24
push ebx
push esi
mov esi, ecx
call fcn.0043765e
push dword [0x45d3d0]
lea ecx, [esi + 0x54]
push 0
push dword [ebp + 8]
call fcn.0040a61e
mov eax, dword [0x468164]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
mov byte [ebp - 0xd], 3
call fcn.00458a6d
lea eax, [ebp - 0x1c]
push 0x468164
push eax
call fcn.00442c00
test eax, eax
pop ecx
pop ecx
je 0x436588
push str.ani_format_error
push str.error
call fcn.00457f48
pop ecx
pop ecx
xor al, al
jmp 0x43681d
push edi
push 1
pop edi
push edi
lea eax, [ebp - 0xd]
push eax
mov ecx, ebx
call fcn.00458a6d
push edi
push esi
mov ecx, ebx
call fcn.00458a6d
lea eax, [esi + 1]
push edi
push eax
mov ecx, ebx
call fcn.00458a6d
lea eax, [esi + 2]
push edi
push eax
mov ecx, ebx
call fcn.00458a6d
lea eax, [esi + 3]
push edi
push eax
mov ecx, ebx
call fcn.00458a6d
cmp byte [ebp - 0xd], 6
jne 0x4365d8
push 4
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00458a6d
push 2
lea edi, [esi + 6]
push edi
mov ecx, ebx
call fcn.00458a6d
push 2
lea eax, [esi + 8]
push eax
mov ecx, ebx
call fcn.00458a6d
push 2
lea eax, [esi + 0xa]
push eax
mov ecx, ebx
call fcn.00458a6d
push 1
lea eax, [esi + 4]
push eax
mov ecx, ebx
call fcn.00458a6d
push 0xe
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.00458a6d
movsx eax, word [edi]
push 0x64
push eax
movzx eax, byte [esi]
push eax
mov ecx, esi
call fcn.004375cd
push 0x20
lea eax, [esi + 0xc]
push eax
mov ecx, ebx
call fcn.00458a6d
cmp byte [ebp - 0xd], 3
jne 0x436650
movsx eax, word [edi]
shl eax, 3
push eax
push dword [esi + 0x30]
mov ecx, ebx
call fcn.00458a6d
jmp 0x43667e
cmp byte [ebp - 0xd], 4
jb 0x43667e
and dword [ebp + 8], 0
cmp word [edi], 0
jle 0x43667e
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*8]
push 8
push eax
mov ecx, ebx
call fcn.00458a6d
movsx eax, word [edi]
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x436660
and dword [ebp + 8], 0
cmp word [edi], 0
jle 0x4366a5
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 0x436688
and dword [ebp - 0x18], 0
cmp byte [esi], 0
jbe 0x436765
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ecx - 0x28], eax
je 0x436752
cmp word [edi], ax
mov dword [ebp + 8], eax
jle 0x436752
mov eax, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
shl ebx, 2
add eax, ebx
cmp dword [eax], 0
je 0x4366ff
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x4366ff
mov ecx, eax
call fcn.00437afe
push dword [ebp - 0x20]
call fcn.004423ef
pop ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and dword [ebx + eax], 0
push 0x20
call fcn.00442735
pop ecx
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
test eax, eax
je 0x436724
mov ecx, eax
call fcn.00437ae7
jmp 0x436726
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
or dword [ebp - 4], 0xffffffff
mov dword [ebx + edx], eax
movzx eax, byte [esi + 1]
push eax
mov eax, dword [ecx]
push dword [ebp + 0xc]
mov ecx, dword [ebx + eax]
call fcn.0043806e
movsx eax, word [edi]
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x4366d2
mov ebx, dword [ebp + 0xc]
movzx eax, byte [esi]
inc dword [ebp - 0x18]
add dword [ebp - 0x14], 4
cmp dword [ebp - 0x18], eax
jl 0x4366b8
cmp byte [ebp - 0xd], 4
jb 0x4367c7
push 4
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.00458a6d
xor eax, eax
cmp word [edi], ax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jle 0x4367c7
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 + 0xc], ebx
xor ecx, 0x14ad
inc dword [ebp + 8]
mov dword [eax + 4], ecx
movsx eax, word [edi]
cmp dword [ebp + 8], eax
jl 0x436785
mov al, byte [esi + 3]
xor edx, edx
test al, al
mov dword [esi + 0x2c], edx
je 0x436802
movzx eax, al
cmp eax, edx
jle 0x43681a
movsx edi, word [edi]
mov ebx, eax
cmp edx, edi
jge 0x4367f9
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 0x4367ee
dec ebx
movzx edx, byte [esi + 2]
jne 0x4367df
jmp 0x43681a
movsx ecx, word [edi]
cmp ecx, edx
jle 0x43681a
mov eax, dword [esi + 0x30]
add eax, 4
mov edx, dword [eax]
add dword [esi + 0x2c], edx
add eax, 8
dec ecx
jne 0x43680f
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8