Function at 0x100422c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101610bd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101ed004]
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
mov eax, dword [ebp + 8]
mov cl, byte [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
test cl, cl
je 0x1004252e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004252e
cmp cl, 3
jne 0x1004252e
lea edi, [eax + eax*2]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x1c], xmm0
call fcn.10146843
mov ecx, eax
mov dword [ebp - 0x14], edi
add esp, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], vtable.CArkAutoByte.0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0
push edi
push ecx
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0x18]
call eax
test eax, eax
jne 0x10042371
mov dword [esi + 0x744], 0xa0000003
xor esi, esi
jmp 0x1004251a
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x20], 0xdea58cb6
test edi, edi
jle 0x10042392
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax - 0x20]
xor byte [ecx + edx], al
inc ecx
cmp ecx, edi
jl 0x10042381
cmp dword [ebp - 0x28], 0
jle 0x10042515
lea ecx, [edx + 1]
mov dword [ebp - 0x24], ecx
movzx edi, byte [ecx + 1]
movzx eax, byte [ecx]
shl edi, 8
add edi, eax
movzx eax, byte [ecx - 1]
shl edi, 8
push 0x28
add edi, eax
call fcn.101427a2
mov ecx, dword [ebp - 0x34]
mov edx, eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x20], edx
add esp, 4
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
movq qword [edx + 0x20], xmm0
mov dword [edx], eax
mov eax, edi
shr eax, 0x16
and edi, 0x3fffff
mov dword [edx + 4], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], 0
test eax, eax
jne 0x1004240b
xor ecx, ecx
jmp 0x10042417
mov ecx, edi
cmp eax, 1
jne 0x10042414
jmp 0x10042417
or edi, 0xffffffff
mov dword [edx + 8], ecx
lea eax, [edx + 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov dword [edx + 0xc], edi
mov eax, dword [eax]
mov dword [edx + 0x10], 0xffffffff
mov dword [edx + 0x14], 0xffffffff
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [esi + 0x82c]
mov edi, dword [esi + 0x830]
mov dword [ebp - 0x38], eax
cmp eax, edi
jb 0x100424ed
lea edx, [eax + 1]
cmp edx, edi
jbe 0x100424ed
cmp dword [esi + 0x828], 0
jne 0x1004248f
mov edi, dword [esi + 0x834]
cmp edi, edx
cmovbe edi, edx
push edi
push 4
call fcn.1014bd06
add esp, 8
mov dword [esi + 0x828], eax
test eax, eax
je 0x10042502
mov dword [esi + 0x830], edi
jmp 0x100424ed
mov ecx, dword [esi + 0x834]
mov eax, edi
shr eax, 1
test ecx, ecx
cmove ecx, eax
lea eax, [edi + ecx]
cmp eax, edx
cmovbe eax, edx
push eax
push 4
mov dword [ebp - 0x30], eax
call fcn.1014bd06
mov edi, eax
add esp, 8
test edi, edi
je 0x10042502
mov ecx, dword [esi + 0x82c]
shl ecx, 2
push ecx
push dword [esi + 0x828]
push edi
call fcn.10146160
push dword [esi + 0x828]
call fcn.10146720
mov eax, dword [ebp - 0x30]
add esp, 0x10
mov dword [esi + 0x828], edi
mov dword [esi + 0x830], eax
mov eax, dword [esi + 0x828]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov dword [eax + edx*4], ecx
inc dword [esi + 0x82c]
mov ecx, dword [ebp - 0x24]
add ecx, 3
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ecx
jne 0x100423a2
mov esi, 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1004252a
push eax
call fcn.10146720
add esp, 4
mov eax, esi
jmp 0x1004253a
mov dword [esi + 0x744], 0xa0000003
xor eax, eax
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.10142783
mov esp, ebp
pop ebp
ret 0x14