Function at 0x41f860
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x104
push ebx
push ebp
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
push esi
push edi
mov ebp, edx
movq qword [esp + 0x80], xmm0
mov esi, ecx
mov dword [esp + 0x8c], 0
movups xmmword [esp + 0x50], xmm0
movups xmmword [esp + 0x60], xmm0
movups xmmword [esp + 0x70], xmm0
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x50]
sub edx, 1
jne 0x41f8a0
cmp dword [esp + 0x50], ebp
jne 0x41f8d3
mov eax, dword [esp + 0x124]
mov dword [eax], edx
mov eax, dword [esp + 0x128]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [esp + 0x128]
mov ecx, 1
mov edx, dword [edi]
cmp dword [esp + ecx*4 + 0x50], 0
jne 0x41f8ee
inc ecx
cmp ecx, 0xf
jbe 0x41f8e1
cmp edx, ecx
mov dword [esp + 0x18], ecx
mov eax, ecx
cmovae eax, edx
mov edx, 0xf
nop
cmp dword [esp + edx*4 + 0x50], 0
jne 0x41f90c
sub edx, 1
jne 0x41f900
cmp eax, edx
mov dword [esp + 0x30], edx
mov ebx, edx
cmovbe ebx, eax
mov dword [esp + 0x24], ebx
mov dword [edi], ebx
mov ebx, 1
shl ebx, cl
cmp ecx, edx
jae 0x41f941
nop dword [eax + eax]
sub ebx, dword [esp + ecx*4 + 0x50]
js 0x41fcb0
inc ecx
add ebx, ebx
cmp ecx, edx
jb 0x41f930
lea ecx, [edx*4]
mov eax, dword [esp + ecx + 0x50]
sub ebx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ebx
js 0x41fcb0
add eax, ebx
lea edi, [esp + 0x54]
mov dword [esp + ecx + 0x50], eax
lea ebx, [esp + 0x98]
xor ecx, ecx
mov dword [esp + 0x94], ecx
sub edx, 1
je 0x41f992
nop dword [eax + eax]
mov eax, dword [edi]
lea edi, [edi + 4]
add ecx, eax
lea ebx, [ebx + 4]
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x41f980
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
mov ebx, dword [esp + 0x134]
test edx, edx
je 0x41f9b6
mov eax, dword [esp + edx*4 + 0x90]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0x90], eax
inc ecx
cmp ecx, ebp
jb 0x41f994
mov eax, dword [esp + 0x34]
xor ebp, ebp
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov dword [esp + 0x1c], ebx
xor esi, esi
mov ebx, edx
mov dword [esp + 0x34], ebp
mov eax, dword [esp + eax + 0x90]
neg ebx
mov dword [esp + 0x48], eax
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0xd4], ebp
cmp eax, dword [esp + 0x30]
jg 0x41fc8a
lea eax, [esp + eax*4 + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
nop dword [eax + eax]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
je 0x41fc76
mov eax, dword [esp + 0x28]
nop word [eax + eax]
mov dword [esp + 0x44], eax
dec eax
mov dword [esp + 0x28], eax
lea eax, [edx + ebx]
cmp dword [esp + 0x18], eax
jle 0x41fb53
mov edi, dword [esp + 0x30]
mov ebx, eax
inc ecx
mov dword [esp + 0x40], ebx
sub edi, ebx
mov dword [esp + 0x14], ecx
cmp edi, edx
mov eax, 1
cmova edi, edx
mov edx, dword [esp + 0x18]
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x44]
jbe 0x41faaa
mov esi, dword [esp + 0x2c]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x28]
add eax, ecx
cmp edx, edi
jae 0x41faaa
inc edx
cmp edx, edi
jae 0x41faaa
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x41faaa
inc edx
sub eax, ecx
cmp edx, edi
jb 0x41fa97
mov eax, dword [esp + 0x130]
mov ecx, edx
mov edi, 1
shl edi, cl
mov eax, dword [eax]
lea ecx, [eax + edi]
cmp ecx, 0x5a0
ja 0x41fcb0
mov esi, dword [esp + 0x12c]
lea esi, [esi + eax*8]
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xd4], esi
mov eax, dword [esp + 0x130]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41fb39
mov eax, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0x90], ebp
mov ecx, ebx
sub ecx, eax
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x38], dl
mov edx, ebp
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xd0]
mov eax, esi
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esp + 0x14]
jmp 0x41fb42
mov eax, dword [esp + 0x124]
mov dword [eax], esi
mov edx, dword [esp + 0x24]
lea eax, [edx + ebx]
cmp dword [esp + 0x18], eax
jg 0x41fa56
mov edx, dword [esp + 0x18]
mov al, dl
mov ecx, dword [esp + 0x48]
sub al, bl
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x134]
lea eax, [eax + ecx*4]
cmp dword [esp + 0x1c], eax
jb 0x41fb7a
mov byte [esp + 0x38], 0xc0
jmp 0x41fbd0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jae 0x41fba8
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x38], al
jmp 0x41fbd0
sub ecx, eax
mov eax, dword [esp + 0x120]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov ecx, edx
mov eax, ebp
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x41fc05
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
nop dword [eax]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, edx
cmp eax, edi
jb 0x41fbf0
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test ebp, eax
je 0x41fc1f
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x41fc17
mov edx, dword [esp + 0x24]
xor ebp, eax
mov ecx, ebx
mov dword [esp + 0x34], ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x14]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x90]
je 0x41fc66
dec ecx
sub ebx, edx
mov dword [esp + 0x14], ecx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x14]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x90]
jne 0x41fc42
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x41fa40
mov eax, dword [esp + 0x18]
add dword [esp + 0x2c], 4
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x30]
jle 0x41fa20
cmp dword [esp + 0x4c], 0
je 0x41f8c6
cmp dword [esp + 0x30], 1
je 0x41f8c6
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x104
ret