Function at 0x4a7860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x65bde0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
xor esi, esi
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov edx, edi
lea ecx, [ecx]
mov ecx, dword [eax]
inc dword [ebp + ecx*4 - 0x48]
lea ecx, [ebp + ecx*4 - 0x48]
add eax, 4
dec edx
jne 0x4a78e0
cmp dword [ebp - 0x48], edi
jne 0x4a7912
mov eax, dword [ebp - 0xcc]
mov dword [eax], esi
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b3023
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx]
mov dword [ebp - 0x8c], edi
mov ecx, 1
nop
cmp dword [ebp + ecx*4 - 0x48], esi
jne 0x4a792c
inc ecx
cmp ecx, 0xf
jbe 0x4a7920
mov edx, ecx
mov dword [ebp - 0x94], edx
cmp edi, ecx
jae 0x4a7940
mov dword [ebp - 0x8c], ecx
mov edi, ecx
mov eax, 0xf
cmp dword [ebp + eax*4 - 0x48], esi
jne 0x4a794e
dec eax
jne 0x4a7945
mov dword [ebp - 0xa8], eax
cmp edi, eax
jbe 0x4a7960
mov dword [ebp - 0x8c], eax
mov edi, eax
mov dword [ebx], edi
mov ebx, 1
shl ebx, cl
cmp ecx, eax
jae 0x4a7981
lea ecx, [ecx]
sub ebx, dword [ebp + ecx*4 - 0x48]
js 0x4a7aa1
inc ecx
add ebx, ebx
cmp ecx, eax
jb 0x4a7970
lea ecx, [eax*4]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp + ecx - 0x48]
sub ebx, ecx
mov dword [ebp - 0xd8], ebx
js 0x4a7aa1
add ecx, ebx
mov ebx, dword [ebp - 0xa0]
mov dword [ebp + ebx - 0x48], ecx
xor ecx, ecx
dec eax
mov dword [ebp - 0x84], esi
je 0x4a79d1
xor ebx, ebx
lea esp, [esp]
add ecx, dword [ebp + ebx - 0x44]
add ebx, 4
dec eax
mov dword [ebp + ebx - 0x84], ecx
jne 0x4a79c0
mov ebx, dword [ebp - 0xa4]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 0x98], ebx
cmp eax, esi
je 0x4a7a16
mov ebx, dword [ebp - 0xc4]
lea eax, [ebp + eax*4 - 0x88]
mov dword [ebp - 0x90], eax
mov eax, dword [eax]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 0x90]
inc eax
mov dword [ebx], eax
mov ebx, dword [ebp - 0x98]
inc ecx
cmp ecx, dword [ebp - 0xc0]
jb 0x4a79e0
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp + ecx - 0x88]
mov ecx, dword [ebp - 0xc4]
mov ebx, edi
neg ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa4], esi
cmp edx, dword [ebp - 0xa8]
jg 0x4a7d87
mov esi, dword [ebp - 0xb4]
lea eax, [ebp + edx*4 - 0x48]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ecx]
test eax, eax
je 0x4a7d6b
lea ecx, [eax + 1]
mov dword [ebp - 0xc8], ecx
jmp 0x4a7ac6
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b3023
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa0]
dec dword [ebp - 0xc8]
dec eax
mov dword [ebp - 0xa0], eax
lea eax, [ebx + edi]
cmp edx, eax
jle 0x4a7c34
sub ebx, edi
mov dword [ebp - 0xbc], ebx
jmp 0x4a7af6
mov edi, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xa8]
inc dword [ebp - 0x9c]
add dword [ebp - 0xbc], edi
mov ebx, eax
mov eax, dword [ebp - 0x8c]
sub edx, ebx
cmp edx, eax
jbe 0x4a7b18
mov edx, eax
mov ecx, dword [ebp - 0x94]
sub ecx, ebx
mov eax, 1
shl eax, cl
cmp eax, dword [ebp - 0xc8]
jbe 0x4a7b6e
or edi, 0xffffffff
sub edi, dword [ebp - 0xa0]
add eax, edi
mov edi, dword [ebp - 0xb0]
cmp ecx, edx
jae 0x4a7b6e
inc ecx
cmp ecx, edx
jae 0x4a7b6e
jmp 0x4a7b56
mov edi, dword [ebp - 0x90]
add edi, 4
mov dword [ebp - 0x90], edi
mov edi, dword [edi]
add eax, eax
cmp eax, edi
jbe 0x4a7b6e
inc ecx
sub eax, edi
cmp ecx, edx
jb 0x4a7b50
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
mov edx, 1
shl edx, cl
mov dword [ebp - 0xa4], edx
add edx, eax
cmp edx, 0x5a0
ja 0x4a7aa1
mov edi, dword [ebp - 0xd4]
lea edi, [edi + eax*8]
mov eax, dword [ebp - 0x9c]
lea eax, [ebp + eax*4 - 0x118]
mov dword [ebp - 0xdc], eax
mov dword [eax], edi
mov eax, dword [ebp - 0xd0]
mov dword [eax], edx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x90], edi
test eax, eax
je 0x4a7c11
mov esi, dword [ebp - 0xac]
mov dl, byte [ebp - 0x8c]
mov dword [ebp + eax*4 - 0x88], esi
mov byte [ebp - 0xb8], cl
mov ecx, dword [ebp - 0xbc]
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx - 4]
mov esi, edi
sub esi, ecx
mov byte [ebp - 0xb7], dl
mov edx, dword [ebp - 0xb8]
sar esi, 3
sub esi, eax
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
jmp 0x4a7c19
mov eax, dword [ebp - 0xcc]
mov dword [eax], edi
mov ecx, dword [ebp - 0x8c]
lea eax, [ebx + ecx]
cmp dword [ebp - 0x94], eax
jg 0x4a7af0
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc4]
mov al, dl
sub al, bl
mov byte [ebp - 0xb7], al
mov eax, dword [ebp - 0xc0]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
jb 0x4a7c60
mov byte [ebp - 0xb8], 0xc0
jmp 0x4a7ca2
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jae 0x4a7c80
cmp eax, 0x100
sbb cl, cl
and cl, 0xa0
add cl, 0x60
mov byte [ebp - 0xb8], cl
mov esi, eax
jmp 0x4a7c9b
sub eax, ecx
mov ecx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov cl, byte [eax + ecx]
add cl, 0x50
mov byte [ebp - 0xb8], cl
mov ecx, dword [ebp + 0x14]
mov esi, dword [eax + ecx]
add dword [ebp - 0x98], 4
mov edi, dword [ebp - 0xac]
mov ecx, edx
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, dword [ebp - 0xa4]
jae 0x4a7cee
mov ecx, dword [ebp - 0x90]
lea ecx, [ecx + eax*8]
mov edi, dword [ebp - 0xb8]
mov dword [ecx], edi
lea edi, [edx*8]
mov dword [ecx + 4], esi
add eax, edx
add ecx, edi
cmp eax, dword [ebp - 0xa4]
jb 0x4a7cca
mov edi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x94]
dec ecx
mov eax, 1
shl eax, cl
test edi, eax
je 0x4a7d08
xor edi, eax
shr eax, 1
test edi, eax
jne 0x4a7d00
mov edx, 1
mov ecx, ebx
shl edx, cl
xor edi, eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xac], edi
dec edx
and edx, edi
cmp edx, dword [ebp + eax*4 - 0x88]
je 0x4a7d52
jmp 0x4a7d30
sub ebx, dword [ebp - 0x8c]
mov edx, 1
mov ecx, ebx
shl edx, cl
dec eax
dec edx
and edx, edi
cmp edx, dword [ebp + eax*4 - 0x88]
jne 0x4a7d30
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x8c]
jne 0x4a7ac0
add dword [ebp - 0xb0], 4
inc edx
mov dword [ebp - 0x94], edx
cmp edx, dword [ebp - 0xa8]
jle 0x4a7a86
xor esi, esi
cmp dword [ebp - 0xd8], esi
je 0x4a78ff
cmp dword [ebp - 0xa8], 1
je 0x4a78ff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffffb
pop ebx
call fcn.005b3023
mov esp, ebp
pop ebp
ret