Function at 0x100ad280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012edc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x101c8c40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x20], eax
cmp eax, 1
jne 0x100ad310
mov dword [edi + 0xc], 8
mov dword [edi + 4], 8
test ecx, ecx
jne 0x100ad2d8
push 0x20
call fcn.10122cd5
add esp, 4
jmp 0x100ad2e8
push 0
push 0x20
mov dword [ebp - 4], 0xffffffff
call fcn.1008dca0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [edi + 0x10], eax
mov eax, edi
shr eax, 0xc
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x10]
mov dword [edi + 4], eax
shl eax, 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x100ad331
push eax
call fcn.10122cd5
add esp, 4
jmp 0x100ad346
add eax, 7
mov dword [ebp - 4], 0xffffffff
push 0
and eax, 0xfffffff8
push eax
call fcn.1008dca0
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jae 0x100ad48e
mov edx, esi
mov esi, dword [edx + ecx*4]
mov eax, ecx
xor eax, 1
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x100ad47c
cmp esi, dword [edx + eax*4]
je 0x100ad3d6
nop
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi + 0x28]
push esi
call fcn.100ab470
mov ecx, dword [ebp - 0x10]
push esi
push 0x9e3779b9
push 0x7f4a7c15
xor eax, dword [ecx + 8]
push 0
push eax
call fcn.101239a0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
dec eax
and edx, eax
lea eax, [ebp - 0x30]
push edx
push eax
call fcn.100ac510
mov esi, edi
test edi, edi
jne 0x100ad390
mov ecx, dword [ebp - 0x14]
jmp 0x100ad476
test esi, esi
je 0x100ad47c
cmp esi, dword [edx + eax*4]
jne 0x100ad47c
mov esi, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp - 0x24], esi
jmp 0x100ad3f4
mov edi, dword [ebp - 0x10]
push dword [esi + 0x10]
mov ecx, edi
call fcn.100ab470
push dword [esi + 0x14]
xor eax, dword [edi + 8]
push 0x9e3779b9
push 0x7f4a7c15
push 0
push eax
call fcn.101239a0
mov eax, dword [edi + 4]
mov ecx, edi
dec eax
and edx, eax
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.100ac510
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
mov edi, dword [eax + 4]
call fcn.10005010
mov esi, dword [ebp - 0x24]
cmp esi, edi
jne 0x100ad3f1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
jne 0x100ad472
mov esi, dword [ebp - 0x1c]
push dword [edi + 4]
push esi
lea ecx, [esi + 4]
call fcn.100aa5e0
cmp dword [esi], 0
jne 0x100ad467
push 0x18
push dword [esi + 4]
call fcn.10122d0a
add esp, 8
push 0xc
push esi
call fcn.10122d0a
add esp, 8
mov ecx, dword [ebp - 0x14]
inc ecx
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jb 0x100ad376
mov esi, dword [ebp - 0x18]
cmp dword [edi + 0x14], 0
jne 0x100ad4a1
shl eax, 2
push eax
push esi
call fcn.10122d0a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4