Function at 0x41c450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x20], 0xcb45cd68
mov dword [esp + 0x24], 0xc775c944
mov dword [esp + 0x28], 0xc363c54a
mov dword [esp + 0x2c], 0xdf63c17b
mov dword [esp + 0x30], 0xdb66dd78
mov dword [esp + 0x34], 0xd76cd965
mov dword [esp + 0x38], 0xd35fd575
mov dword [esp + 0x3c], 0xaf22d164
lea eax, [esp + 0x40]
mov word [esp + 0x40], 0xadac
mov dword [esp + 0x42], 0
mov dword [esp + 0x46], 0
mov word [esp + 0x4a], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x2b
ja 0x41c531
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x20]
add ecx, 0x64a3e3a2
xor ecx, edx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x70]
mov edx, ecx
xor edx, 0x91
and ecx, 0x11
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x20], cl
mov ecx, dword [esp + 8]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
cmp ecx, 0x2c
jb 0x41c4e0
lea edi, [esp + 0x70]
lea edx, [esp + 0x20]
mov ecx, 8
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x90]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41c560
cmp eax, 0xffffffdd
jge 0x41c577
mov eax, 0xffffffff
jmp 0x41c57a
add eax, 0x22
push eax
call fcn.00409270
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41c5b1
add edi, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41c5a0
mov word [eax], 0
movzx ecx, word [esp + 0x70]
test cx, cx
je 0x41c5e1
lea edx, [esp + 0x72]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41c5d0
mov word [eax], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x23b121b1
mov dword [esp + 0x24], 0xdf0bdda8
mov dword [esp + 0x28], 0xdb50d941
mov dword [esp + 0x2c], 0xd74bd556
mov dword [esp + 0x30], 0xd35dd140
mov dword [esp + 0x34], 0xcf5dcd49
mov dword [esp + 0x38], 0xcb1dc958
mov dword [esp + 0x3c], 0xc711c51f
mov dword [esp + 0x40], 0xc326c11c
mov dword [esp + 0x44], 0xff71fd4d
mov dword [esp + 0x48], 0xfb6af961
mov dword [esp + 0x4c], 0xf765f507
mov dword [esp + 0x50], 0xf37cf160
mov dword [esp + 0x54], 0xef64ed6d
mov dword [esp + 0x58], 0xeb13e962
mov dword [esp + 0x5c], 0xe723e576
mov dword [esp + 0x60], 0xe3e0e13c
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x4f
ja 0x41c6fb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax + 0x33e49d7b]
add eax, 0x7b
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
add al, 0xa3
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x50
jb 0x41c6c0
lea eax, [esp + 8]
push eax
push 0x41cb80
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0041d6e0
add esp, 0x10
mov ebx, eax
jmp dword [0x444554]