Function at 0x409710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov esi, dword [ebp + 8]
mov dword [esp + 0x7c], ecx
add esi, dword [ecx + 0x60]
mov dword [esp + 0x80], 0xf7ccce23
mov dword [esp + 0x84], 0xaf2cbc1
mov dword [esp + 0x88], 0xcefaf0dc
mov dword [esp + 0x8c], 0xfbcf0d36
mov dword [esp + 0x90], 0xfbf1f0c4
mov dword [esp + 0x94], 0xc3f8f0f9
mov dword [esp + 0x98], 0xf437c137
mov dword [esp + 0x9c], 0xfcfbf7fe
mov dword [esp + 0xa0], 0x4e484cd4
mov word [esp + 0xa4], 0x454e
mov dword [esp + 0xa6], 0
mov dword [esp + 0xaa], 0
mov dword [esp + 0xae], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x31
ja 0x409817
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x80]
lea eax, [ecx + 0x72fbbcd0]
add ecx, 0xd0
and ecx, edx
or eax, edx
sub eax, ecx
mov ecx, eax
xor ecx, 0x4f
and eax, 0x4f
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x80], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x32
jb 0x4097d0
mov dword [esp + 0xcf], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0x737c604a
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x12
ja 0x40988b
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add al, 0x2e
xor al, byte [esp + ecx + 0xc0]
add al, 0xbe
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0xc0], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x13
jb 0x409860
mov dword [esp + 0x10], 0x16106c6d
mov dword [esp + 0x14], 0x1212607c
mov dword [esp + 0x18], 0xf3a307d
mov dword [esp + 0x1c], 0xa370e33
mov dword [esp + 0x20], 0x72073332
mov dword [esp + 0x24], 0x38655f59
mov dword [esp + 0x28], 0x53f0d06
mov dword [esp + 0x2c], 0x65a4008
mov dword [esp + 0x30], 0xd0103
mov dword [esp + 0x34], 0x80f010d
mov dword [esp + 0x38], 0x2d6a4316
mov dword [esp + 0x3c], 0x52131f13
mov dword [esp + 0x40], 0x22162024
mov dword [esp + 0x44], 0x2618654f
mov dword [esp + 0x48], 0x99b7dce5
mov dword [esp + 0x4c], 0xdae2e4da
mov dword [esp + 0x50], 0xd592ba92
mov dword [esp + 0x54], 0xe9d3e9ed
mov dword [esp + 0x58], 0xa6cff4c9
mov word [esp + 0x5c], 0x6d8e
mov dword [esp + 0x65], 0
mov dword [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x58
ja 0x409994
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
add al, 0xc8
xor al, byte [esp + ecx + 0x10]
add al, 0x88
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp eax, 0x59
jb 0x409960
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, esi
test cl, cl
je 0x4099bb
lea edi, [esp + 0x11]
mov edx, esi
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x4099b0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x4099db
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x4099d0
mov byte [edx], 0
movzx eax, byte [esp + 0xc0]
test al, al
je 0x409a0b
lea ecx, [esp + 0xc1]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409a00
mov edi, dword [ebp + 0x14]
mov byte [edx], 0
movzx eax, byte [esp + 0x80]
test al, al
mov dword [esp + 0xc], esi
je 0x409a3b
lea ecx, [esp + 0x81]
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409a30
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
mov ecx, edi
and ecx, 3
je 0x409a5f
cmp ecx, 2
jne 0x409a71
mov ecx, edi
shr ecx, 1
mov edi, edx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
jmp 0x409b0d
mov ecx, edi
shr ecx, 2
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
jmp 0x409b0d
test edi, edi
je 0x409b0d
mov eax, dword [ebp + 0x14]
mov edi, eax
and edi, 7
je 0x409aae
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esi + ecx]
mov byte [edx + ecx], bl
inc ecx
cmp edi, ecx
jne 0x409a90
add esi, ecx
mov eax, dword [ebp + 0x14]
mov edi, eax
sub edi, ecx
add ecx, edx
cmp eax, 8
jae 0x409ab7
jmp 0x409b0d
mov edi, eax
mov ecx, edx
cmp eax, 8
jb 0x409b0d
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esi + ebx]
mov byte [ecx + ebx], al
movzx eax, byte [esi + ebx + 1]
mov byte [ecx + ebx + 1], al
movzx eax, byte [esi + ebx + 2]
mov byte [ecx + ebx + 2], al
movzx eax, byte [esi + ebx + 3]
mov byte [ecx + ebx + 3], al
movzx eax, byte [esi + ebx + 4]
mov byte [ecx + ebx + 4], al
movzx eax, byte [esi + ebx + 5]
mov byte [ecx + ebx + 5], al
movzx eax, byte [esi + ebx + 6]
mov byte [ecx + ebx + 6], al
movzx eax, byte [esi + ebx + 7]
mov byte [ecx + ebx + 7], al
add ebx, 8
cmp edi, ebx
jne 0x409ac0
mov dword [esp + 0x10], 0x60674345
mov dword [esp + 0x14], 0x6478aaac
mov dword [esp + 0x18], 0xbc67b6b2
mov dword [esp + 0x1c], 0xbab9b5ba
mov dword [esp + 0x20], 0xadaabeb1
mov dword [esp + 0x24], 0x69536eb9
mov word [esp + 0x28], 0x6b6d
mov byte [esp + 0x2a], 0x1c
mov dword [esp + 0x2b], 0
mov dword [esp + 0x2f], 0
mov dword [esp + 0x33], 0
mov dword [esp + 0x37], 0
mov word [esp + 0x3b], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x80]
cmp eax, 0x2c
ja 0x409bd7
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x80]
movzx esi, byte [esp + eax + 0x10]
lea eax, [ecx + esi]
add eax, 0x89
add ecx, 0x89
and ecx, esi
add ecx, ecx
sub eax, ecx
add al, 0x41
mov ecx, dword [esp + 0x80]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x80]
mov eax, dword [esp + 0x80]
cmp eax, 0x2d
jb 0x409b90
add edx, dword [ebp + 0x14]
movzx eax, byte [esp + 0x10]
test al, al
je 0x409bfd
lea ecx, [esp + 0x11]
mov esi, dword [esp + 0xc]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409bf0
jmp 0x409c01
mov esi, dword [esp + 0xc]
mov byte [edx], 0
sub edx, esi
mov eax, dword [esp + 0x7c]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10