Function at 0x4aaef0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x114
mov eax, dword [0x65fde0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x134]
push esi
mov esi, dword [esp + 0x128]
mov dword [esp + 0x50], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov ecx, ebx
jmp 0x4aafc0
mov edx, dword [ecx]
inc dword [esp + edx*4 + 0x9c]
lea edx, [esp + edx*4 + 0x9c]
add ecx, 4
dec esi
jne 0x4aafc0
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x9c], ecx
jne 0x4aafef
mov dword [ebp], eax
mov dword [edi], eax
xor eax, eax
jmp 0x4ab3cb
mov ebp, dword [edi]
mov dword [esp + 0x10], ebp
mov ecx, 1
lea ebx, [ebx]
cmp dword [esp + ecx*4 + 0x9c], eax
jne 0x4ab00f
inc ecx
cmp ecx, 0xf
jbe 0x4ab000
mov edx, ecx
mov dword [esp + 0x14], edx
cmp ebp, ecx
jae 0x4ab01f
mov dword [esp + 0x10], ecx
mov ebp, ecx
mov esi, 0xf
cmp dword [esp + esi*4 + 0x9c], eax
jne 0x4ab030
dec esi
jne 0x4ab024
mov dword [esp + 0x28], esi
cmp ebp, esi
jbe 0x4ab03e
mov dword [esp + 0x10], esi
mov ebp, esi
mov dword [edi], ebp
mov edi, 1
shl edi, cl
cmp ecx, esi
jae 0x4ab064
jmp 0x4ab050
sub edi, dword [esp + ecx*4 + 0x9c]
js 0x4ab143
inc ecx
add edi, edi
cmp ecx, esi
jb 0x4ab050
lea ecx, [esi*4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + ecx + 0x9c]
sub edi, ecx
mov dword [esp + 0x58], edi
js 0x4ab143
add ecx, edi
mov edi, dword [esp + 0x18]
mov dword [esp + edi + 0x9c], ecx
xor ecx, ecx
dec esi
mov dword [esp + 0xe0], eax
je 0x4ab0b4
xor edi, edi
lea ecx, [ecx]
add ecx, dword [esp + edi + 0xa0]
add edi, 4
dec esi
mov dword [esp + edi + 0xe0], ecx
jne 0x4ab0a0
mov esi, ebx
xor edi, edi
jmp 0x4ab0c0
mov ecx, dword [esi]
add esi, 4
mov dword [esp + 0x1c], esi
cmp ecx, eax
je 0x4ab0e9
mov esi, dword [esp + ecx*4 + 0xdc]
mov ebx, dword [esp + 0x38]
lea ecx, [esp + ecx*4 + 0xdc]
mov dword [ebx + esi*4], edi
inc esi
mov dword [ecx], esi
mov esi, dword [esp + 0x1c]
inc edi
cmp edi, dword [esp + 0x24]
jb 0x4ab0c0
mov ecx, dword [esp + 0x18]
mov ecx, dword [esp + ecx + 0xdc]
mov ebx, ebp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
neg ebx
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x60], eax
mov dword [esp + 0x4c], eax
cmp edx, dword [esp + 0x28]
jg 0x4ab3b9
mov esi, dword [esp + 0x34]
lea ecx, [esp + edx*4 + 0x9c]
mov dword [esp + 0x18], ecx
jmp 0x4ab154
mov eax, 0xfffffffd
jmp 0x4ab3cb
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp ecx, eax
je 0x4ab3a3
lea eax, [ecx + 1]
mov dword [esp + 0x40], eax
jmp 0x4ab174
mov ecx, dword [esp + 0x3c]
dec dword [esp + 0x40]
dec ecx
lea eax, [ebx + ebp]
mov dword [esp + 0x3c], ecx
cmp edx, eax
jle 0x4ab285
sub ebx, ebp
mov dword [esp + 0x44], ebx
jmp 0x4ab194
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
inc dword [esp + 0x20]
add dword [esp + 0x44], ebp
mov ebx, eax
mov eax, dword [esp + 0x10]
sub edx, ebx
cmp edx, eax
jbe 0x4ab1ae
mov edx, eax
mov ecx, dword [esp + 0x14]
sub ecx, ebx
mov eax, 1
shl eax, cl
cmp eax, dword [esp + 0x40]
jbe 0x4ab1ea
mov ebp, dword [esp + 0x18]
or edi, 0xffffffff
sub edi, dword [esp + 0x3c]
add eax, edi
cmp ecx, edx
jae 0x4ab1ea
inc ecx
cmp ecx, edx
jae 0x4ab1ea
mov edi, dword [ebp + 4]
add ebp, 4
add eax, eax
cmp eax, edi
jbe 0x4ab1ea
inc ecx
sub eax, edi
cmp ecx, edx
jb 0x4ab1d7
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
mov edi, 1
shl edi, cl
lea edx, [eax + edi]
cmp edx, 0x5a0
ja 0x4ab143
mov ebp, dword [esp + 0x54]
lea ebp, [ebp + eax*8]
mov eax, dword [esp + 0x20]
lea eax, [esp + eax*4 + 0x60]
mov dword [esp + 0x50], eax
mov dword [eax], ebp
mov eax, dword [esp + 0x48]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ebp
test eax, eax
je 0x4ab26a
mov esi, dword [esp + 0x2c]
mov dl, byte [esp + 0x10]
mov dword [esp + eax*4 + 0xdc], esi
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x44]
mov eax, esi
shr eax, cl
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx - 4]
mov esi, ebp
sub esi, ecx
mov byte [esp + 0x31], dl
mov edx, dword [esp + 0x30]
sar esi, 3
sub esi, eax
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
jmp 0x4ab270
mov eax, dword [esp + 0x5c]
mov dword [eax], ebp
mov ecx, dword [esp + 0x10]
lea eax, [ebx + ecx]
cmp dword [esp + 0x14], eax
jg 0x4ab190
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov al, dl
sub al, bl
mov byte [esp + 0x31], al
mov eax, dword [esp + 0x24]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jb 0x4ab2a7
mov byte [esp + 0x30], 0xc0
jmp 0x4ab2ef
mov eax, dword [eax]
mov ecx, dword [esp + 0x130]
cmp eax, ecx
jae 0x4ab2c9
cmp eax, 0x100
sbb cl, cl
and cl, 0xa0
add cl, 0x60
mov byte [esp + 0x30], cl
mov esi, eax
jmp 0x4ab2ea
sub eax, ecx
mov ecx, dword [esp + 0x138]
add eax, eax
add eax, eax
mov cl, byte [eax + ecx]
add cl, 0x50
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x134]
mov esi, dword [eax + ecx]
add dword [esp + 0x1c], 4
mov ebp, dword [esp + 0x2c]
mov ecx, edx
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, ebp
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x4ab32b
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + eax*8]
mov ebp, dword [esp + 0x30]
mov dword [ecx], ebp
lea ebp, [edx*8]
mov dword [ecx + 4], esi
add eax, edx
add ecx, ebp
cmp eax, edi
jb 0x4ab30f
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
dec ecx
mov eax, 1
shl eax, cl
test ebp, eax
je 0x4ab348
jmp 0x4ab340
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x4ab340
mov edx, 1
mov ecx, ebx
shl edx, cl
xor ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], ebp
dec edx
and edx, ebp
cmp edx, dword [esp + eax*4 + 0xdc]
je 0x4ab38e
jmp 0x4ab370
sub ebx, dword [esp + 0x10]
mov edx, 1
mov ecx, ebx
shl edx, cl
dec eax
dec edx
and edx, ebp
cmp edx, dword [esp + eax*4 + 0xdc]
jne 0x4ab370
mov dword [esp + 0x20], eax
cmp dword [esp + 0x3c], 0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
jne 0x4ab170
xor eax, eax
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
inc edx
mov dword [esp + 0x14], edx
cmp edx, ecx
jle 0x4ab150
cmp dword [esp + 0x58], eax
je 0x4ab3cb
cmp dword [esp + 0x28], 1
je 0x4ab3cb
mov eax, 0xfffffffb
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b6c8b
add esp, 0x114
ret