Function at 0x5b7152f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x18], 0
push edi
mov edi, dword [ebp + 0xc]
jle 0x5b715389
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [edi + 0xb7c]
mov dword [ebp - 0xc], eax
lea eax, [edi + 0x3f1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
mov ecx, dword [edi + 4]
add eax, ecx
mov dword [ebp - 0x1c], eax
test ecx, ecx
jns 0x5b715341
mov dword [edi + 4], eax
jmp 0x5b71536f
push dword [ebp - 4]
lea eax, [edi + 0x1d7c]
push eax
push edi
push dword [ebp - 0x10]
push esi
mov esi, dword [ebp - 8]
call fcn.5b714333
push dword [ebp - 0x1c]
lea eax, [edi + 0x1d7c]
push eax
push esi
push edi
push dword [ebp - 0xc]
call fcn.5b7144f0
mov esi, dword [ebp + 0x14]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], 0x27
add dword [ebp - 8], 0x1c
add dword [ebp - 0xc], 0x900
cmp eax, dword [esi + 0x18]
jl 0x5b715329
test byte [esi + 0x14], 1
je 0x5b7153ab
push esi
mov esi, dword [ebp + 0x10]
lea eax, [edi + 0x3f43]
push eax
lea eax, [edi + 0xb7c]
push eax
call fcn.5b714be9
mov esi, dword [ebp + 0x14]
jmp 0x5b7153c5
mov eax, dword [esi + 0x14]
shr eax, 1
test al, 1
je 0x5b7153c5
lea eax, [edi + 0xb7c]
push eax
mov ecx, 0x240
call fcn.5b714a32
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x18], eax
jle 0x5b715684
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0xb7c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add edx, 0xe
add eax, 4
mov dword [ebp - 0xc], edx
mov dword [ebp + 8], eax
jmp 0x5b7153f5
mov esi, eax
mov eax, dword [esi]
mov ecx, eax
shr ecx, 1
not ecx
and ecx, 1
and eax, 1
add ecx, eax
imul ecx, ecx, 3
add ecx, dword [esi + 0xc]
movzx esi, byte [edx - 2]
sub ecx, 2
neg ecx
sbb ecx, ecx
inc ecx
neg esi
sbb esi, esi
and esi, 2
shl esi, cl
cmp byte [edx], 0
mov dword [ebp - 0x14], 0x1f
je 0x5b7154c1
mov ecx, dword [ebp - 0x1c]
lea eax, [esi - 1]
mov dword [ebp - 0x14], eax
movzx eax, byte [edx - 1]
add eax, dword [edx - 0xe]
add ecx, esi
imul ecx, ecx, 0x48
lea edx, [edi + 0x1e1c]
lea ecx, [ecx + edi + 0xb7c]
mov dword [ebp - 0x20], ecx
mov dword [ebp + 0x10], edx
jmp 0x5b715499
jle 0x5b715493
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
fld dword [ecx]
add dword [ebp + 0x10], 4
fstp dword [edx]
mov edx, dword [ebp - 0x10]
fld dword [ecx + edx*4]
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
fstp dword [edx]
mov edx, dword [ebp - 0x10]
fld dword [ecx + edx*8]
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x10], 4
fstp dword [edx]
add ecx, 4
dec dword [ebp - 0x18]
jne 0x5b71545f
mov edx, dword [ebp - 0x10]
add eax, 3
lea ecx, [ecx + edx*8]
movzx edx, byte [eax]
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x5b71545a
mov eax, dword [ebp + 0x10]
lea ecx, [edi + 0x1e1c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push dword [ebp - 0x20]
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x5b715541
mov eax, dword [ebp - 8]
add eax, 0x38
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x5b722c30
lea eax, [ecx + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
movups xmm1, xmmword [ecx]
mov ecx, dword [ebp - 0x10]
movups xmm0, xmmword [ecx - 0x20]
movups xmm2, xmmword [ecx]
movups xmm3, xmmword [eax]
mov ecx, dword [ebp + 0x10]
add dword [ebp - 0x10], 0x10
sub dword [ebp + 0x10], 0x10
movaps xmm5, xmm0
shufps xmm1, xmm1, 0x1b
movaps xmm4, xmm2
mulps xmm4, xmm1
mulps xmm5, xmm3
subps xmm5, xmm4
movups xmmword [eax], xmm5
mulps xmm0, xmm1
mulps xmm2, xmm3
addps xmm0, xmm2
add eax, 0x10
cmp dword [ebp - 0x10], 0x5b722c50
shufps xmm0, xmm0, 0x1b
movups xmmword [ecx], xmm0
jl 0x5b7154e4
dec dword [ebp - 0x18]
add dword [ebp - 0x14], 0x48
cmp dword [ebp - 0x18], 0
jg 0x5b7154d4
movzx eax, byte [edx - 3]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
test esi, esi
je 0x5b71557a
push 0x5b722cb0
push eax
mov eax, esi
mov edx, ecx
call fcn.5b714e9b
mov edx, dword [ebp - 0xc]
mov ecx, esi
imul ecx, ecx, 0x48
add ecx, dword [ebp - 8]
mov eax, esi
imul eax, eax, 0x24
add eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x18], 2
jne 0x5b7155fc
push 0x20
pop eax
sub eax, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
test eax, eax
jle 0x5b715627
mov eax, dword [ebp + 0x10]
add eax, 0x18
mov dword [ebp + 0x10], eax
jmp 0x5b7155a1
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
push 0x12
pop ecx
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax - 0x18]
push 6
pop ecx
mov edi, edx
mov dword [ebp - 0x20], esi
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x30]
push eax
lea edi, [esi - 0x18]
lea eax, [ebp - 0x68]
call fcn.5b7150c9
push dword [ebp + 0x10]
mov edi, esi
lea eax, [ebp - 0x64]
call fcn.5b7150c9
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x60]
call fcn.5b7150c9
dec dword [ebp - 0x18]
add dword [ebp + 0x10], 0x24
add dword [ebp - 0x10], 0x48
cmp dword [ebp - 0x18], 0
jg 0x5b71559e
mov edi, dword [ebp + 0xc]
jmp 0x5b715624
xor edx, edx
mov dword [ebp + 0x10], 0x20
sub dword [ebp + 0x10], esi
cmp dword [ebp - 0x18], 3
sete dl
imul edx, edx, 0x48
add edx, 0x5b722cb0
push edx
push eax
mov eax, dword [ebp + 0x10]
mov edx, ecx
call fcn.5b714e9b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, 0x48
mov dword [ebp + 0x10], 0x10
xor ecx, ecx
inc ecx
movss xmm0, dword [eax + ecx*4]
xorps xmm0, xmmword [0x5b722db0]
movss dword [eax + ecx*4], xmm0
add ecx, 2
cmp ecx, 0x12
jl 0x5b715637
add eax, 0x90
dec dword [ebp + 0x10]
jne 0x5b715634
inc dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
add dword [ebp - 0x1c], 0x20
add dword [ebp + 8], 0x480
add dword [ebp - 8], 0x900
add edx, 0x1c
mov dword [ebp - 0xc], edx
cmp ecx, dword [eax + 0x18]
jl 0x5b7153f3
pop edi
pop esi
leave
ret 0x10