Function at 0x42843c
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 0x428523
cmp esi, ecx
je 0x428480
cmp dword [ebp + 0x10], ecx
je 0x428480
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 0x42845c
cmp dword [ebp + 0x10], 0x10
jb 0x4284e5
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 0x4284d6
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 0x4284c3
sub dword [ebp + 0x10], edx
add dword [ebp + 0x20], edx
add ebx, edx
xor esi, esi
dec dword [ebp - 4]
jne 0x4284a5
cmp dword [ebp + 0x10], 0
je 0x4285f7
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 0x42850a
jmp 0x4285f7
cmp esi, ecx
mov ebx, dword [ebp + 0xc]
je 0x42854b
cmp dword [ebp + 0x10], ecx
je 0x42854b
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 0x42852a
cmp dword [ebp + 0x10], 0x10
jb 0x4285ba
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 0x4285a5
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 0x428585
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 0x428561
cmp dword [ebp + 0x10], 0
je 0x4285f7
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 0x4285dc
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret