Function at 0x10074800
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, 0x128
mov eax, dword [0x1017d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101ad8fc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xf0], edi
mov al, byte [edi + 0x1c6]
mov esi, dword [edi + 0x174]
mov byte [ebp - 0xd1], al
mov al, byte [edi + 0x1c8]
mov byte [ebp - 0xd2], al
xor eax, eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], esi
lea ecx, [eax + 4]
lea eax, [ebp - 0xa4]
mov dword [eax - 4], 0
xorps xmm0, xmm0
mov dword [eax], 0
lea eax, [eax + 0x28]
mov dword [eax - 0x24], 0
mov dword [eax - 0x20], 0
movups xmmword [eax - 0x18], xmm0
mov dword [eax - 8], 0
mov dword [eax - 0x1c], 0
sub ecx, 1
jne 0x10074870
xor eax, eax
mov dword [ebp - 0x100], eax
cmp dword [edi + 0x54], eax
jle 0x10074f88
movaps xmm5, xmmword [0x10173ee0]
xor esi, esi
mov dword [ebp - 0xf4], esi
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 0x10074b10
mov esi, dword [edi + 0x10]
xor eax, eax
add esi, dword [ebp - 0xf4]
mov dl, byte [ebp - 0xd1]
test dl, dl
mov dword [ebp - 0xf8], esi
setg al
inc eax
xor edi, edi
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xfc], edi
test edi, edi
jne 0x1007491f
mov al, byte [esi + 0x58]
jmp 0x10074922
mov al, byte [esi + 0x59]
mov ecx, dword [ebp - 0xe0]
movzx eax, al
mov dword [ebp - 0xd8], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe8], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0xec], eax
test eax, eax
jle 0x100749b9
mov edi, dword [ebp - 0xe4]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0xe8]
add edx, edx
mov esi, dword [edi + eax*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xfc]
cmp dword [esi + edx*8 - 0x10], 0
mov esi, dword [ebp - 0xf8]
jne 0x100749b3
mov eax, dword [ebp - 0xe8]
mov edi, dword [ebp - 0xe4]
mov esi, dword [edi + eax*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xfc]
cmp dword [esi + edx*8 - 0xc], 0
mov esi, dword [ebp - 0xf8]
jne 0x100749b3
mov edx, dword [ebp - 0xe4]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0xe8]
mov dword [edx + eax*8], ecx
mov dl, byte [ebp - 0xd1]
cmp ecx, 1
jne 0x10074ae7
test dword [esi], 0x100
jne 0x100749f9
test dl, dl
jg 0x100749da
movss xmm0, dword [esi + 0x44]
maxss xmm0, dword [esi + 0x48]
jmp 0x100749ef
test edi, edi
jne 0x100749ea
movss xmm0, dword [esi + 0x40]
maxss xmm0, dword [esi + 0x48]
jmp 0x100749ef
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x10074ae7
cmp byte [ebp - 0xd2], 0
jle 0x10074a1b
mov eax, dword [ebp - 0xf0]
movsx eax, byte [eax + 0x1c8]
cmp dword [ebp - 0x100], eax
jge 0x10074a1b
xor ecx, ecx
jmp 0x10074a20
mov ecx, 1
test dl, dl
jle 0x10074a2c
test edi, edi
jne 0x10074a2c
xor eax, eax
jmp 0x10074a31
mov eax, 2
add eax, ecx
lea edx, [ebp - 0xa8]
mov dword [ebp - 0xec], eax
lea eax, [eax + eax*4]
cmp dword [edx + eax*8 + 0x10], 0
lea edx, [edx + eax*8]
jne 0x10074a4f
movups xmmword [edx], xmm5
mov eax, dword [ebp - 0xd8]
mov ecx, eax
shr ecx, 5
and eax, 0x1f
mov dword [ebp - 0xd8], eax
mov esi, dword [ebp - 0xd8]
mov eax, dword [edx + ecx*4 + 0x14]
bts eax, esi
mov esi, dword [ebp - 0xf8]
mov dword [edx + ecx*4 + 0x14], eax
inc dword [edx + 0x10]
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xe4]
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 0x10074aad
movss dword [edx], xmm4
movss xmm0, dword [edx + 4]
comiss xmm0, xmm1
jbe 0x10074abc
movss dword [edx + 4], xmm1
comiss xmm2, dword [edx + 8]
jbe 0x10074ac7
movss dword [edx + 8], xmm2
comiss xmm3, dword [edx + 0xc]
jbe 0x10074ad2
movss dword [edx + 0xc], xmm3
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xec]
bts ecx, eax
mov dword [ebp - 0xdc], ecx
mov dl, byte [ebp - 0xd1]
inc edi
mov dword [ebp - 0xfc], edi
cmp edi, dword [ebp - 0x108]
jl 0x10074916
mov edi, dword [ebp - 0xf0]
mov byte [esi + 0x57], 0xff
mov esi, dword [ebp - 0xf4]
mov eax, dword [ebp - 0x100]
add esi, 0x68
inc eax
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0x100], eax
cmp eax, dword [edi + 0x54]
jl 0x100748c8
cmp dword [ebp - 0xdc], 0
je 0x10074f88
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x104]
add eax, 0x4a10
mov dword [ebp - 0xec], eax
mov esi, dword [ecx + 4]
sub esi, 2
mov edi, dword [eax + 4]
cmp esi, edi
jle 0x10074b8f
test edi, edi
je 0x10074b71
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x10074b76
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0xec]
push eax
call fcn.1006e3b0
mov eax, dword [ebp - 0xec]
mov dword [eax], esi
mov edx, 2
mov eax, dword [ebp - 0x104]
xorps xmm0, xmm0
movaps xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xec], edx
mov esi, dword [eax + 0x4a18]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], esi
mov edi, dword [eax + 4]
mov dword [ebp - 0xd8], edi
lea eax, [edi - 1]
cmp eax, edx
jl 0x10074c5d
lea esi, [edi - 1]
mov eax, esi
and eax, 0x1f
mov dword [ebp - 0x108], eax
nop word [eax + eax]
mov eax, edx
mov edi, edx
or eax, 0x1f
sar edi, 5
cmp esi, eax
mov ecx, 0x1f
cmovle ecx, dword [ebp - 0x108]
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 - 0xec]
or dword [ebp + edi*4 - 0xd0], esi
add edx, 0x20
mov edi, dword [ebp - 0xd8]
and edx, 0xffffffe0
mov dword [ebp - 0xec], edx
lea esi, [edi - 1]
cmp edx, esi
jle 0x10074bf0
mov esi, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xf0]
movzx edx, byte [eax + 0x1cc]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [ebp + ecx*4 - 0xd0]
btr eax, edx
mov dword [ebp + ecx*4 - 0xd0], eax
xor eax, eax
cmp byte [ebp - 0xd1], al
setg al
add eax, 2
sub edi, eax
xor eax, eax
mov dword [ebp - 0xd8], edi
mov edi, dword [ebp - 0xf0]
movups xmm0, xmmword [edi + 0x140]
movups xmmword [ebp - 0x120], xmm0
movss xmm1, dword [ebp - 0x114]
movss xmm2, dword [ebp - 0x118]
movss xmm4, dword [ebp - 0x11c]
movss xmm3, dword [ebp - 0x120]
mov dword [ebp - 0xe8], eax
nop word [eax + eax]
lea edx, [eax + eax*4]
shl edx, 3
mov ecx, dword [ebp + edx - 0x98]
mov dword [ebp - 0xf4], ecx
test ecx, ecx
je 0x10074e8e
lea edi, [ebp - 0xa8]
add edi, edx
mov edx, eax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x120], xmm0
and edx, 1
je 0x10074d1d
cmp byte [ebp - 0xd2], 0
jg 0x10074d31
movss xmm0, dword [ebp - 0x120]
minss xmm0, xmm3
movss dword [ebp - 0x120], xmm0
and eax, 2
je 0x10074d3f
cmp byte [ebp - 0xd1], 0
jg 0x10074d53
movss xmm0, dword [ebp - 0x11c]
minss xmm0, xmm4
movss dword [ebp - 0x11c], xmm0
test edx, edx
je 0x10074d6b
movss xmm0, dword [ebp - 0x118]
maxss xmm0, xmm2
movss dword [ebp - 0x118], xmm0
test eax, eax
je 0x10074d92
mov eax, dword [ebp - 0xf0]
test dword [eax + 4], 0x20000
jne 0x10074d92
movss xmm0, dword [ebp - 0x114]
maxss xmm0, xmm1
movss dword [ebp - 0x114], xmm0
mov eax, dword [ebp - 0xd8]
xor edx, edx
sub eax, dword [edi + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [edi + 0x14]
not eax
and dword [ebp - 0xd0], eax
mov eax, dword [edi + 0x18]
not eax
and dword [ebp - 0xcc], eax
mov eax, dword [edi + 0x1c]
not eax
and dword [ebp - 0xc8], eax
mov eax, dword [edi + 0x20]
not eax
and dword [ebp - 0xc4], eax
mov eax, dword [edi + 0x24]
not eax
and dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xe0]
cmp dword [eax + 4], edx
jle 0x10074e82
mov dword [ebp - 0xdc], edx
nop
test ecx, ecx
je 0x10074e82
mov esi, edx
mov ecx, edx
and ecx, 0x1f
sar esi, 5
mov eax, 1
shl eax, cl
test dword [edi + esi*4 + 0x14], eax
je 0x10074e5f
mov eax, dword [edi + esi*4 + 0x14]
movaps xmm0, xmmword [ebp - 0x120]
btr eax, ecx
mov dword [edi + esi*4 + 0x14], eax
mov eax, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xe4]
dec dword [ebp - 0xf4]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0xdc]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm0
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0xe4], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
jmp 0x10074e65
mov esi, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe0]
inc edx
add dword [ebp - 0xdc], 0x18
mov ecx, dword [ebp - 0xf4]
cmp edx, dword [eax + 4]
jl 0x10074df0
mov edi, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xe8]
cmp eax, 1
jne 0x10074ed8
cmp byte [ebp - 0xd1], 0
jle 0x10074ed8
movzx eax, byte [edi + 0x1cc]
mov edx, esi
add esi, 0x18
mov dword [ebp - 0xe4], esi
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
mov eax, dword [ebp - 0xe8]
movq qword [edx + 0x10], xmm0
inc eax
jmp 0x10074ccf
inc eax
mov dword [ebp - 0xe8], eax
cmp eax, 4
jl 0x10074ce0
mov ecx, dword [ebp - 0xe0]
xor edi, edi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x10074f62
mov dword [ebp - 0xdc], edi
nop dword [eax]
cmp dword [ebp - 0xd8], 0
je 0x10074f62
mov eax, edi
mov ecx, edi
and ecx, 0x1f
sar eax, 5
mov edx, 1
shl edx, cl
test dword [ebp + eax*4 - 0xd0], edx
je 0x10074f4d
mov eax, dword [ebp - 0xe0]
mov ecx, esi
add esi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0xdc]
dec dword [ebp - 0xd8]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [ebp - 0xe0]
inc edi
add dword [ebp - 0xdc], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x10074f00
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x104]
push dword [eax + 0x4a18]
mov eax, dword [ecx + 0x10]
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.100fe801
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret