Function at 0x14040a19b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x10], rdx
shl ah, cl
mov qword [rsp + 8], rcx
rcl ch, 0x35
rcr dx, 0x3f
push rdi
xor dx, r10w
setb dl
sub rsp, 0x70
btc dx, r12w
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
lahf
mov rax, qword [rsp + 0x80]
xor cl, sil
add rax, 0x50
not rdx
mov qword [rsp + 0x40], rax
movsx rdx, r10w
cwde
xchg al, al
mov dword [rsp + 0x2c], 0
mov cl, r8b
cdqe
cmovnp dx, cx
mov dword [rsp + 0x28], 0
rdtsc
movsxd rdx, r12d
cwd
mov qword [rsp + 0x30], 0
cwde
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
mov cx, 0xe73a
movzx rcx, bx
movsxd rcx, edx
lea rcx, [rsp + 0x28]
jmp 0x14040a231
call fcn.140412c8b
imul eax, dword [rsp + 0x28], 0x10
clc
rol cl, cl
sal di, cl
cdqe
mov qword [rsp + 0x58], rax
bt rcx, rdx
adc ch, 0x10
mov rdi, qword [rsp + 0x30]
mov ch, cl
sub eax, eax
bswap rcx
mov rcx, qword [rsp + 0x58]
jmp 0x14040a265
rep stosb byte [rdi], al
jmp 0x14040a26c
mov dword [rsp + 0x24], 0
jmp 0x14040a28d
mov eax, dword [rsp + 0x24]
jmp 0x14040a282
inc eax
cmp r12b, 0xb9
clc
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
test r14w, 0x959d
cmp r11d, ecx
mov eax, dword [rax]
jmp 0x14040a2a6
cmp dword [rsp + 0x24], eax
jmp 0x14040a2af
jge 0x14040a384
movsxd rax, dword [rsp + 0x24]
add dx, 0x9484
stc
imul rax, rax, 0x20
movsx rdx, bp
shr ch, 0x11
mov rcx, qword [rsp + 0x40]
shl dx, 0xc
sete dh
mov rcx, qword [rcx + 8]
rol dh, cl
movzx eax, word [rcx + rax]
or dh, ah
mov word [rsp + 0x38], ax
bt dx, 0xb0
rdtsc
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
movzx rdx, r14w
movsx rdx, r10w
movzx edx, word [rsp + 0x38]
cmp r12b, 0xb1
stc
mov word [rcx + rax + 4], dx
bt cx, 0xaa
sbb ch, 0x97
and dl, r11b
movsxd rax, dword [rsp + 0x24]
xadd edx, edx
inc cx
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x40]
test dl, 0x37
sar rdx, cl
cqo
mov rcx, qword [rcx + 8]
movzx rdx, r10w
movzx eax, word [rcx + rax + 2]
cqo
mov word [rsp + 0x3a], ax
rcl dh, 0x1a
ror dl, cl
mov cl, r9b
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x10
bswap rcx
mov dx, r9w
movzx rdx, cx
mov rcx, qword [rsp + 0x30]
movzx edx, word [rsp + 0x3a]
jmp 0x14040a37a
mov word [rcx + rax + 6], dx
jmp 0x14040a279
xor eax, eax
sal rdx, 0x33
cmc
imul rax, rax, 0x10
xadd dh, cl
add rax, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x28]
mov rdx, rax
sets ch
movzx cx, dl
mov rcx, qword [rsp + 0x60]
call fcn.1403e5b6f
mov dword [rsp + 0x20], 0
jmp 0x14040a3bd
jmp 0x14040a3d9
mov eax, dword [rsp + 0x20]
jmp 0x14040a3cb
inc eax
mov dword [rsp + 0x20], eax
shl ax, cl
cmc
mov ax, 0xddb5
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jge 0x14040a5bc
movsxd rax, dword [rsp + 0x20]
xchg rcx, rcx
sar cl, 0x9d
imul rax, rax, 0x10
rcl rcx, 0xf
cmp rax, rsp
add cl, r10b
mov rcx, qword [rsp + 0x30]
clc
jmp 0x14040a40b
cmp dword [rcx + rax + 0xc], 0
jmp 0x14040a415
je 0x14040a5b7
movsxd rax, dword [rsp + 0x20]
rcl rdx, cl
imul rax, rax, 0x10
sbb cx, r9w
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax + 8]
mov word [rsp + 0x3c], ax
movsxd rax, dword [rsp + 0x20]
rcl dx, 0xa1
stc
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x40]
cwd
cdq
bts dx, bx
mov rcx, qword [rcx + 8]
movsx edx, si
movzx edx, word [rsp + 0x3c]
cmp esp, r14d
cmc
jmp 0x14040a469
mov word [rcx + rax + 4], dx
test r11b, 0x37
add rax, rdx
movsxd rax, dword [rsp + 0x20]
movsx edx, r9w
imul rax, rax, 0x10
shrd dx, r10w, 7
bts dx, r15w
mov rcx, qword [rsp + 0x30]
test r11, r9
movzx eax, word [rcx + rax + 0xa]
mov word [rsp + 0x3e], ax
movsxd rax, dword [rsp + 0x20]
shl dl, cl
xadd ch, dh
sar ch, 0x17
imul rax, rax, 0x20
xor cl, r10b
bts dx, bx
mov rcx, qword [rsp + 0x40]
add rdx, rdx
movsx dx, sil
btr dx, 0x9f
mov rcx, qword [rcx + 8]
sbb dl, 0x94
movzx edx, word [rsp + 0x3e]
clc
stc
mov word [rcx + rax + 6], dx
movsxd rax, dword [rsp + 0x20]
sbb dl, r10b
imul rax, rax, 0x10
shld ecx, eax, 0x25
add rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
bts eax, edi
sub rcx, rcx
mov rax, qword [rsp + 0x68]
mov dx, di
movzx eax, word [rax + 0xa]
movsxd rcx, dword [rsp + 0x20]
movsx rdx, dx
sal dx, cl
rcl dh, cl
imul rcx, rcx, 0x10
sub dl, 0xa3
inc dx
mov rdx, qword [rsp + 0x30]
jmp 0x14040a531
movzx ecx, word [rdx + rcx + 6]
stc
cmp r12w, 0x3c21
add eax, ecx
jmp 0x14040a544
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x80]
jmp 0x14040a555
mov eax, dword [rax + 0x2c]
cmp r8b, r9b
jmp 0x14040a561
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
cmp rbx, r10
cmp dword [rsp + 0x48], eax
jmp 0x14040a575
jl 0x14040a58d
mov eax, dword [rsp + 0x48]
jmp 0x14040a584
mov dword [rsp + 0x50], eax
jmp 0x14040a59e
mov eax, dword [rsp + 0x4c]
not ch
movzx cx, bl
mov cx, si
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x50]
jmp 0x14040a5af
mov dword [rax + 0x2c], ecx
jmp 0x14040a5b7
jmp 0x14040a3c2
cmp qword [rsp + 0x30], 0
je 0x14040a5d3
mov rcx, qword [rsp + 0x30]
call fcn.1403b3bcb
nop
add rsp, 0x70
bswap edi
pop rdi
ret