Function at 0x10001620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x10
mov esi, ecx
call fcn.10002986
mov edx, dword [esi]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.10002986
mov dword [ebx], eax
add esp, 8
mov ecx, dword [esi]
add ecx, eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov eax, dword [esi]
lea eax, [ecx + eax*2]
mov dword [ebx + 8], eax
mov eax, dword [esi]
lea ecx, [ecx + eax*2]
add ecx, eax
xor edi, edi
mov dword [ebx + 0xc], ecx
mov eax, dword [esi]
mov dword [ebp - 8], edi
nop dword [eax]
xor edx, edx
test eax, eax
jle 0x10001699
add edi, dword [ebp + 8]
nop dword [eax]
mov ecx, dword [ebx]
lea edi, [edi + 4]
mov al, byte [edi - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [esi]
cmp edx, eax
jl 0x10001680
mov edi, dword [ebp - 8]
mov ecx, eax
jmp 0x1000169b
mov ecx, dword [esi]
inc edi
add ebx, 4
mov dword [ebp - 8], edi
cmp edi, 4
jl 0x10001670
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
imul eax, ecx
lea edi, [edx + eax*4]
xor eax, eax
mov dword [ebp - 8], edi
mov dword [ebp + 8], eax
nop
xor edx, edx
test ecx, ecx
jle 0x100016e0
add edi, eax
mov ecx, dword [ebx]
lea edi, [edi + 4]
mov al, byte [edi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x100016c8
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 8]
inc eax
add ebx, 4
mov dword [ebp + 8], eax
cmp eax, 4
jl 0x100016c0
mov eax, dword [esi + 8]
dec eax
mov dword [ebp + 8], eax
cmp eax, 1
jl 0x100017e6
nop dword [eax]
mov eax, dword [esi]
mov edx, 4
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edx
nop dword [eax]
xor edi, edi
test eax, eax
jle 0x10001747
mov edx, dword [ebx]
movzx ecx, byte [edx + edi]
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0x8000000f
jns 0x1000172e
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + 0x10014ce0]
mov byte [edx + edi], al
inc edi
mov eax, dword [esi]
cmp edi, eax
jl 0x10001716
mov edx, dword [ebp - 8]
mov ecx, eax
jmp 0x10001749
mov ecx, dword [esi]
add ebx, 4
sub edx, 1
mov dword [ebp - 8], edx
jne 0x10001710
mov ebx, dword [ebp - 4]
lea eax, [ecx - 1]
push eax
push 1
push ebx
mov ecx, esi
call fcn.10001430
mov eax, dword [esi]
mov ecx, esi
sub eax, 2
push eax
push 2
push ebx
call fcn.10001430
mov eax, dword [esi]
mov ecx, esi
sub eax, 3
push eax
push 3
push ebx
call fcn.10001430
mov ecx, dword [esi]
mov eax, ecx
imul eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea edi, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
nop dword [eax + eax]
xor eax, eax
test ecx, ecx
jle 0x100017c0
add edi, edx
mov edx, dword [ebx]
lea edi, [edi + 4]
mov cl, byte [edi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [esi]
cmp eax, ecx
jl 0x100017a8
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc edx
add ebx, 4
mov dword [ebp - 8], edx
cmp edx, 4
jl 0x100017a0
push dword [ebp - 4]
mov ecx, esi
call fcn.100012f0
mov ecx, dword [ebp + 8]
dec ecx
mov dword [ebp + 8], ecx
cmp ecx, 1
jge 0x10001700
mov eax, dword [esi]
mov edx, 4
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], edx
xor edi, edi
test eax, eax
jle 0x10001831
nop dword [eax]
mov edx, dword [ebx]
movzx ecx, byte [edx + edi]
mov eax, ecx
and eax, 0xfffffff0
and ecx, 0x8000000f
jns 0x10001818
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx eax, byte [eax + ecx + 0x10014ce0]
mov byte [edx + edi], al
inc edi
mov eax, dword [esi]
cmp edi, eax
jl 0x10001800
mov edx, dword [ebp + 8]
mov ecx, eax
jmp 0x10001833
mov ecx, dword [esi]
add ebx, 4
sub edx, 1
mov dword [ebp + 8], edx
jne 0x100017f3
mov ebx, dword [ebp - 4]
lea eax, [ecx - 1]
push eax
push 1
push ebx
mov ecx, esi
call fcn.10001430
mov eax, dword [esi]
mov ecx, esi
sub eax, 2
push eax
push 2
push ebx
call fcn.10001430
mov eax, dword [esi]
mov ecx, esi
sub eax, 3
push eax
push 3
push ebx
call fcn.10001430
mov ecx, dword [esi]
xor edi, edi
mov dword [ebp + 8], edi
xor edx, edx
test ecx, ecx
jle 0x10001899
add edi, dword [ebp + 0x10]
nop
mov ecx, dword [ebx]
lea edi, [edi + 4]
mov al, byte [edi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [esi]
cmp edx, ecx
jl 0x10001880
mov edi, dword [ebp + 8]
mov eax, ecx
jmp 0x1000189b
mov eax, dword [esi]
inc edi
add ebx, 4
mov dword [ebp + 8], edi
cmp edi, 4
jl 0x10001876
mov edi, dword [ebp - 4]
xor ebx, ebx
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x100018d2
mov edx, dword [ebp + 0xc]
add edx, ebx
nop dword [eax + eax]
mov eax, dword [edi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [esi]
cmp ecx, eax
jl 0x100018c0
inc ebx
add edi, 4
cmp ebx, 4
jl 0x100018b0
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.10002981
push ebx
call fcn.10002981
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc