Function at 0x401aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebx + 8]
inc eax
imul eax, dword [ebx]
shl eax, 2
push eax
call fcn.00d49408
add esp, 4
mov dword [ebp - 8], eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
call fcn.00401f20
push 0x10
call fcn.00d49408
mov ecx, dword [ebx]
mov esi, eax
shl ecx, 2
push ecx
mov dword [ebp - 4], esi
call fcn.00d49408
mov dword [esi], eax
add esp, 8
mov ecx, dword [ebx]
mov edi, esi
add ecx, eax
mov dword [esi + 4], ecx
mov ecx, dword [esi]
mov eax, dword [ebx]
lea eax, [ecx + eax*2]
mov dword [esi + 8], eax
mov eax, dword [ebx]
lea ecx, [ecx + eax*2]
add ecx, eax
xor eax, eax
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx]
mov dword [ebp + 0x10], eax
jmp 0x401b14
mov eax, dword [ebp + 0x10]
xor edx, edx
test ecx, ecx
jle 0x401b36
mov esi, dword [ebp + 8]
add esi, eax
nop
mov ecx, dword [edi]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [ebx]
cmp edx, ecx
jl 0x401b20
mov eax, ecx
jmp 0x401b38
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
add edi, 4
inc edx
mov dword [ebp + 0x10], edx
cmp edx, 4
jl 0x401b11
mov edi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 0x10], ecx
nop
xor edx, edx
test eax, eax
jle 0x401b75
mov esi, dword [ebp - 8]
add esi, ecx
nop dword [eax + eax]
mov ecx, dword [edi]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [ebx]
cmp edx, eax
jl 0x401b60
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x401b50
mov eax, dword [ebx + 8]
mov edi, 1
dec eax
mov dword [ebp - 0x1c], edi
cmp eax, edi
jl 0x401ce4
mov esi, dword [ebp - 4]
mov ecx, ebx
push esi
call fcn.00401da0
push esi
mov ecx, ebx
call fcn.00401e00
mov ecx, dword [ebx]
xor edx, edx
mov dword [ebp - 0x20], edx
test ecx, ecx
jle 0x401c8d
mov eax, dword [esi + 4]
mov edi, dword [esi]
add edi, edx
mov al, byte [edx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
mov cl, byte [edi]
push ecx
push 2
mov al, byte [edx + eax]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov bl, byte [edx + eax]
mov dword [ebp - 0xc], ebx
call fcn.00401ed0
mov esi, dword [ebp - 0x18]
push esi
push 3
mov byte [ebp + 0x13], al
call fcn.00401ed0
mov cl, byte [ebp + 0x13]
xor cl, al
mov eax, dword [ebp - 0x14]
xor cl, al
push eax
xor cl, bl
push 3
mov byte [ebp + 0x13], cl
call fcn.00401ed0
push esi
push 2
mov bl, al
call fcn.00401ed0
push dword [ebp - 0x14]
xor bl, al
xor bl, byte [ebp - 0xc]
xor bl, byte [ebp - 0x10]
push 2
mov byte [ebp + 0xb], bl
call fcn.00401ed0
push dword [ebp - 0xc]
mov bh, al
push 3
call fcn.00401ed0
push dword [ebp - 0xc]
xor bh, al
xor bh, byte [ebp - 0x10]
xor bh, byte [ebp - 0x18]
push 2
call fcn.00401ed0
push dword [ebp - 0x10]
mov bl, al
push 3
call fcn.00401ed0
mov esi, dword [ebp - 4]
xor bl, al
mov al, byte [ebp + 0x13]
mov edx, dword [ebp - 0x20]
xor bl, byte [ebp - 0x14]
xor bl, byte [ebp - 0x18]
mov byte [edi], al
mov ecx, dword [esi + 4]
mov al, byte [ebp + 0xb]
mov byte [edx + ecx], al
mov eax, dword [esi + 8]
mov byte [edx + eax], bh
mov eax, dword [esi + 0xc]
mov byte [edx + eax], bl
inc edx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx]
cmp edx, ecx
jl 0x401bb7
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, ecx
imul eax, edi
mov edi, esi
lea eax, [edx + eax*4]
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], edx
xor eax, eax
test ecx, ecx
jle 0x401cc5
mov esi, dword [ebp + 8]
add esi, edx
nop dword [eax]
mov edx, dword [edi]
lea esi, [esi + 4]
mov cl, byte [esi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [ebx]
cmp eax, ecx
jl 0x401cb0
mov edx, dword [ebp + 0x10]
inc edx
add edi, 4
mov dword [ebp + 0x10], edx
cmp edx, 4
jl 0x401ca2
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
inc edi
dec eax
mov dword [ebp - 0x1c], edi
cmp edi, eax
jle 0x401b95
mov esi, dword [ebp - 4]
mov ecx, ebx
push esi
call fcn.00401da0
push esi
mov ecx, ebx
call fcn.00401e00
mov eax, dword [ebx + 8]
mov edi, esi
mov ecx, dword [ebx]
mov edx, dword [ebp - 8]
imul eax, ecx
lea eax, [edx + eax*4]
mov dword [ebp + 8], eax
xor eax, eax
mov dword [ebp + 0x10], eax
jmp 0x401d14
mov eax, dword [ebp + 0x10]
xor edx, edx
test ecx, ecx
jle 0x401d36
mov esi, dword [ebp + 8]
add esi, eax
nop
mov ecx, dword [edi]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [ebx]
cmp edx, ecx
jl 0x401d20
mov eax, ecx
jmp 0x401d38
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
add edi, 4
inc edx
mov dword [ebp + 0x10], edx
cmp edx, 4
jl 0x401d11
mov esi, dword [ebp - 4]
xor edi, edi
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x401d72
mov edx, dword [ebp + 0xc]
add edx, edi
nop dword [eax + eax]
mov eax, dword [esi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [ebx]
cmp ecx, eax
jl 0x401d60
inc edi
add esi, 4
cmp edi, 4
jl 0x401d50
mov edi, dword [ebp - 4]
push dword [edi]
call fcn.00d491c8
push edi
call fcn.00d491c8
push dword [ebp - 8]
call fcn.00d491c8
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc