Function at 0x10038830
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017da5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 8]
mov cl, byte [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x30], eax
test cl, cl
je 0x10038abb
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x10038abb
cmp cl, 3
jne 0x10038abb
lea edi, [eax + eax*2]
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x20], xmm0
call fcn.101554b7
mov ecx, eax
mov dword [ebp - 0x18], edi
add esp, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], vtable.CArkAutoByte.0
mov edx, dword [ebx + 0x14]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x24]
lea eax, [edx + edx*2]
cdq
mov edi, dword [edi]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x24]
mov eax, dword [edi + 0x18]
call eax
test eax, eax
jne 0x100388fb
mov dword [esi + 0x74c], 0xa0000003
xor esi, esi
jmp 0x10038aa7
mov edi, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebp - 0x24], 0xdea58cb6
lea edx, [edi + edi*2]
test edx, edx
jle 0x10038925
mov edi, dword [ebp - 0x28]
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax - 0x24]
xor byte [ecx + edi], al
inc ecx
cmp ecx, edx
jl 0x10038911
mov edi, dword [ebx + 0x14]
test edi, edi
jle 0x10038aa2
mov ecx, dword [ebp - 0x28]
inc ecx
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.1015144f
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x34], edx
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 [ebp - 0x2c], eax
mov dword [edx + 4], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edx + 0x18], eax
mov dword [edx + 0x20], 0
test ecx, ecx
jne 0x1003899d
xor eax, eax
jmp 0x100389a9
mov eax, edi
cmp ecx, 1
jne 0x100389a6
jmp 0x100389a9
or edi, 0xffffffff
mov ecx, dword [ebp - 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], edi
mov eax, dword [edx + 8]
mov dword [edx + 0x10], 0xffffffff
mov dword [edx + 0x14], 0xffffffff
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [esi + 0x834]
mov edi, dword [esi + 0x838]
mov dword [ebp - 0x38], eax
cmp eax, edi
jb 0x10038a7a
lea edx, [eax + 1]
cmp edx, edi
jbe 0x10038a7a
cmp dword [esi + 0x830], 0
jne 0x10038a1c
mov edi, dword [esi + 0x83c]
cmp edi, edx
cmovbe edi, edx
push edi
push 4
call fcn.1015c282
add esp, 8
mov dword [esi + 0x830], eax
test eax, eax
je 0x10038a8f
mov dword [esi + 0x838], edi
jmp 0x10038a7a
mov ecx, dword [esi + 0x83c]
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 - 0x2c], eax
call fcn.1015c282
mov edi, eax
add esp, 8
test edi, edi
je 0x10038a8f
mov ecx, dword [esi + 0x834]
shl ecx, 2
push ecx
push dword [esi + 0x830]
push edi
call fcn.101528b0
push dword [esi + 0x830]
call fcn.10154f5a
mov eax, dword [ebp - 0x2c]
add esp, 0x10
mov dword [esi + 0x830], edi
mov dword [esi + 0x838], eax
mov eax, dword [esi + 0x830]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [eax + edx*4], ecx
inc dword [esi + 0x834]
mov ecx, dword [ebp - 0x24]
add ecx, 3
sub dword [ebx + 0x14], 1
mov dword [ebp - 0x24], ecx
jne 0x10038934
mov esi, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10038ab7
push eax
call fcn.10154f5a
add esp, 4
mov eax, esi
jmp 0x10038ac7
mov dword [esi + 0x74c], 0xa0000003
xor eax, eax
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.10151433
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14