Function at 0x1400428a0
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
mov rsi, rcx
mov rax, qword [0x140121038]
xor rax, rsp
mov qword [rsp + 0x278], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov qword [rcx + 0x10], rax
movaps xmm6, xmmword [0x1400fc0f0]
movups xmmword [rcx], xmm6
cmp byte [rdx + 0x17], 0
js 0x1400429fb
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
movzx ecx, byte [rsi + 0x17]
test cl, cl
mov r8, qword [rsi + 8]
mov rax, rcx
cmovs rax, r8
test rax, rax
je 0x140042e74
cmp rax, 1
je 0x1400429a4
test cl, cl
mov r9, qword [rsi]
mov rdx, rsi
cmovs rdx, r9
movzx r10d, word [rdx]
cmp r10d, 0x27
je 0x140042963
cmp r10d, 0x22
jne 0x1400429a4
test cl, cl
jns 0x140043486
test r8, r8
je 0x140043495
cmp word [r9 + r8*2 - 2], 0x22
je 0x14004297d
jmp 0x1400429a4
mov qword [rsi + 8], r8
jmp 0x14004298d
test cl, cl
jns 0x140043053
test r8, r8
je 0x140043495
cmp word [r9 + r8*2 - 2], 0x27
jne 0x1400429a4
lea r8, [rax - 1]
test cl, cl
js 0x14004295d
and r8b, 0x7f
mov byte [rsi + 0x17], r8b
mov word [rdx + rax*2 - 2], 0
mov r8d, 1
mov rcx, rsi
xor edx, edx
call fcn.14005f750
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
test rdi, rdi
je 0x1400429dd
lea rdx, [0x14010afd2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdi
xor r12d, r12d
lea rdi, str._windows
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
jmp 0x140042b7c
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rsi
mov rdx, rax
call fcn.14005f310
jmp 0x140042905
sar r13, 1
jmp 0x140042a1a
xor r13d, r13d
mov rcx, rbp
call fcn.1400a3458
mov rbp, rax
mov r8d, 0x208
lea r14, [rsp + 0x70]
mov rcx, r14
mov dl, 0xaa
call fcn.140086cd0
mov r8d, dword [rbx + rdi + 8]
xor ecx, ecx
mov rdx, r14
xor r9d, r9d
mov rax, qword [rsp + 0x38]
call qword [0x140114788]
test eax, eax
jne 0x140042a5d
mov word [rsp + 0x70], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x50], xmm6
lea rbx, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rsp + 0x70]
call fcn.1400b9ed0
mov al, byte [rsp + 0x67]
test al, al
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
movzx ecx, al
mov r8, rcx
cmovs r8, rdx
test r8, r8
je 0x140042aec
test al, al
mov r10, rbx
cmovs r10, r9
cmp word [r10 + r8*2 - 2], 0x5c
jne 0x140042aec
movzx r11d, byte [rsi + 0x17]
mov r14, r11
test r11b, r11b
jns 0x140042ac5
mov r14, qword [rsi + 8]
mov rbx, rbp
add rbx, r13
cmp r14, rbx
jbe 0x140042ae7
mov r14, rsi
test r11b, r11b
jns 0x140042adb
mov r14, qword [rsi]
cmp word [r14 + rbx*2], 0x5c
je 0x140042f32
lea rbx, [rsp + 0x50]
test al, al
cmovs rcx, rdx
cmovns r9, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov rdx, r13
mov r8, rbp
call fcn.1400d14d0
cmp byte [rsp + 0x67], 0
jns 0x140042b6f
mov rcx, qword [rsp + 0x50]
call fcn.140083694
jmp 0x140042b6f
mov rdx, r10
sub rdx, r11
add r11, r14
add r11, 2
sub rdx, r14
sar rdx, 1
cmp rdx, rax
jge 0x140042bd0
jmp 0x140042b6f
mov r13, r11
add r13, r14
je 0x140042b6f
xor edx, edx
movzx r15d, word [r13 + rdx*2]
cmp r15w, word [rbp + rdx*2]
jne 0x140042b1c
inc rdx
cmp rax, rdx
jne 0x140042b44
cmp r13, r8
je 0x140042b6f
sub r13, rcx
mov rax, r13
add rax, 2
jne 0x140042a12
inc r12
cmp r12, 7
je 0x140042caf
mov rbx, r12
shl rbx, 4
mov rbp, qword [rbx + rdi]
test rbp, rbp
je 0x140042f6b
mov rcx, rbp
call fcn.1400a3458
movzx edx, byte [rsi + 0x17]
mov rcx, rsi
test dl, dl
jns 0x140042ba6
mov rcx, qword [rsi]
test rax, rax
je 0x140042a17
test dl, dl
jns 0x140042bb7
mov rdx, qword [rsi + 8]
cmp rdx, rax
jl 0x140042b6f
lea r8, [rcx + rdx*2]
movzx r9d, word [rbp]
lea r10, [rcx + rdx*2]
add r10, 0xfffffffffffffffe
mov r11, rcx
mov r14, rdx
sub r14, rax
inc r14
je 0x140042b6f
inc rdx
xor r14d, r14d
cmp word [r11 + r14], r9w
je 0x140042b3a
add r14, 2
dec rdx
cmp rax, rdx
jne 0x140042be1
jmp 0x140042b6f
mov r13, rdi
add r13, rbx
je 0x140042d23
cmp word [rdi + rbx + 2], 0x7b
jne 0x140042c25
cmp word [rdi + rbx + 4], 0x75
jne 0x140042c25
cmp word [rdi + rbx + 6], 0x73
je 0x1400431ca
mov r13, r11
sub r13, rdi
add rdi, rbx
add rdi, 2
sub r13, rbx
sar r13, 1
cmp r13, 0xc
jge 0x140042d09
jmp 0x140042d23
mov r15, r9
add r15, r10
je 0x140042d5e
cmp word [r9 + r10 + 2], 0x7b
jne 0x140042c72
cmp word [r9 + r10 + 4], 0x6d
jne 0x140042c72
cmp word [r9 + r10 + 6], 0x61
je 0x14004331a
mov rcx, r8
sub rcx, r9
add r9, r10
add r9, 2
sub rcx, r10
sar rcx, 1
cmp rcx, 0xf
jge 0x140042d42
jmp 0x140042d5e
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x140042cd7
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x140042d8a
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x140042c94
lea rdx, [0x14010b082]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov dl, byte [rsi + 0x17]
test dl, dl
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
mov r9, rsi
cmovs r9, rax
movzx ecx, dl
mov r13, rcx
cmovs r13, r8
cmp r13, 0xc
jl 0x140042d23
lea r10, [r9 + r13*2]
lea r11, [r9 + r13*2]
add r11, 0xfffffffffffffffe
mov rdi, r9
add r13, 0xfffffffffffffff5
xor ebx, ebx
cmp word [rdi + rbx], 0x24
je 0x140042bfd
add rbx, 2
dec r13
jne 0x140042d0f
test dl, dl
cmovns rax, rsi
cmovs rcx, r8
cmp rcx, 0xf
jl 0x140042d5e
lea rdx, [rax + rcx*2]
lea r8, [rax + rcx*2]
add r8, 0xfffffffffffffffe
mov r9, rax
add rcx, 0xfffffffffffffff2
xor r10d, r10d
cmp word [r9 + r10], 0x24
je 0x140042c47
add r10, 2
dec rcx
jne 0x140042d49
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x140042ca0
lea rdx, [0x14010b0ac]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x140042db4
lea rdx, [0x14010b0e4]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov dl, byte [rsi + 0x17]
test dl, dl
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
mov r9, rsi
cmovs r9, rax
movzx ecx, dl
mov rbp, rcx
cmovs rbp, r8
cmp rbp, 0xe
jl 0x140042e00
lea r10, [r9 + rbp*2]
lea r11, [r9 + rbp*2]
add r11, 0xfffffffffffffffe
mov rdi, r9
add rbp, 0xfffffffffffffff3
xor ebx, ebx
cmp word [rdi + rbx], 0x24
je 0x140042eec
add rbx, 2
dec rbp
jne 0x140042dec
test dl, dl
cmovns rax, rsi
cmovs rcx, r8
cmp rcx, 0xf
jl 0x140042e37
lea rdx, [rax + rcx*2]
lea r8, [rax + rcx*2]
add r8, 0xfffffffffffffffe
mov r9, rax
add rcx, 0xfffffffffffffff2
xor r10d, r10d
cmp word [r9 + r10], 0x24
je 0x140042ea3
add r10, 2
dec rcx
jne 0x140042e26
test r12, r12
je 0x140042e45
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x140042e53
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
mov rdi, qword [rsp + 0x40]
je 0x140042e66
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rdi, rdi
je 0x140042e74
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140084b80
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, r9
add rbp, r10
je 0x140042e37
cmp word [r9 + r10 + 2], 0x7b
jne 0x140042eca
cmp word [r9 + r10 + 4], 0x73
jne 0x140042eca
cmp word [r9 + r10 + 6], 0x65
je 0x140043067
mov rcx, r8
sub rcx, r9
add r9, r10
add r9, 2
sub rcx, r10
sar rcx, 1
cmp rcx, 0xf
jge 0x140042e1f
jmp 0x140042e37
mov rbp, rdi
add rbp, rbx
je 0x140042e00
cmp word [rdi + rbx + 2], 0x7b
jne 0x140042f10
cmp word [rdi + rbx + 4], 0x63
jne 0x140042f10
cmp word [rdi + rbx + 6], 0x6c
je 0x140042f7e
mov rbp, r11
sub rbp, rdi
add rdi, rbx
add rdi, 2
sub rbp, rbx
sar rbp, 1
cmp rbp, 0xe
jge 0x140042de6
jmp 0x140042e00
lea rcx, [r8 - 1]
test al, al
lea rbx, [rsp + 0x50]
js 0x140042f48
and cl, 0x7f
mov byte [rsp + 0x67], cl
jmp 0x140042f4d
mov qword [rsp + 0x58], rcx
mov word [r10 + r8*2 - 2], 0
mov al, byte [rsp + 0x67]
mov r9, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
movzx ecx, al
jmp 0x140042aec
lea rcx, [0x1400fc139]
lea rdx, str....._third_partylibc_srcinclude_string:3367:_assertion___s___nullptr_failed:_string::find__:_received_nullptr_n
call fcn.1400ba6b0
cmp word [rdi + rbx + 8], 0x69
jne 0x140042f10
cmp word [rdi + rbx + 0xa], 0x65
jne 0x140042f10
cmp word [rdi + rbx + 0xc], 0x6e
jne 0x140042f10
cmp word [rdi + rbx + 0xe], 0x74
jne 0x140042f10
cmp word [rdi + rbx + 0x10], 0x5f
jne 0x140042f10
cmp word [rdi + rbx + 0x12], 0x6e
jne 0x140042f10
cmp word [rdi + rbx + 0x14], 0x61
jne 0x140042f10
cmp word [rdi + rbx + 0x16], 0x6d
jne 0x140042f10
cmp word [rdi + rbx + 0x18], 0x65
jne 0x140042f10
cmp word [rdi + rbx + 0x1a], 0x7d
jne 0x140042f10
cmp rbp, r10
je 0x140042e00
sub rbp, r9
mov r9, rbp
add r9, 2
je 0x140042e00
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rax, [rsp + 0x4c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 0xa
mov rax, r13
call qword [0x140114788]
test eax, eax
jne 0x1400434a8
mov dl, byte [rsi + 0x17]
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
movzx ecx, dl
jmp 0x140042e00
mov r9, rsi
mov r8, rcx
test rcx, rcx
jne 0x140042974
jmp 0x140043495
cmp word [r9 + r10 + 8], 0x73
jne 0x140042eca
cmp word [r9 + r10 + 0xa], 0x73
jne 0x140042eca
cmp word [r9 + r10 + 0xc], 0x69
jne 0x140042eca
cmp word [r9 + r10 + 0xe], 0x6f
jne 0x140042eca
cmp word [r9 + r10 + 0x10], 0x6e
jne 0x140042eca
cmp word [r9 + r10 + 0x12], 0x5f
jne 0x140042eca
cmp word [r9 + r10 + 0x14], 0x6e
jne 0x140042eca
cmp word [r9 + r10 + 0x16], 0x61
jne 0x140042eca
cmp word [r9 + r10 + 0x18], 0x6d
jne 0x140042eca
cmp word [r9 + r10 + 0x1a], 0x65
jne 0x140042eca
cmp word [r9 + r10 + 0x1c], 0x7d
jne 0x140042eca
cmp rbp, rdx
je 0x140042e37
sub rbp, rax
mov rax, rbp
add rax, 2
je 0x140042e37
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rax, [rsp + 0x4c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 6
mov rax, r13
call qword [0x140114788]
test eax, eax
je 0x140042e37
sar rbp, 1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x70]
mov qword [r13 + 0x10], rax
movaps xmmword [r13], xmm6
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call fcn.1400b9ed0
movzx eax, byte [r13 + 0x17]
test al, al
jns 0x140043184
mov rax, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, rsi
mov rdx, rbp
mov r9, r13
call fcn.1400d14d0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
call qword [0x140114788]
cmp byte [rsp + 0x87], 0
jns 0x140042e37
mov rcx, qword [rsp + 0x70]
call fcn.140083694
jmp 0x140042e37
cmp word [rdi + rbx + 8], 0x65
jne 0x140042c25
cmp word [rdi + rbx + 0xa], 0x72
jne 0x140042c25
cmp word [rdi + rbx + 0xc], 0x5f
jne 0x140042c25
cmp word [rdi + rbx + 0xe], 0x6e
jne 0x140042c25
cmp word [rdi + rbx + 0x10], 0x61
jne 0x140042c25
cmp word [rdi + rbx + 0x12], 0x6d
jne 0x140042c25
cmp word [rdi + rbx + 0x14], 0x65
jne 0x140042c25
cmp word [rdi + rbx + 0x16], 0x7d
jne 0x140042c25
cmp r13, r10
je 0x140042d23
sub r13, r9
mov r9, r13
add r9, 2
je 0x140042d23
lea rbp, [rsp + 0x50]
mov dword [rbp], 0
xor ecx, ecx
mov rdx, rbp
mov rax, r12
call qword [0x140114788]
mov ecx, dword [rbp]
test rcx, rcx
jne 0x140043277
mov dl, byte [rsi + 0x17]
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
movzx ecx, dl
jmp 0x140042d23
sar r13, 1
add rcx, rcx
call fcn.1400836cc
mov rbp, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rax, r12
call qword [0x140114788]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
lea rcx, [rsp + 0x70]
mov rdx, rbp
call fcn.1400b9ed0
movzx eax, byte [rsp + 0x87]
test al, al
jns 0x1400432d5
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
mov r8d, 0xc
mov rcx, rsi
mov rdx, r13
mov r9, qword [rsp + 0x30]
call fcn.1400d14d0
cmp byte [rsp + 0x87], 0
jns 0x140043304
mov rcx, qword [rsp + 0x70]
call fcn.140083694
test rbp, rbp
je 0x140043265
mov rcx, rbp
call fcn.1400836d4
jmp 0x140043265
cmp word [r9 + r10 + 8], 0x63
jne 0x140042c72
cmp word [r9 + r10 + 0xa], 0x68
jne 0x140042c72
cmp word [r9 + r10 + 0xc], 0x69
jne 0x140042c72
cmp word [r9 + r10 + 0xe], 0x6e
jne 0x140042c72
cmp word [r9 + r10 + 0x10], 0x65
jne 0x140042c72
cmp word [r9 + r10 + 0x12], 0x5f
jne 0x140042c72
cmp word [r9 + r10 + 0x14], 0x6e
jne 0x140042c72
cmp word [r9 + r10 + 0x16], 0x61
jne 0x140042c72
cmp word [r9 + r10 + 0x18], 0x6d
jne 0x140042c72
cmp word [r9 + r10 + 0x1a], 0x65
jne 0x140042c72
cmp word [r9 + r10 + 0x1c], 0x7d
jne 0x140042c72
cmp r15, rdx
je 0x140042d5e
sub r15, rax
mov rax, r15
add rax, 2
je 0x140042d5e
lea r12, [rsp + 0x50]
mov dword [r12], 0
mov ecx, 5
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [r12]
test rcx, rcx
je 0x140042d5e
sar r15, 1
add rcx, rcx
call fcn.1400836cc
mov r12, rax
lea r8, [rsp + 0x50]
mov ecx, 5
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x70]
mov qword [r13 + 0x10], rax
movaps xmmword [r13], xmm6
mov rcx, r13
mov rdx, r12
call fcn.1400b9ed0
movzx eax, byte [r13 + 0x17]
test al, al
jns 0x140043443
mov rax, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, rsi
mov rdx, r15
mov r9, r13
call fcn.1400d14d0
cmp byte [rsp + 0x87], 0
jns 0x140043470
mov rcx, qword [rsp + 0x70]
call fcn.140083694
test r12, r12
je 0x140042d5e
mov rcx, r12
call fcn.1400836d4
jmp 0x140042d5e
mov r9, rsi
mov r8, rcx
test rcx, rcx
jne 0x140042952
lea rcx, [0x1400fc139]
lea rdx, str....._third_partylibc_srcinclude_string:1339:_assertion__empty___failed:_string::back__:_string_is_empty_n
call fcn.1400ba6b0
sar rbp, 1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rax
movaps xmmword [rdi], xmm6
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1400b9ed0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400434e0
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xe
mov rcx, rsi
mov rdx, rbp
mov r9, rdi
call fcn.1400d14d0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
call qword [0x140114788]
cmp byte [rsp + 0x87], 0
jns 0x140043041
mov rcx, qword [rsp + 0x70]
call fcn.140083694
jmp 0x140043041