Function at 0x401600
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.00f499e2
add esp, 4
mov dword [ebp - 8], eax
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00401d10
push 0x10
call fcn.00f499e2
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
push ecx
mov dword [ebp - 4], edi
call fcn.00f499e2
mov dword [edi], eax
add esp, 8
mov ecx, dword [esi]
add ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [esi]
mov eax, dword [edi]
lea eax, [eax + ecx*2]
mov dword [edi + 8], eax
mov eax, dword [esi]
lea eax, [eax + eax*2]
add eax, dword [edi]
xor ebx, ebx
mov dword [edi + 0xc], eax
mov ecx, dword [esi]
mov dword [ebp + 0x10], ebx
nop word [eax + eax]
xor edx, edx
test ecx, ecx
jle 0x401699
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 0x401680
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x40169b
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x401670
mov edi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 0x10], ecx
nop
xor edx, edx
test eax, eax
jle 0x4016d5
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 0x4016c0
mov ecx, dword [ebp + 0x10]
inc ecx
add edi, 4
mov dword [ebp + 0x10], ecx
cmp ecx, 4
jl 0x4016b0
mov eax, dword [esi + 8]
mov edi, dword [ebp - 4]
dec eax
mov dword [ebp + 8], 1
cmp eax, 1
jl 0x40181a
push edi
mov ecx, esi
call fcn.00401980
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 0x40172a
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 0x401713
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 0x401767
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 0x401750
mov ebx, dword [edi + 8]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x401738
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 0x4017aa
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 0x401793
mov ebx, dword [edi + 0xc]
sub dword [ebp - 0xc], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x401780
push edi
mov ecx, esi
call fcn.004019e0
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 0x4017f8
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 0x4017e0
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 4
mov dword [ebp + 0x10], eax
cmp eax, 4
jl 0x4017d8
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 0x4016f8
push edi
mov ecx, esi
call fcn.00401980
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 0x40184c
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 0x401835
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 0x40188a
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 0x401873
mov ebx, dword [edi + 8]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x401860
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 0x4018ca
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 0x4018b3
mov ebx, dword [edi + 0xc]
sub dword [ebp + 8], 1
mov al, byte [ebp + 0x13]
mov byte [ebx + ecx - 1], al
jne 0x4018a0
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 0x4018f5
mov eax, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
jle 0x401919
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 0x401900
mov ebx, dword [ebp + 0x10]
mov eax, ecx
jmp 0x40191b
mov eax, dword [esi]
inc ebx
add edi, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 4
jl 0x4018f2
mov ebx, dword [ebp - 4]
xor edi, edi
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x401952
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 0x401940
inc edi
add ebx, 4
cmp edi, 4
jl 0x401930
mov edi, dword [ebp - 4]
push dword [edi]
call fcn.00f497a4
push edi
call fcn.00f497a4
push dword [ebp - 8]
call fcn.00f497a4
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc