Function at 0x2e3e5c700
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rbp
sub rsp, 0x520
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x4b0], rcx
mov rcx, qword [rbp + 0x4b0]
call fcn.2e3e5a6d0
mov qword [rbp + 0x498], rax
cmp qword [rbp + 0x498], 0
jne 0x2e3e5c73e
mov eax, 3
jmp 0x2e3e5cb92
cmp qword [rbp + 0x498], 0
jne 0x2e3e5c752
mov eax, 3
jmp 0x2e3e5cb92
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
test rax, rax
je 0x2e3e5c795
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
cmp rax, 0xffffffffffffffff
je 0x2e3e5c795
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
lea rdx, [rbp + 0x47c]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetHandleInformation]
call rax
test eax, eax
jne 0x2e3e5c79f
mov eax, 3
jmp 0x2e3e5cb92
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59e78
call fcn.2e3e5c201
mov rdx, qword [rbp + 0x4b0]
mov rcx, rax
call fcn.2e3e5be4f
test eax, eax
je 0x2e3e5c8f8
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 3
test al, al
je 0x2e3e5c819
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 0xc
test al, al
je 0x2e3e5c80f
mov eax, 3
jmp 0x2e3e5cb92
mov eax, 0
jmp 0x2e3e5cb92
mov rax, qword [rbp + 0x498]
movzx edx, byte [rax + 0x40]
and edx, 0xfffffffc
or edx, 1
mov byte [rax + 0x40], dl
lea rax, [0x2e3f5f2d8]
mov qword [rbp + 0x490], rax
mov rax, qword [rbp + 0x490]
mov ecx, 1
lock xadd dword [rax], ecx
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x2e3e5c872
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEvent]
call rax
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x44]
and eax, 2
test eax, eax
je 0x2e3e5c8db
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x44]
and eax, 1
test eax, eax
je 0x2e3e5c8db
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x44]
and eax, 0xfffffffe
mov edx, eax
mov rax, qword [rbp + 0x498]
mov dword [rax + 0x44], edx
mov rax, qword [rbp + 0x498]
movzx edx, byte [rax + 0x40]
and edx, 0xfffffff3
or edx, 4
mov byte [rax + 0x40], dl
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
call fcn.2e3e5c4b2
jmp 0x2e3e5c8ee
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
mov eax, 0
jmp 0x2e3e5cb92
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x44]
and eax, 2
test eax, eax
je 0x2e3e5cad9
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x44]
and eax, 1
test eax, eax
je 0x2e3e5cad9
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 0xc
test al, al
je 0x2e3e5c96d
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 0xc
test al, al
je 0x2e3e5c963
mov eax, 3
jmp 0x2e3e5cb92
mov eax, 0
jmp 0x2e3e5cb92
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 3
test al, al
jne 0x2e3e5c991
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 0xc
test al, al
je 0x2e3e5c99b
mov eax, 3
jmp 0x2e3e5cb92
mov dword [rbp - 0x30], 0x100001
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SuspendThread]
call rax
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
cmp eax, 0x102
jne 0x2e3e5cb79
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
lea rdx, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
lea rax, [fcn.2e3e5c4b2]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
lea rdx, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov rax, qword [rbp + 0x498]
movzx edx, byte [rax + 0x40]
and edx, 0xfffffffc
or edx, 1
mov byte [rax + 0x40], dl
mov rax, qword [rbp + 0x498]
mov eax, dword [rax + 0x44]
and eax, 0xfffffffe
mov edx, eax
mov rax, qword [rbp + 0x498]
mov dword [rax + 0x44], edx
mov rax, qword [rbp + 0x498]
movzx edx, byte [rax + 0x40]
and edx, 0xfffffff3
or edx, 4
mov byte [rax + 0x40], dl
lea rax, [0x2e3f5f2d8]
mov qword [rbp + 0x488], rax
mov rax, qword [rbp + 0x488]
mov ecx, 1
lock xadd dword [rax], ecx
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x2e3e5caaa
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEvent]
call rax
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
jmp 0x2e3e5cb79
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 3
test al, al
jne 0x2e3e5cb46
mov rax, qword [rbp + 0x498]
movzx edx, byte [rax + 0x40]
and edx, 0xfffffffc
or edx, 1
mov byte [rax + 0x40], dl
lea rax, [0x2e3f5f2d8]
mov qword [rbp + 0x480], rax
mov rax, qword [rbp + 0x480]
mov ecx, 1
lock xadd dword [rax], ecx
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x2e3e5cb7a
mov rax, qword [rbp + 0x498]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEvent]
call rax
jmp 0x2e3e5cb7a
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
mov rax, qword [rbp + 0x498]
movzx eax, byte [rax + 0x40]
and eax, 0xc
test al, al
je 0x2e3e5cb72
mov eax, 3
jmp 0x2e3e5cb92
mov eax, 0
jmp 0x2e3e5cb92
nop
mov rax, qword [rbp + 0x498]
add rax, 0x38
mov rcx, rax
call fcn.2e3e59f19
mov eax, 0
add rsp, 0x520
pop rbp
ret