Function at 0x4a91b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
inc eax
imul eax, dword [esi]
shl eax, 2
push eax
call fcn.00a3c1e3
add esp, 4
mov dword [ebp - 8], eax
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.004a9530
push 0x10
call fcn.00a3c1e3
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
push ecx
mov dword [ebp - 4], edi
call fcn.00a3c1e3
mov dword [edi], eax
add esp, 8
mov ecx, dword [esi]
add ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [edi]
mov eax, dword [esi]
lea eax, [ecx + eax*2]
mov dword [edi + 8], eax
mov eax, dword [esi]
lea ecx, [ecx + eax*2]
add ecx, eax
xor ebx, ebx
mov dword [edi + 0xc], ecx
mov ecx, dword [esi]
mov dword [ebp + 0x10], ebx
nop word [eax + eax]
xor edx, edx
test ecx, ecx
jle 0x4a9249
add ebx, dword [ebp + 8]
nop dword [eax]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4a9230
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x4a924b
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4a9220
mov edi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 0x10], ecx
nop
xor edx, edx
test eax, eax
jle 0x4a9285
mov ebx, dword [ebp - 8]
add ebx, ecx
nop dword [eax + eax]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [esi]
cmp edx, eax
jl 0x4a9270
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x4a9260
mov eax, dword [esi + 8]
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], 1
cmp eax, 1
jl 0x4a93ca
push edi
mov ecx, esi
call fcn.004a9a80
mov ebx, dword [edi + 4]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4a92da
mov ecx, dword [edi + 4]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4a92c3
mov ebx, dword [edi + 4]
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
mov dword [ebp - 0xc], 2
mov ebx, dword [edi + 8]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4a9317
nop dword [eax + eax]
mov ecx, dword [edi + 8]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4a9300
mov ebx, dword [edi + 8]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a92e8
mov dword [ebp - 0xc], 3
nop dword [eax + eax]
mov ebx, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4a935a
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4a9343
mov ebx, dword [edi + 0xc]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a9330
push edi
mov ecx, esi
call fcn.004a97c0
mov ecx, dword [esi]
mov eax, ecx
imul eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
lea ebx, [edx + eax*4]
xor eax, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x10], eax
xor edx, edx
test ecx, ecx
jle 0x4a93a8
add ebx, eax
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4a9390
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x4a9388
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
inc ecx
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], ecx
cmp ecx, eax
jle 0x4a92a8
push edi
mov ecx, esi
call fcn.004a9a80
mov ebx, dword [edi + 4]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4a93fc
mov ecx, dword [edi + 4]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4a93e5
mov ebx, dword [edi + 4]
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
mov dword [ebp + 8], 2
nop word [eax + eax]
mov ebx, dword [edi + 8]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4a943a
mov ecx, dword [edi + 8]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4a9423
mov ebx, dword [edi + 8]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a9410
mov dword [ebp + 8], 3
nop
mov ebx, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [esi]
mov al, byte [ebx]
mov byte [ebp + 0x13], al
lea eax, [ecx - 1]
test eax, eax
jle 0x4a947a
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + edx + 1]
mov byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
lea eax, [ecx - 1]
cmp edx, eax
jl 0x4a9463
mov ebx, dword [edi + 0xc]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4a9450
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
imul eax, ecx
xor ebx, ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], edi
lea eax, [edx + eax*4]
mov dword [ebp - 0x10], eax
jmp 0x4a94a5
mov eax, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
jle 0x4a94c9
add ebx, eax
nop dword [eax]
mov ecx, dword [edi]
lea ebx, [ebx + 4]
mov al, byte [ebx - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x4a94b0
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x4a94cb
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4a94a2
mov ebx, dword [ebp - 4]
xor edi, edi
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x4a9502
mov edx, dword [ebp + 0xc]
add edx, edi
nop dword [eax + eax]
mov eax, dword [ebx]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [esi]
cmp ecx, eax
jl 0x4a94f0
inc edi
add ebx, 4
cmp edi, 4
jl 0x4a94e0
mov edi, dword [ebp - 4]
push dword [edi]
call fcn.00a3c1ec
push edi
call fcn.00a3c1ec
push dword [ebp - 8]
call fcn.00a3c1ec
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc