Function at 0x421f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x160
mov dword [esp + 0x20], 0xabebad81
mov dword [esp + 0x24], 0xd746a938
mov dword [esp + 0x28], 0xd3b3d598
mov dword [esp + 0x2c], 0xdfbfd14c
mov dword [esp + 0x30], 0xdbdaddf1
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x37], 0
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x90]
cmp ecx, 0x1a
ja 0x422016
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x90]
movzx edx, byte [esp + edx + 0x20]
lea esi, [ecx + 0x5110cf3a]
and esi, edx
add ecx, edx
add ecx, 0x5110cf3a
add esi, esi
sub ecx, esi
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0xb8]
add cl, 0x6a
mov edx, dword [esp + 0x90]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
cmp ecx, 0x1b
jb 0x421fc0
lea esi, [esp + 0x132]
lea edx, [esp + 0x20]
mov ecx, 5
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x146]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [esp + 0x8c]
push edi
push 0
push 0
push 9
push esi
push 0
call dword [0x441d68]
mov ebx, dword [esp + 0x8c]
test ebx, ebx
jns 0x422065
mov eax, 0xffffffff
jmp 0x422068
lea eax, [ebx + ebx]
push eax
call fcn.00408f60
add esp, 4
push edi
push ebx
mov dword [esp + 0x84], eax
push eax
push 9
push esi
push 0
call dword [0x441d68]
mov dword [esp + 0x20], 0xd37bd19a
mov dword [esp + 0x24], 0xdf71dd4f
mov dword [esp + 0x28], 0xdb4ad94f
mov dword [esp + 0x2c], 0xc7c4c576
mov word [esp + 0x30], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x90]
cmp eax, 0x11
ja 0x422120
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax - 0x1da229d]
add eax, 0x63
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0xb8], edx
mov eax, dword [esp + 0xb8]
add al, 0x4b
mov ecx, dword [esp + 0x90]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0x90]
mov eax, dword [esp + 0x90]
cmp eax, 0x12
jb 0x4220d0
lea edi, [esp + 0x122]
lea edx, [esp + 0x20]
mov ecx, 4
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x132]
lea edx, [esp + 0x30]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov dword [esp + 0x20], 0x8b0b9552
mov dword [esp + 0x24], 0x8f2d891f
mov dword [esp + 0x28], 0x831a8d1f
mov dword [esp + 0x2c], 0x87458126
mov dword [esp + 0x30], 0x7b168521
mov dword [esp + 0x34], 0x7fee79dd
mov dword [esp + 0x38], 0x737c7df1
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x90]
cmp ecx, 0x24
ja 0x422214
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x90]
movzx edx, byte [esp + edx + 0x20]
lea edi, [ecx + 0x7cf81eed]
add ecx, 0xed
and ecx, edx
or edi, edx
sub edi, ecx
mov dword [esp + 0xb8], edi
mov ecx, dword [esp + 0xb8]
add cl, 0x85
mov edx, dword [esp + 0x90]
mov byte [esp + edx + 0x20], cl
inc dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
cmp ecx, 0x25
jb 0x4221c0
lea edi, [esp + 0x90]
lea ebx, [esp + 0x20]
mov ecx, 7
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea edi, [esp + 0xac]
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov dword [esp + 0x20], 0x7bc379a2
mov dword [esp + 0x24], 0x7fd97dcf
mov dword [esp + 0x28], 0x73c271cf
mov dword [esp + 0x2c], 0x77a475d6
mov dword [esp + 0x30], 0x4b8a49a2
lea ebx, [esp + 0x34]
mov word [esp + 0x34], 0x4d4a
mov dword [esp + 0x36], 0
mov dword [esp + 0xf8], 0
mov ecx, dword [esp + 0xf8]
cmp ecx, 0x19
ja 0x4222f4
nop
nop
nop
nop
mov ecx, dword [esp + 0xf8]
mov esi, dword [esp + 0xf8]
movzx esi, byte [esp + esi + 0x20]
add ecx, 0x6035e50f
mov edi, ecx
and edi, esi
mov eax, ecx
xor eax, esi
lea edx, [eax + edi*2]
or ecx, esi
xor ecx, eax
add ecx, edi
mov eax, edx
xor eax, ecx
not ecx
and ecx, edx
add ecx, ecx
sub ecx, eax
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0xb8]
add al, 0x97
mov ecx, dword [esp + 0xf8]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0xf8]
mov eax, dword [esp + 0xf8]
cmp eax, 0x1a
jb 0x422290
lea esi, [esp + 0x146]
lea eax, [esp + 0x20]
mov ecx, 5
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0x15a]
mov ecx, 1
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
lea eax, [esp + 0x122]
mov dword [esp + 0x114], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], esi
lea esi, [esp + 0x38]
mov eax, dword [esp + 0x7c]
add eax, 2
mov dword [esp + 0xac], eax
xor ecx, ecx
mov eax, dword [case.0x421f17.8]
mov dword [esp + 0x84], 0
jmp case.0x421f17.6