Function at 0x41ca60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ebx, dword [eax + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x41ca80
mov edi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41caa0
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x4c], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], ecx
jns 0x41cace
mov eax, 0xffffffff
jmp 0x41cad5
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040c860
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 8], 0x9fd299c4
mov dword [esp + 0xc], 0xa3c59def
mov dword [esp + 0x10], 0xa7caa1c1
mov dword [esp + 0x14], 0xabefa584
mov dword [esp + 0x18], 0xafdaa9d0
mov dword [esp + 0x1c], 0xb3c0adc9
mov dword [esp + 0x20], 0xb7dfb1c7
mov dword [esp + 0x24], 0xbbc8b5c7
mov dword [esp + 0x28], 0xbfe9b998
mov dword [esp + 0x2c], 0xc3b6bdd9
mov dword [esp + 0x30], 0xc7afc1b4
mov dword [esp + 0x34], 0xcba1c5b6
mov dword [esp + 0x38], 0xcf92c9bf
mov dword [esp + 0x3c], 0xcdcc
mov byte [esp + 0x40], 0
lea eax, [esp + 8]
mov ecx, 0x3e32b265
movzx edx, byte [eax]
mov esi, ecx
or esi, edx
lea ebp, [ecx - 0x3e32b200]
and ebp, edx
not esi
or esi, ebp
mov edx, esi
or edx, 0xfd
add edx, esi
not esi
or esi, 0xfd
add edx, esi
add dl, 2
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x3e32b22c
jne 0x41cb60
movzx ecx, word [ebx]
mov edx, dword [esp + 0x44]
mov eax, edx
test cx, cx
je 0x41cbc1
add ebx, 2
mov eax, edx
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41cbb0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41cbf1
lea edx, [esp + 0xa]
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 0x41cbe0
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x41cc21
add edi, 2
nop
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 0x41cc10
mov word [eax], 0
mov eax, dword [esp + 0x6c]
mov esi, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41cc40
mov ecx, dword [esp + 0x6c]
mov ebp, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41cc60
mov edx, dword [esp + 0x70]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x41cc80
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x41cca4
mov eax, 0xffffffff
jmp 0x41ccad
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.0040c860
add esp, 4
mov ebx, eax
movzx eax, word [esi]
mov dword [esp + 4], ebx
test ax, ax
je 0x41cce1
add esi, 2
mov ebx, dword [esp + 4]
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x41ccd0
mov word [ebx], 0x2f
mov dword [esp + 8], 0x81498775
mov dword [esp + 0xc], 0x8d3e8338
mov dword [esp + 0x10], 0x89388f23
mov dword [esp + 0x14], 0x95218b35
mov dword [esp + 0x18], 0x91209725
mov dword [esp + 0x1c], 0x9d63932d
mov dword [esp + 0x20], 0x9f9c
mov byte [esp + 0x24], 0
mov eax, 0xe1
mov ecx, 0x1e
nop
nop
nop
movzx esi, byte [esp + eax - 0xd9]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x9b
mov byte [esp + eax - 0xd9], dl
inc eax
dec ecx
cmp eax, 0xfe
jne 0x41cd30
add ebx, 2
movzx eax, word [ebp]
test ax, ax
je 0x41cd82
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x41cd70
mov word [ebx], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x41cdb1
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cda0
mov word [ebx], 0
movzx eax, word [edi]
test ax, ax
je 0x41cde1
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x41cdd0
mov word [ebx], 0
mov dword [esp + 8], 0xf9fafb2a
mov word [esp + 0xc], 0
mov eax, 0x578cde2b
mov ecx, 0xa87321d4
nop
movzx esi, byte [esp + eax - 0x578cde23]
mov edi, ecx
and edi, 0xa80000ce
mov edx, eax
and edx, 0x52089431
or edx, edi
xor edx, esi
mov esi, edx
and esi, 1
and edx, 0xfe
xor edx, 0xcf
add edx, esi
add dl, 0x28
mov byte [esp + eax - 0x578cde23], dl
inc eax
dec ecx
cmp eax, 0x578cde31
jne 0x41ce00
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov esi, dword [esp + 0x54]
push esi
push dword [esp + 0x18]
push dword [esp + 0x80]
call fcn.004201e0
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x445c58]