Function at 0x4215f0
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], 0xea151417
mov dword [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x421683
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 + 0x18]
lea edx, [eax + ecx]
add edx, 0xcd3d62fd
add eax, 0xfd
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, 0x15
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
mov eax, dword [esp]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 8
jb 0x421630
mov eax, dword [esp + 0x18]
mov ecx, dword [0x44738c]
test ecx, ecx
je 0x4216d4
xor edx, edx
mov esi, dword [0x447390]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x4216b0
inc edx
cmp ecx, edx
jne 0x4216a0
jmp 0x4216d4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4216d4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x447394]
push ecx
call fcn.00436ea0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x421792
push dword [esp + 0x14]
call fcn.004351d0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0xea151417
mov dword [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x421763
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
lea esi, [eax + edx]
add esi, 0xcd3d62fd
add eax, 0xfd
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, 0x15
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
mov eax, dword [esp]
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
mov dword [esp], eax
mov eax, dword [esp]
cmp eax, 8
jb 0x421710
mov eax, dword [esp + 0x18]
mov edx, dword [0x44738c]
test edx, edx
je 0x4217ba
mov ebx, edi
xor esi, esi
mov edi, dword [0x447390]
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x421799
inc esi
cmp edx, esi
jne 0x421780
mov edi, ebx
jmp 0x4217ba
xor ebx, ebx
jmp 0x421a6d
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x4217ba
push 0
push ecx
push edi
push 5
push 4
push dword [0x447394]
push edx
call fcn.00436ea0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x421a64
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 0x4217d0
test ebx, ebx
jns 0x4217f0
mov eax, 0xffffffff
push eax
call fcn.00408c20
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov dword [esp + 4], edi
mov eax, edi
mov dword [esp + 0xc], ecx
mov edi, ecx
jmp 0x42181e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x421843
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x421810
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421830
jmp 0x421810
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x421995
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x4219a0
xor esi, esi
jmp 0x421880
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x4218b1
cmp eax, edi
jae 0x4218b1
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x10]
mov esi, 1
cmp ebx, 0x80
jb 0x421870
movzx ebx, byte [esp + 0x10]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x421870
lea eax, [esi + 1]
mov dword [esp + 0x38], eax
push eax
call fcn.00408c20
add esp, 4
test esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
jle 0x4219ba
lea ecx, [eax + esi]
mov dword [esp + 0x10], ecx
add dword [esp + 0x38], eax
mov esi, eax
mov edx, dword [esp + 0xc]
jmp 0x421906
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x10]
jae 0x4219bc
cmp edx, edi
jae 0x4219bc
movzx ecx, word [edx]
test cx, cx
je 0x4219bc
cmp cx, 0x7f
jbe 0x4218f0
mov eax, esi
not eax
add eax, dword [esp + 0x38]
cmp eax, 2
jb 0x421960
movzx ebx, cx
cmp ebx, 0x7ff
ja 0x421960
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 0x4218f7
cmp eax, 3
mov eax, 0
jb 0x4218f7
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
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x4218f7
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x421a5b
mov dword [esp + 0x34], 0
push 1
call fcn.00408c20
add esp, 4
mov esi, eax
mov dword [esp + 0x30], eax
jmp 0x4219bc
mov esi, eax
mov edi, dword [esp + 4]
mov byte [esi], 0
mov dword [esp + 0x18], 0xc0cdf3d0
mov dword [esp + 0x1c], 0xc2f5f6c1
mov dword [esp + 0x20], 0xf3fe87fb
mov word [esp + 0x24], 0x6df8
mov dword [esp + 0x26], 0
mov word [esp + 0x2a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x13
ja 0x421a36
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + 0x44279d10]
add eax, 0x10
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x90
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x14
jb 0x421a00
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 8]
push dword [esp + 0x34]
mov esi, dword [esp + 0x34]
push esi
push eax
call fcn.004095b0
mov ebx, eax
push esi
call fcn.00408c30
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call fcn.00408c30
add esp, 4
push edi
call fcn.004352b0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret