Function at 0x416510
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548a9f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
call fcn.004160f0
push edi
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x494e41
push 4
push eax
call fcn.00528933
add esp, 0x10
lea eax, [ebp - 0x30]
mov ecx, 0x553ce4
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416590
test dl, dl
je 0x41658c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416590
add eax, 2
add ecx, 2
test dl, dl
jne 0x416570
xor eax, eax
jmp 0x416595
sbb eax, eax
or eax, 1
test eax, eax
je 0x4165b2
push str.ani_format_error
push str.error
call fcn.00521c77
add esp, 8
xor eax, eax
jmp 0x416862
push edi
push 1
lea ebx, [esi + 0xc]
push 1
push ebx
call fcn.00528933
push edi
push 1
push 1
push esi
call fcn.00528933
push edi
push 1
lea eax, [esi + 1]
push 1
push eax
mov dword [ebp - 0x3c], eax
call fcn.00528933
push edi
push 1
lea eax, [esi + 2]
push 1
push eax
call fcn.00528933
add esp, 0x40
lea eax, [esi + 3]
push edi
push 1
push 1
push eax
call fcn.00528933
add esp, 0x10
cmp byte [ebx], 6
jb 0x416614
push edi
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call fcn.00528933
add esp, 0x10
push edi
push 1
lea ebx, [esi + 6]
push 2
push ebx
mov dword [ebp - 0x34], ebx
call fcn.00528933
push edi
push 1
lea eax, [esi + 8]
push 2
push eax
call fcn.00528933
push edi
push 1
lea eax, [esi + 0xa]
push 2
push eax
call fcn.00528933
push edi
push 1
lea eax, [esi + 4]
push 1
push eax
call fcn.00528933
add esp, 0x40
lea eax, [ebp - 0x20]
push edi
push 0xe
push 1
push eax
call fcn.00528933
movsx eax, word [ebx]
add esp, 0x10
mov ecx, esi
push 0x64
push eax
movzx eax, byte [esi]
push eax
call fcn.004161d0
push edi
push 1
lea eax, [esi + 0x10]
push 0x20
push eax
call fcn.00528933
mov al, byte [esi + 0xc]
add esp, 0x10
cmp al, 3
jne 0x4166a0
movsx eax, word [ebx]
push edi
push eax
push 8
push dword [esi + 0x34]
call fcn.00528933
add esp, 0x10
jmp 0x4166ce
cmp al, 4
jb 0x4166ce
xor eax, eax
xor edi, edi
cmp ax, word [ebx]
jge 0x4166ce
nop dword [eax]
push dword [ebp - 0x28]
mov eax, dword [esi + 0x34]
push 1
push 8
lea eax, [eax + edi*8]
push eax
call fcn.00528933
movsx eax, word [ebx]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x4166b0
xor eax, eax
xor edi, edi
cmp ax, word [ebx]
jge 0x4166f0
mov eax, dword [esi + 0x34]
movzx eax, word [eax + edi*8 + 2]
push eax
call fcn.00417590
movsx eax, word [ebx]
inc edi
add esp, 4
cmp edi, eax
jl 0x4166d7
xor edx, edx
mov dword [ebp - 0x24], edx
cmp byte [esi], dl
jbe 0x4167b2
lea ebx, [esi + 0x38]
lea ecx, [esi + 6]
cmp dword [ebx - 0x28], 0
je 0x41679d
xor eax, eax
cmp ax, word [ecx]
jge 0x41679d
mov esi, eax
nop word [eax + eax]
mov eax, dword [ebx]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x41673b
mov ecx, edi
call fcn.004363b0
push 0x20
push edi
call fcn.0052389d
add esp, 8
mov eax, dword [ebx]
push 0x20
mov dword [eax + esi*4], 0
call fcn.00523854
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x416767
mov ecx, eax
call fcn.00436380
mov ecx, eax
jmp 0x416769
xor ecx, ecx
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebx]
movzx eax, byte [eax]
mov ecx, dword [ecx + esi*4]
push eax
push dword [ebp - 0x28]
call fcn.004367c0
mov eax, dword [ebp - 0x34]
inc esi
movsx eax, word [eax]
cmp esi, eax
jl 0x416720
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
movzx eax, byte [esi]
inc edx
add ebx, 4
mov dword [ebp - 0x24], edx
cmp edx, eax
jl 0x416703
lea ebx, [esi + 6]
cmp byte [esi + 0xc], 4
jb 0x4167e7
push dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push 1
push 4
push eax
call fcn.00528933
xor eax, eax
add esp, 0x10
xor ecx, ecx
cmp ax, word [ebx]
jge 0x4167e7
mov eax, dword [esi + 0x34]
xor dword [eax + ecx*8 + 4], 0x14ad
inc ecx
movsx eax, word [ebx]
cmp ecx, eax
jl 0x4167d4
mov al, byte [esi + 3]
xor edi, edi
mov dword [esi + 0x30], edi
test al, al
je 0x41683f
movzx eax, al
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x41685d
movzx ecx, byte [esi + 2]
movsx ebx, word [ebx]
mov dword [ebp - 0x2c], ecx
cmp edi, ebx
jge 0x416833
mov eax, dword [esi + 0x34]
mov edx, ebx
mov ecx, dword [esi + 0x30]
lea eax, [eax + edi*8]
add eax, 4
sub edx, edi
nop dword [eax + eax]
add ecx, dword [eax]
lea eax, [eax + 8]
mov dword [esi + 0x30], ecx
sub edx, 1
jne 0x416820
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
sub eax, 1
mov edi, ecx
mov dword [ebp - 0x24], eax
jne 0x416807
jmp 0x41685d
movsx edx, word [ebx]
test edx, edx
jle 0x41685d
mov eax, dword [esi + 0x34]
xor ecx, ecx
add eax, 4
nop
add ecx, dword [eax]
lea eax, [eax + 8]
mov dword [esi + 0x30], ecx
sub edx, 1
jne 0x416850
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4