Function at 0x180003750
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, r8
mov r15d, edx
mov r12, rcx
mov r8d, 0x104
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], bx
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1800037c2
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call fcn.1800040b0
nop
lea rcx, [rsp + 0x58]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], reloc.WS2_32.dll_select
lea r9, str.capture_helper.exe
mov rdx, qword [rsp + 0x68]
call fcn.180004480
cmp rax, 0xffffffffffffffff
jne 0x180003c36
lea rcx, [rsp + 0x58]
cmp rsi, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], reloc.WS2_32.dll_shutdown
lea r9, str.capture_helper_x86.exe
mov rdx, qword [rsp + 0x68]
call fcn.180004480
cmp rax, 0xffffffffffffffff
jne 0x180003c36
lea rcx, [rsp + 0x58]
cmp rsi, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], reloc.WS2_32.dll_shutdown
lea r9, str.capture_helper_x64.exe
mov rdx, qword [rsp + 0x68]
call fcn.180004480
cmp rax, 0xffffffffffffffff
jne 0x180003c36
cmp r15d, 1
jne 0x180003ae2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1800030e0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.180003df0
mov rcx, rax
call fcn.1800033f0
mov rdi, rax
test rax, rax
je 0x180003918
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180003918
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x180003c3c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000390e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003cb1
call fcn.18004a624
jmp 0x180003c3c
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x180003959
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003954
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003cb1
call fcn.18004a624
mov qword [0x1800a2850], r12
mov r8d, 0x104
lea rdx, [rbp + 0x1b0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180003990
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rdi, rbx
xor eax, eax
lock cmpxchg dword [0x1800a2858], r15d
je 0x1800039c3
cmp rdi, 0x20
jae 0x1800039aa
xor ecx, ecx
jmp 0x1800039ad
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x1800a2858], r15d
jne 0x1800039a0
cmp qword [0x1800a2860], 0
jne 0x180003ad7
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1800a2860], rax
mov ecx, ebx
mov edx, 9
test rax, rax
cmove ecx, edx
mov eax, ebx
xchg dword [0x1800a2858], eax
test ecx, ecx
jne 0x180003c3c
mov edx, dword [0x1800a0fd0]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1800a2e04], ecx
jle 0x180003a52
lea rcx, [0x1800a2e04]
call fcn.18004a088
cmp dword [0x1800a2e04], 0xffffffff
jne 0x180003a52
lea rcx, [0x18007b820]
call fcn.18004a60c
lea rcx, [0x1800a2e04]
call fcn.18004a028
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x18002e650]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800a2ae0], rax
call fcn.180024a20
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x180003aa6
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180024870]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
cmp qword [rdi + 0x10], 0
jne 0x180003c3c
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x1800248c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
jmp 0x180003c3c
xchg dword [0x1800a2858], ebx
jmp 0x180003c3c
test r15d, r15d
jne 0x180003c19
mov rcx, qword [0x1800a27d0]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test r14, r14
setne dil
mov edx, dword [0x1800a0fd0]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1800a2e04], ecx
jle 0x180003b4f
lea rcx, [0x1800a2e04]
call fcn.18004a088
cmp dword [0x1800a2e04], 0xffffffff
jne 0x180003b4f
lea rcx, [0x18007b820]
call fcn.18004a60c
lea rcx, [0x1800a2e04]
call fcn.18004a028
mov r15d, 1
cmp qword [0x1800a2ae0], 0
je 0x180003ba1
mov eax, r15d
xchg byte [0x1800a2ae8], al
mov edx, 0x3e8
mov rcx, qword [0x1800a2ae0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180003b8d
xor edx, edx
mov rcx, qword [0x1800a2ae0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1800a2ae0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800a2ae0], rbx
mov rcx, qword [0x1800a2af0]
mov qword [0x1800a2af0], rbx
test rcx, rcx
je 0x180003bbc
mov rax, qword [rcx]
mov edx, r15d
call qword [rax]
mov rcx, qword [0x1800a2af8]
mov qword [0x1800a2af8], rbx
test rcx, rcx
je 0x180003bd7
mov rax, qword [rcx]
mov edx, r15d
call qword [rax]
mov rcx, qword [0x1800a2b00]
mov qword [0x1800a2b00], rbx
test rcx, rcx
je 0x180003bf2
mov rax, qword [rcx]
mov edx, r15d
call qword [rax]
xchg byte [0x1800a2ae9], bl
test r14, r14
je 0x180003c06
call fcn.180039810
mov byte [rax + 0x21], 1
call fcn.180024a20
movzx edx, dil
mov rcx, rax
call fcn.180025610
jmp 0x180003c3c
cmp r15d, 6
jne 0x180003c36
mov r15d, 1
test r14, r14
je 0x180003c3c
mov rax, qword [0x1800a2850]
mov qword [r14], rax
jmp 0x180003c3c
mov r15d, 1
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
jb 0x180003c7d
lea rdx, [rsi*2 + 2]
mov rdi, qword [rsp + 0x58]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180003c75
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003cab
mov rcx, rdi
call fcn.18004a624
mov eax, r15d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.180049ee0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.180055d94
nop
call fcn.180055d94
nop
int3