Function at 0x4b49b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x584
mov ecx, 0x11
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x598]
push edi
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x598]
mov edx, esi
mov eax, dword [ecx]
add ecx, 4
mov ebx, dword [esp + eax*4 + 0x4c]
lea eax, [esp + eax*4 + 0x4c]
inc ebx
dec edx
mov dword [eax], ebx
jne 0x4b49d7
cmp dword [esp + 0x4c], esi
jne 0x4b4a00
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x584
ret
mov edi, dword [esp + 0x5b0]
mov ecx, 1
lea eax, [esp + 0x50]
mov ebx, dword [edi]
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
xor ebp, ebp
cmp edx, ebp
jne 0x4b4a27
inc ecx
add eax, 4
cmp ecx, 0x10
jbe 0x4b4a16
cmp ebx, ecx
mov dword [esp + 0x10], ecx
jae 0x4b4a35
mov dword [esp + 0x14], ecx
mov ebx, ecx
mov eax, 0x10
lea esi, [esp + 0x8c]
cmp dword [esi], ebp
jne 0x4b4a4d
dec eax
sub esi, 4
cmp eax, ebp
jne 0x4b4a41
mov edx, eax
cmp ebx, eax
mov dword [esp + 0x44], edx
jbe 0x4b4a5d
mov dword [esp + 0x14], eax
mov ebx, eax
mov dword [edi], ebx
mov edi, 1
shl edi, cl
cmp ecx, eax
jae 0x4b4a7c
lea esi, [esp + ecx*4 + 0x4c]
sub edi, dword [esi]
js 0x4b4a88
inc ecx
add esi, 4
shl edi, 1
cmp ecx, eax
jb 0x4b4a6e
mov ecx, dword [esp + eax*4 + 0x4c]
sub edi, ecx
mov dword [esp + 0x48], edi
jns 0x4b4a98
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x584
ret
add ecx, edi
mov dword [esp + 0x94], ebp
mov dword [esp + eax*4 + 0x4c], ecx
xor ecx, ecx
dec eax
je 0x4b4abf
xor edi, edi
mov esi, dword [esp + edi + 0x50]
add edi, 4
add ecx, esi
dec eax
mov dword [esp + edi + 0x94], ecx
jne 0x4b4aac
mov esi, dword [esp + 0x598]
xor edi, edi
mov eax, dword [esi]
add esi, 4
cmp eax, ebp
je 0x4b4ae9
mov ecx, dword [esp + eax*4 + 0x90]
lea eax, [esp + eax*4 + 0x90]
mov dword [esp + ecx*4 + 0x114], edi
inc ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x59c]
inc edi
cmp edi, eax
jb 0x4b4ac8
lea ecx, [esp + 0x114]
mov eax, ebx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
or edi, 0xffffffff
xor esi, esi
neg eax
cmp ecx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x40], ebp
jg 0x4b4e01
lea edx, [ecx - 1]
lea ecx, [esp + ecx*4 + 0x4c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x30], ecx
je 0x4b4dd8
mov edx, dword [esp + 0x10]
lea ecx, [eax + ebx]
cmp edx, ecx
jle 0x4b4c83
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
jmp 0x4b4b70
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
add eax, ebx
inc edi
sub edx, eax
add ecx, ebx
cmp edx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
jbe 0x4b4b91
mov edx, ebx
mov ebx, dword [esp + 0x10]
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
lea ecx, [esi + 1]
cmp eax, ecx
jbe 0x4b4bca
or ecx, 0xffffffff
sub ecx, esi
mov esi, dword [esp + 0x2c]
add eax, ecx
inc ebx
cmp ebx, edx
jae 0x4b4bca
mov ecx, dword [esi + 4]
add esi, 4
shl eax, 1
cmp eax, ecx
jbe 0x4b4bca
sub eax, ecx
inc ebx
cmp ebx, edx
jb 0x4b4bb7
mov esi, 1
mov ecx, ebx
shl esi, cl
lea edx, [esi + esi*2 + 3]
shl edx, 1
push edx
call fcn.004eede8
add esp, 4
test eax, eax
je 0x4b4e26
mov ecx, dword [0x5b6c14]
lea edx, [ecx + esi + 1]
lea ecx, [eax + 6]
mov dword [0x5b6c14], edx
mov edx, dword [esp + 0x5ac]
add eax, 2
mov ebp, ecx
mov dword [edx], ecx
mov dword [esp + 0x5ac], eax
test edi, edi
mov dword [eax], 0
mov dword [esp + 0x40], ebp
mov dword [esp + edi*4 + 0xd4], ebp
je 0x4b4c6b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov byte [esp + 0x19], al
sub ecx, eax
mov eax, edx
add bl, 0x10
mov dword [esp + edi*4 + 0x90], edx
shr eax, cl
mov ecx, dword [esp + edi*4 + 0xd0]
mov byte [esp + 0x18], bl
mov dword [esp + 0x1a], ebp
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x18]
mov cx, word [esp + 0x1c]
mov dword [edx], eax
mov word [edx + 4], cx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp eax, edx
mov eax, dword [esp + 0x20]
jg 0x4b4b6c
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x59c]
mov edi, dword [esp + 0x34]
sub cl, al
mov byte [esp + 0x19], cl
lea ecx, [esp + edx*4 + 0x114]
cmp edi, ecx
jb 0x4b4caa
mov byte [esp + 0x18], 0x63
jmp 0x4b4d04
mov ecx, dword [edi]
mov edx, dword [esp + 0x5a0]
cmp ecx, edx
jae 0x4b4cd5
cmp ecx, 0x100
mov word [esp + 0x1a], cx
setb dl
add edx, 0xf
add edi, 4
mov byte [esp + 0x18], dl
mov dword [esp + 0x34], edi
jmp 0x4b4d04
sub ecx, edx
mov edx, dword [esp + 0x5a8]
shl ecx, 1
mov edi, ecx
mov cl, byte [edi + edx]
mov edx, dword [esp + 0x5a4]
mov byte [esp + 0x18], cl
mov cx, word [edi + edx]
mov word [esp + 0x1a], cx
mov ecx, dword [esp + 0x34]
add ecx, 4
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
sub ecx, eax
mov edi, 1
shl edi, cl
mov ecx, eax
shr edx, cl
cmp edx, esi
jae 0x4b4d52
lea ecx, [edi + edi*2]
shl ecx, 1
mov dword [esp + 0x20], ecx
lea ecx, [edx + edx*2]
lea ecx, [ebp + ecx*2]
mov ebp, dword [esp + 0x18]
mov ebx, ecx
add edx, edi
mov dword [ebx], ebp
mov bp, word [esp + 0x1c]
mov word [ebx + 4], bp
mov ebp, dword [esp + 0x20]
add ecx, ebp
cmp edx, esi
jb 0x4b4d2d
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov edx, 1
shl edx, cl
test edi, edx
je 0x4b4d6d
xor edi, edx
shr edx, 1
test edi, edx
jne 0x4b4d65
xor edi, edx
mov edx, 1
mov ecx, eax
mov dword [esp + 0x28], edi
shl edx, cl
mov ecx, dword [esp + 0x24]
dec edx
and edx, edi
mov edi, dword [esp + ecx*4 + 0x90]
mov dword [esp + 0x20], edx
lea edx, [esp + ecx*4 + 0x90]
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x4b4dc1
mov edi, dword [esp + 0x24]
sub eax, ebx
dec edi
mov ecx, eax
mov dword [esp + 0x24], edi
mov edi, 1
shl edi, cl
mov ecx, dword [esp + 0x28]
sub edx, 4
dec edi
and edi, ecx
mov ecx, dword [edx]
cmp edi, ecx
jne 0x4b4d9d
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x30], ecx
jne 0x4b4b53
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
add edx, 4
inc ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x3c]
inc edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x44]
cmp ecx, edx
jle 0x4b4b3e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4b4e19
mov ecx, dword [esp + 0x59c]
mov eax, 1
cmp ecx, eax
jne 0x4b4e1b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
test edi, edi
je 0x4b4e3a
mov eax, dword [esp + 0xd4]
push eax
call fcn.004b4e50
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x584
ret