Function at 0x420700
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 + 0xc], 0
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x420793
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x3381f218
add eax, 0x18
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x420750
mov eax, dword [esp + 0x10]
mov ecx, dword [0x446f44]
test ecx, ecx
je 0x4207e4
xor edx, edx
mov esi, dword [0x446f48]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x4207c0
inc edx
cmp ecx, edx
jne 0x4207b0
jmp 0x4207e4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4207e4
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 5
push 4
push dword [0x446f4c]
push ecx
call fcn.00436a70
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x4208a2
push dword [esp + 0xc]
call fcn.00434f40
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], 0xbcbdbebf
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xe
ja 0x420873
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + edx]
add esi, 0x3381f218
add eax, 0x18
and eax, edx
add eax, eax
mov edx, eax
xor edx, esi
not eax
and eax, esi
add eax, eax
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x58
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xf
jb 0x420830
mov eax, dword [esp + 0x10]
mov edx, dword [0x446f44]
test edx, edx
je 0x4208ca
mov ebx, edi
xor esi, esi
mov edi, dword [0x446f48]
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x4208a9
inc esi
cmp edx, esi
jne 0x420890
mov edi, ebx
jmp 0x4208ca
xor ebx, ebx
jmp 0x420b8b
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x4208ca
push 0
push ecx
push edi
push 5
push 4
push dword [0x446f4c]
push edx
call fcn.00436a70
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x420b82
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 0x4208e0
test ebx, ebx
jns 0x420900
mov eax, 0xffffffff
push eax
call fcn.00409060
add esp, 4
mov esi, eax
mov edx, dword [edi]
mov eax, edi
mov edi, esi
mov dword [esp + 4], eax
jmp 0x42092e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x420953
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x420920
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420940
jmp 0x420920
cmp edi, esi
mov dword [esp + 0x30], esi
je 0x420aa2
mov word [edi], 0
movzx ecx, word [esi]
test cx, cx
je 0x420aad
xor ebx, ebx
mov eax, esi
jmp 0x420997
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ebx, [ebx + ecx*2]
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x4209c5
cmp eax, edi
jae 0x4209c5
cmp cx, 0x7f
jbe 0x420980
movzx ecx, cx
cmp ecx, 0x7ff
ja 0x4209c0
add ebx, 2
jmp 0x42098b
add ebx, 3
jmp 0x42098b
lea esi, [ebx + 1]
push esi
call fcn.00409060
add esp, 4
test ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
jle 0x420ac7
lea ecx, [eax + ebx]
mov dword [esp + 0x38], ecx
add esi, eax
mov ebx, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], esi
jmp 0x420a16
mov byte [ebx], cl
mov esi, 1
add edx, 2
add ebx, esi
cmp ebx, dword [esp + 0x38]
jae 0x420ac9
cmp edx, edi
jae 0x420ac9
movzx ecx, word [edx]
test cx, cx
je 0x420ac9
cmp cx, 0x7f
jbe 0x420a00
mov eax, ebx
not eax
add eax, dword [esp + 0x34]
cmp eax, 2
jb 0x420a70
movzx esi, cx
cmp esi, 0x7ff
ja 0x420a70
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [ebx], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 1], cl
mov esi, 2
jmp 0x420a07
xor esi, esi
cmp eax, 3
jb 0x420a07
movzx esi, cx
mov eax, esi
shr eax, 0xc
or al, 0xe0
mov byte [ebx], al
mov eax, esi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 2], cl
mov esi, 3
jmp 0x420a07
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x420b76
mov dword [esp + 0x2c], 0
push 1
call fcn.00409060
add esp, 4
mov ebx, eax
mov dword [esp + 0x28], eax
jmp 0x420ac9
mov ebx, eax
mov edi, dword [esp + 4]
mov byte [ebx], 0
mov dword [esp + 0x10], 0xdf310
mov dword [esp + 0x14], 0x2f5f601
mov dword [esp + 0x18], 0xf3fe47fb
mov word [esp + 0x1c], 0x6df8
mov dword [esp + 0x1e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x420b55
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x28ccf310]
lea esi, [eax + 0xf0]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0xd7330cf0
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x70
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x420b10
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
push esi
push eax
call fcn.00409960
mov ebx, eax
push esi
call fcn.00409070
add esp, 4
push dword [esp + 0x30]
call fcn.00409070
add esp, 4
push edi
call fcn.00435090
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret