Function at 0x140024d10
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp + 0x208], rax
mov r9, r8
mov rdi, rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x68], rdx
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
xor r13d, r13d
mov qword [rbp + 0x30], r13
mov rax, qword [r8]
lea rcx, str.blob
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 4
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x68]
mov rcx, r9
mov rax, qword [rax + 0x80]
call qword [case.0x14000cca5.0]
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], r13w
xor r8d, r8d
lea rdx, [0x14017013c]
lea rcx, [rbp + 0x38]
call fcn.140002fb0
nop
mov rbx, qword [rbp + 0x20]
cmp rbx, qword [rbp + 0x28]
je 0x140025775
lea r15, [r13 - 1]
lea r12, str._AppData_
movzx esi, byte [rsp + 0x30]
movzx edi, byte [rsp + 0x30]
nop dword [rax]
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], r13
mov word [rax], r13w
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140024e03
mov rdx, qword [rbx]
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r13w
mov r8, r15
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140024e20
lea rcx, [rsp + 0x78]
call fcn.140002fb0
nop
lea r14, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r14, qword [rsp + 0x78]
mov rax, qword [rbp - 0x78]
cmp rax, 9
jb 0x14002563d
add rax, 0xfffffffffffffff8
lea r11, [r14 + rax*2]
mov rax, r14
nop
mov rcx, r11
sub rcx, rax
sar rcx, 1
mov rdx, r13
je 0x140024e8a
cmp word [rax], 0x25
je 0x140024e87
cmp rcx, 1
je 0x140024e8a
dec rcx
add rax, 2
cmp word [rax], 0x25
jne 0x140024e74
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x14002563d
mov r9d, 9
mov rcx, r12
movzx edx, word [rdx]
mov r8d, 0x25
cmp dx, r8w
jb 0x140024ed6
mov r10, rax
sub r10, r12
cmp dx, r8w
ja 0x140024ed6
cmp r9, 1
je 0x140024edc
dec r9
add rcx, 2
movzx edx, word [rcx + r10]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x140024eb8
add rax, 2
jmp 0x140024e60
sub rax, r14
sar rax, 1
jne 0x14002563d
lea rax, vtable.NEXS::session_api.0
mov qword [rbp - 0x28], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x28]
call fcn.140018cf0
test eax, eax
je 0x140025560
movzx eax, byte [0x1401b5780]
cmp al, 5
ja 0x140024f25
mov edx, 5
lea rcx, str.get_impersonated_logged_on_user_token_failed
call fcn.140034cf0
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], r13w
mov r8d, 0x40
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUI
lea rcx, [rbp + 0x58]
call fcn.140002fb0
nop
mov qword [rbp], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 7
mov word [rbp], r13w
mov r8d, 0x13
lea rdx, str.LastLoggedOnSAMUser
lea rcx, [rbp]
call fcn.140002fb0
nop
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
lea r9, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae r9, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, 0xffffffff80000002
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.140013120
nop
mov rcx, qword [rbp + 0xd8]
and rcx, 0xfffffffffffffffc
je 0x1400257c9
add rcx, 8
lea rdx, [0x1401b64c8]
call fcn.1400fdcc4
test eax, eax
jne 0x1400257c9
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov r12, qword [rbp + 0xb0]
lea r15, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae r15, qword [rbp + 0xa0]
cmp r12, 8
jae 0x140025022
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x30], 7
jmp 0x140025070
mov r14, r12
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
mov rdx, r14
add rdx, 1
mov rcx, 0xffffffffffffffff
cmovb rdx, rcx
lea rcx, [rbp - 0x48]
call fcn.14000ce60
mov qword [rbp - 0x48], rax
lea r8, [r12*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.1400fe220
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x38], r12
mov r8d, 0xa
lea rdx, [rbp + 0x1f0]
lea rcx, [0x1401772a8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400250cf
movzx eax, byte [0x1401b5780]
cmp al, 5
ja 0x1400250b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, 5
lea rcx, str.get_system_drive_function_failed.Take_default_drive_as_C:._GetLastError:__ld
call fcn.140034cf0
lea r8, [0x1401772a4]
mov edx, 0xa
lea rcx, [rbp + 0x1f0]
call fcn.14010c3b4
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r13w
xor r8d, r8d
lea rdx, [0x14017013c]
lea rcx, [rbp - 0x20]
call fcn.140002fb0
nop
lea r14, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
setae r13b
mov r12, qword [rbp - 0x48]
cmovae r14, r12
mov r15, qword [rbp - 0x38]
test r15, r15
je 0x140025201
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xf0]
call fcn.1400fe8d0
lea rcx, [0x140171370]
mov r8d, 0x100
nop dword [rax + rax]
movzx eax, word [rcx]
cmp ax, r8w
jae 0x14002519e
movzx eax, al
mov byte [rbp + rax + 0xf0], 1
add rcx, 2
lea rax, [0x140171372]
cmp rcx, rax
jne 0x140025140
lea rcx, [r15 - 1]
mov r9, 0xffffffffffffffff
mov rax, r9
cmp rcx, r9
cmovb rax, rcx
lea rdx, [r14 + rax*2]
nop dword [rax]
movzx eax, word [rdx]
cmp ax, r8w
jae 0x140025193
cmp byte [rbp + rax + 0xf0], 0
jne 0x1400251f9
cmp rdx, r14
je 0x140025208
sub rdx, 2
jmp 0x140025180
lea rcx, [r15 - 1]
mov r9, 0xffffffffffffffff
mov rax, r9
cmp rcx, r9
cmovb rax, rcx
lea rdx, [r14 + rax*2]
mov r10d, 0x5c
nop dword [rax]
mov eax, 1
movzx r8d, word [rdx]
lea rcx, [0x140171370]
cmp r10w, r8w
je 0x1400251f9
cmp rax, 1
je 0x1400251ee
dec rax
add rcx, 2
cmp word [rcx], r8w
jne 0x1400251d6
test rcx, rcx
jne 0x1400251f9
cmp rdx, r14
je 0x140025208
sub rdx, 2
jmp 0x1400251c0
sub rdx, r14
sar rdx, 1
jmp 0x14002520b
mov r9, 0xffffffffffffffff
mov rdx, r9
cmp rdx, 0xffffffffffffffff
je 0x140025271
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 7
cmp r15, rdx
jb 0x1400257cf
sub r15, rdx
mov r8, r9
cmp r15, 0xffffffffffffffff
cmovb r8, r15
lea rax, [rbp - 0x48]
test r13b, r13b
cmovne rax, r12
lea rdx, [rax + rdx*2]
lea rcx, [rsp + 0x40]
call fcn.140002fb0
lea rcx, [rbp - 0x20]
call fcn.14000d700
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x10], xmm1
xor r13d, r13d
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
xor r8d, r8d
lea rdx, [0x14017013c]
lea rcx, [rbp - 0x68]
call fcn.140002fb0
nop
lea rax, [rbp + 0x1f0]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400252b0
mov rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x50]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1400252fd
lea r15, [rdx + rcx]
mov qword [rbp - 0x58], r15
lea r14, [rbp - 0x68]
cmp r8, 8
cmovae r14, qword [rbp - 0x68]
lea rcx, [r14 + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp + 0x1f0]
call fcn.1400fe220
mov word [r14 + r15*2], r13w
jmp 0x140025316
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x1f0]
movzx r8d, sil
lea rcx, [rbp - 0x68]
call fcn.1400208c0
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x14002535c
lea r15, [rcx + 6]
mov qword [rbp - 0x58], r15
lea r14, [rbp - 0x68]
cmp rdx, 8
cmovae r14, qword [rbp - 0x68]
lea rcx, [r14 + rcx*2]
mov r8d, 0xc
lea rdx, str.Users
call fcn.1400fe220
mov word [r14 + r15*2], r13w
jmp 0x14002537e
mov qword [rsp + 0x20], 6
lea r9, str.Users
movzx r8d, dil
mov edx, 6
lea rcx, [rbp - 0x68]
call fcn.1400208c0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
lea rcx, [rbp - 0x68]
call fcn.14001ff20
mov r8d, 0x10
lea rdx, str.AppDataRoaming
lea rcx, [rbp - 0x68]
call fcn.14001ff20
mov r8d, 9
cmp qword [rbp - 0x70], 8
jb 0x1400253c6
mov rax, qword [rsp + 0x78]
mov rdx, rax
jmp 0x1400253d0
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x78]
sub rdx, rax
sar rdx, 1
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x78]
call fcn.140027bd0
movzx eax, byte [0x1401b5780]
cmp al, 6
ja 0x140025424
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov edx, 6
lea rcx, str.AppData_file_Path_:__s
call fcn.140034cf0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140025464
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002545f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400257d5
call fcn.140074f80
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r13w
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x140025490
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.14000ced0
nop
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1400254aa
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.14000ced0
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r13w
movzx ecx, byte [rbp + 0xe0]
test ecx, ecx
je 0x140025508
cmp ecx, 1
jne 0x140025508
mov rax, qword [rbp + 0xd8]
and eax, 3
sub rax, 1
je 0x1400254ea
cmp rax, 1
jne 0x140025501
lea rcx, [rbp + 0xa0]
jmp 0x1400254f1
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
mov rax, qword [rax]
call qword [case.0x14000cca5.0]
mov qword [rbp + 0xd8], r13
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x140025522
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.14000ced0
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 7
mov word [rbp], r13w
mov r8, qword [rbp + 0x70]
cmp r8, 8
jb 0x14002554d
inc r8
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.14000ced0
mov r15, 0xffffffffffffffff
lea r12, str._AppData_
jmp 0x14002563d
mov qword [rsp + 0x60], r13
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x68]
xor edx, edx
lea rcx, [0x140175c88]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8d, eax
mov r9, qword [rsp + 0x60]
test r9, r9
je 0x1400255dc
test eax, eax
jne 0x1400255dc
lea r8d, [rax + 9]
cmp qword [rbp - 0x70], 8
jb 0x1400255a4
mov rax, qword [rsp + 0x78]
mov rdx, rax
jmp 0x1400255ae
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x78]
sub rdx, rax
sar rdx, 1
mov rax, r15
nop word [rax + rax]
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400255c0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x78]
call fcn.140027bd0
jmp 0x1400255f8
movzx eax, byte [0x1401b5780]
cmp al, 5
ja 0x1400255f8
mov edx, 5
lea rcx, str.Unable_find_full_path_of_AppData_file_Path_error_:_ld
call fcn.140034cf0
movzx eax, byte [0x1401b5780]
cmp al, 6
ja 0x140025625
lea r8, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae r8, qword [rsp + 0x78]
mov edx, 6
lea rcx, str.AppData_file_Path_:__s
call fcn.140034cf0
nop
mov rax, qword [rbp - 0x28]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x28]
mov rax, qword [rax + 0x10]
call qword [case.0x14000cca5.0]
nop
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], 0xd
lea r9, str._programdata_
mov rdx, qword [rbp - 0x78]
call fcn.14000ead0
test rax, rax
jne 0x1400256da
mov qword [rsp + 0x60], r13
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140175a28]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r9, qword [rsp + 0x60]
test r9, r9
je 0x1400256da
test eax, eax
jne 0x1400256da
lea r8d, [rax + 0xd]
cmp qword [rbp - 0x70], 8
jb 0x1400256aa
mov rax, qword [rsp + 0x78]
mov rdx, rax
jmp 0x1400256b4
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x78]
sub rdx, rax
sar rdx, 1
mov rax, r15
nop dword [rax]
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400256c0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x78]
call fcn.140027bd0
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140011960
nop
movzx eax, byte [rbp + 0x98]
cmp al, 1
jne 0x140025705
mov r8, qword [rbp + 0x88]
test r8, r8
jne 0x140025731
test al, al
je 0x140025718
cmp eax, 1
jne 0x140025718
lea rcx, [rbp + 0x78]
call fcn.14000d700
nop
lea rcx, [rsp + 0x78]
call fcn.14000d700
add rbx, 0x20
cmp rbx, qword [rbp + 0x28]
je 0x140025770
jmp 0x140024de0
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x38]
call fcn.140002fb0
nop
movzx ecx, byte [rbp + 0x98]
test ecx, ecx
je 0x140025766
cmp ecx, 1
jne 0x140025766
lea rcx, [rbp + 0x78]
call fcn.14000d700
nop
lea rcx, [rsp + 0x78]
call fcn.14000d700
mov rdi, qword [rsp + 0x38]
mov byte [rdi + 0x20], 0xff
lea rdx, [rbp + 0x38]
mov rcx, rdi
call fcn.14000cdc0
mov byte [rdi + 0x20], 1
lea rcx, [rbp + 0x38]
call fcn.14000d700
nop
lea rcx, [rbp + 0x20]
call fcn.14000abc0
mov rax, rdi
mov rcx, qword [rbp + 0x208]
xor rcx, rsp
call fcn.1400fb890
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002e60
nop
call fcn.14000ddc0
int3
call fcn.140103230
int3