Function at 0x140004760
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140065ec0]
xor rax, rsp
mov qword [rbp + 0x70], rax
lea r8, str.6B54C0D8_D814_4F57_944B_7B510D5C22D9
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.05CA3573_B449_4e0b_83F5_7FD612E378E8
xor edx, edx
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp ebx, 0xb7
jne 0x140004804
lea rdx, [0x140050bc0]
lea r8, [0x140050bb0]
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
test rsi, rsi
je 0x1400047ef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1400047fd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140004d7f
cmp eax, 0xb7
jne 0x140004814
lea rdx, [0x140050bd8]
jmp 0x1400047d1
mov qword [rsp + 0x190], r12
call fcn.140029ba4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x30], rax
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140029770
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400155d0
xor r12d, r12d
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
call fcn.140014ab0
lea r8d, [r12 + 0x12]
lea rdx, str.iClientControl.dll
lea rcx, [rbp - 0x18]
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
call fcn.140002b50
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x48]
call fcn.140014680
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, rbx
je 0x14000497c
cmp qword [rbp - 0x78], 8
jb 0x140004928
mov rcx, qword [rsp + 0x70]
call fcn.14002747c
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
cmp qword [rbx + 0x18], 8
jae 0x140004959
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x70]
mov rdx, rbx
lea r8, [r8 + r8 + 2]
call fcn.140027770
jmp 0x140004964
mov rax, qword [rbx]
mov qword [rsp + 0x70], rax
mov qword [rbx], r12
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rbx + 0x18]
mov qword [rbp - 0x78], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
cmp qword [rbp + 0x60], 8
jb 0x14000498c
mov rcx, qword [rbp + 0x48]
call fcn.14002747c
cmp qword [rbp], 8
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
jb 0x1400049ad
mov rcx, qword [rbp - 0x18]
call fcn.14002747c
cmp qword [rbp - 0x78], 8
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x1400049e3
lea rdx, str.iClientControl
lea rcx, [0x140070c30]
call fcn.140007470
jmp 0x140004cf4
lea rdx, str.InitializeClient
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RunClient
mov rcx, rbx
mov qword [0x14006ee90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RunUsbMonitor
mov rcx, rbx
mov qword [0x14006ee98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitializeClient
mov rcx, rbx
mov qword [0x14006eea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006eea0], rax
call fcn.140007620
call fcn.140007b40
test al, al
jne 0x140004a75
cmp qword [0x14006eea8], r12
je 0x140004a75
lea rdx, [0x140050cb8]
lea rcx, [0x140070c30]
call fcn.1400073e0
lea rdx, str.USB
jmp 0x140004ce2
mov rax, qword [0x14006ee90]
test rax, rax
je 0x140004cb1
call rax
lea r8, [0x14006b798]
lea rcx, [0x140070c30]
test eax, eax
jne 0x140004ac1
cmp qword [0x14006b7b0], 8
lea rdx, [0x140050d00]
cmovae r8, qword [0x14006b798]
call fcn.1400073e0
lea rdx, [0x140050d10]
jmp 0x140004ce2
cmp qword [0x14006b7b0], 8
lea rdx, [0x140050d68]
cmovae r8, qword [0x14006b798]
call fcn.1400073e0
call fcn.140005410
lea rdx, str.Global82A0D82B_5BEC_4375_A79D_ED3C79CD0C65
lea rcx, [rbp + 0x20]
mov r8d, 0x2d
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r12
mov word [rbp + 0x20], r12w
mov dword [rbp + 0x18], 0xa04
call fcn.140002b50
lea rax, [rbp + 0x48]
lea rcx, [rbp + 0x48]
mov edx, 1
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 0x18
mov dword [rbp - 8], r12d
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
lea rcx, [rbp + 0x48]
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp qword [rbp + 0x38], 8
mov eax, dword [rbp + 0x18]
lea r11, [rbp + 0x20]
lea rdx, [rbp - 0x18]
cmovae r11, qword [rbp + 0x20]
xor r9d, r9d
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], r11
lea r8d, [r9 + 4]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x10], rax
test rax, rax
je 0x140004b87
lea rcx, [rbp + 0x10]
call fcn.140019e60
lea rax, [rsp + 0x38]
lea r8, [0x140004db0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140004c04
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140004bed
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140004bc1
cmp qword [rbp + 0x38], 8
mov ebx, dword [rsp + 0x50]
jb 0x140004c18
mov rcx, qword [rbp + 0x20]
call fcn.14002747c
cmp qword [rbp - 0x78], 8
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r12
mov word [rbp + 0x20], r12w
jb 0x140004c3a
mov rcx, qword [rsp + 0x70]
call fcn.14002747c
cmp qword [rbp - 0x50], 8
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
jb 0x140004c5c
mov rcx, qword [rbp - 0x68]
call fcn.14002747c
cmp qword [rbp - 0x28], 8
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
jb 0x140004c7d
mov rcx, qword [rbp - 0x40]
call fcn.14002747c
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
test rsi, rsi
je 0x140004c9c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140004caa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004d77
cmp qword [0x14006b7b0], 8
lea r8, [0x14006b798]
lea rdx, [0x140050d00]
cmovae r8, qword [0x14006b798]
lea rcx, [0x140070c30]
call fcn.1400073e0
lea rdx, [0x140050d38]
lea r8, [0x140050bb0]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rbp - 0x78], 8
jb 0x140004d05
mov rcx, qword [rsp + 0x70]
call fcn.14002747c
cmp qword [rbp - 0x50], 8
mov word [rsp + 0x70], r12w
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], 7
jb 0x140004d27
mov rcx, qword [rbp - 0x68]
call fcn.14002747c
cmp qword [rbp - 0x28], 8
mov word [rbp - 0x68], r12w
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
jb 0x140004d48
mov rcx, qword [rbp - 0x40]
call fcn.14002747c
mov word [rbp - 0x40], r12w
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], 7
test rsi, rsi
je 0x140004d67
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140004d75
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r12, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400274a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret