Function at 0x665fd0
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d91c0
mov eax, dword fs:[0]
push eax
mov eax, 0x4108
call fcn.005eced0
mov eax, dword [0x747040]
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 - 0x40a8], edi
mov dword [ebp - 0x40c4], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40e0], edi
mov dword [ebp - 0x40ac], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0x10000
mov word [edi + 0x2c], 0
lea ecx, [edi + 0x5c]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [ebp - 4], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov byte [ebp - 4], 3
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
test eax, eax
je 0x666bc4
call fcn.006a4fd0
mov dword [edi + 0xc8], 0
mov esi, 0x710938
mov dword [edi + 0xc4], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd8], 0
cmp byte [edi + 0x2c], 0
jne 0x6661c6
mov eax, dword [ebp - 0x40ac]
mov ecx, dword [eax + 0x20]
cmp ecx, 0xffffffff
jne 0x6661bf
lea ecx, [eax + 0x38]
call fcn.00695b70
mov edx, esi
cmp dword [eax + 0x10], 6
cmovae edx, dword [eax + 0xc]
movzx eax, byte [edx + 4]
movzx ecx, byte [edx + 5]
shl eax, 8
add eax, ecx
xor ecx, ecx
cmp ecx, eax
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x40ac]
mov dword [eax + 0x20], ecx
mov dword [edi + 0x28], ecx
mov byte [edi + 0x2c], 1
mov eax, dword [ebp - 0x40ac]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x6661da
mov esi, 0x710938
jmp 0x6661ed
push dword [eax + 0x10]
push 0x43464620
push eax
call ecx
add esp, 0xc
test eax, eax
cmovne esi, eax
push esi
mov ecx, edi
call fcn.00662460
mov ecx, eax
mov dword [edi + 0x30], ecx
test ecx, ecx
je 0x66620f
mov eax, dword [ecx]
mov eax, dword [ecx]
test eax, eax
je 0x66620f
mov eax, 1
lock xadd dword [ecx], eax
mov dword [edi + 0x24], ecx
mov ecx, edi
mov byte [edi + 0x1c], 0
call fcn.006c7b20
mov eax, dword [edi + 0x30]
cmp dword [eax + 0x10], 4
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x40ac], edx
jb 0x6669f7
cmp edx, 0x710938
je 0x6669f7
movzx ecx, byte [edx + 2]
add ecx, edx
mov dword [edi + 0x3c], ecx
cmp ecx, 0x710938
je 0x6669f7
push edi
call fcn.006b9690
test al, al
je 0x6669f7
mov esi, dword [edi + 0x3c]
mov ecx, esi
call fcn.00693ed0
lea ecx, [eax + esi]
mov dword [edi + 0x40], ecx
cmp ecx, 0x710938
je 0x6669f7
push edi
call fcn.006b9690
test al, al
je 0x6669f7
mov eax, dword [edi + 0x40]
movzx esi, byte [eax + 1]
movzx edx, byte [eax]
mov eax, 0x100
imul edx, eax
add si, dx
je 0x6669f7
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x4114]
push 0
push eax
call fcn.0066c0c0
push edi
lea ecx, [ebp - 0x4114]
call fcn.006604d0
test al, al
je 0x6669f7
lea eax, [ebp - 0x4114]
push eax
lea ecx, [ebp - 0x40a0]
call fcn.006698e0
lea eax, [ebp - 0x40a0]
mov dword [ebp - 0x40c8], eax
lea ecx, [ebp - 0x40c8]
lea eax, [edi + 0x5c]
push eax
call fcn.006a6d30
test al, al
je 0x6669f7
mov eax, dword [edi + 0xb0]
mov esi, dword [ebp - 0x40ac]
cmp eax, 2
ja 0x66631b
mov dword [edi + 0x38], 0x710938
jmp 0x666342
lea ecx, [eax + esi]
mov dword [edi + 0x38], ecx
cmp ecx, 0x710938
je 0x6669f7
lea eax, [edi + 0xe0]
push eax
push edi
call fcn.006bff80
test al, al
je 0x6669f7
mov dword [edi + 0x58], 1
cmp dword [edi + 0x98], 0xffffffff
je 0x6663d9
mov eax, dword [edi + 0x70]
lea ecx, [eax + esi]
test eax, eax
jne 0x666365
mov ecx, 0x710938
mov eax, dword [edi + 0xb4]
mov dword [edi + 0x50], ecx
test eax, eax
je 0x666376
add eax, esi
jmp 0x66637b
mov eax, 0x710938
mov dword [edi + 0x54], eax
cmp ecx, 0x710938
je 0x6669f7
push edi
call fcn.006b9690
test al, al
je 0x6669f7
mov ecx, dword [edi + 0x54]
cmp ecx, 0x710938
je 0x6669f7
mov eax, dword [edi + 0x50]
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
add edx, eax
push edx
push edi
call fcn.006c0f90
test al, al
je 0x6669f7
mov eax, dword [edi + 0x50]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
add ecx, eax
mov dword [edi + 0x58], ecx
jmp 0x6663e7
mov dword [edi + 0x50], 0x710938
mov dword [edi + 0x54], 0x710938
mov dword [edi + 0x34], 0x710938
cmp dword [edi + 0x98], 0xffffffff
je 0x666400
cmp dword [edi + 0x38], 0x710938
jmp 0x666425
mov eax, dword [edi + 0xac]
cmp eax, 1
jbe 0x66642b
lea ecx, [eax + esi]
mov dword [edi + 0x34], ecx
cmp ecx, 0x710938
je 0x6669f7
push edi
call fcn.006c0e50
test al, al
je 0x6669f7
mov esi, dword [edi + 0x40]
mov ecx, esi
call fcn.00693ed0
lea ecx, [eax + esi]
mov dword [edi + 0x44], ecx
cmp ecx, 0x710938
je 0x6669f7
push edi
call fcn.006b9690
test al, al
je 0x6669f7
mov esi, dword [edi + 0x44]
mov ecx, esi
call fcn.00693ed0
lea ecx, [eax + esi]
mov dword [edi + 0x48], ecx
cmp ecx, 0x710938
je 0x66647b
push edi
call fcn.006b9690
test al, al
je 0x6669f7
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x6669e8
mov ecx, dword [ebp - 0x40ac]
add ecx, eax
mov dword [edi + 0x4c], ecx
cmp ecx, 0x710938
je 0x6669f7
push edi
call fcn.006b9690
test al, al
je 0x6669f7
mov eax, dword [edi + 0x4c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
add eax, ecx
mov dword [edi + 0xdc], eax
cmp eax, dword [edi + 0x28]
jne 0x6669f7
mov eax, dword [edi + 0x58]
lea esi, [edi + 0xd0]
xor ecx, ecx
test eax, eax
push ecx
cmovs eax, ecx
mov ecx, esi
push eax
mov dword [ebp - 0x40b0], eax
call fcn.00674490
test al, al
je 0x6669f7
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x40b0]
cmp edx, eax
jbe 0x666530
nop dword [eax]
lea ecx, [eax + eax*2]
xorps xmm0, xmm0
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
mov dword [eax + ecx*8 + 8], 0
mov dword [eax + ecx*8 + 0xc], 0
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
cmp eax, edx
jb 0x666500
jmp 0x666540
jae 0x666540
push edx
mov ecx, esi
call fcn.006c77b0
mov edx, dword [ebp - 0x40b0]
mov dword [esi + 4], edx
xor ecx, ecx
mov eax, dword [edi + 0x58]
test eax, eax
je 0x6665b9
xor edx, edx
nop
cmp ecx, dword [edi + 0xd4]
jb 0x66657d
movups xmm0, xmmword [0x710938]
mov eax, 0x74b2f0
movups xmmword [0x74b2f0], xmm0
movq xmm0, qword [0x710948]
movq qword [0x74b300], xmm0
jmp 0x666585
mov eax, dword [edi + 0xd8]
add eax, edx
mov dword [eax], 0
inc ecx
mov dword [eax + 8], 0
add edx, 0x18
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x710938
mov eax, dword [edi + 0x58]
cmp ecx, eax
jb 0x666550
cmp dword [edi + 0x98], 0xffffffff
je 0x66690a
xor ecx, ecx
mov dword [ebp - 0x40b8], ecx
test eax, eax
je 0x666bc4
lea eax, [edi + 0xc4]
mov dword [ebp - 0x40b0], ecx
mov dword [ebp - 0x40b4], eax
mov dword [ebp - 0x40bc], str.OUT_OF_RANGE
push ecx
mov ecx, dword [edi + 0x50]
lea eax, [ebp - 0x40f4]
push eax
call fcn.0066c0c0
mov ecx, dword [ebp - 0x40ec]
cmp ecx, 0xffffffff
jae 0x6669f7
mov edx, dword [ebp - 0x40f0]
mov eax, edx
mov esi, dword [edi + 4]
sub eax, esi
cmp eax, dword [edi + 0xc]
ja 0x66663c
mov eax, dword [edi + 8]
sub eax, edx
cmp eax, ecx
jb 0x66663c
sub dword [edi + 0x10], ecx
cmp dword [edi + 0x10], 0
mov byte [ebp - 0x40a1], 1
jg 0x666643
mov byte [ebp - 0x40a1], 0
cmp byte [ebp - 0x40a1], 0
mov eax, 0x7199a0
cmove eax, dword [ebp - 0x40bc]
push eax
push dword [edi + 8]
lea eax, [edx + ecx]
push esi
push ecx
push eax
mov eax, dword [edi]
push edx
push str.check_range___p.._p____u_bytes__in___p.._p______s
push 0
inc eax
push eax
push 1
push 0
push edx
push str.SANITIZE
call fcn.0040b8a0
add esp, 0x34
cmp byte [ebp - 0x40a1], 0
je 0x6669f7
xorps xmm0, xmm0
mov byte [ebp - 0x1028], 0
movups xmmword [ebp - 0x1038], xmm0
xor eax, eax
mov dword [ebp - 0x1024], 0
movups xmm0, xmmword [ebp - 0x40f4]
mov ecx, 0x402
lea edi, [ebp - 0x1020]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x40b4]
mov ecx, edi
movups xmmword [ebp - 0x1038], xmm0
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x40cc], eax
call fcn.006b4990
cmp dword [edi], 0
mov esi, eax
jl 0x6669f1
push esi
lea ecx, [ebp - 0x40cc]
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xffffffff
call fcn.006a6970
mov edi, dword [ebp - 0x40a8]
test al, al
je 0x6669f7
mov eax, dword [ebp - 0x40b8]
cmp eax, dword [edi + 0xd4]
jb 0x666777
movups xmm0, xmmword [0x710938]
mov edx, 0x74b2f0
movups xmmword [0x74b2f0], xmm0
movq xmm0, qword [0x710948]
movq qword [0x74b300], xmm0
jmp 0x666783
mov edx, dword [edi + 0xd8]
add edx, dword [ebp - 0x40b0]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov esi, dword [ebp - 0x40ac]
add esi, eax
mov dword [ebp - 0x40c0], edx
mov dword [ebp - 0x4100], esi
mov dword [ebp - 0x40fc], ecx
mov dword [ebp - 0x40f8], 0
cmp ecx, 0xffffffff
jae 0x6669f7
mov eax, esi
sub eax, dword [edi + 4]
cmp eax, dword [edi + 0xc]
ja 0x6667d9
mov eax, dword [edi + 8]
sub eax, esi
cmp eax, ecx
jb 0x6667d9
sub dword [edi + 0x10], ecx
cmp dword [edi + 0x10], 0
mov byte [ebp - 0x40a1], 1
jg 0x6667e0
mov byte [ebp - 0x40a1], 0
cmp byte [ebp - 0x40a1], 0
mov eax, 0x7199a0
cmove eax, dword [ebp - 0x40bc]
push eax
push dword [edi + 8]
lea eax, [esi + ecx]
push dword [edi + 4]
push ecx
push eax
mov eax, dword [edi]
push esi
push str.check_range___p.._p____u_bytes__in___p.._p______s
push 0
inc eax
push eax
push 1
push 0
push esi
push str.SANITIZE
call fcn.0040b8a0
add esp, 0x34
cmp byte [ebp - 0x40a1], 0
je 0x6669f7
xorps xmm0, xmm0
mov byte [ebp - 0x2048], 0
movups xmmword [ebp - 0x2058], xmm0
mov dword [ebp - 0x2044], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x4104]
mov ecx, 0x402
lea edi, [ebp - 0x2040]
rep stosd dword es:[edi], eax
movups xmmword [ebp - 0x2058], xmm0
mov dword [ebp - 0x204c], eax
lea ecx, [ebp - 0x40c4]
lea eax, [ebp - 0x2058]
mov dword [edx + 8], 0
mov dword [edx + 4], 0
mov dword [edx + 0xc], 0
push edx
mov dword [ebp - 0x40c4], eax
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0x710938
call fcn.006a6b60
test al, al
je 0x6669f1
mov eax, dword [ebp - 0x40c0]
mov edi, dword [ebp - 0x40a8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x6668e1
add ecx, esi
mov dword [eax + 0x14], ecx
cmp ecx, 0x710938
je 0x6668e8
push edi
call fcn.006b9690
test al, al
je 0x6669f7
jmp 0x6668e8
mov dword [eax + 0x14], 0x710938
mov ecx, dword [ebp - 0x40b8]
add dword [ebp - 0x40b0], 0x18
inc ecx
mov dword [ebp - 0x40b8], ecx
cmp ecx, dword [edi + 0x58]
jb 0x6665f2
jmp 0x666bc4
cmp dword [edi + 0xd4], 0
ja 0x666938
movups xmm0, xmmword [0x710938]
mov esi, 0x74b2f0
movups xmmword [0x74b2f0], xmm0
movq xmm0, qword [0x710948]
movq qword [0x74b300], xmm0
jmp 0x66693e
mov esi, dword [edi + 0xd8]
mov ecx, dword [edi + 0xbc]
mov eax, dword [edi + 0xb8]
add eax, dword [ebp - 0x40ac]
mov dword [ebp - 0x40d4], ecx
lea ecx, [ebp - 0x40dc]
push edi
mov dword [ebp - 0x40d8], eax
mov dword [ebp - 0x40d0], 0
call fcn.006604d0
test al, al
je 0x6669f7
lea eax, [ebp - 0x40dc]
push eax
lea ecx, [ebp - 0x3078]
call fcn.00667900
lea eax, [ebp - 0x3078]
mov ecx, esi
mov dword [ebp - 0x40a8], eax
call fcn.006a4f40
push esi
lea ecx, [ebp - 0x40a8]
call fcn.006a6b60
test al, al
je 0x6669f7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x6669dc
mov ecx, dword [ebp - 0x40d8]
add ecx, eax
mov dword [esi + 0x14], ecx
cmp ecx, 0x710938
je 0x666bc4
push edi
call fcn.006b9690
test al, al
je 0x6669f7
jmp 0x666bc4
mov dword [esi + 0x14], 0x710938
jmp 0x666bc4
mov dword [edi + 0x4c], 0x710938
jmp 0x6669f7
mov edi, dword [ebp - 0x40a8]
push dword [edi + 0x20]
mov eax, dword [edi + 4]
push dword [edi + 8]
push eax
push str.end___p.._p___u_edit_requests
push 0xffffffffffffffff
push 0
push 1
push 0
push eax
push str.SANITIZE
call fcn.0040b8a0
mov esi, dword [edi + 0x24]
add esp, 0x28
test esi, esi
je 0x666a95
mov eax, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x666a95
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
jne 0x666a95
mov dword [esi], 0xffff2153
mov eax, dword [esi + 8]
mov dword [ebp - 0x40b4], eax
nop
test eax, eax
je 0x666a67
mov ecx, eax
call fcn.0068bf90
push dword [ebp - 0x40b4]
call fcn.005c69b0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1c]
mov byte [ebp - 4], 4
test eax, eax
je 0x666a88
push dword [esi + 0x18]
call eax
add esp, 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push esi
mov byte [ebp - 4], 3
call fcn.005c69b0
add esp, 4
mov dword [edi + 0x24], 0
lea eax, [edi + 0x68]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
cmp dword [edi + 0x60], 0
je 0x666ace
push dword [eax]
mov dword [edi + 0x64], 0
call fcn.005c69b0
add esp, 4
lea eax, [edi + 0x68]
lea esi, [edi + 0xc4]
mov dword [edi + 0x64], 0
mov dword [edi + 0x60], 0
mov dword [eax], 0
cmp dword [esi], 0
je 0x666b01
push 0
mov ecx, esi
call fcn.006c7960
push dword [esi + 8]
call fcn.005c69b0
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
lea esi, [edi + 0xd0]
cmp dword [esi], 0
je 0x666b34
push 0
mov ecx, esi
call fcn.006c77b0
push dword [esi + 8]
call fcn.005c69b0
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov esi, dword [edi + 0x30]
test esi, esi
je 0x666bbd
mov eax, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x666bbd
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
jne 0x666bbd
mov dword [esi], 0xffff2153
mov eax, dword [esi + 8]
mov dword [ebp - 0x40b4], eax
nop
test eax, eax
je 0x666b93
mov ecx, eax
call fcn.0068bf90
push dword [ebp - 0x40b4]
call fcn.005c69b0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1c]
mov byte [ebp - 4], 5
test eax, eax
je 0x666bb4
push dword [esi + 0x18]
call eax
add esp, 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push esi
call fcn.005c69b0
add esp, 4
mov dword [edi + 0x30], 0
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.005abeeb
mov esp, ebp
pop ebp
ret 4