Function at 0x409d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov edx, dword [ecx + 0x60]
mov word [esp + 0x18], 0xd3cd
mov byte [esp + 0x1a], 0xda
mov dword [esp + 0x1b], 0
mov dword [esp + 0x1f], 0
mov dword [esp + 0x23], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xe
ja 0x409e0e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x18]
mov edi, 0x23
sub edi, eax
add eax, 0xcf4fbddc
xor edi, eax
and edi, esi
xor edi, eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x28]
add al, 0xfc
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x18], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xf
jb 0x409dd0
mov dword [esp + 8], 0xcec8cc22
mov word [esp + 0xc], 0xc5ce
mov dword [esp + 0xe], 0
mov dword [esp + 0x11], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x409e79
nop
nop
nop
nop
mov eax, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
mov edi, 0xdf
sub edi, eax
add eax, 0xbc69a620
xor edi, eax
and edi, esi
xor edi, eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x28]
add al, 0x20
mov esi, dword [esp]
mov byte [esp + esi + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x409e40
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], 0xe6f8acad
mov dword [esp + 0x2c], 0xeaead8dc
mov dword [esp + 0x30], 0xefe2e8dd
mov dword [esp + 0x34], 0xd2d7cedb
mov dword [esp + 0x38], 0x9ad7dbda
mov dword [esp + 0x3c], 0xd0e5bfb1
mov dword [esp + 0x40], 0xd5df2dd6
mov dword [esp + 0x44], 0xc6e28830
mov dword [esp + 0x48], 0xc8cdc9cb
mov dword [esp + 0x4c], 0xc0cf39cd
mov dword [esp + 0x50], 0xcd92fbc6
mov dword [esp + 0x54], 0xfabbbfbb
mov dword [esp + 0x58], 0xaa46a8b4
mov dword [esp + 0x5c], 0xa6b0e58f
mov dword [esp + 0x60], 0xe187bcb5
mov byte [esp + 0x64], 0xdc
mov dword [esp + 0x65], 0
mov dword [esp + 0x69], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 4], 0
mov esi, dword [esp + 4]
cmp esi, 0x47
ja 0x409f6e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 4]
mov edi, dword [esp + 4]
movzx edi, byte [esp + edi + 0x28]
mov ebx, 0xeb
sub ebx, esi
add esi, 0x7d4f2214
xor ebx, esi
and ebx, edi
xor ebx, esi
mov dword [esp], ebx
mov ebx, dword [esp]
add bl, 0x74
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x28], bl
inc dword [esp + 4]
mov esi, dword [esp + 4]
cmp esi, 0x48
jb 0x409f30
mov esi, dword [ebp + 0xc]
add eax, edx
movzx ebx, byte [esp + 0x28]
mov edx, eax
test bl, bl
je 0x409f9b
lea edi, [esp + 0x29]
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409f90
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409fbb
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 0x409fb0
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x409fdb
lea edi, [esp + 9]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409fd0
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409ffb
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 0x409ff0
mov byte [edx], 0
movzx ebx, byte [esp + 0x18]
test bl, bl
je 0x40a01b
lea esi, [esp + 0x19]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a010
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