Function at 0x180005ba0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x490
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r8
mov ebp, edx
mov r14, rcx
xor ebx, ebx
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x180005c00
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1800066c0
nop
lea rcx, [rsp + 0x38]
mov rdi, qword [rsp + 0x50]
cmp rdi, 7
cmova rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], reloc.WS2_32.dll_select
lea r9, str.capture_helper.exe
mov rdx, qword [rsp + 0x48]
call fcn.1800065e0
mov r13d, 1
cmp rax, 0xffffffffffffffff
jne 0x180005fa9
lea rcx, [rsp + 0x38]
cmp rdi, 7
cmova rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], reloc.WS2_32.dll_shutdown
lea r9, str.capture_helper_x86.exe
mov rdx, qword [rsp + 0x48]
call fcn.1800065e0
cmp rax, 0xffffffffffffffff
jne 0x180005fa9
lea rcx, [rsp + 0x38]
cmp rdi, 7
cmova rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], reloc.WS2_32.dll_shutdown
lea r9, str.capture_helper_x64.exe
mov rdx, qword [rsp + 0x48]
call fcn.1800065e0
cmp rax, 0xffffffffffffffff
jne 0x180005fa9
cmp ebp, r13d
jne 0x180005e60
call fcn.1800059b0
test al, al
je 0x180005f8e
mov qword [0x1800a4130], r14
mov r8d, 0x104
lea rdx, [rsp + 0x270]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180005d0d
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rdi, rbx
xor eax, eax
lock cmpxchg dword [0x1800a4138], r13d
je 0x180005d43
nop dword [rax]
cmp rdi, 0x20
jae 0x180005d2a
xor ecx, ecx
jmp 0x180005d2d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x1800a4138], r13d
jne 0x180005d20
cmp qword [0x1800a4140], 0
jne 0x180005e50
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1800a4140], rax
mov ecx, ebx
xchg dword [0x1800a4138], ecx
test rax, rax
je 0x180005f8e
mov edx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1800a4c14], ecx
jle 0x180005dc6
lea rcx, [0x1800a4c14]
call fcn.180050638
cmp dword [0x1800a4c14], 0xffffffff
jne 0x180005dc6
lea rcx, [0x1800802f0]
call fcn.180050b14
lea rcx, [0x1800a4c14]
call fcn.1800505cc
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180033460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800a48d0], rax
call fcn.180027cc0
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x180005e1a
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180027ae0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
cmp qword [rdi + 0x10], 0
jne 0x180005f8e
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180027b60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
mov rdi, qword [rsp + 0x50]
jmp 0x180005fa9
xchg dword [0x1800a4138], ebx
mov rdi, qword [rsp + 0x50]
jmp 0x180005fa9
test ebp, ebp
jne 0x180005f95
mov rcx, qword [0x1800a40b0]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test rsi, rsi
setne dil
mov edx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1800a4c14], ecx
jle 0x180005ecc
lea rcx, [0x1800a4c14]
call fcn.180050638
cmp dword [0x1800a4c14], 0xffffffff
jne 0x180005ecc
lea rcx, [0x1800802f0]
call fcn.180050b14
lea rcx, [0x1800a4c14]
call fcn.1800505cc
cmp qword [0x1800a48d0], 0
je 0x180005f18
mov eax, r13d
xchg byte [0x1800a48d8], al
mov edx, 0x3e8
mov rcx, qword [0x1800a48d0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180005f04
xor edx, edx
mov rcx, qword [0x1800a48d0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1800a48d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800a48d0], rbx
mov rcx, qword [0x1800a48e0]
mov qword [0x1800a48e0], rbx
test rcx, rcx
je 0x180005f33
mov rax, qword [rcx]
mov edx, r13d
call qword [rax]
mov rcx, qword [0x1800a48e8]
mov qword [0x1800a48e8], rbx
test rcx, rcx
je 0x180005f4e
mov rax, qword [rcx]
mov edx, r13d
call qword [rax]
mov rcx, qword [0x1800a48f0]
mov qword [0x1800a48f0], rbx
test rcx, rcx
je 0x180005f69
mov rax, qword [rcx]
mov edx, r13d
call qword [rax]
xchg byte [0x1800a48d9], bl
test rsi, rsi
je 0x180005f7d
call fcn.18003ec40
mov byte [rax + 0x21], r13b
call fcn.180027cc0
movzx edx, dil
mov rcx, rax
call fcn.180028900
mov rdi, qword [rsp + 0x50]
jmp 0x180005fa9
cmp ebp, 6
jne 0x180005fa9
test rsi, rsi
je 0x180005fa9
mov rax, qword [0x1800a4130]
mov qword [rsi], rax
cmp rdi, 7
jbe 0x180005fe2
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005fdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000600c
call fcn.180050b2c
mov eax, r13d
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180050570
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x490
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
call fcn.18005c4f8
int3