Function at 0x4039a8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
and eax, 0xff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
and eax, 0xff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x10]
shr eax, 2
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
rdtsc
mov esi, dword [ebp - 0x1c]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403a5f
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 7
mov eax, dword [ebp + 0xc]
and eax, 0xff
jne 0x403a4f
movd xmm0, eax
pshufd xmm0, xmm0, 0
lea esi, [esi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x403a18
emms
jmp 0x403a5a
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
jmp 0x403a09
jmp 0x403b0a
mov eax, dword [ebp + 0x10]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0x14], edx
rdtsc
mov esi, dword [ebp - 0x14]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4039f2
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
shr ecx, 7
mov eax, dword [ebp + 0xc]
and eax, 0xff
jne 0x403aff
movd xmm0, eax
pshufd xmm0, xmm0, 0
nop
lea esi, [esi]
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x403ac8
sfence
emms
jmp 0x403b0a
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
jmp 0x403aba
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
test dword [0x4197e0], 0x400
jne 0x403940
test dword [0x4197e0], 0xfffffe00
jne 0x4039a8
test dword [0x4197e0], 0xffffff80
jne 0x403974
test dword [0x4197e0], 0xffffffff
jne 0x403f54
call fcn.00404020
jmp fcn.00403b14
push ebp
mov ebp, esp
push esi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret