Function at 0x10016df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c37d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0x55c
sub eax, ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], eax
xorps xmm0, xmm0
sar eax, 2
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10016e8b
push eax
lea ecx, [ebp - 0x1c]
call fcn.10010710
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.1004bc10
mov eax, dword [ebp - 0x20]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x20], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x10016ee7
push eax
mov ecx, esi
call fcn.10010710
mov edi, dword [esi]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub esi, eax
push esi
push eax
push edi
call fcn.1004bc10
mov ecx, dword [ebp - 0x20]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov edi, dword [ebp - 0x24]
mov dword [ecx + 4], eax
call fcn.1000f3d0
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x10016fd5
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10016fd5
movaps xmm0, xmmword [0x10078fa0]
xor ecx, ecx
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x319350f
mov dword [ebp - 0x2c], 0x1e0b1f1e
mov dword [ebp - 0x28], 0x40503
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x1a
jb 0x10016f34
sub esp, 0x18
mov byte [ebp - 0x25], 0
mov ecx, esp
lea edx, [ebp - 0x3f]
xorps xmm0, xmm0
lea esi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10016f64
sub edx, esi
lea eax, [ebp - 0x3f]
push edx
push eax
call fcn.10002130
mov ecx, dword [ebp - 0x24]
call fcn.1000f060
mov edx, dword [ebp - 0x1c]
add esp, 0x18
mov dword [edi + 4], eax
test edx, edx
je 0x10016fb8
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10016fae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017004
push ecx
push edx
call fcn.1004a076
add esp, 8
mov eax, edi
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.1004a015
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
mov dword [edi], 0
test edx, edx
je 0x10016fb8
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10016fae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016fae
call fcn.1004f344
int3