Function at 0x1801e9b30
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r14, qword [rcx + 0x40]
xor r15d, r15d
mov rsi, rdx
mov rbx, rcx
mov edi, r15d
test r14, r14
je 0x1801e9b68
cmp r14, qword [rcx + 0xa0]
je 0x1801e9b68
xor r13b, r13b
jmp 0x1801e9b6b
mov r13b, 1
mov rax, qword [rcx + 0x80]
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x48]
test rax, rax
je 0x1801e9b87
mov byte [rax + 0x10], 1
test r13b, r13b
je 0x1801e9bce
mov rax, qword [rcx + 0x30]
mov r8, qword [rax + 0x120]
test r8, r8
je 0x1801e9bce
mov rcx, qword [rcx + 0x30]
mov rax, r8
lock cmpxchg qword [rcx + 0x120], r15
jne 0x1801e9bce
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x88]
cmp r8, rcx
jle 0x1801e9bce
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x88]
call fcn.1801ebac0
mov rax, qword [rbx + 0x30]
mov ebp, dword [rax + 0x90]
dec ebp
mov r12d, r15d
cmp qword [rsi], 1
je 0x1801e9fbe
test r14, r14
jne 0x1801e9c23
mov rax, qword [rbx + 0x30]
mov ecx, dword [rax + 0x84]
mov rdx, qword [rbx + 0x30]
shr ecx, 0xc
cmp dword [rdx + 0x80], ecx
jb 0x1801ea001
mov rax, qword [rdx + 0x128]
cmp dword [rax + 0x2c], r14d
je 0x1801e9c23
cmp dword [rdx + 0x148], r14d
je 0x1801ea001
mov rax, qword [rbx + 0x30]
mov rsi, qword [rax + 0x88]
test rbp, rbp
je 0x1801e9c53
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax]
test rcx, rcx
je 0x1801e9c53
mov rcx, rbx
call fcn.1801e8080
mov rdi, rax
test rax, rax
jne 0x1801e9d7d
test r13b, r13b
je 0x1801e9c8c
mov rax, qword [rbx + 0x30]
movsxd rcx, esi
cmp qword [rax + rcx*8 + 0x98], 0
je 0x1801e9c8c
mov r8, qword [rbx + 0x28]
lea rcx, [rax + 0x98]
sub r8, 0xffffffffffffff80
mov edx, esi
call fcn.1801ea290
mov rdi, rax
test rax, rax
jne 0x1801e9fdf
cmp qword [rbx + 0x158], 0
je 0x1801e9caa
mov rcx, rbx
call fcn.1801e7b80
mov rdi, rax
test rax, rax
jne 0x1801e9d7d
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x98], rax
jae 0x1801e9dd3
test rbp, rbp
je 0x1801e9dd3
mov edx, dword [rbx + 0x90]
mov ecx, dword [rbx + 0x94]
imul eax, edx, 0x61c8864f
sub ecx, eax
mov eax, edx
shr rax, 0x10
xor edx, edx
div rbp
mov dword [rbx + 0x90], ecx
mov eax, 0x280
cmp rdx, qword [rbx + 0x20]
mov ecx, 0x180
cmovb eax, ecx
shl rdx, 8
add rax, rdx
add rax, qword [rbx + 0x30]
cmp qword [rax + 8], 0
je 0x1801e9dd3
mov rdx, rax
mov rcx, rbx
call fcn.1801e7ea0
mov rdi, rax
test rax, rax
je 0x1801e9dd3
cmp byte [rax - 0xb], 0x20
jne 0x1801e9d5a
mov rdi, qword [rax + 8]
lea rcx, [rax + 8]
mov rdx, rax
cmp rdi, 1
je 0x1801e9dc9
mov rax, rdi
mov r8d, 2
lock cmpxchg qword [rcx], r8
jne 0x1801e9dc9
and rdi, 0xfffffffffffffffc
je 0x1801e9dcb
or byte [rdi - 0xb], 0x80
movzx eax, byte [rdi - 0xb]
and al, 0xf
cmp al, 1
jb 0x1801e9d7d
mov qword [rbx + 0x38], rdi
mov rcx, rdi
mov rax, qword [rdi]
mov qword [rdi - 0x28], rbx
movzx edx, word [rbx + 0x50]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x30]
lea rdx, [rbx + 0x60]
add rcx, 0xe0
mov rax, qword [rcx + 8]
cmp qword [rdx], rax
je 0x1801e9d9f
movzx r8d, byte [rbx + 0x78]
call fcn.180252cb0
mov rax, qword [0x18067cd68]
lea rdx, [rbx + 0x58]
cmp qword [rdx], rax
je 0x1801e9fbe
movzx r8d, byte [rbx + 0x78]
lea rcx, [0x18067cd60]
call fcn.180252cb0
jmp 0x1801e9fbe
xor edi, edi
mov rcx, rbx
call fcn.1801ea110
rdtsc
shl rdx, 0x20
mov ecx, 1
or rax, rdx
mov r8, rax
lea r9, [rax + 0x3e8]
nop dword [rax + rax]
movsxd rdx, ecx
test ecx, ecx
je 0x1801e9dff
pause
sub rdx, 1
jne 0x1801e9df7
cmp ecx, 0x10
lea eax, [rcx + rcx]
cmovge eax, ecx
mov ecx, eax
rdtsc
shl rdx, 0x20
or rax, rdx
cmp rax, r8
jbe 0x1801e9e20
mov r8, rax
cmp rax, r9
jb 0x1801e9df0
lea eax, [rbp*2 + 2]
cmp r15d, eax
jl 0x1801e9fa9
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov rcx, qword [rbx + 0x30]
cmp qword [rcx + 0x110], 0
je 0x1801e9f24
mov eax, 1
lock xadd qword [rcx + 0x118], rax
mov rcx, qword [rbx + 0x30]
xor eax, eax
xchg qword [rcx + 0x110], rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x1801e9f24
dec qword [rbx + 0x168]
cmp qword [rbx + 0x40], 0
mov qword [rsp + 0x90], 0
jne 0x1801e9ebc
mov rax, qword [rbx + 0x30]
mov ecx, dword [rax + 0x84]
mov rax, qword [rbx + 0x30]
shr ecx, 0xc
cmp dword [rax + 0x80], ecx
jae 0x1801e9eb3
cmp dword [rax + 0x148], 2
jne 0x1801e9ebc
mov r9, qword [rax + 0x88]
jmp 0x1801e9ec3
mov rax, qword [rbx + 0x68]
mov r9, qword [rax]
lea r8, [rsp + 0x90]
mov rcx, rbx
lea rdx, [rsp + 0x80]
call fcn.1801e78e0
cmp qword [rsp + 0x80], 0
mov rdi, rax
je 0x1801e9f1b
mov rcx, qword [rsp + 0x90]
mov rax, qword [rbx + 0x158]
mov qword [rcx], rax
cmp qword [rbx + 0x158], 0
jne 0x1801e9f0c
mov qword [rbx + 0x160], rcx
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x158], rax
test rdi, rdi
jne 0x1801e9fbe
mov eax, r12d
inc r12d
cmp eax, 0x64
jl 0x1801e9f9d
test r14, r14
je 0x1801e9f4c
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x88]
mov rax, qword [rbx + 0x30]
cmp rcx, qword [rax + 0x100]
jle 0x1801e9f62
mov rcx, qword [rbx + 0x30]
call fcn.1801f7220
test al, al
je 0x1801e9f62
test r14, r14
je 0x1801ea001
cmp qword [rbx + 0x158], 0
je 0x1801e9f9d
dec qword [rbx + 0x168]
test r14, r14
je 0x1801e9f9d
mov rax, qword [rbx + 0x30]
mov rdx, qword [rax + 0x88]
mov rax, qword [rbx + 0x68]
mov rcx, qword [rax]
cmp rcx, rdx
jle 0x1801e9f9d
mov rax, qword [rbx + 0x30]
add rax, 0x88
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x30]
mov ebp, dword [rax + 0x90]
dec ebp
mov rsi, qword [rsp + 0x88]
inc r15d
cmp qword [rsi], 1
jne 0x1801e9be7
mov rax, qword [rbx + 0x48]
test rax, rax
je 0x1801e9fcb
mov byte [rax + 0x10], 0
mov rax, rdi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [case.0x1801e63e9.2]
test rax, rax
je 0x1801e9d7d
mov rcx, qword [rbx + 0x30]
add rcx, 0x98
call rax
jmp 0x1801e9d7d
xor eax, eax
jmp 0x1801e9fce