Function at 0x420960
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], 0x2050407
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x4209f2
nop
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 - 0xa15a1ff]
inc eax
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
mov ecx, eax
xor ecx, 0xf8
and eax, 0x78
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x4209b0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44adec]
test ecx, ecx
je 0x420a44
xor edx, edx
mov esi, dword [0x44adf0]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x420a20
inc edx
cmp ecx, edx
jne 0x420a10
jmp 0x420a44
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x420a44
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 5
push 4
push dword [0x44adf4]
push ecx
call fcn.00438160
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x420b02
push dword [esp + 0xc]
call fcn.004360c0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], 0x2050407
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x420ad2
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax - 0xa15a1ff]
inc eax
and eax, edx
or esi, edx
sub esi, eax
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
mov edx, eax
xor edx, 0xf8
and eax, 0x78
lea eax, [edx + eax*2]
inc al
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x420a90
mov eax, dword [esp + 0x10]
mov edx, dword [0x44adec]
test edx, edx
je 0x420b2a
mov ebx, edi
xor esi, esi
mov edi, dword [0x44adf0]
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x420b09
inc esi
cmp edx, esi
jne 0x420af0
mov edi, ebx
jmp 0x420b2a
xor ebx, ebx
jmp 0x420ddd
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x420b2a
push 0
push ecx
push edi
push 5
push 4
push dword [0x44adf4]
push edx
call fcn.00438160
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x420dd4
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 0x420b40
test ebx, ebx
jns 0x420b60
mov eax, 0xffffffff
push eax
call fcn.00408d40
add esp, 4
mov esi, eax
mov edx, dword [edi]
mov eax, edi
mov edi, esi
mov dword [esp + 4], eax
jmp 0x420b8e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x420bb3
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x420b80
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420ba0
jmp 0x420b80
cmp edi, esi
mov dword [esp + 0x30], esi
je 0x420cf7
mov word [edi], 0
movzx ecx, word [esi]
test cx, cx
je 0x420d02
xor ebx, ebx
mov eax, esi
jmp 0x420bed
inc ebx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420c1a
cmp eax, edi
jae 0x420c1a
cmp cx, 0x7f
jbe 0x420be0
movzx edx, cx
lea ecx, [ebx + ebx]
cmp edx, 0x7ff
ja 0x420c10
and ecx, 4
xor ebx, 2
jmp 0x420c16
and ecx, 6
xor ebx, 3
add ebx, ecx
jmp 0x420be1
lea esi, [ebx + 1]
push esi
call fcn.00408d40
add esp, 4
test ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
jle 0x420d1c
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 0x420c66
mov byte [ebx], cl
mov esi, 1
add edx, 2
add ebx, esi
cmp ebx, dword [esp + 0x38]
jae 0x420d1e
cmp edx, edi
jae 0x420d1e
movzx ecx, word [edx]
test cx, cx
je 0x420d1e
cmp cx, 0x7f
jbe 0x420c50
mov eax, ebx
not eax
add eax, dword [esp + 0x34]
cmp eax, 2
jb 0x420cc0
movzx esi, cx
cmp esi, 0x7ff
ja 0x420cc0
mov eax, ecx
shr eax, 6
xor al, 0xc0
mov byte [ebx], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 1], cl
mov esi, 2
jmp 0x420c57
xor esi, esi
cmp eax, 3
jb 0x420c57
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
mov eax, ecx
not eax
or eax, 0x3f
add eax, ecx
add al, 0x81
mov byte [ebx + 2], al
mov esi, 3
jmp 0x420c57
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x420dc8
mov dword [esp + 0x2c], 0
push 1
call fcn.00408d40
add esp, 4
mov ebx, eax
mov dword [esp + 0x28], eax
jmp 0x420d1e
mov ebx, eax
mov edi, dword [esp + 4]
mov byte [ebx], 0
mov dword [esp + 0x10], 0x784d4b68
mov dword [esp + 0x14], 0x4a454649
mov dword [esp + 0x18], 0x5b5e8743
mov word [esp + 0x1c], 0xcd40
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x13
ja 0x420da7
nop
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 + 0x64]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x1ba55064
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x44
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x14
jb 0x420d70
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [esp + 0x2c]
mov esi, dword [esp + 0x2c]
push esi
push eax
call fcn.00409640
mov ebx, eax
push esi
call fcn.00408d50
add esp, 4
push dword [esp + 0x30]
call fcn.00408d50
add esp, 4
push edi
call fcn.00436180
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret