Function at 0x421e10
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 + 0x14], 0
mov dword [esp + 0x18], 0x32353437
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x421e8f
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax - 0x68990607]
and edx, ecx
add eax, ecx
add eax, 0x9766f9f9
add edx, edx
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x31
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x421e50
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4498e8]
test ecx, ecx
je 0x421ee4
xor edx, edx
mov esi, dword [0x4498ec]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x8bca30fc
je 0x421ec0
inc edx
cmp ecx, edx
jne 0x421eb0
jmp 0x421ee4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x421ee4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x4498f0]
push ecx
call fcn.0043a390
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x421fa2
push dword [esp + 0x14]
call fcn.00438880
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x32353437
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x421f6f
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x18]
lea esi, [eax - 0x68990607]
and esi, edx
add eax, edx
add eax, 0x9766f9f9
add esi, esi
sub eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x31
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x421f30
mov eax, dword [esp + 0x18]
mov edx, dword [0x4498e8]
test edx, edx
je 0x421fca
mov ebx, edi
xor esi, esi
mov edi, dword [0x4498ec]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x8bca30fc
je 0x421fa9
inc esi
cmp edx, esi
jne 0x421f90
mov edi, ebx
jmp 0x421fca
xor ebx, ebx
jmp 0x4222c2
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x421fca
push 0
push ecx
push edi
push 5
push 4
push dword [0x4498f0]
push edx
call fcn.0043a390
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x4222b9
mov eax, dword [edi]
mov ecx, edi
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
inc ebx
mov ecx, edx
test eax, eax
jne 0x421fe0
mov eax, ebx
and eax, 0xfffffefb
mov ecx, ebx
and ecx, 0x104
or ebx, 0x104
imul ebx, ecx
xor ecx, 0x104
imul ecx, eax
add ebx, ecx
jns 0x422019
mov ebx, 0xffffffff
jmp 0x42201b
add ebx, ebx
push ebx
call fcn.00408c40
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov dword [esp + 0x40], edi
mov eax, edi
mov dword [esp + 0xc], ecx
mov edi, ecx
jmp 0x42204e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x422073
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x422040
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422060
jmp 0x422040
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x4221c5
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x4221cc
xor esi, esi
jmp 0x4220b0
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x4220e1
cmp eax, edi
jae 0x4220e1
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x10]
mov esi, 1
cmp ebx, 0x80
jb 0x4220a0
movzx ebx, byte [esp + 0x10]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x4220a0
lea eax, [esi + 1]
mov dword [esp + 0x3c], eax
push eax
call fcn.00408c40
add esp, 4
test esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], eax
jle 0x4221e6
lea ecx, [eax + esi]
mov dword [esp + 0x10], ecx
add dword [esp + 0x3c], eax
mov esi, eax
mov edx, dword [esp + 0xc]
jmp 0x422136
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x10]
jae 0x4221e8
cmp edx, edi
jae 0x4221e8
movzx ecx, word [edx]
test cx, cx
je 0x4221e8
cmp cx, 0x7f
jbe 0x422120
mov eax, esi
not eax
add eax, dword [esp + 0x3c]
cmp eax, 2
jb 0x422190
movzx ebx, cx
cmp ebx, 0x7ff
ja 0x422190
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 0x422127
cmp eax, 3
mov eax, 0
jb 0x422127
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 0x422127
xor ebx, ebx
jmp 0x4222ac
mov dword [esp + 0x38], 0
push 1
call fcn.00408c40
add esp, 4
mov esi, eax
mov dword [esp + 0x34], eax
jmp 0x4221e8
mov esi, eax
mov byte [esi], 0
mov dword [esp + 0x18], 0x84b9b39c
mov dword [esp + 0x1c], 0xba89b685
mov dword [esp + 0x20], 0x8b8ec78b
mov word [esp + 0x24], 0x118c
mov dword [esp + 0x26], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x422287
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x18]
mov edx, ecx
and edx, 0x3f91c7da
xor ecx, 0xbf91c7da
lea ecx, [ecx + edx*2]
mov edx, eax
not edx
or edx, ecx
add edx, eax
inc edx
mov esi, ecx
and esi, eax
mov edi, edx
and edi, esi
xor esi, edx
add ecx, eax
lea eax, [esi + edi*2]
sub ecx, eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 8]
add al, 0xa
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x422230
lea eax, [esp + 0x18]
mov ecx, dword [ebp + 8]
push dword [esp + 0x38]
mov esi, dword [esp + 0x38]
push esi
push eax
call fcn.004096f0
mov ebx, eax
push esi
call fcn.00408c50
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call fcn.00408c50
add esp, 4
mov edi, dword [esp + 0x40]
push edi
call fcn.00438940
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret