Function at 0x10050dd0
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
push 0xffffffffffffffff
push 0x102c5979
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x1066bbc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
xor edx, edx
movups xmm0, xmmword [0x10344fac]
mov al, byte [0x10344fcc]
mov esi, dword [0x106d5adc]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xb8], al
mov dword [ebp - 0x4c], edx
movups xmmword [ebp - 0xd8], xmm0
movups xmm0, xmmword [0x10344fbc]
movups xmmword [ebp - 0xc8], xmm0
cmp esi, 2
jl 0x10050fa3
movaps xmm0, xmmword [0x10654660]
lea eax, [edx + 4]
movaps xmm4, xmmword [0x106544f0]
movaps xmm3, xmmword [0x10654a40]
movaps xmm5, xmmword [0x10654530]
movaps xmmword [ebp - 0x100], xmm0
mov ecx, dword [ebp - 0x100]
nop dword [eax]
movd xmm0, edx
add edx, 8
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + eax - 0xdc]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + eax - 0xdc], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + eax - 0xd8]
xorps xmm1, xmm0
movd dword [ebp + eax - 0xd8], xmm1
add eax, 8
cmp eax, 0x24
jl 0x10050e90
mov dword [ebp - 0x4c], edx
cmp edx, 0x21
jge 0x10050fd7
mov eax, 0xa0a0a0a1
imul edx
add edx, dword [ebp - 0x4c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x4c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x33
sub cl, al
add cl, 0x37
xor byte [ebp + edx - 0xd8], cl
inc edx
mov dword [ebp - 0x4c], edx
cmp edx, 0x21
jl 0x10050fa3
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x6c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050ff5
sub ecx, edx
lea eax, [ebp - 0xd8]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.10053700
mov byte [ebp - 4], 1
lea edi, [ebp - 0x6c]
movups xmm0, xmmword [0x10344fd0]
cmp dword [ebp - 0x58], 0xf
cmova edi, dword [ebp - 0x6c]
cmp byte [0x10344fe7], 0
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [0x10344fe0]
movq qword [ebp - 0x8c], xmm0
je 0x100511c9
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp esi, 2
jl 0x10051195
movaps xmm0, xmmword [0x10654660]
lea eax, [edx + 4]
movaps xmm4, xmmword [0x106544f0]
movaps xmm3, xmmword [0x10654a40]
movaps xmm5, xmmword [0x10654530]
movaps xmmword [ebp - 0x100], xmm0
mov ecx, dword [ebp - 0x100]
movd xmm0, edx
add edx, 8
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + eax - 0xa0]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + eax - 0xa0], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x106545f0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + eax - 0x9c]
xorps xmm1, xmm0
movd dword [ebp + eax - 0x9c], xmm1
add eax, 8
cmp eax, 0x1c
jl 0x10051082
mov dword [ebp - 0x4c], edx
cmp edx, 0x18
jge 0x100511c9
mov eax, 0xa0a0a0a1
imul edx
add edx, dword [ebp - 0x4c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x4c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x33
sub cl, al
add cl, 0x37
xor byte [ebp + edx - 0x9c], cl
inc edx
mov dword [ebp - 0x4c], edx
cmp edx, 0x18
jl 0x10051195
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb4], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100511f0
sub ecx, edx
lea eax, [ebp - 0x9c]
push ecx
push eax
lea ecx, [ebp - 0xb4]
call fcn.10053700
mov byte [ebp - 4], 2
lea edx, [ebp - 0xb4]
cmp dword [ebp - 0xa0], 0xf
cmova edx, dword [ebp - 0xb4]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051230
sub ecx, esi
mov eax, accept
mov esi, dword [ebx + 0x18]
sub eax, esi
cmp eax, ecx
jb 0x10051618
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
push esi
cmova eax, dword [ebx + 8]
push eax
push ecx
push edx
push ecx
push dword [ebp - 0x51]
lea ecx, [ebp - 0xf0]
call fcn.10053d80
push edi
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 3
call fcn.10052200
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push dword [ebp - 0x54]
call fcn.10052200
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x1005133a
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051330
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005140c
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0xf
jbe 0x1005138d
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051383
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005140c
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0xf
jbe 0x100513e2
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100513d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005140c
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x1005141c
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051412
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10051412
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102c1b57
add esp, 8
cmp dword [ebp - 0x1c], 0xf
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
cmova edx, dword [ebp - 0x30]
call fcn.100508c0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x38]
inc eax
push eax
call fcn.102c1b65
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
cmova edx, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
add ecx, edx
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x54]
cmova eax, dword [ebp - 0x48]
sub ecx, eax
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [0x10344fe8]
add esp, 0x10
mov dword [ebp - 0x54], eax
xor edx, edx
mov ax, word [0x10344fec]
mov word [ebp - 0x50], ax
mov al, byte [0x10344fee]
mov byte [ebp - 0x4e], al
mov dword [ebp - 0x4c], edx
nop word [eax + eax]
mov eax, 0xa0a0a0a1
mul edx
shr edx, 5
movsx eax, dl
mov edx, dword [ebp - 0x4c]
mov cl, dl
imul eax, eax, 0x33
sub cl, al
add cl, 0x37
xor byte [ebp + edx - 0x54], cl
inc edx
mov dword [ebp - 0x4c], edx
cmp edx, 7
jl 0x10051490
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x6c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100514d2
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.10053700
cmp dword [ebp - 0x58], 0xf
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x6c]
cmova eax, dword [ebp - 0x6c]
push ecx
push eax
push esi
call fcn.1004ddf0
mov ecx, dword [ebp - 0x58]
add esp, 0xc
cmp ecx, 0xf
jbe 0x10051537
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005152d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005152d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1005156e
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051564
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100515e8
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0xf
jbe 0x100515b0
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100515a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100515e8
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0xf
jbe 0x100515f8
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100515ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100515ee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102c1b57
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102c15f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1004df80
int3