Function at 0x4205f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx], 0xffffffff
je 0x420642
movzx eax, byte [ebp + 0x14]
movzx edx, byte [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
and dl, 0xf
shl al, 7
or al, dl
mov byte [esp + 6], al
movzx eax, byte [ecx + 4]
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp ebx, 0x7d
mov dword [esp + 0x14], ecx
ja 0x420649
or al, bl
mov byte [esp + 7], al
xor esi, esi
jmp 0x42068e
xor ebx, ebx
jmp 0x420884
cmp ebx, 0xffff
ja 0x420673
or al, 0x7e
mov byte [esp + 7], al
mov eax, ebx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov esi, 2
jmp 0x42068e
or al, 0x7f
mov byte [esp + 7], al
mov eax, ebx
bswap eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov esi, 8
lea eax, [ebx + 0xe]
push eax
call fcn.004083e0
add esp, 4
mov ebx, eax
lea eax, [esp + 6]
mov edx, eax
mov edi, ebx
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, ebx
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov dword [esp + 0x10], ebx
lea eax, [ebx + 2]
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x7e
jb 0x4206fe
mov ecx, esi
shr ecx, 2
lea edx, [esp + 8]
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, esi
not ecx
or ecx, 0xfffffffc
add ecx, esi
add eax, ecx
inc eax
lea edx, [esp + ecx]
add edx, 9
and esi, 2
mov ecx, esi
shr ecx, 1
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
add esi, eax
mov eax, esi
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 4], 0
je 0x42076c
mov edx, dword [ebp + 0x18]
mov ebx, edx
mov edi, eax
mov ecx, 1
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea ebx, [eax + 4]
lea esi, [edx + 4]
mov edi, ebx
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
cmp byte [edx], 0
jne 0x420749
cmp byte [edx + 1], 0
jne 0x420749
cmp byte [edx + 2], 0
jne 0x420749
cmp byte [edx + 3], 0
je 0x420890
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
test edx, edx
je 0x420810
movzx ecx, byte [ebx]
mov edi, edx
and edi, 3
cmp edx, 4
jae 0x4207ba
xor esi, esi
jmp 0x4207f6
mov ecx, ebx
shr ecx, 2
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, ebx
not ecx
mov edx, ecx
or edx, 0xfffffffc
add edx, ebx
lea ebx, [eax + edx]
inc ebx
add esi, edx
inc esi
mov eax, dword [ebp + 0xc]
and eax, 3
or ecx, 0xfffffffe
lea edx, [eax + ecx]
inc edx
mov ecx, eax
shr ecx, 1
mov eax, esi
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
add ebx, edx
mov eax, dword [ebp + 0xc]
test al, 1
je 0x420810
add esi, edx
movzx eax, byte [esi]
mov byte [ebx], al
inc ebx
jmp 0x420810
and dword [esp + 0x18], 0xfffffffc
xor esi, esi
mov edx, dword [ebp + 0x18]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor cl, byte [edx]
mov byte [eax + esi + 5], cl
xor cl, byte [edx + 1]
mov byte [eax + esi + 6], cl
xor cl, byte [edx + 2]
mov byte [eax + esi + 7], cl
xor cl, byte [edx + 3]
mov byte [eax + esi + 8], cl
add esi, 4
cmp dword [esp + 0x18], esi
jne 0x4207d0
add ebx, esi
test edi, edi
mov edx, dword [ebp + 0x18]
je 0x420810
nop
nop
nop
mov eax, esi
and eax, 3
xor cl, byte [edx + eax]
mov byte [ebx + 1], cl
inc ebx
inc esi
dec edi
jne 0x420800
mov esi, dword [esp + 0x10]
sub ebx, esi
push 0xd0026952
push dword [0x44df48]
call fcn.00441930
add esp, 8
push 0
push ebx
push esi
mov esi, dword [esp + 0x20]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x420878
cmp dword [esi], 0xffffffff
je 0x420878
push 0x59ea2086
push dword [0x44df48]
call fcn.00441930
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44df48]
call fcn.00441930
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push dword [esp + 0x10]
call fcn.004083f0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov esi, eax
shr ecx, 2
mov edx, dword [ebp + 8]
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
not ecx
mov eax, ecx
or eax, 0xfffffffc
add eax, esi
add ebx, eax
inc ebx
lea esi, [edx + eax]
inc esi
mov edx, dword [ebp + 0xc]
and edx, 3
or ecx, 0xfffffffe
lea eax, [edx + ecx]
inc eax
mov ecx, edx
shr ecx, 1
mov edx, esi
mov edi, ebx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
add ebx, eax
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x420810
add esi, eax
jmp 0x4207b2