Function at 0x140049780
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x40], r8
mov rsi, rdx
xor eax, eax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp], xmm0
xor r14d, r14d
mov word [rbp - 0x10], r14w
lea r8d, [rax + 3]
lea rdx, str.dk5u
lea rcx, [rbp - 0x10]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], r14w
lea r8d, [r14 + 0x28]
lea rdx, [0x1401fb570]
lea rcx, [rbp + 0x10]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r14w
lea r8d, [r14 + 4]
lea rdx, [0x1401fdd48]
lea rcx, [rbp + 0x30]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r14w
lea r8d, [r14 + 0x28]
lea rdx, str.::679F85CB_0220_4080_B29B_5540CC05AAB6
lea rcx, [rbp + 0x50]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r14w
lea r8d, [r14 + 7]
lea rdx, str.Network
lea rcx, [rbp + 0x70]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], r14w
lea r8d, [r14 + 0x28]
lea rdx, str.::F02C1A0D_BE21_4350_88B0_7367FC96EF3C
lea rcx, [rbp + 0x90]
call fcn.14000d810
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb0], xmm0
lea rcx, [rbp + 0xb0]
call fcn.14004d030
mov rbx, rax
mov qword [rbp + 0xb0], rax
lea rdi, [rbp - 0x10]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.140047260
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xb0]
call fcn.1400477b0
add rdi, 0x40
lea rax, [rbp + 0xb0]
cmp rdi, rax
je 0x140049945
mov rbx, qword [rbp + 0xb0]
jmp 0x140049900
lea r9, [0x140048040]
mov edx, SHGetSetSettings
lea r8d, [rdx - 0x3d]
lea rcx, [rbp - 0x10]
call fcn.140160b44
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140049980
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14000d810
mov r13, qword [rbp + 0xb0]
mov rbx, r13
mov r11, qword [r13 + 8]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x48]
cmp byte [r11 + 0x19], 0
jne 0x140049a92
mov r14, qword [rsp + 0x58]
xor r13d, r13d
lea r9, [r11 + 0x20]
lea rax, [rsp + 0x48]
cmp r12, 8
cmovae rax, r15
mov rdi, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x1400499e2
mov r9, qword [r9]
mov rcx, rdi
cmp r14, rdi
cmovb rcx, r14
mov r10d, r13d
test rcx, rcx
je 0x140049a2d
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x140049a27
sub r9, rax
cmp dx, r8w
ja 0x140049a3f
cmp rcx, 1
je 0x140049a2d
dec rcx
add rax, 2
movzx edx, word [r9 + rax]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140049a09
mov r10d, 0xffffffff
test r10d, r10d
jne 0x140049a4e
cmp rdi, r14
jae 0x140049a47
mov r10d, 0xffffffff
jmp 0x140049a4e
mov r10d, 1
jmp 0x140049a2d
mov r10d, r13d
seta r10b
shr r10d, 0x1f
test r10b, r10b
je 0x140049a5d
mov r11, qword [r11 + 0x10]
jmp 0x140049a63
mov rbx, r11
mov r11, qword [r11]
cmp byte [r11 + 0x19], r13b
je 0x1400499c3
mov r13, qword [rbp + 0xb0]
cmp rbx, r13
je 0x140049a92
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xb0]
call fcn.140048430
test al, al
je 0x140049a95
mov rbx, r13
cmp r12, 8
jb 0x140049ad7
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140049ac8
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049d8a
mov rcx, r15
call fcn.1401606e8
mov r13, qword [rbp + 0xb0]
cmp rbx, r13
je 0x140049aef
lea rsi, [rbx + 0x40]
cmp qword [rsi + 0x18], 8
jb 0x140049aea
mov rsi, qword [rsi]
mov r14b, 1
jmp 0x140049af2
xor r14b, r14b
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp - 0x80], xmm0
xor ebx, ebx
mov word [rsp + 0x70], bx
lea r8d, [rax + 3]
lea rdx, [0x1401fde00]
lea rcx, [rsp + 0x70]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], bx
lea r8d, [rbx + 0x1b]
lea rdx, str.C:WindowsSystem32cmd.exe
lea rcx, [rbp - 0x70]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], bx
lea r8d, [rbx + 0xa]
lea rdx, str.powershell
lea rcx, [rbp - 0x50]
call fcn.14000d810
nop
movdqa xmm0, xmmword [0x1401f5800]
movdqa xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
lea r8d, [rbx + 0x39]
lea rdx, str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe
lea rcx, [rbp - 0x30]
call fcn.14000d810
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc0], xmm0
lea rcx, [rbp + 0xc0]
call fcn.14004d030
mov rbx, rax
mov qword [rbp + 0xc0], rax
lea rdi, [rsp + 0x70]
nop dword [rax]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.140047260
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xc0]
call fcn.1400477b0
add rdi, 0x40
lea rax, [rbp - 0x10]
cmp rdi, rax
je 0x140049c12
mov rbx, qword [rbp + 0xc0]
jmp 0x140049bd0
lea r9, [0x140048040]
mov edx, SHGetSetSettings
lea r8d, [rdx - 0x3e]
lea rcx, [rsp + 0x70]
call fcn.140160b44
test r14b, r14b
jne 0x140049cd8
mov rax, qword [rbp + 0xc0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140049cd8
nop dword [rax + rax]
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140049c5e
mov rdx, qword [rdx]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140049cca
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140049c98
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140049c93
nop
cmp rbx, qword [rax + 0x10]
jne 0x140049c93
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140049c80
mov rbx, rax
jmp 0x140049cbf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140049cbf
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140049cb0
cmp rbx, qword [rbp + 0xc0]
jne 0x140049c50
jmp 0x140049cd8
lea rsi, [rbx + 0x40]
cmp qword [rsi + 0x18], 8
jb 0x140049cd8
mov rsi, qword [rsi]
lea rdx, str._HOMEPATH_
mov rcx, rsi
call fcn.1401b6550
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
test eax, eax
lea rcx, str._USERPROFILE_
je 0x140049cff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
mov r9, qword [rbp + 0xc0]
mov r8, qword [r9]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xc0]
call fcn.14004d830
mov edx, 0x60
mov rcx, qword [rbp + 0xc0]
call fcn.1401606e8
nop
mov r9, qword [rbp + 0xb0]
mov r8, qword [r9]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xb0]
call fcn.14004d830
mov edx, 0x60
mov rcx, qword [rbp + 0xb0]
call fcn.1401606e8
nop
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x220]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b3260
nop