Function at 0x10035846
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x100786ae
call fcn.1004605f
mov ebx, ecx
xor edx, edx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x2d], dl
jmp 0x10035a7b
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10035a78
mov ecx, eax
call fcn.100087f9
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10035982
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov cl, byte [eax + 4]
call fcn.10008825
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x100358b9
cmp dword [eax + 0x48], 0
je 0x100358b9
push dword [ebp - 0x34]
xor edx, edx
push eax
jmp 0x100358c1
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x54]
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003ac6
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.10001e1f
movzx ecx, byte [ebp - 0x2d]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x1003596d
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.1000cd00
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + edx*4]
mov dword [eax + 0x50], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x54], edx
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x38]
and dword [eax + 0x58], 0
test edx, edx
je 0x10035937
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1003593b
movsx edx, word [ecx + 0x66]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x5c], edx
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003596d
lea edx, [ebp - 0x2c]
call fcn.10010878
mov eax, dword [ebx + 0xc]
mov dl, 1
mov ecx, dword [ebp - 0x34]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.10010276
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10001e1f
jmp 0x10035a75
movzx ecx, byte [ebp - 0x2d]
xor edx, edx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x34], ecx
cmp dword [eax + ecx*4], edx
je 0x10035a75
movaps xmm0, xmmword [0x1008eb70]
mov ecx, edx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x673d2c3b
mov dword [ebp - 0x18], 0x3d312d
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x100359b2
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], dl
push eax
lea ecx, [ebp - 0x54]
call fcn.10001f6a
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + ecx*4]
add ecx, 4
call fcn.1000cd00
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10001e1f
mov eax, dword [ebx + 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + ecx*4]
cmp dword [eax], edx
je 0x10035a75
movaps xmm0, xmmword [0x1008ed70]
mov ecx, edx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x742e3f28
mov dword [ebp - 0x18], 0x2e223e
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x10035a20
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], dl
push eax
lea ecx, [ebp - 0x54]
call fcn.10001f6a
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.10010878
push 0
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10001e1f
mov eax, dword [ebx + 0xc]
xor dl, dl
mov ecx, dword [ebp - 0x34]
mov ecx, dword [eax + ecx*4]
mov ecx, dword [ecx]
call fcn.10010276
inc byte [ebp - 0x2d]
add esi, 4
cmp esi, edi
jne 0x10035867
mov ecx, dword [ebx]
call fcn.100103ba
test al, al
jne 0x10035abc
mov eax, dword [0x1009e6ec]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10035ab3
mov ecx, dword [ecx]
call fcn.10010192
mov ecx, dword [ebx]
push edx
lea edx, [eax + 0x109]
call fcn.1001022d
pop ecx
mov ecx, dword [ebx]
mov dl, 1
call fcn.10010276
lea ecx, [ebp + 8]
call fcn.100095a9
call fcn.10046009
ret 0xc