Function at 0x40f156
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
mov byte [eax], 0
mov edx, 0x12000002
push edi
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
call fcn.004182de
test eax, eax
jns 0x40f18e
and dword [ebp - 0x14], 0
jmp 0x40f194
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
test byte [ebx], 8
je 0x40f1a7
mov ecx, ebx
call fcn.0041b280
mov ebx, eax
jmp 0x40f3e7
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
jmp 0x40f1b2
mov ebx, dword [ebp - 0x10]
mov esi, eax
lea edi, [ebp - 0x34]
rdtsc
mov dword [ebp - 0x1c], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.0041e97d
mov esi, dword [ebp - 0x10]
mov ebx, eax
cmp ebx, 0xc0000225
jne 0x40f1ee
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0
push eax
mov edx, 0x11000001
call fcn.00418479
push dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
mov ecx, 0x401e30
push edi
call fcn.004108a7
cmp ebx, 0xc0000120
je 0x40f3b7
cmp ebx, 0xc0210000
je 0x40f3ac
test ebx, ebx
js 0x40f398
mov ecx, esi
call fcn.004104e9
mov ebx, eax
mov ecx, 0xc0000189
xor eax, eax
cmp ebx, ecx
je 0x40f378
push 7
pop ecx
push dword [ebp - 0x14]
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x34]
mov edx, dword [eax]
call fcn.0041064b
mov ecx, dword [ebp - 0x18]
rdtsc
mov edi, eax
mov esi, edx
lea eax, [ebp - 0x68]
push eax
call fcn.0041ef2d
push esi
push edi
lea edx, [ebp - 0x34]
mov ecx, 0x401fa0
mov ebx, eax
call fcn.004108a7
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x68]
call fcn.0046bac3
mov eax, dword [ebp - 0x64]
lea esi, [ebp - 0x34]
mov dword [ebp - 0x3c], eax
lea edi, [ebp - 0x4c]
mov eax, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x38], eax
inc ecx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push 0x18
push eax
push 0x12
movsd dword es:[edi], dword [esi]
pop edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041c33d
cmp dword [ebp - 0x64], 0
jge 0x40f2ce
cmp dword [ebp - 0x64], 0xc0000120
je 0x40f2ce
test byte [ebp - 0x60], 0x1c
jne 0x40f2ce
xor esi, esi
xor edx, edx
jmp 0x40f2c2
inc esi
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00410092
test eax, eax
jns 0x40f2bf
mov ecx, dword [ebp - 0x18]
call fcn.0041ee63
mov eax, dword [ebp - 0x20]
cmp ebx, 0xc0000453
je 0x40f1af
test ebx, ebx
jns 0x40f2ee
call fcn.00412dfb
mov eax, dword [ebp - 0x60]
xor ecx, ecx
inc ecx
test cl, al
je 0x40f327
lea eax, [ebp - 5]
push eax
mov eax, dword [ebp - 0x10]
push 0x16000040
push dword [eax + 0x14]
call sym.BootLib.dll_BlGetBootOptionBoolean
mov ecx, dword [ebp - 0xc]
test eax, eax
push 0
sets al
dec al
and byte [ebp - 5], al
pop eax
sete al
inc eax
mov dword [ecx], eax
jmp 0x40f3e1
test al, 4
je 0x40f332
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x40f35d
test al, 8
je 0x40f341
mov eax, dword [ebp - 0xc]
mov dword [eax], 5
jmp 0x40f35d
test al, 0x10
je 0x40f350
mov eax, dword [ebp - 0xc]
mov dword [eax], 6
jmp 0x40f35d
test al, 0x20
je 0x40f367
mov eax, dword [ebp - 0xc]
mov dword [eax], 7
mov eax, dword [ebp + 8]
mov byte [eax], cl
jmp 0x40f3e7
test al, 0x40
je 0x40f3e7
push ecx
push ecx
xor eax, eax
mov edx, ebx
push eax
push eax
push eax
push 0xb
jmp 0x40f3a4
push ecx
push ecx
push eax
push eax
push eax
push 0xd
mov edx, ecx
pop ecx
call fcn.0041297c
mov eax, dword [ebp - 0xc]
mov dword [eax], 8
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x40f3e7
mov edx, dword [ebp - 0x14]
push ecx
push ecx
push 0
push 0
push ebx
push 2
pop ecx
call fcn.0041297c
jmp 0x40f3e7
mov eax, dword [ebp - 0xc]
mov dword [eax], 3
jmp 0x40f3e1
mov ecx, esi
call fcn.00411ce3
cmp eax, 1
jne 0x40f3e7
test edx, edx
jne 0x40f3e7
mov ecx, dword [esi + 0x14]
mov edx, 0x14000008
call fcn.00448150
test eax, eax
je 0x40f3e7
mov eax, dword [ebp - 0xc]
mov dword [eax], 4
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40f3f4
push eax
call sym.BootLib.dll_BlMmFreeHeap
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4