Function at 0x140070d60
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov qword [rax - 0x150], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov r13, r9
mov r15, r8
mov edi, edx
mov r12d, ecx
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0x50], rax
xor eax, eax
mov ebx, eax
lea rax, str.___t_
mov rcx, qword [str.___t_]
mov sil, 4
cmp rcx, rax
je 0x140070dfd
test byte [rcx + 0x1c], sil
je 0x140070dfd
cmp byte [rcx + 0x19], 5
jb 0x140070dfd
mov edx, 0x26
lea r14, [0x140005148]
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e618
jmp 0x140070e04
lea r14, [0x140005148]
lea rax, [0x1400318a0]
mov qword [rsp + 0x20], rax
lea r9, [0x140038c10]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rsp + 0x130]
call fcn.140088b78
nop
mov dword [rsp + 0x58], 0x10
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor ecx, ecx
test eax, eax
jne 0x140070e9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140071c3e
test byte [rcx + 0x1c], sil
je 0x140071c3e
cmp byte [rcx + 0x19], 2
jb 0x140071c3e
mov edx, 0x27
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
jmp 0x140071c3e
mov qword [rsp + 0x118], rcx
mov word [rsp + 0x108], cx
test edi, edi
mov edi, 7
mov qword [rsp + 0x120], rdi
jne 0x1400711a4
mov rcx, qword [r15 + 0x248]
add rcx, 0x1a8
lea rdx, [rsp + 0x130]
call fcn.14006f1c4
test eax, eax
je 0x140071154
lea rcx, [r15 + 0x488]
lea rdx, [rsp + 0x158]
call fcn.14006f1c4
test eax, eax
je 0x140071154
lea rcx, [r15 + 0x490]
lea rdx, [rsp + 0x180]
call fcn.14006f1c4
test eax, eax
je 0x140071154
test r12d, r12d
je 0x140070fbf
mov ebx, 0x4000100b
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x150], 8
cmovae rax, qword [rsp + 0x138]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae rax, qword [rsp + 0x160]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x188]
cmp qword [rsp + 0x1a0], 8
cmovae rax, qword [rsp + 0x188]
mov qword [rsp + 0x90], rax
mov eax, dword [r15 + 0x250]
mov qword [rsp + 0x98], rax
mov eax, dword [r15 + 0x40]
mov qword [rsp + 0xa0], rax
xor r12d, r12d
jmp 0x1400710c8
mov ebx, 0x4000100c
lea rdx, [rsp + 0x100]
mov rcx, r15
call fcn.140070c24
xor r12d, r12d
test eax, eax
jne 0x140071018
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140071190
test byte [rcx + 0x1c], sil
je 0x140071190
cmp byte [rcx + 0x19], 2
jb 0x140071190
lea edx, [r12 + 0x29]
jmp 0x140071180
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x150], 8
cmovae rax, qword [rsp + 0x138]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x160]
cmp qword [rsp + 0x178], 8
cmovae rax, qword [rsp + 0x160]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x188]
cmp qword [rsp + 0x1a0], 8
cmovae rax, qword [rsp + 0x188]
mov qword [rsp + 0x90], rax
mov eax, dword [r15 + 0x250]
mov qword [rsp + 0x98], rax
mov eax, dword [r15 + 0x40]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rax, qword [rsp + 0x108]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x800
mov r8d, ebx
mov rdx, qword [0x14009a180]
mov ecx, 0x2900
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x140071133
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140071190
test byte [rcx + 0x1c], sil
je 0x140071190
cmp byte [rcx + 0x19], 2
jb 0x140071190
mov edx, 0x2a
jmp 0x140071180
cmp qword [rsp + 0x120], 8
jb 0x140071c4f
mov rcx, qword [rsp + 0x108]
call fcn.140088138
jmp 0x140071c4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140071190
test byte [rcx + 0x1c], sil
je 0x140071190
cmp byte [rcx + 0x19], 2
jb 0x140071190
mov edx, 0x28
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
nop
cmp qword [rsp + 0x120], 8
jb 0x140071c3e
jmp 0x140071c31
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], rcx
mov word [rsp + 0xe0], cx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
lea rcx, [r15 + 0x1a8]
lea rdx, [rsp + 0x130]
call fcn.14006f1c4
xor ecx, ecx
test eax, eax
jne 0x140071255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14007121c
test byte [rcx + 0x1c], sil
je 0x14007121c
cmp byte [rcx + 0x19], 2
jb 0x14007121c
mov edx, 0x2b
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
nop
cmp qword [rsp + 0xf8], 8
jb 0x140071234
mov rcx, qword [rsp + 0xe0]
call fcn.140088138
xor r12d, r12d
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
jmp 0x140071190
test r12d, r12d
je 0x140071266
mov r8d, 0x4000100d
lea r12d, [r8 + 7]
jmp 0x140071270
mov r8d, 0x4000100e
lea r12d, [r8 + 7]
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x138]
cmp qword [rsp + 0x150], 8
cmovae rax, qword [rsp + 0x138]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x80], rax
mov eax, dword [r15 + 0x40]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x800
mov rdx, qword [0x14009a180]
mov ecx, 0x2900
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
xor ecx, ecx
test eax, eax
jne 0x140071323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14007121c
test byte [rcx + 0x1c], sil
je 0x14007121c
cmp byte [rcx + 0x19], 2
jb 0x14007121c
mov edx, 0x2c
jmp 0x14007120c
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x800
mov r8d, r12d
mov rdx, qword [0x14009a180]
mov ecx, 0x2900
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
xor r12d, r12d
test eax, eax
jne 0x1400713ca
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007136d
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x1400713a9
test byte [rcx + 0x1c], sil
je 0x1400713a9
cmp byte [rcx + 0x19], 2
jb 0x1400713a9
mov edx, 0x2d
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
nop
cmp qword [rsp + 0xf8], 8
jb 0x140071237
mov rcx, qword [rsp + 0xe0]
call fcn.140088138
jmp 0x140071237
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x100]
call fcn.140038b18
lea rdx, [0x140004f78]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea r13, [0x140004dc4]
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140004f88]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140004fa0]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005028]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov ecx, 0x1f7b
call fcn.14005af88
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005038]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005050]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005060]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005070]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005078]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140071564
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140071574
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x140005070]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
cmp dword [r15 + 0x178], r12d
je 0x1400716e0
lea rdx, [0x140005090]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x100]
xor edx, edx
xor ecx, ecx
call fcn.14006f898
test eax, eax
jne 0x140071623
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x1400713a9
test byte [rcx + 0x1c], sil
je 0x1400713a9
cmp byte [rcx + 0x19], 2
jb 0x1400713a9
mov edx, 0x2e
jmp 0x140071399
lea r13, [r15 + 0xd8]
mov r12, qword [r13]
cmp r12, r13
je 0x1400716a2
mov rcx, qword [r12 + 0x10]
cmp dword [rcx + 0x734], 0x100
jne 0x14007165f
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x100]
xor edx, edx
call fcn.14006f898
test eax, eax
je 0x140071665
mov r12, qword [r12]
jmp 0x14007162e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14007121c
test byte [rcx + 0x1c], sil
je 0x14007121c
cmp byte [rcx + 0x19], 2
jb 0x14007121c
mov edx, 0x2f
jmp 0x14007120c
lea r13, [0x140004dc4]
mov rdx, r13
lea rcx, [rsp + 0x100]
call fcn.1400385b4
lea rdx, [0x1400050f0]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
xor r12d, r12d
cmp dword [r15 + 0x180], r12d
je 0x140071842
lea rdx, [0x140004db8]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005090]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x100]
mov edx, 1
xor ecx, ecx
call fcn.14006f898
test eax, eax
jne 0x140071792
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x1400713a9
test byte [rcx + 0x1c], sil
je 0x1400713a9
cmp byte [rcx + 0x19], 2
jb 0x1400713a9
mov edx, 0x30
jmp 0x140071399
lea r13, [r15 + 0xd8]
mov r12, qword [r13]
cmp r12, r13
je 0x140071814
mov rcx, qword [r12 + 0x10]
cmp dword [rcx + 0x734], 0x80
jne 0x1400717d1
lea r9, [rsp + 0xd8]
lea r8, [rsp + 0x100]
mov edx, 1
call fcn.14006f898
test eax, eax
je 0x1400717d7
mov r12, qword [r12]
jmp 0x14007179d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14007121c
test byte [rcx + 0x1c], sil
je 0x14007121c
cmp byte [rcx + 0x19], 2
jb 0x14007121c
mov edx, 0x31
jmp 0x14007120c
lea rdx, [0x1400050f0]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea r13, [0x140004dc4]
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
xor r12d, r12d
lea rdx, [0x140005078]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
cmp dword [rsp + 0x230], r12d
je 0x1400719c4
cmp qword [r15 + 0xb8], r12
je 0x1400719c4
lea rdx, [0x140005104]
lea rcx, [rsp + 0x100]
call fcn.1400385b4
lea rdx, [0x140005070]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
cmp qword [r15 + 0x48], r12
mov ecx, 0x1f7a
je 0x1400718c9
mov ecx, 0x1f79
call fcn.14005af88
test rax, rax
mov r15, rax
jne 0x140071960
cmp qword [rsp + 0xf8], 8
jb 0x1400718f2
mov rcx, qword [rsp + 0xe0]
call fcn.140088138
mov word [rsp + 0xe0], r12w
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xf8], rdi
cmp qword [rsp + 0x120], 8
jb 0x140071923
mov rcx, qword [rsp + 0x108]
call fcn.140088138
mov word [rsp + 0x108], r12w
mov qword [rsp + 0x118], r12
mov qword [rsp + 0x120], rdi
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea r9, [0x1400318a0]
lea rcx, [rsp + 0x130]
call fcn.140088aac
xor eax, eax
jmp 0x140071c71
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.1400385b4
mov rdx, r15
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005078]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0x100]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005110]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
lea rdx, [0x140005120]
lea rcx, [rsp + 0xd8]
call fcn.1400385b4
mov eax, dword [rsp + 0x118]
lea ecx, [rax*2 + 2]
mov eax, dword [rsp + 0xf0]
lea r15d, [rax*2 + 2]
mov r12d, ecx
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, qword [rsp + 0x60]
mov qword [r13], rax
xor ecx, ecx
test rax, rax
jne 0x140071a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14007121c
test byte [rcx + 0x1c], sil
je 0x14007121c
cmp byte [rcx + 0x19], 2
jb 0x14007121c
mov edx, 0x32
jmp 0x14007120c
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
test rax, rax
jne 0x140071ad8
xor r12d, r12d
cmp qword [r13], r12
je 0x140071a9b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x1400713a9
test byte [rcx + 0x1c], sil
je 0x1400713a9
cmp byte [rcx + 0x19], 2
jb 0x1400713a9
mov edx, 0x33
jmp 0x140071399
lea r8, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae r8, qword [rsp + 0x108]
mov rdx, r12
mov rcx, qword [r13]
call fcn.14002e540
xor r12d, r12d
test eax, eax
jns 0x140071b83
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140071b38
test byte [rcx + 0x1c], sil
je 0x140071b38
cmp byte [rcx + 0x19], 2
jb 0x140071b38
lea edx, [r12 + 0x34]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
cmp qword [rsp + 0xf8], 8
jb 0x140071b65
mov rcx, qword [rsp + 0xe0]
call fcn.140088138
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
jmp 0x140071133
lea r8, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae r8, qword [rsp + 0xe0]
mov rdx, r15
mov r15, qword [rsp + 0x50]
mov rcx, qword [r15]
call fcn.14002e540
test eax, eax
jns 0x140071bf5
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140071be4
test byte [rcx + 0x1c], sil
je 0x140071be4
cmp byte [rcx + 0x19], 2
jb 0x140071be4
mov edx, 0x35
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
jmp 0x140071b46
cmp qword [rsp + 0xf8], 8
jb 0x140071c0d
mov rcx, qword [rsp + 0xe0]
call fcn.140088138
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov word [rsp + 0xe0], r12w
cmp qword [rsp + 0x120], 8
jb 0x140071c4f
mov rcx, qword [rsp + 0x108]
call fcn.140088138
test ebx, ebx
je 0x140071c4f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14007193c
lea r9, [0x1400318a0]
mov edx, 0x28
lea r8d, [rdx - 0x25]
lea rcx, [rsp + 0x130]
call fcn.140088aac
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140088640
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret