Function at 0x4a9f64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
push ebx
push edi
push esi
lea edx, [ebp - 0x40]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0x44], edx
mov eax, dword [ecx]
inc dword [ebp + eax*4 - 0x40]
add ecx, 4
sub ebx, 1
jne 0x4a9fef
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp - 0x40]
jne 0x4aa01e
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
xor eax, eax
jmp 0x4aa590
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebx]
mov edi, 1
cmp dword [ebp + edi*4 - 0x40], 0
jne 0x4aa035
inc edi
cmp edi, 0xf
jbe 0x4aa028
mov dword [ebp - 0x48], edi
mov eax, ecx
cmp edi, eax
mov dword [ebp - 0x4c], eax
jbe 0x4aa043
mov ecx, edi
mov ebx, 0xf
cmp dword [ebp + ebx*4 - 0x40], 0
jne 0x4aa054
sub ebx, 1
jne 0x4aa048
mov dword [ebp - 0x50], ebx
mov eax, ecx
cmp ebx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], eax
jae 0x4aa068
mov ecx, ebx
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, eax
cmp ebx, edi
mov dword [ebp - 0x4c], edx
jbe 0x4aa09b
sub ecx, dword [ebp + edi*4 - 0x40]
test ecx, ecx
jge 0x4aa094
mov eax, 0xfffffffd
jmp 0x4aa590
inc edi
add ecx, ecx
cmp ebx, edi
ja 0x4aa082
sub ecx, dword [ebp + ebx*4 - 0x40]
test ecx, ecx
mov dword [ebp - 0x58], ecx
jge 0x4aa0b0
mov eax, 0xfffffffd
jmp 0x4aa590
mov eax, dword [ebp - 0x58]
add dword [ebp + ebx*4 - 0x40], eax
xor edi, edi
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x90]
sub ebx, 1
mov dword [ebp - 0x9c], eax
je 0x4aa0ed
mov ecx, dword [ebp - 0x9c]
add ecx, 4
add edi, dword [ecx - 4]
mov dword [edx], edi
add edx, 4
sub ebx, 1
jne 0x4aa0dd
mov edi, dword [ebp + 8]
mov ecx, edi
xor ebx, ebx
add ecx, 4
mov edi, dword [ecx - 4]
test edi, edi
je 0x4aa116
mov eax, dword [ebp + edi*4 - 0x98]
lea edx, [eax + 1]
mov dword [ebp + edi*4 - 0x98], edx
mov dword [ebp + eax*4 - 0x51c], ebx
inc ebx
mov esi, dword [ebp + 0xc]
cmp esi, ebx
ja 0x4aa0f4
xor ebx, ebx
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x51c]
mov dword [ebp - 0x520], 0xffffffff
mov eax, dword [ebp - 0x54]
neg eax
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x568], eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x50]
jg 0x4aa574
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp + eax*4 - 0x40]
mov ebx, edx
lea esi, [edx - 1]
test ebx, ebx
je 0x4aa56a
mov dword [ebp - 0x570], esi
mov edi, dword [ebp - 0x568]
mov edx, edi
add edx, dword [ebp - 0x54]
cmp edx, eax
jge 0x4aa37a
mov dword [ebp - 0x48], eax
inc dword [ebp - 0x520]
mov edi, edx
mov esi, dword [ebp - 0x50]
sub esi, edx
cmp esi, dword [ebp - 0x4c]
mov dword [ebp - 0x568], edi
jbe 0x4aa1cd
mov ebx, dword [ebp - 0x4c]
mov ecx, ebx
mov dword [ebp - 0x574], ecx
jmp 0x4aa1d5
mov ecx, esi
mov dword [ebp - 0x574], ecx
mov eax, dword [ebp - 0x574]
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x568]
mov ebx, edx
mov ecx, edx
mov edx, 1
shl edx, cl
mov ecx, edx
mov dword [ebp - 0x564], eax
mov eax, dword [ebp - 0x570]
inc eax
cmp eax, ecx
mov dword [ebp - 0x578], ebx
mov edi, dword [ebp - 0x578]
jae 0x4aa269
mov dword [ebp - 0x57c], eax
sub ecx, dword [ebp - 0x57c]
mov eax, dword [ebp - 0x48]
shl eax, 2
lea esi, [ebp - 0x40]
add eax, esi
cmp edi, dword [ebp - 0x574]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x580], eax
jae 0x4aa269
mov dword [ebp - 0x584], ecx
inc edi
mov ecx, dword [ebp - 0x574]
cmp ecx, edi
jbe 0x4aa269
mov edx, dword [ebp - 0x580]
mov ecx, dword [ebp - 0x584]
add ecx, ecx
add edx, 4
cmp ecx, dword [edx]
jbe 0x4aa269
sub ecx, dword [edx]
inc edi
mov esi, dword [ebp - 0x564]
cmp esi, edi
ja 0x4aa253
mov ecx, edi
mov eax, 1
shl eax, cl
mov esi, eax
mov dword [ebp - 0x588], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x28]
mov ecx, dword [ebp - 0x588]
inc ecx
push 8
push ecx
push ebx
mov dword [ebp - 0x58c], edx
mov dword [ebp - 0x564], esi
mov eax, dword [ebp - 0x58c]
call eax
mov ecx, eax
test ecx, ecx
jne 0x4aa2d0
mov dword [ebp - 0x560], ecx
cmp dword [ebp - 0x520], 0
je 0x4aa2c6
mov eax, dword [ebp + 0x24]
push eax
push dword [ebp - 0x55c]
call fcn.004aa8d4
mov eax, 0xfffffffc
jmp 0x4aa590
lea eax, [ecx + 8]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
lea edx, [ecx + 4]
mov dword [ebp + 0x1c], edx
mov dword [ecx + 4], 0
mov ecx, eax
mov edx, dword [ebp - 0x520]
mov dword [ebp + edx*4 - 0x55c], eax
test edx, edx
mov dword [ebp - 0x560], ecx
je 0x4aa364
mov ecx, dword [ebp - 0x520]
mov eax, dword [ebp - 0x56c]
mov dword [ebp + ecx*4 - 0x98], eax
mov edx, dword [ebp - 0x54]
mov bl, dl
mov byte [ebp - 0x593], bl
mov ebx, edi
mov byte [ebp - 0x594], bl
mov esi, dword [ebp - 0x560]
mov dword [ebp - 0x590], esi
sub edx, dword [ebp - 0x568]
neg edx
mov ecx, edx
shr eax, cl
mov ecx, dword [ebp - 0x520]
lea edx, [ebp - 0x594]
shl eax, 3
add eax, dword [ebp + ecx*4 - 0x560]
mov dword [ebp - 0x578], edi
mov edi, eax
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x578]
mov edi, dword [ebp - 0x568]
mov edx, edi
add edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
cmp edx, eax
jl 0x4aa1a8
mov dl, al
mov ebx, edi
sub dl, bl
mov byte [ebp - 0x593], dl
mov edx, dword [ebp + 0xc]
lea ecx, [edx*4]
lea esi, [ebp - 0x51c]
add ecx, esi
mov dword [ebp - 0x598], ecx
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x598]
mov dword [ebp - 0x568], edi
jb 0x4aa3c7
lea edx, [ebp - 0x594]
mov byte [ebp - 0x594], 0xc0
mov dword [ebp - 0x59c], edx
jmp 0x4aa443
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx]
ja 0x4aa3d3
mov dword [ebp - 0x48], eax
jmp 0x4aa408
mov edx, dword [ecx]
cmp edx, 0x100
jae 0x4aa3e1
xor bh, bh
jmp 0x4aa3e3
mov bh, 0x60
lea edx, [ebp - 0x594]
mov byte [ebp - 0x594], bh
mov ebx, dword [ecx]
mov dword [ebp - 0x590], ebx
add ecx, 4
mov dword [ebp - 0x59c], edx
mov dword [ebp - 0x9c], ecx
jmp 0x4aa443
mov eax, dword [ecx]
sub eax, edx
mov ebx, dword [ebp + 0x18]
mov bl, byte [ebx + eax*4]
add bl, 0x50
lea esi, [ebp - 0x594]
mov byte [ebp - 0x594], bl
mov eax, dword [ecx]
sub eax, edx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + eax*4]
mov dword [ebp - 0x590], eax
add ecx, 4
mov dword [ebp - 0x59c], esi
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x568]
mov ebx, eax
sub ebx, edx
mov ecx, ebx
mov ebx, 1
shl ebx, cl
mov dword [ebp - 0x584], ebx
mov ebx, dword [ebp - 0x56c]
mov ecx, edx
mov edi, ebx
shr edi, cl
cmp edi, dword [ebp - 0x564]
jae 0x4aa4c3
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x59c]
mov ecx, dword [ebp - 0x584]
mov esi, dword [ebp - 0x564]
mov eax, edi
shl eax, 3
add eax, dword [ebp - 0x560]
mov dword [ebp - 0x578], edi
mov dword [ebp - 0x564], esi
mov edi, eax
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x564]
mov edi, dword [ebp - 0x578]
add edi, ecx
cmp esi, edi
ja 0x4aa485
mov dword [ebp - 0x564], esi
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x56c]
lea ecx, [eax - 1]
mov edi, 1
shl edi, cl
test ebx, edi
mov dword [ebp - 0x48], eax
je 0x4aa4dc
xor ebx, edi
shr edi, 1
test ebx, edi
jne 0x4aa4d4
xor ebx, edi
mov ecx, dword [ebp - 0x568]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
lea edx, [ebp - 0x98]
mov ecx, dword [ebp - 0x520]
cmp eax, dword [ebp + ecx*4 - 0x98]
mov dword [ebp - 0x5a0], edx
mov edi, dword [ebp - 0x568]
jne 0x4aa517
mov dword [ebp - 0x56c], ebx
jmp 0x4aa54a
mov edx, dword [ebp - 0x54]
dec ecx
sub edi, edx
mov dword [ebp - 0x520], ecx
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x520]
dec eax
and eax, ebx
cmp eax, dword [ebp + ecx*4 - 0x98]
jne 0x4aa51a
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x520], ecx
mov esi, dword [ebp - 0x570]
mov eax, esi
dec esi
test eax, eax
mov dword [ebp - 0x570], esi
mov eax, dword [ebp - 0x48]
jne 0x4aa198
mov dword [ebp - 0x568], edi
inc eax
cmp eax, dword [ebp - 0x50]
jle 0x4aa17b
cmp dword [ebp - 0x58], 0
je 0x4aa58e
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x4aa58e
mov eax, 0xfffffffb
mov eax, 0xfffffffb
jmp 0x4aa590
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x20