Function at 0x420c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x3a393837
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x420c8b
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + 7]
and edx, ecx
mov esi, 0xeadf4f8
sub esi, eax
or esi, ecx
not esi
add esi, ecx
sub esi, edx
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add al, 0xcf
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x420c50
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4484a4]
test ecx, ecx
je 0x420ce4
xor edx, edx
mov esi, dword [0x4484a8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x420cc0
inc edx
cmp ecx, edx
jne 0x420cb0
jmp 0x420ce4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x420ce4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x4484ac]
push ecx
call fcn.00437d00
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x420dde
push dword [esp + 0x14]
call fcn.00435f00
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x3a393837
mov dword [esp + 0x1c], 0
mov word [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x420d6b
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
lea esi, [eax + 7]
and esi, edx
mov edi, 0xeadf4f8
sub edi, eax
or edi, edx
not edi
add edi, edx
sub edi, esi
mov dword [esp + 8], edi
mov eax, dword [esp + 8]
add al, 0xcf
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x420d30
mov eax, dword [esp + 0x18]
mov edx, dword [0x4484a4]
test edx, edx
je 0x420d9e
xor esi, esi
mov edi, dword [0x4484a8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x420de5
inc esi
cmp edx, esi
jne 0x420d90
mov edi, dword [esp + 4]
xor ebx, ebx
test eax, eax
js 0x421086
mov eax, dword [edi]
mov ecx, edi
mov edx, ebx
and edx, 1
xor ebx, 1
lea ebx, [ebx + edx*2]
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x420db0
lea eax, [ebx*4]
mov ecx, ebx
shl ecx, 8
add ecx, eax
jns 0x420e0a
mov eax, 0xffffffff
jmp 0x420e12
xor ebx, ebx
jmp 0x42108f
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, dword [esp + 4]
je 0x420da2
push 0
push ecx
push edi
push 5
push 4
push dword [0x4484ac]
push edx
call fcn.00437d00
add esp, 0x1c
jmp 0x420da2
mov eax, ebx
shl eax, 9
lea eax, [eax + ebx*8]
push eax
call fcn.00408da0
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov eax, edi
mov dword [esp + 0xc], ecx
mov edi, ecx
jmp 0x420e3e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x420e63
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x420e30
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420e50
jmp 0x420e30
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x420fba
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x420fc5
xor esi, esi
jmp 0x420ea0
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420ed1
cmp eax, edi
jae 0x420ed1
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x10]
mov esi, 1
cmp ebx, 0x80
jb 0x420e90
movzx ebx, byte [esp + 0x10]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x420e90
lea eax, [esi + 1]
mov dword [esp + 0x38], eax
push eax
call fcn.00408da0
add esp, 4
test esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
jle 0x420fdf
lea ecx, [eax + esi]
mov dword [esp + 0x10], ecx
add dword [esp + 0x38], eax
mov esi, eax
mov edx, dword [esp + 0xc]
jmp 0x420f26
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x10]
jae 0x420fe1
cmp edx, edi
jae 0x420fe1
movzx ecx, word [edx]
test cx, cx
je 0x420fe1
cmp cx, 0x7f
jbe 0x420f10
mov eax, esi
not eax
add eax, dword [esp + 0x38]
cmp eax, 2
jb 0x420f80
movzx ebx, cx
cmp ebx, 0x7ff
ja 0x420f80
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x420f17
cmp eax, 3
mov eax, 0
jb 0x420f17
movzx ebx, cx
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [esi + 1], bl
mov eax, ecx
not eax
or eax, 0x3f
add eax, ecx
add al, 0x81
mov byte [esi + 2], al
mov eax, 3
jmp 0x420f17
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x42107d
mov dword [esp + 0x34], 0
push 1
call fcn.00408da0
add esp, 4
mov esi, eax
mov dword [esp + 0x30], eax
jmp 0x420fe1
mov esi, eax
mov edi, dword [esp + 4]
mov byte [esi], 0
mov dword [esp + 0x18], 0x14615b3c
mov dword [esp + 0x1c], 0x12616615
mov dword [esp + 0x20], 0x636e2763
mov word [esp + 0x24], 0xf96c
mov dword [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x421058
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax - 0x785c1a62]
add eax, 0x9e
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0xae
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x421020
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 8]
push dword [esp + 0x34]
mov esi, dword [esp + 0x34]
push esi
push eax
call fcn.00409790
mov ebx, eax
push esi
call fcn.00408db0
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call fcn.00408db0
add esp, 4
push edi
call fcn.00435fb0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret