Function at 0x420bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0x12111017
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x420c8c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x52f3f3fd]
add eax, 3
or eax, edx
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0xeb
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x420c40
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4498f8]
test ecx, ecx
je 0x420ce4
xor edx, edx
mov esi, dword [0x4498fc]
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 + 0x2c]
push eax
push 0
push 0
push 5
push 4
push dword [0x449900]
push ecx
call fcn.00438640
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x420dc2
push dword [esp + 0x2c]
call fcn.004364c0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0x12111017
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x420d8c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax - 0x52f3f3fd]
add eax, 3
or eax, esi
and eax, edx
or esi, edx
sub esi, eax
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add al, 0xeb
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
mov eax, dword [esp + 4]
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x420d40
mov eax, dword [esp + 0x10]
mov edx, dword [0x4498f8]
test edx, edx
je 0x420dea
mov ebx, edi
xor esi, esi
mov edi, dword [0x4498fc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x420dc9
inc esi
cmp edx, esi
jne 0x420db0
mov edi, ebx
jmp 0x420dea
xor ebx, ebx
jmp 0x4210ae
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x420dea
push 0
push ecx
push edi
push 5
push 4
push dword [0x449900]
push edx
call fcn.00438640
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x4210a5
mov ecx, dword [edi]
xor eax, eax
mov edx, edi
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x420e00
test ebx, ebx
jns 0x420e20
mov eax, 0xffffffff
push eax
call fcn.00408c60
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov eax, edi
mov dword [esp + 0xc], ecx
mov edi, ecx
mov dword [esp + 0x3c], eax
jmp 0x420e4e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x420e73
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x420e40
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420e60
jmp 0x420e40
xor ebx, ebx
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x421098
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x420edd
xor ebx, ebx
mov eax, dword [esp + 0xc]
jmp 0x420eae
add ebx, esi
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420edd
cmp eax, edi
jae 0x420edd
movzx edx, cx
xor ecx, ecx
cmp edx, 0x800
setb byte [esp + 0x28]
mov esi, 1
cmp edx, 0x80
jb 0x420ea0
movzx edx, byte [esp + 0x28]
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x420ea0
lea eax, [ebx + 1]
push eax
call fcn.00408c60
add esp, 4
mov edx, ebx
and edx, 1
mov ecx, ebx
xor ecx, 1
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx]
dec edx
mov esi, eax
mov dword [esp + 0x30], eax
cmp edx, eax
jbe 0x420fe4
mov eax, edx
mov esi, dword [esp + 0x30]
mov edx, esi
add edx, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
jmp 0x420f38
mov byte [esi], dl
mov ecx, 1
mov edx, dword [esp + 0x28]
add edx, 2
add esi, ecx
cmp esi, eax
jae 0x420fe4
cmp edx, edi
jae 0x420fe4
mov dword [esp + 0x28], edx
movzx edx, word [edx]
test dx, dx
je 0x420fe4
cmp dx, 0x7f
jbe 0x420f20
mov ecx, esi
not ecx
mov eax, ecx
and eax, dword [esp + 0x40]
xor ecx, dword [esp + 0x40]
lea ecx, [ecx + eax*2]
movzx eax, dx
cmp ecx, 2
jb 0x420fa0
cmp eax, 0x7ff
ja 0x420fa0
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [esi], cl
and dl, 0x3f
or dl, 0x80
mov byte [esi + 1], dl
mov ecx, 2
mov eax, dword [esp + 0x38]
jmp 0x420f27
mov dword [esp + 0x34], eax
mov eax, ecx
xor ecx, ecx
cmp eax, 3
mov eax, dword [esp + 0x38]
jb 0x420f27
mov ecx, dword [esp + 0x34]
shr ecx, 0xc
or cl, 0xe0
mov byte [esi], cl
mov ecx, dword [esp + 0x34]
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [esi + 2], dl
mov ecx, 3
jmp 0x420f27
mov byte [esi], 0
mov dword [esp + 0x10], 0xdec9cbb6
mov dword [esp + 0x14], 0xd8c9c8dd
mov dword [esp + 0x18], 0xfbc48fcb
mov word [esp + 0x1c], 0x75c6
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x17
ja 0x421070
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xc77c0b0f
add eax, 0xc77c0b0f
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x97
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x18
jb 0x421030
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [esp + 0x34]
push esi
push eax
call fcn.00409480
mov ebx, eax
push esi
call fcn.00408c70
add esp, 4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0xc]
jmp 0x42109c
mov edi, dword [esp + 0x3c]
push eax
call fcn.00408c70
add esp, 4
push edi
call fcn.00436590
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret