Function at 0x4283ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
sub esp, 0xc
push ebx
push esi
mov esi, dword [eax]
xor ecx, ecx
cmp dword [ebp + 0x20], ecx
push edi
mov edi, dword [ebp + 0x18]
je 0x428493
cmp esi, ecx
je 0x4283f0
cmp dword [ebp + 0x10], ecx
je 0x4283f0
mov eax, dword [ebp + 8]
mov al, byte [eax]
xor byte [esi + edi], al
mov edx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
inc dword [ebp + 8]
mov al, byte [esi + edi]
dec dword [ebp + 0x10]
inc esi
and esi, 0xf
mov byte [edx], al
jne 0x4283cc
cmp dword [ebp + 0x10], 0x10
jb 0x428455
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
sub eax, edi
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x10]
shr eax, 4
mov dword [ebp - 4], eax
shl eax, 4
add dword [ebp + 0xc], eax
sub ebx, edi
add dword [ebp + 8], eax
push dword [ebp + 0x14]
push edi
push edi
call dword [ebp + 0x24]
add esp, 0xc
push 0x10
pop edx
cmp esi, edx
jae 0x428446
push 0xf
pop ecx
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov esi, dword [ebp + 0x20]
mov esi, dword [esi + eax]
xor dword [eax], esi
mov esi, dword [eax]
mov dword [ebx + eax], esi
add eax, 4
dec ecx
jne 0x428433
sub dword [ebp + 0x10], edx
add dword [ebp + 0x20], edx
add ebx, edx
xor esi, esi
dec dword [ebp - 4]
jne 0x428415
cmp dword [ebp + 0x10], 0
je 0x428567
push dword [ebp + 0x14]
push edi
push edi
call dword [ebp + 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [esi + edi]
sub ecx, edi
sub edx, edi
add esi, dword [ebp + 0x10]
mov bl, byte [eax + ecx]
xor byte [eax], bl
mov bl, byte [eax]
dec dword [ebp + 0x10]
mov byte [eax + edx], bl
inc eax
cmp dword [ebp + 0x10], 0
jne 0x42847a
jmp 0x428567
cmp esi, ecx
mov ebx, dword [ebp + 0xc]
je 0x4284bb
cmp dword [ebp + 0x10], ecx
je 0x4284bb
mov dl, byte [esi + edi]
mov eax, dword [ebp + 8]
mov al, byte [eax]
xor dl, al
mov byte [ebx], dl
inc ebx
inc dword [ebp + 8]
dec dword [ebp + 0x10]
mov byte [esi + edi], al
inc esi
and esi, 0xf
jne 0x42849a
cmp dword [ebp + 0x10], 0x10
jb 0x42852a
mov eax, ebx
sub eax, edi
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x10]
shr eax, 4
mov dword [ebp - 8], eax
push dword [ebp + 0x14]
push edi
push edi
call dword [ebp + 0x24]
add esp, 0xc
cmp esi, 0x10
jae 0x428515
mov ecx, dword [ebp + 8]
sub ecx, ebx
mov dword [ebp - 0xc], ecx
push 0xf
pop ecx
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp - 0xc]
add edx, eax
mov esi, dword [edx + esi]
mov dword [ebp - 4], esi
mov esi, dword [eax]
xor esi, dword [ebp - 4]
mov dword [edx], esi
mov edx, dword [ebp - 4]
mov dword [eax], edx
add eax, 4
dec ecx
jne 0x4284f5
push 0x10
pop eax
sub dword [ebp + 0x10], eax
add dword [ebp + 0x20], eax
add dword [ebp + 8], eax
add ebx, eax
xor esi, esi
dec dword [ebp - 8]
jne 0x4284d1
cmp dword [ebp + 0x10], 0
je 0x428567
push dword [ebp + 0x14]
push edi
push edi
call dword [ebp + 0x24]
mov edx, dword [ebp + 8]
mov dword [ebp + 0x20], ebx
sub dword [ebp + 0x20], edi
add esp, 0xc
lea eax, [esi + edi]
sub edx, ebx
add esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov bl, byte [eax]
dec dword [ebp + 0x10]
lea edi, [eax + ecx]
mov cl, byte [edi + edx]
xor bl, cl
mov byte [edi], bl
mov byte [eax], cl
inc eax
cmp dword [ebp + 0x10], 0
jne 0x42854c
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret