Function at 0x10050eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068acd
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
jbe 0x10051598
test eax, eax
je 0x10051598
xor cl, cl
lea eax, [esi + 0x110]
mov edx, 6
cmp dword [eax - 4], 0
je 0x10050f0f
cmp dword [eax], 0
jne 0x10050f11
inc cl
add eax, 0x14
sub edx, 1
jne 0x10050f04
test cl, cl
jne 0x10051096
movaps xmm0, xmmword [0x10074850]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10050f30
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050f60
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.100051a0
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x10075180]
movups xmmword [ebp - 0xf8], xmm0
mov byte [ebp - 0xd8], 0
movaps xmm0, xmmword [0x10075770]
movups xmmword [ebp - 0xe8], xmm0
mov al, byte [ebp - 0xf8]
xor byte [ebp + ecx - 0xf7], al
inc ecx
cmp ecx, 0x1f
jb 0x10050fa2
xorps xmm0, xmm0
mov byte [ebp - 0xd8], 0
lea ecx, [ebp - 0xf7]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050fe0
sub ecx, edx
lea eax, [ebp - 0xf7]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100051a0
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x10073660]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005104c
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051042
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051090
push ecx
push edx
call fcn.100641c5
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x10051598
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005158e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005158e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp + 0x14]
xor cl, cl
nop dword [eax + eax]
movzx eax, cl
cmp edx, 1
jne 0x10051228
lea eax, [eax + eax*4]
add eax, 0x46
cmp dword [esi + eax*4], 2
jne 0x10051239
movaps xmm0, xmmword [str._pOWER_ruP]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x100510d0
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051100
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.100051a0
mov dword [ebp - 4], 2
xor ecx, ecx
movaps xmm0, xmmword [0x10074ef0]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x84], 0x27287274
movaps xmm0, xmmword [0x10074f00]
movups xmmword [ebp - 0xc4], xmm0
mov byte [ebp - 0x80], 0
movaps xmm0, xmmword [0x10075650]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x100752e0]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x100755e0]
movups xmmword [ebp - 0x94], xmm0
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x53
jb 0x10051180
xorps xmm0, xmm0
mov byte [ebp - 0x80], 0
lea ecx, [ebp - 0xd3]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100511b5
sub ecx, edx
lea eax, [ebp - 0xd3]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100051a0
push 0
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x10073660]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005104c
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051042
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051090
jmp 0x10051042
cmp edx, 2
jne 0x10051239
lea eax, [eax + eax*4]
add eax, 0x46
cmp dword [esi + eax*4], 1
je 0x10051272
inc cl
cmp cl, 6
jb 0x100510a0
xor al, al
movzx ecx, al
mov dword [ebp - 0x7c], ecx
lea edi, [ecx + ecx*4]
cmp dword [esi + edi*4 + 0x10c], 0
ja 0x10051267
cmp dword [esi + edi*4 + 0x110], 0
jbe 0x100513cb
inc al
cmp al, 6
jb 0x10051246
jmp 0x10051598
movaps xmm0, xmmword [0x100749b0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10051280
xorps xmm0, xmm0
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x53]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100512b0
sub ecx, edx
lea eax, [ebp - 0x53]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.100051a0
mov dword [ebp - 4], 4
xor ecx, ecx
movaps xmm0, xmmword [0x100752c0]
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x84], 0x454a10
movaps xmm0, xmmword [0x10074b00]
movups xmmword [ebp - 0xc4], xmm0
movaps xmm0, xmmword [0x10074d20]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x10074bd0]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x10074cb0]
movups xmmword [ebp - 0x94], xmm0
nop
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x52
jb 0x10051320
xorps xmm0, xmm0
mov byte [ebp - 0x81], 0
lea ecx, [ebp - 0xd3]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051358
sub ecx, edx
lea eax, [ebp - 0xd3]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100051a0
push 0
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
push eax
call dword [0x10073660]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1005104c
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051042
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051090
jmp 0x10051042
mov ecx, dword [0x10073588]
mov eax, 0x10624dd3
mul dword [ebp - 0x2c]
mov eax, edx
shr eax, 6
mov dword [ebp - 0x78], eax
imul eax, eax, 0x3e8
push eax
call ecx
mov ecx, eax
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x10051598
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 6
cmp dword [ecx], 0
je 0x100514d3
mov eax, 0x12e0be83
mul dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
mov dword [ebp - 0x74], eax
cmp eax, 4
jae 0x100514d3
cmp byte [ecx + 4], 0x2d
jae 0x100514d3
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100514d0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x78]
mov edx, dword [0x1007358c]
imul eax, eax, 0x3e8
add eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x58]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call edx
test eax, eax
je 0x100514d0
cmp dword [eax + 0x3c], 0
je 0x100514d0
push dword [ebp - 0x2c]
xor edx, edx
lea ecx, [ebp - 0x70]
push eax
call fcn.1000caa0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000d630
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x1005152b
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051521
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10051521
jmp 0x10051090
mov ecx, dword [ebp - 0x58]
push dword [ebp - 0x2c]
mov edx, ecx
lea ecx, [ebp - 0xf0]
push 0
call fcn.1000caa0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000d630
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0xf
jbe 0x1005152b
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051521
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10051090
push ecx
push edx
call fcn.100641c5
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [esi + edi*4 + 0x10c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + edi*4 + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x114], eax
mov eax, dword [ebp - 0x7c]
lea eax, [eax + eax*4]
mov dword [esi + eax*4 + 0x118], ecx
mov esi, dword [esi + edi*4 + 0x11c]
test esi, esi
je 0x1005157d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005157d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x10073608]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10051598
mov edx, dword [ebp - 0x28]
inc ecx
jmp 0x1005106e
push ecx
push edx
call fcn.100641c5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064164
mov esp, ebp
pop ebp
ret 0x10