Function at 0x140003800
Capabilities:
Access peb ldr_data
Check mutex on windows
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x1400010a0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rdx
lea r8, [0x140001560]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003864
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003e70
test rbx, rbx
je 0x140003e70
mov rdx, qword [rdi + 8]
xor r15d, r15d
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r15b
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140003890
lea rcx, [rbp - 0x40]
call fcn.140005060
nop
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
setae r13b
cmovae rsi, qword [rbp - 0x40]
movabs rax, 0x7fffffffffffffff
mov rdi, qword [rbp - 0x30]
cmp rdi, 0x10
jae 0x1400038e8
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
mov ebx, 0xf
jmp 0x140003958
mov rbx, rdi
or rbx, 0xf
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140003935
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003ea3
mov rcx, rax
call fcn.14000635c
mov rcx, rax
test rax, rax
je 0x14000392e
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140003941
call fcn.14000635c
jmp 0x140003944
mov rax, r15
mov qword [rsp + 0x30], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
cmp rbx, 0x10
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140004e60
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [0x140001660]
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x24], edx
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov ebx, dword [rax + 8]
add ebx, dword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rcx, [rbp - 0x10]
call fcn.140004db0
test rax, rax
jne 0x140003a19
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x20]
call fcn.140003730
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140003a63
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400065f0
movsxd r15, ebx
mov rcx, r15
call fcn.1400065f8
mov r12, rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rsi, [rbp - 0x40]
test r13b, r13b
cmovne rsi, qword [rbp - 0x40]
cmp rdi, 0x10
jae 0x140003aa1
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
lea ebx, [rax + 0xf]
jmp 0x140003b16
mov rbx, rdi
or rbx, 0xf
movabs rcx, 0x7fffffffffffffff
cmp rbx, rcx
cmova rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140003af8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003e9d
mov rcx, rax
call fcn.14000635c
mov rcx, rax
test rax, rax
je 0x140003af1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003b02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140003b02
call fcn.14000635c
mov qword [rsp + 0x30], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
cmp rbx, 0x10
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140004e60
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [0x140001660]
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x24], edx
mov r8, r15
mov rdx, r12
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x10]
call fcn.140004db0
test rax, rax
jne 0x140003bb4
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x20]
call fcn.140003730
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140003bfe
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003bf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400065f0
call fcn.140002d80
xor ebx, ebx
mov r10d, ebx
mov rax, qword gs:[0x60]
mov r9, qword [rax + 0x18]
add r9, 0x10
mov r8, qword [r9]
cmp r8, r9
je 0x140003c70
lea r11, [0x140001498]
nop dword [rax + rax]
mov rdx, qword [r8 + 0x60]
mov rax, rbx
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r11 + rax*2]
jne 0x140003c68
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x140003c68
add rax, 2
cmp rax, 0xa
jne 0x140003c40
mov r9, qword [r8 + 0x30]
jmp 0x140003c73
mov r8, qword [r8]
cmp r8, r9
jne 0x140003c30
mov r9, rbx
movsxd rax, dword [r9 + 0x3c]
mov r8d, dword [rax + r9 + 0x50]
mov rcx, r9
mov rdx, r9
mov rax, rdx
cmp byte [rcx], 0xf
jne 0x140003c96
cmp byte [rcx + 1], 5
jne 0x140003c96
cmp byte [rcx + 2], 0xc3
je 0x140003cad
inc r10
inc rdx
sub rax, r9
add rax, 4
cmp rax, r8
jg 0x140003cb3
mov rcx, rdx
jmp 0x140003c82
lea rcx, [r9 + r10]
jmp 0x140003cb8
mov ecx, 0xffffffff
call fcn.140006010
mov byte [rbp - 0x48], 0xc3
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov r8d, 0x10
lea rdx, [0x140001570]
lea rcx, [rsp + 0x30]
call fcn.140005060
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.140002670
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.1400034f0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140003d4d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400065f0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov r8d, 0x1c
lea rdx, [0x140001500]
lea rcx, [rsp + 0x58]
call fcn.140005060
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140002670
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.1400034f0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140003dd8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003dd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003dd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400065f0
lea rcx, [0x140001588]
call fcn.140002390
mov rax, qword [0x1400084f0]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call rax
mov qword [0x1400084e8], rax
mov r8, r15
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rcx, [0x140001520]
call fcn.140002390
call qword [0x1400084e8]
lea rcx, [0x14000159c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
test r13b, r13b
je 0x140003e70
mov rdx, qword [rbp - 0x28]
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003e6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400065f0
xor eax, eax
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400060a0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
call fcn.1400024f0
nop
call fcn.1400024f0
int3