Function at 0x420be8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
lea edx, [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0x420c31
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dl, byte [eax]
mov byte [esi], dl
inc ecx
add esi, 8
add eax, 4
cmp ecx, 4
jl 0x420c18
inc dword [ebp - 4]
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebx + 0x5e0]
jl 0x420c0e
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], ecx
jmp 0x420c95
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov esi, eax
mov edi, ebx
mov eax, dword [ebp - 8]
inc ecx
cdq
idiv dword [ebx + 0x5e4]
shl eax, 5
lea eax, [edi + eax]
add edi, 8
push eax
mov eax, dword [ebp - 8]
cdq
idiv dword [ebx + 0x5e4]
pop eax
lea edx, [eax + edx + 0x400]
push edx
pop edx
mov al, byte [esi]
add esi, 8
cmp ecx, 4
mov byte [edx], al
jl 0x420c57
inc dword [ebp - 0x18]
inc dword [ebp - 4]
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebx + 0x5e0]
jge 0x420cb2
mov eax, dword [ebx + 0x5e8]
inc eax
imul dword [ebx + 0x5e4]
cmp eax, dword [ebp - 8]
jg 0x420c4e
mov edx, dword [ebp - 0xc]
lea ecx, [edx*4 + 0x4fb950]
mov dword [ebp - 0x1c], ecx
jmp 0x420e5a
xor ecx, ecx
lea eax, [ebp - 0x40]
lea edx, [ecx + 1]
and edx, 0x80000003
jns 0x420cd9
dec edx
or edx, 0xfffffffc
inc edx
mov esi, dword [ebx + 0x5e0]
lea edx, [ebp + edx*8 - 0x40]
inc ecx
movzx edx, byte [edx + esi - 1]
mov dl, byte [ebx + edx + 0x200]
xor byte [eax], dl
add eax, 8
cmp ecx, 4
jl 0x420cc9
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
lea eax, [ebp - 0x40]
xor byte [eax], cl
add dword [ebp - 0x1c], 4
cmp dword [ebx + 0x5e0], 8
je 0x420d43
mov dword [ebp - 4], 1
lea esi, [ebp - 0x40]
jmp 0x420d33
xor ecx, ecx
mov eax, esi
mov dl, byte [eax]
inc ecx
xor byte [eax + 1], dl
add eax, 8
cmp ecx, 4
jl 0x420d21
inc dword [ebp - 4]
inc esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x5e0]
jl 0x420d1d
jmp 0x420de9
mov dword [ebp - 4], 1
lea esi, [ebp - 0x40]
jmp 0x420d65
xor ecx, ecx
mov eax, esi
mov dl, byte [eax]
inc ecx
xor byte [eax + 1], dl
add eax, 8
cmp ecx, 4
jl 0x420d53
inc dword [ebp - 4]
inc esi
mov eax, dword [ebx + 0x5e0]
sar eax, 1
jns 0x420d72
adc eax, 0
cmp eax, dword [ebp - 4]
jg 0x420d4f
xor ecx, ecx
lea eax, [ebp - 0x40]
mov edx, dword [ebx + 0x5e0]
sar edx, 1
jns 0x420d89
adc edx, 0
movzx edx, byte [eax + edx - 1]
mov dl, byte [ebx + edx + 0x200]
mov esi, dword [ebx + 0x5e0]
sar esi, 1
jns 0x420da2
adc esi, 0
xor byte [eax + esi], dl
inc ecx
add eax, 8
cmp ecx, 4
jl 0x420d7c
mov eax, dword [ebx + 0x5e0]
sar eax, 1
jns 0x420dbb
adc eax, 0
inc eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
lea esi, [ebp + edx - 0x41]
jmp 0x420dde
xor ecx, ecx
mov eax, esi
mov dl, byte [eax]
inc ecx
xor byte [eax + 1], dl
add eax, 8
cmp ecx, 4
jl 0x420dcc
inc dword [ebp - 4]
inc esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x5e0]
jl 0x420dc8
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], ecx
jmp 0x420e3d
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov esi, eax
mov edi, ebx
mov eax, dword [ebp - 8]
inc ecx
cdq
idiv dword [ebx + 0x5e4]
shl eax, 5
lea eax, [edi + eax]
add edi, 8
push eax
mov eax, dword [ebp - 8]
cdq
idiv dword [ebx + 0x5e4]
pop eax
lea edx, [eax + edx + 0x400]
push edx
pop edx
mov al, byte [esi]
add esi, 8
cmp ecx, 4
mov byte [edx], al
jl 0x420dff
inc dword [ebp - 0x20]
inc dword [ebp - 4]
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebx + 0x5e0]
jge 0x420e5a
mov eax, dword [ebx + 0x5e8]
inc eax
imul dword [ebx + 0x5e4]
cmp eax, dword [ebp - 8]
jg 0x420df6
mov edx, dword [ebx + 0x5e8]
inc edx
imul edx, dword [ebx + 0x5e4]
cmp edx, dword [ebp - 8]
jg 0x420cc4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret