Function at 0x421950
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0x2b282956
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x4219be
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 + 0x14]
add eax, 0x52ff67bf
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x16
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x421990
mov eax, dword [esp + 0x14]
mov ecx, dword [0x44cd9c]
test ecx, ecx
je 0x421a14
xor edx, edx
mov esi, dword [0x44cda0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x4219f0
inc edx
cmp ecx, edx
jne 0x4219e0
jmp 0x421a14
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x421a14
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 5
push 4
push dword [0x44cda4]
push ecx
call fcn.0043f410
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x421aca
push dword [esp + 0x28]
call fcn.0043d360
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 0x2b282956
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x421a8e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x14]
add eax, 0x52ff67bf
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x16
mov edx, dword [esp]
mov byte [esp + edx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x421a60
mov eax, dword [esp + 0x14]
mov edx, dword [0x44cd9c]
test edx, edx
je 0x421af3
xor esi, esi
mov edi, dword [0x44cda0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x421ad1
mov ebx, esi
and ebx, 1
xor esi, 1
lea esi, [esi + ebx*2]
cmp esi, edx
jb 0x421ab0
jmp 0x421af3
xor ebx, ebx
jmp 0x421da6
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x421af3
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x44cda4]
push edx
call fcn.0043f410
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x421d9a
mov ecx, dword [esp + 0xc]
mov ebp, dword [ecx]
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov esi, ebx
and esi, 1
xor ebx, 1
lea ebx, [ebx + esi*2]
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x421b10
lea eax, [ebx*4]
mov ecx, ebx
shl ecx, 8
add ecx, eax
jns 0x421b3e
mov eax, 0xffffffff
jmp 0x421b46
mov eax, ebx
shl eax, 9
lea eax, [eax + ebx*8]
push eax
call fcn.00409660
add esp, 4
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
jmp 0x421b72
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x421ba3
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x421b60
add ecx, 2
mov esi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421b90
jmp 0x421b62
xor ebx, ebx
mov eax, dword [esp + 4]
cmp edi, eax
je 0x421d91
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x421c04
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x421bde
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x421c04
cmp eax, edi
jae 0x421c04
movzx ebp, cx
cmp ebp, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebp, 0x80
jb 0x421bd0
mov edx, ecx
jmp 0x421bd0
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
push eax
call fcn.00409660
add esp, 4
mov edx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x421d05
mov edx, dword [esp + 0x10]
cmp dword [esp + 4], edi
jae 0x421d05
mov edx, dword [esp + 0x10]
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
add dword [esp + 0x2c], edx
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edi]
test cx, cx
je 0x421d05
cmp cx, 0x7f
ja 0x421c70
mov byte [edx], cl
mov ebp, 1
jmp 0x421cf0
mov eax, edx
not eax
add eax, dword [esp + 0x2c]
movzx ebp, cx
cmp eax, 2
jb 0x421cb0
cmp ebp, 0x7ff
ja 0x421cb0
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov ebp, 2
jmp 0x421cf0
mov dword [esp + 0x30], ebp
xor ebp, ebp
cmp eax, 3
jb 0x421cf0
mov ebp, dword [esp + 0x30]
mov eax, ebp
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, ebp
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 2], cl
mov ebp, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, ebp
cmp edx, dword [esp + 0x34]
jae 0x421d05
lea eax, [edi + 2]
cmp edi, esi
mov edi, eax
jb 0x421c50
mov byte [edx], 0
mov dword [esp + 0x14], 0xf2fffdde
mov dword [esp + 0x18], 0xf0e7e0f7
mov dword [esp + 0x1c], 0xe1ec39e5
mov dword [esp + 0x20], 0x1bee
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x421d6e
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x14]
add eax, 0x50982ce
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x40
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x421d40
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x14]
push esi
push eax
call fcn.0040a070
mov ebx, eax
push esi
call fcn.00409670
add esp, 4
mov eax, dword [esp + 4]
push eax
call fcn.00409670
add esp, 4
push dword [esp + 0xc]
call fcn.0043d3f0
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret