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, 0xa0
mov eax, dword [ebp + 8]
add eax, dword [ecx + 0x60]
mov dword [esp + 0x50], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov word [esp + 0x50], 0x6b6d
mov byte [esp + 0x52], 0x62
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
cmp edx, 0x1f
ja 0x4097b7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
add dl, 0x90
xor dl, byte [esp + esi + 0x50]
add dl, 0x10
mov esi, dword [esp + 0x10]
mov byte [esp + esi + 0x50], dl
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp edx, 0x20
jb 0x409790
mov dword [esp + 0x70], 0xb4b2b654
mov word [esp + 0x74], 0xbdb0
mov dword [esp + 0x76], 0
mov dword [esp + 0x7a], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
cmp edx, 0x10
ja 0x409834
nop
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
movzx edi, byte [esp + edx + 0x70]
lea edx, [esi + edi]
add edx, 0x829d5d47
add esi, 0x829d5d47
and esi, edi
add esi, esi
sub edx, esi
mov esi, edx
xor esi, 0xe
and edx, 0xe
lea edx, [esi + edx*2]
inc dl
mov esi, dword [esp + 0x10]
mov byte [esp + esi + 0x70], dl
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp edx, 0x11
jb 0x4097f0
mov dword [esp + 0x10], 0x36380c0d
mov dword [esp + 0x14], 0x2a2a181c
mov dword [esp + 0x18], 0x2fd2281d
mov dword [esp + 0x1c], 0x22272edb
mov dword [esp + 0x20], 0x1a27dbda
mov dword [esp + 0x24], 0xe0357f41
mov dword [esp + 0x28], 0xe51fede6
mov dword [esp + 0x2c], 0x163228e0
mov dword [esp + 0x30], 0xe8ede9eb
mov dword [esp + 0x34], 0xf00ff90d
mov dword [esp + 0x38], 0xd423bf6
mov dword [esp + 0x3c], 0x3afbfffb
mov dword [esp + 0x40], 0xaf60804
mov dword [esp + 0x44], 0xf600b5cf
mov dword [esp + 0x48], 0xb1d7fc05
mov byte [esp + 0x4c], 0x9c
mov word [esp + 0x4d], 0
mov byte [esp + 0x4f], 0
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0xc]
cmp edx, 0x3f
ja 0x4098f7
nop
nop
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0xc]
add dl, 0xcc
xor dl, byte [esp + esi + 0x10]
add dl, 0x6c
mov esi, dword [esp + 0xc]
mov byte [esp + esi + 0x10], dl
inc dword [esp + 0xc]
mov edx, dword [esp + 0xc]
cmp edx, 0x40
jb 0x4098d0
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esp + 0x10]
mov edx, eax
test bl, bl
je 0x40991b
lea edi, [esp + 0x11]
mov edx, eax
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409910
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40993b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x409930
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 0x70]
test bl, bl
je 0x40995b
lea edi, [esp + 0x71]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409950
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40997b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x409970
mov byte [edx], 0
movzx ebx, byte [esp + 0x50]
test bl, bl
je 0x40999b
lea esi, [esp + 0x51]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x409990
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc