Function at 0x41d740
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41d760
sar eax, 1
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41d780
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41d79e
mov eax, 0xffffffff
jmp 0x41d7a7
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040c470
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x71420fb0
mov dword [esp + 0xc], 0x75d773e1
mov dword [esp + 0x10], 0x79da77d7
mov dword [esp + 0x14], 0x7d3d7b18
mov dword [esp + 0x18], 0x61ea7fe4
mov dword [esp + 0x1c], 0x65cc63c7
mov dword [esp + 0x20], 0x69cd67f1
mov dword [esp + 0x24], 0x6dc46bf9
mov dword [esp + 0x28], 0x51db6f0c
mov dword [esp + 0x2c], 0x55c653f7
mov dword [esp + 0x30], 0x59fd57c0
mov dword [esp + 0x34], 0x5df35bf6
mov dword [esp + 0x38], 0x41e25fc9
mov word [esp + 0x3c], 0x4340
mov dword [esp + 0x3e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x39
ja 0x41d880
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x32ff59bd
and eax, 0x32ff59bd
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x4f
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x3a
jb 0x41d840
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x41d8b1
add ecx, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41d8a0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41d8e1
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 0x41d8d0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41d911
add ebx, 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 [ebx]
add ebx, 2
test cx, cx
jne 0x41d900
mov word [eax], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x41d920
sar eax, 1
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41d940
inc eax
sar ecx, 1
mov edx, ecx
and edx, eax
add edx, edx
mov ebx, dword [edi]
mov edi, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [ebx + edi + 2], 0
lea edi, [edi + 2]
jne 0x41d960
xor ecx, eax
sar edi, 1
add ecx, edx
lea eax, [edi + ecx]
add eax, 0xd
test eax, eax
jns 0x41d982
mov eax, 0xffffffff
jmp 0x41d98b
add ecx, edi
lea eax, [ecx*2 + 0x1a]
push eax
call fcn.0040c470
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x41d9c2
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41d9b0
mov word [eax], 0x2f
mov dword [esp + 8], 0xd981dbf5
mov dword [esp + 0xc], 0xddaadf50
mov dword [esp + 0x10], 0xd1a0d3a7
mov dword [esp + 0x14], 0xd5a9d7a5
mov dword [esp + 0x18], 0xe998eba5
mov dword [esp + 0x1c], 0xeddfef9d
mov word [esp + 0x20], 0xe3ec
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1f
ja 0x41da7a
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0x83b259cf
and ecx, 0x3b259cf
lea ecx, [ecx*2]
add ecx, ebp
lea ebp, [ecx + edx]
not edx
or ecx, edx
sub edx, ecx
lea ecx, [edx*2]
add ecx, ebp
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov edx, ecx
xor edx, 0xb
and ecx, 0x74
add ecx, ecx
sub ecx, edx
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x20
jb 0x41da20
add eax, 2
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x41daa1
add ecx, 2
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41da90
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41dad1
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 0x41dac0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41db01
add ebx, 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 [ebx]
add ebx, 2
test cx, cx
jne 0x41daf0
mov word [eax], 0
mov dword [esp], 0x191a1bea
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x41db63
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx]
mov edx, eax
xor edx, 0xb6a63f7b
and eax, 0x36a63f7b
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x99
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x41db20
mov eax, esp
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x74]
call fcn.004202f0
add esp, 0x20
mov ebx, eax
jmp dword [0x4492b0]