Function at 0x10050620
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100a4040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100be9bc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xf4], edi
mov al, byte [edi + 0x20d]
mov byte [ebp - 0xd1], al
mov al, byte [edi + 0x20f]
mov byte [ebp - 0xdd], al
xor eax, eax
mov dword [ebp - 0xd8], eax
lea ecx, [eax + 4]
lea eax, [ebp - 0xa4]
mov dword [eax - 4], 0
lea eax, [eax + 0x28]
mov dword [eax - 0x28], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
sub ecx, 1
jne 0x10050684
push 0xa0
push ecx
lea eax, [ebp - 0xa8]
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xfc], eax
cmp dword [edi + 0x54], eax
jle 0x10050d79
movaps xmm5, xmmword [0x1009b120]
xor esi, esi
mov dword [ebp - 0xe4], esi
nop dword [eax]
xor edx, edx
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [edi + 0x38]
and ecx, dword [edi + 0x3c]
or edx, ecx
je 0x100508e2
mov esi, dword [edi + 0xc]
xor eax, eax
add esi, dword [ebp - 0xe4]
cmp byte [ebp - 0xd1], al
mov dword [ebp - 0x114], esi
setg al
inc eax
xor ecx, ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xe8], ecx
nop dword [eax]
test ecx, ecx
jne 0x10050739
mov al, byte [esi + 0x58]
jmp 0x1005073c
mov al, byte [esi + 0x59]
mov edx, dword [edi + 0x1d4]
movzx eax, al
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xdc], edx
lea eax, [eax + eax*2]
mov edx, dword [edx + eax*8]
mov edi, edx
mov dword [ebp - 0xf0], eax
test edx, edx
jle 0x1005078f
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ecx + eax*8 + 8]
lea ecx, [edx + edx*4]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x10050789
mov eax, dword [ebp - 0xf0]
lea edi, [edx - 1]
mov ecx, dword [ebp - 0xdc]
mov dword [ecx + eax*8], edi
mov ecx, dword [ebp - 0xe8]
cmp edi, 1
jne 0x100508bf
test byte [esi], 0x80
jne 0x100507d1
cmp byte [ebp - 0xd1], 0
jg 0x100507b2
movss xmm0, dword [esi + 0x44]
maxss xmm0, dword [esi + 0x48]
jmp 0x100507c7
test ecx, ecx
jne 0x100507c2
movss xmm0, dword [esi + 0x40]
maxss xmm0, dword [esi + 0x48]
jmp 0x100507c7
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x100508bf
cmp byte [ebp - 0xdd], 0
jle 0x100507f3
mov eax, dword [ebp - 0xf4]
movsx eax, byte [eax + 0x20f]
cmp dword [ebp - 0xfc], eax
jge 0x100507f3
xor edx, edx
jmp 0x100507f8
mov edx, 1
cmp byte [ebp - 0xd1], 0
jle 0x10050809
test ecx, ecx
jne 0x10050809
xor eax, eax
jmp 0x1005080e
mov eax, 2
lea edi, [eax + edx]
lea eax, [edi + edi*4]
lea edx, [ebp - 0xa8]
cmp dword [edx + eax*8 + 0x10], 0
lea edx, [edx + eax*8]
jne 0x10050827
movups xmmword [edx], xmm5
mov eax, dword [ebp - 0xec]
mov ecx, eax
shr ecx, 5
and eax, 0x1f
mov dword [ebp - 0xec], eax
mov esi, dword [ebp - 0xec]
mov eax, dword [edx + ecx*4 + 0x14]
bts eax, esi
mov esi, dword [ebp - 0x114]
mov dword [edx + ecx*4 + 0x14], eax
inc dword [edx + 0x10]
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xdc]
movss xmm0, dword [edx]
mov eax, dword [ecx + eax*8 + 8]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x10050885
movss dword [edx], xmm4
movss xmm0, dword [edx + 4]
comiss xmm0, xmm1
jbe 0x10050894
movss dword [edx + 4], xmm1
comiss xmm2, dword [edx + 8]
jbe 0x1005089f
movss dword [edx + 8], xmm2
comiss xmm3, dword [edx + 0xc]
jbe 0x100508aa
movss dword [edx + 0xc], xmm3
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe8]
bts eax, edi
mov dword [ebp - 0xd8], eax
mov edi, dword [ebp - 0xf4]
inc ecx
mov dword [ebp - 0xe8], ecx
cmp ecx, dword [ebp - 0xf8]
jl 0x10050730
mov byte [esi + 0x57], 0xff
mov esi, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xfc]
add esi, 0x68
inc eax
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xfc], eax
cmp eax, dword [edi + 0x54]
jl 0x100506e0
cmp dword [ebp - 0xd8], 0
je 0x10050d79
mov eax, dword [ebp - 0x100]
mov esi, dword [edi + 0x1c8]
add eax, 0x1f34
mov dword [ebp - 0xd8], eax
sub esi, 2
mov eax, dword [eax + 4]
cmp esi, eax
jle 0x1005095f
test eax, eax
je 0x10050945
cdq
sub eax, edx
mov edx, dword [ebp - 0xd8]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x10050950
mov edx, dword [ebp - 0xd8]
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.1004b7a0
mov eax, dword [ebp - 0xd8]
mov edx, 2
xorps xmm0, xmm0
mov dword [ebp - 0xc0], 0
movaps xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xf0], edx
mov dword [eax], esi
mov eax, dword [ebp - 0x100]
mov ecx, dword [edi + 0x1c8]
mov dword [ebp - 0xdc], ecx
mov esi, dword [eax + 0x1f3c]
lea eax, [ecx - 1]
mov dword [ebp - 0xec], esi
cmp eax, edx
jl 0x10050a31
lea esi, [ecx - 1]
mov eax, esi
and eax, 0x1f
mov dword [ebp - 0xf8], eax
nop dword [eax]
mov eax, edx
mov edi, edx
or eax, 0x1f
sar edi, 5
cmp esi, eax
mov ecx, 0x1f
cmovle ecx, dword [ebp - 0xf8]
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
mov ecx, edx
cmovae eax, esi
xor edx, edx
xor esi, eax
and ecx, 0x1f
bts edx, ecx
dec esi
xor eax, eax
cmp ecx, 0x20
cmovae eax, edx
xor edx, eax
neg edx
and esi, edx
mov edx, dword [ebp - 0xf0]
or dword [ebp + edi*4 - 0xd0], esi
add edx, 0x20
mov esi, dword [ebp - 0xdc]
and edx, 0xffffffe0
dec esi
mov dword [ebp - 0xf0], edx
cmp edx, esi
jle 0x100509c0
mov edi, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xec]
movzx edx, byte [edi + 0x213]
movups xmm0, xmmword [edi + 0x144]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
movups xmmword [ebp - 0x110], xmm0
movss xmm1, dword [ebp - 0x104]
mov eax, dword [ebp + ecx*4 - 0xd0]
movss xmm2, dword [ebp - 0x108]
btr eax, edx
movss xmm4, dword [ebp - 0x10c]
movss xmm3, dword [ebp - 0x110]
mov dword [ebp + ecx*4 - 0xd0], eax
xor eax, eax
cmp byte [ebp - 0xd1], al
setg al
add eax, 2
sub dword [ebp - 0xdc], eax
xor edx, edx
mov dword [ebp - 0xe8], edx
nop dword [eax + eax]
lea ecx, [edx + edx*4]
shl ecx, 3
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp + ecx - 0x98]
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x10050c71
lea eax, [ebp - 0xa8]
add ecx, eax
mov eax, edx
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x110], xmm0
and eax, 1
je 0x10050ae3
cmp byte [ebp - 0xdd], 0
jg 0x10050af7
movss xmm0, dword [ebp - 0x110]
minss xmm0, xmm3
movss dword [ebp - 0x110], xmm0
and edx, 2
je 0x10050b05
cmp byte [ebp - 0xd1], 0
jg 0x10050b19
movss xmm0, dword [ebp - 0x10c]
minss xmm0, xmm4
movss dword [ebp - 0x10c], xmm0
test eax, eax
je 0x10050b31
movss xmm0, dword [ebp - 0x108]
maxss xmm0, xmm2
movss dword [ebp - 0x108], xmm0
test edx, edx
je 0x10050b52
test dword [edi + 4], 0x20000
jne 0x10050b52
movss xmm0, dword [ebp - 0x104]
maxss xmm0, xmm1
movss dword [ebp - 0x104], xmm0
mov eax, dword [ebp - 0xdc]
xor edx, edx
sub eax, dword [ecx + 0x10]
mov dword [ebp - 0xdc], eax
mov eax, dword [ecx + 0x14]
not eax
and dword [ebp - 0xd0], eax
mov eax, dword [ecx + 0x18]
not eax
and dword [ebp - 0xcc], eax
mov eax, dword [ecx + 0x1c]
not eax
and dword [ebp - 0xc8], eax
mov eax, dword [ecx + 0x20]
not eax
and dword [ebp - 0xc4], eax
mov eax, dword [ecx + 0x24]
not eax
and dword [ebp - 0xc0], eax
cmp dword [edi + 0x1c8], edx
jle 0x10050c6b
mov dword [ebp - 0xe4], edx
nop dword [eax]
cmp dword [ebp - 0xd8], 0
je 0x10050c6b
mov esi, edx
lea edi, [ebp - 0xa8]
add edi, dword [ebp - 0xf0]
mov ecx, edx
and ecx, 0x1f
sar esi, 5
mov eax, 1
mov dword [ebp - 0xf8], ecx
shl eax, cl
test dword [edi + esi*4 + 0x14], eax
mov edi, dword [ebp - 0xf4]
je 0x10050c51
movaps xmm0, xmmword [ebp - 0x110]
lea eax, [ebp - 0xa8]
add eax, dword [ebp - 0xf0]
dec dword [ebp - 0xd8]
mov eax, dword [eax + esi*4 + 0x14]
btr eax, ecx
lea ecx, [ebp - 0xa8]
add ecx, dword [ebp - 0xf0]
mov dword [ecx + esi*4 + 0x14], eax
mov ecx, dword [edi + 0x1d4]
add ecx, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xec]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm0
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0xec], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
jmp 0x10050c57
mov esi, dword [ebp - 0xec]
add dword [ebp - 0xe4], 0x18
inc edx
cmp edx, dword [edi + 0x1c8]
jl 0x10050bb0
mov edx, dword [ebp - 0xe8]
cmp edx, 1
jne 0x10050cb8
cmp byte [ebp - 0xd1], 0
jle 0x10050cb8
movzx eax, byte [edi + 0x213]
mov edx, esi
add esi, 0x18
mov dword [ebp - 0xec], esi
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x1d4]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
mov edx, dword [ebp - 0xe8]
inc edx
jmp 0x10050a95
inc edx
mov dword [ebp - 0xe8], edx
cmp edx, 4
jl 0x10050aa0
mov eax, dword [edi + 0x1c8]
xor ecx, ecx
mov dword [ebp - 0xd8], ecx
test eax, eax
jle 0x10050d50
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xdc], 0
je 0x10050d50
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0xd8]
mov eax, ecx
sar eax, 5
test dword [ebp + eax*4 - 0xd0], edx
mov edx, dword [ebp - 0xe4]
je 0x10050d36
mov eax, dword [edi + 0x1d4]
mov ecx, esi
add esi, 0x18
dec dword [ebp - 0xdc]
movups xmm0, xmmword [eax + edx]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + edx + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [ebp - 0xd8]
mov eax, dword [edi + 0x1c8]
inc ecx
add edx, 0x18
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xe4], edx
cmp ecx, eax
jl 0x10050ce0
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x100]
push dword [eax + 0x1f3c]
mov eax, dword [edi + 0x1d4]
add eax, 0x30
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1008a073
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret