Function at 0x140029800
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x88
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r13d, r13d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
je 0x140029832
mov word [rdx], r13w
lea rdx, [0x1401a6ac0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140029858
mov r8, rdi
mov rdx, rbp
mov rcx, r12
call fcn.140032170
mov al, 1
jmp 0x140029ac2
cmp word [rdi], 0x5c
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
jne 0x1400298ac
lea r15, str.SystemRoot
mov esi, r13d
mov rbx, r15
mov r8, qword [rbx + 8]
lea rdx, [rdi + 2]
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x1400299ef
inc esi
add rbx, 0x218
cmp esi, 1
jb 0x140029885
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140029aa6
lea r8d, [rax + 0xe]
mov dword [rsp + 0x44], r13d
lea rdx, [rdi + 0x10]
lea rcx, str.HarddiskVolume
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140029950
lea rcx, [rdi + 0x2c]
lea r8, [rsp + 0x44]
lea rdx, [0x1401a6038]
call fcn.140024030
cmp eax, 1
jne 0x140029950
mov r9d, dword [rsp + 0x44]
lea eax, [r9 - 1]
cmp eax, 0x17
ja 0x140029950
add r9d, 0x42
mov word [rsp + 0x58], r13w
lea r8, [0x1401a6af0]
mov edx, 3
lea rcx, [rsp + 0x58]
call fcn.1400206d0
cmp eax, 0xffffffff
je 0x140029950
mov r9, rbp
lea rdx, [rsp + 0x58]
mov r8, r12
mov rcx, rdi
call fcn.140029300
test al, al
jne 0x140029a97
mov r8d, 8
lea rdx, str.Device_
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140029add
lea r8d, [rax + 4]
lea rdx, [rdi + 0x10]
lea rcx, str.Mup_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400299dc
mov r8d, send
lea rdx, [rdi + 0x10]
lea rcx, str.LanmanRedirector_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400299dc
mov r8d, 6
lea rdx, [rdi + 0x10]
lea rcx, str.NwRdr_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x1400299dc
mov r8d, reloc.WS2_32.dll_select
lea rdx, [rdi + 0x10]
lea rcx, str.NetWareRedirector_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140029add
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call fcn.140029640
jmp 0x140029aa8
cmp esi, 0xffffffff
je 0x1400298ac
movsxd rax, esi
imul rbx, rax, 0x218
lea rsi, [rbx + r15]
cmp byte [rbx + r15 + 0x10], r13b
jne 0x140029a30
mov rcx, qword [rbx + r15]
lea rdx, [rsi + 0x12]
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xff
ja 0x140029a9b
mov byte [rbx + r15 + 0x10], 1
cmp word [rsi + 0x12], r13w
je 0x140029aa6
mov rax, qword [rbx + r15 + 8]
mov rbx, 0xffffffffffffffff
lea rdi, [rdi + rax*2]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2 + 0x12], r13w
jne 0x140029a50
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2 + 2], r13w
jne 0x140029a60
inc rax
add rax, rbx
cmp rax, rbp
ja 0x140029aa6
lfence
lea r8, [rsi + 0x12]
mov rdx, rbp
mov rcx, r12
call fcn.140032170
lea r8, [rdi + 2]
mov rdx, rbp
mov rcx, r12
call fcn.1400321e0
mov al, 1
jmp 0x140029aa8
mov word [rsi + 0x12], r13w
mov byte [rbx + r15 + 0x10], 1
xor al, al
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140160900
add rsp, 0x88
pop r13
pop r12
pop rdi
pop rbp
ret
mov edx, 0x5c
lea rcx, [rdi + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r8d, 8
lea rdx, str.Harddisk
lea rcx, [rdi + 0x10]
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140029b5a
cmp word [rdi + 0x22], 0x5c
jne 0x140029b17
lea rcx, [rdi + 0x24]
jmp 0x140029b4c
lea rcx, [rdi + 0x20]
mov r8d, 9
lea rdx, str.DmVolumes
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140029b5a
lea edx, [rax + 0x5c]
lea rcx, [rdi + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x140029aa6
lea rcx, [rax + 2]
mov edx, 0x5c
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rsi, rax
mov rbx, 0xffffffffffffffff
test rsi, rsi
jne 0x140029b80
mov rax, rbx
nop dword [rax]
cmp word [rdi + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x140029b70
lea rsi, [rdi + rax*2]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov r15, rsi
mov dword [rsp + 0x28], 0x40
sub r15, rdi
mov byte [rsp + 0x40], r13b
mov edx, 0x80
sar r15, 1
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
lea rcx, str..MountPointManager
call qword [0x1401f2088]
mov qword [rsp + 0x50], rax
cmp rax, rbx
je 0x140029d48
lea rcx, [r15*2 + 6]
mov dword [rsp + 0x48], r13d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x200
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test r13, r13
je 0x140029d28
test rax, rax
je 0x140029d28
movzx ecx, r15w
lea rdx, [r15 + 1]
add cx, cx
mov r8, rdi
mov word [r13], cx
lea rcx, [r13 + 2]
call fcn.140032170
lea eax, [r15*2 + 4]
mov qword [rsp + 0x38], 0
mov r15, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov r9d, eax
mov dword [rsp + 0x28], 0x200
mov rcx, r15
mov r8, r13
mov qword [rsp + 0x20], r14
mov edx, 0x6d0030
mov dword [rsp + 0x58], eax
call qword [0x1401f2098]
test eax, eax
jne 0x140029cd5
cmp dword [r14], eax
je 0x140029d2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140029d2d
mov edi, dword [r14]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140029d2d
mov r9d, dword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], 0
mov r8, r13
mov qword [rsp + 0x30], rax
mov edx, 0x6d0030
mov dword [rsp + 0x28], edi
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [0x1401f2098]
test eax, eax
je 0x140029d2d
lea r8, [r14 + 4]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140029ce0
nop dword [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140029cf0
inc rax
add rax, rbx
cmp rbp, rax
jb 0x140029d2d
lfence
mov rdx, rbp
mov rcx, r12
call fcn.140032170
mov r8, rsi
mov rdx, rbp
mov rcx, r12
call fcn.1400321e0
mov byte [rsp + 0x40], 1
jmp 0x140029d2d
mov r15, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [0x1401f2070]
movzx eax, byte [rsp + 0x40]
jmp 0x140029aa8