Function at 0x140023370
Capabilities:
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x988]
sub rsp, 0xa88
mov rax, qword [0x1400bb060]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov qword [rbp - 0x10], r9
mov rdi, r8
mov qword [rbp + 0x28], r8
mov rbx, rdx
mov r14, rcx
mov r15, qword [rbp + 0x9f0]
mov qword [rbp + 0x18], r15
xor edx, edx
mov r8d, 0x2cc
lea rcx, [rbp + 0x30]
call fcn.14004d310
xor edx, edx
mov r8d, 0x670
lea rcx, [rbp + 0x300]
call fcn.14004d310
cmp qword [r14 + 0x40], 0
jne 0x1400233ef
mov eax, 0xc0000225
jmp 0x140023d68
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140024ba0
test eax, eax
js 0x140023d68
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x140023414
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r15]
call fcn.14003f320
test al, al
jne 0x140023434
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140023d68
mov qword [rbp + 0x10], 0
mov rax, qword [r14]
mov rcx, qword [rax + 0x10]
xor edx, edx
cmp byte [rcx + 0x15], dl
sete dl
lea rcx, [rbp + 0x10]
call fcn.14000e0d0
nop
mov rax, qword [r14]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rbp + 0x10]
cmp byte [rcx + 0x15], 0
jne 0x140023907
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400bf0c4], eax
jle 0x140023581
lea rcx, [0x1400bf0c4]
call fcn.14004abd0
cmp dword [0x1400bf0c4], 0xffffffff
jne 0x140023581
movaps xmm0, xmmword [0x1400a6850]
movaps xmmword [0x1400bf0d0], xmm0
movaps xmm1, xmmword [0x1400a6880]
movaps xmmword [0x1400bf0e0], xmm1
movaps xmm0, xmmword [0x1400a6860]
movaps xmmword [0x1400bf0f0], xmm0
movaps xmm1, xmmword [0x1400a6870]
movaps xmmword [0x1400bf100], xmm1
movaps xmm0, xmmword [0x1400a68b0]
movaps xmmword [0x1400bf110], xmm0
movaps xmm1, xmmword [0x1400a68c0]
movaps xmmword [0x1400bf120], xmm1
movaps xmm0, xmmword [0x1400a68d0]
movaps xmmword [0x1400bf130], xmm0
movaps xmm1, xmmword [0x1400a68e0]
movaps xmmword [0x1400bf140], xmm1
movaps xmm0, xmmword [0x1400a68f0]
movaps xmmword [0x1400bf150], xmm0
movaps xmm1, xmmword [0x1400a6900]
movaps xmmword [0x1400bf160], xmm1
movaps xmm0, xmmword [0x1400a6910]
movaps xmmword [0x1400bf170], xmm0
movaps xmm1, xmmword [0x1400a6920]
movaps xmmword [0x1400bf180], xmm1
movaps xmm0, xmmword [0x1400a6930]
movaps xmmword [0x1400bf190], xmm0
movaps xmm1, xmmword [0x1400a6940]
movaps xmmword [0x1400bf1a0], xmm1
movaps xmm0, xmmword [0x1400a68a0]
movaps xmmword [0x1400bf1b0], xmm0
lea rcx, [0x1400bf0c4]
call fcn.14004ab70
mov rdx, qword [r15]
mov dword [rbp + 0x330], 0x100001
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x300]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x58]
mov edi, eax
test eax, eax
js 0x14002393d
lea rsi, [rbx + 0xa8]
movabs rax, 0xffffffff00000004
mov qword [rbp - 8], rax
mov qword [rbp], 0x78
mov rax, qword [rsi]
lea rdi, sym.Potato_Inject.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 8]
lea r8, [0x1400a6890]
mov edx, 0x261
mov rcx, rsi
call qword [rax + 0x30]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1f5
mov rcx, rsi
call qword [rax + 0x30]
xor r15d, r15d
lea r13, [0x1400bf0d0]
movabs rbx, 0x400000003
mov r12d, 0xffffffff
nop
lea ecx, [r15*8]
mov qword [rbp - 8], rbx
shl rcx, 0x20
add rcx, r12
mov qword [rbp], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, r13
lea r8, [rbp - 8]
mov edx, 0x123
mov rcx, rsi
call qword [rax + 0x30]
inc r15d
add r13, 0x10
cmp r15d, 0xf
jl 0x140023630
mov rbx, qword [rbp + 0x10]
mov rax, qword [rbx]
mov r15, qword [rax + 0x18]
movsxd rax, dword [r14 + 0x9c]
add rax, rax
mov rcx, qword [r14 + rax*8 + 0x78]
test rcx, rcx
je 0x140023699
mov rax, qword [rcx]
xor ecx, ecx
jmp 0x14002369c
mov rax, rcx
mov qword [rbp - 0x60], 0xffffffffffff0001
mov qword [rbp - 0x58], 0xff
movabs r13, 0xffffffff00000003
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x38], rcx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0x70], 2
mov qword [rbp - 0x68], 8
mov qword [rbp - 0x40], rax
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rcx
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 8]
call fcn.1400157a0
nop
movsxd rax, dword [r14 + 0x9c]
add rax, rax
mov rax, qword [r14 + rax*8 + 0x58]
test rax, rax
je 0x140023713
mov rax, qword [rax]
mov qword [rsp + 0x40], 0xffffffffffff0001
mov qword [rsp + 0x48], 0xff
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r12
xor r13d, r13d
mov qword [rsp + 0x68], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x38], 8
mov qword [rsp + 0x60], rax
lea r9d, [r13 + 1]
lea r8, [rbp - 8]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call r15
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400237b6
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400237a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023d91
call fcn.14004aa40
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
lea rcx, [rbp - 8]
call fcn.140015390
nop
lea r9, [0x14000e070]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x70]
call fcn.14004ad1c
mov dword [rsp + 0x20], r13d
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call fcn.140024e30
mov r15d, r13d
lea r13, [0x1400bf0d0]
movabs rbx, 0x400000003
nop dword [rax]
nop word [rax + rax]
lea ecx, [r15*8]
mov qword [rbp - 8], rbx
shl rcx, 0x20
add rcx, r12
mov qword [rbp], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 8]
mov r8, r13
mov edx, 0x123
mov rcx, rsi
call qword [rax + 0x30]
inc r15d
add r13, 0x10
cmp r15d, 0xf
jl 0x140023810
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1c9
mov rcx, rsi
call qword [rax + 0x30]
movabs rax, 0xffffffff00000004
mov qword [rbp - 8], rax
mov qword [rbp], 0x78
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 8]
lea r8, [0x1400a6890]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x30]
mov eax, 0x25ff
mov word [rbp - 8], ax
mov rax, qword [rsi]
mov r8d, 2
lea rdx, [rbp - 8]
mov rcx, rsi
call qword [rax + 0x18]
xor r13d, r13d
mov dword [rbp - 8], r13d
mov rax, qword [rsi]
lea r8d, [r13 + 4]
lea rdx, [rbp - 8]
mov rcx, rsi
call qword [rax + 0x18]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp - 8], rax
mov rax, qword [rsi]
lea r8d, [r13 + 8]
lea rdx, [rbp - 8]
mov rcx, rsi
call qword [rax + 0x18]
mov rbx, qword [rbp + 0x10]
mov r15, qword [rbp + 0x18]
jmp 0x140023be3
mov rdi, qword [r15]
xor edx, edx
mov r8d, 0x2c8
lea rcx, [rbp + 0x34]
call fcn.14004d310
mov dword [rbp + 0x30], 0x100001
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
mov rdx, qword [rdi + 0x10]
call qword [rax + 0x50]
mov edi, eax
test eax, eax
jns 0x14002395e
mov rsi, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x140023d53
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140023d53
lea rsi, [rbx + 0xa8]
mov rax, qword [rsi]
lea rdi, sym.Potato_Inject.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1f4
mov rcx, rsi
call qword [rax + 0x30]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1f5
mov rcx, rsi
call qword [rax + 0x30]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x18], rax
movsxd rax, dword [r14 + 0x9c]
add rax, rax
mov rax, qword [r14 + rax*8 + 0x78]
test rax, rax
je 0x1400239ca
mov rax, qword [rax]
mov qword [rbp - 0x60], 0xffffffffffff0001
mov qword [rbp - 0x58], 0xff
movabs r13, 0xffffffff00000003
mov qword [rbp - 0x50], r13
mov r12d, 0xffffffff
mov qword [rbp - 0x48], r12
xor ecx, ecx
mov qword [rbp - 0x38], rcx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0x70], 2
mov qword [rbp - 0x68], 8
mov qword [rbp - 0x40], rax
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rcx
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 8]
call fcn.1400157a0
nop
movsxd rax, dword [r14 + 0x9c]
add rax, rax
mov rax, qword [r14 + rax*8 + 0x58]
test rax, rax
je 0x140023a49
mov rax, qword [rax]
mov qword [rsp + 0x40], 0xffffffffffff0001
mov qword [rsp + 0x48], 0xff
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r12
xor r13d, r13d
mov qword [rsp + 0x68], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x38], 8
mov qword [rsp + 0x60], rax
lea r9d, [r13 + 1]
lea r8, [rbp - 8]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rbp + 0x18]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140023aec
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023ada
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023d8b
call fcn.14004aa40
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
lea rcx, [rbp - 8]
call fcn.140015390
nop
lea r9, [0x14000e070]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x70]
call fcn.14004ad1c
movabs r12, 0xffffffff00000004
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 4
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x18]
lea r8, [0x1400a6790]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.140024e30
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1c9
mov rcx, rsi
call qword [rax + 0x30]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x1c7
mov rcx, rsi
call qword [rax + 0x30]
mov qword [rbp + 0x18], r12
movsxd rax, dword [rbp + 0xe8]
mov qword [rbp + 0x20], rax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
lea r8, [rbp + 0x18]
mov edx, 0x1f3
mov rcx, rsi
call qword [rax + 0x30]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, rdi
mov r8, rdi
mov edx, 0x21c
mov rcx, rsi
call qword [rax + 0x30]
movsxd rdi, dword [r14 + 0x9c]
add rdi, rdi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov r8, rax
mov r9d, dword [rsi + 0x60]
sub r9, qword [rsi + 0x48]
add r9, qword [rsi + 0x58]
mov rax, qword [r14 + rdi*8 + 0x58]
test rax, rax
jne 0x140023c19
mov edi, 0xc00000a0
jmp 0x140023cbf
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax]
mov rsi, qword [rbp + 0x28]
add rdx, rsi
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
call qword [rax + 0x20]
mov edi, eax
test eax, eax
js 0x140023cbf
mov rax, qword [r14]
mov rcx, qword [rax + 0x10]
movsxd rax, dword [r14 + 0x9c]
add rax, rax
cmp byte [rcx + 0x15], 0
mov rcx, qword [r14 + rax*8 + 0x58]
je 0x140023c8b
test rcx, rcx
je 0x140023c66
mov rax, qword [rcx]
jmp 0x140023c69
mov rax, r13
add eax, esi
mov dword [rbp + 0xe8], eax
mov rdx, qword [r15]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x60]
jmp 0x140023cbd
test rcx, rcx
je 0x140023c95
mov rax, qword [rcx]
jmp 0x140023c98
mov rax, r13
add rax, rsi
mov qword [rbp + 0x3f8], rax
mov rdx, qword [r15]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x300]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x68]
mov edi, eax
mov rsi, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x140023cd7
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
js 0x140023d40
mov edx, 0x4e20
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsxd rax, dword [r14 + 0x9c]
add rax, rax
mov rcx, qword [r14 + rax*8 + 0x78]
test rcx, rcx
jne 0x140023d05
mov edi, 0xc00000a0
jmp 0x140023d40
mov rax, qword [rcx + 0x18]
mov rdx, qword [rcx]
mov qword [rbp + 0x28], r13
test rdx, rdx
jne 0x140023d1c
mov edi, 0xc0000141
jmp 0x140023d40
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x28]
mov qword [rsp + 0x20], r8
mov r9d, 8
mov r8, qword [rbp - 0x10]
call qword [rax + 0x18]
mov edi, eax
nop
mov ecx, 1
sub ecx, dword [r14 + 0x9c]
mov dword [r14 + 0x9c], ecx
test rbx, rbx
je 0x140023d66
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov eax, edi
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.14004aa20
add rsp, 0xa88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140057ca0
nop
call fcn.140057ca0
int3