Function at 0x41e4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov edx, 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 0x41e4d0
mov ebx, dword [edx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41e4f0
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41e510
mov eax, 0xffffffff
jmp 0x41e519
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040c690
add esp, 4
mov dword [esp + 8], 0x994e9b78
mov dword [esp + 0xc], 0xa54ba769
mov dword [esp + 0x10], 0xa156a34b
mov dword [esp + 0x14], 0xad65af80
mov dword [esp + 0x18], 0xa956ab54
mov dword [esp + 0x1c], 0xb544b743
mov dword [esp + 0x20], 0xb145b349
mov dword [esp + 0x24], 0xbd4cbf41
mov dword [esp + 0x28], 0xb967bb9c
mov dword [esp + 0x2c], 0x45ba4753
mov dword [esp + 0x30], 0x41b543b8
mov dword [esp + 0x34], 0x4da74fb2
mov dword [esp + 0x38], 0x49ae4bb1
mov word [esp + 0x3c], 0x5748
mov dword [esp + 0x3e], 0
mov word [esp + 0x42], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x3b
ja 0x41e5eb
nop
mov esi, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, esi
xor edx, 0x1eeb7ddb
and esi, 0x1eeb7ddb
lea edx, [edx + esi*2]
xor edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0xb9
mov ecx, dword [esp]
mov byte [esp + ecx + 8], dl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x3c
jb 0x41e5b0
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov edi, eax
test dx, dx
je 0x41e611
add ecx, 2
mov edi, eax
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41e600
mov word [edi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41e641
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41e630
mov word [edi], 0
movzx ecx, word [ebx]
mov esi, eax
test cx, cx
je 0x41e671
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41e660
mov word [edi], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x41e680
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41e6a0
mov edx, dword [esp + 0x60]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x41e6c0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x41e6e4
mov eax, 0xffffffff
jmp 0x41e6ed
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.0040c690
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x41e722
add ebp, 2
mov eax, edi
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 0x41e710
mov word [eax], 0x2f
mov dword [esp + 8], 0x51894f7d
mov dword [esp + 0xc], 0x55a653a8
mov dword [esp + 0x10], 0x59b857b3
mov dword [esp + 0x14], 0x5db15bad
mov dword [esp + 0x18], 0x61b05fad
mov dword [esp + 0x1c], 0x65536395
mov dword [esp + 0x20], 0x6764
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x41e7b8
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0xf67f618d
and ecx, 0xf67f618d
lea ecx, [ecx*2]
add ecx, ebp
lea ebp, [ecx + edx]
and ecx, edx
add ecx, ecx
sub ebp, ecx
mov dword [esp + 4], ebp
mov ecx, dword [esp + 4]
add cl, 0x3f
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x41e770
add eax, 2
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x41e7e1
add ecx, 2
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41e7d0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41e811
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 0x41e800
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41e841
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 0x41e830
mov word [eax], 0
mov dword [esp + 8], 0x9f9e99b6
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x41e8ba
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, 0x3676915a
and eax, 0x3676915a
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
mov ecx, edx
xor ecx, eax
add ecx, eax
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x3e
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x41e870
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x74]
call fcn.00421510
add esp, 0x20
mov ebx, eax
jmp dword [0x44a20c]