Function at 0x140001170
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x39], r14d
mov qword [rbp - 9], 0xf
mov qword [rbp - 0x11], r14
mov byte [rbp - 0x21], r14b
lea r8d, [r14 + 9]
lea rdx, str._APPDATA_
lea rcx, [rbp - 0x21]
call fcn.140002420
nop
mov rsi, qword [rbp - 0x11]
test rsi, rsi
je 0x140001633
cmp rsi, 1
jb 0x140001633
lea rdi, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rdi, qword [rbp - 0x21]
test rsi, rsi
je 0x140001633
mov r8, rsi
mov edx, 0x25
mov rcx, rdi
call fcn.140004008
mov rcx, rax
test rax, rax
je 0x140001633
cmp byte [rax], 0x25
je 0x14000122d
sub rdi, rax
dec rdi
add rsi, rdi
lea rdi, [rax + 1]
jmp 0x1400011f4
lea rax, [rbp - 0x21]
mov rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 9]
cmp r8, 0x10
cmovae rax, rdx
sub rcx, rax
jne 0x140001633
or rdi, 0xffffffffffffffff
mov rcx, qword [rbp - 0x11]
cmp rcx, 1
jb 0x1400012a5
lea rax, [rbp - 0x21]
cmp r8, 0x10
cmovae rax, rdx
lea r9, [rcx - 1]
add r9, rax
nop dword [rax + rax]
cmp byte [r9], 0x25
sete al
test al, al
je 0x140001281
cmp byte [r9], 0x25
je 0x140001294
lea rcx, [rbp - 0x21]
call fcn.140002410
cmp r9, rax
je 0x1400012a5
dec r9
jmp 0x140001270
lea rax, [rbp - 0x21]
cmp r8, 0x10
cmovae rax, rdx
sub r9, rax
jmp 0x1400012a8
mov r9, rdi
dec r9
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.140002340
nop
mov ecx, 0x1000
call fcn.140006c0c
mov rsi, rax
test rax, rax
jne 0x1400013c0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 0x10
jb 0x1400012e7
mov rax, qword [rbx]
jmp 0x1400012ea
mov rax, rbx
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x140017390]
mov rcx, rbx
call fcn.140002420
nop
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x140001356
inc rax
mov rcx, qword [rbp - 1]
cmp rax, 0x1000
jb 0x140001351
test cl, 0x1f
je 0x140001324
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001333
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001342
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x14000134e
call fcn.140006b94
int3
mov rcx, rax
call fcn.140002db0
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], r14
mov byte [rbp - 1], 0
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x1400016ba
inc rax
mov rcx, qword [rbp - 0x21]
cmp rax, 0x1000
jb 0x1400016b5
test cl, 0x1f
je 0x140001392
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400013a1
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400013b0
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x1400016b2
call fcn.140006b94
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
mov r8d, 0x1000
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400014d6
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 0x10
jb 0x1400013fd
mov rax, qword [rbx]
jmp 0x140001400
mov rax, rbx
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x140017390]
mov rcx, rbx
call fcn.140002420
nop
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x14000146c
inc rax
mov rcx, qword [rbp - 1]
cmp rax, 0x1000
jb 0x140001467
test cl, 0x1f
je 0x14000143a
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001449
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001458
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x140001464
call fcn.140006b94
int3
mov rcx, rax
call fcn.140002db0
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], r14
mov byte [rbp - 1], 0
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x1400016ba
inc rax
mov rcx, qword [rbp - 0x21]
cmp rax, 0x1000
jb 0x1400016b5
test cl, 0x1f
je 0x1400014a8
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400014b7
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400014c6
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x1400016b2
call fcn.140006b94
nop
mov qword [rbp + 0x37], 0xf
mov qword [rbp + 0x2f], r14
mov byte [rbp + 0x1f], 0
cmp byte [rsi], 0
jne 0x1400014f0
mov rdi, r14
jmp 0x1400014f9
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400014f0
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0x1f]
call fcn.140002420
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 0x10
jb 0x140001520
mov rax, qword [rbx]
jmp 0x140001523
mov rax, rbx
mov byte [rax], 0
mov rcx, qword [rbp + 0x37]
cmp rcx, 0x10
jae 0x14000154c
mov r8, qword [rbp + 0x2f]
add r8, 1
je 0x140001557
lea rdx, [rbp + 0x1f]
mov rcx, rbx
call fcn.140003bd0
mov rcx, qword [rbp + 0x37]
jmp 0x140001557
mov rax, qword [rbp + 0x1f]
mov qword [rbx], rax
mov qword [rbp + 0x1f], r14
mov rax, qword [rbp + 0x2f]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rbp + 0x37], 0xf
mov qword [rbp + 0x2f], r14
mov byte [rbp + 0x1f], 0
mov rax, qword [rbp + 0x17]
cmp rax, 0x10
jb 0x1400015c9
inc rax
mov rcx, qword [rbp - 1]
cmp rax, 0x1000
jb 0x1400015c4
test cl, 0x1f
je 0x140001597
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400015a6
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400015b5
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x1400015c1
call fcn.140006b94
int3
mov rcx, rax
call fcn.140002db0
mov qword [rbp + 0x17], 0xf
mov qword [rbp + 0xf], r14
mov byte [rbp - 1], 0
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x1400016ba
inc rax
mov rcx, qword [rbp - 0x21]
cmp rax, 0x1000
jb 0x1400016b5
test cl, 0x1f
je 0x140001605
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001614
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001623
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x1400016b2
call fcn.140006b94
nop
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 0x10
jb 0x14000164b
mov rax, qword [rbx]
jmp 0x14000164e
mov rax, rbx
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x140017390]
mov rcx, rbx
call fcn.140002420
nop
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x1400016ba
inc rax
mov rcx, qword [rbp - 0x21]
cmp rax, 0x1000
jb 0x1400016b5
test cl, 0x1f
je 0x140001688
call fcn.140006b94
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001697
call fcn.140006b94
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400016a6
call fcn.140006b94
int3
cmp rcx, 0x27
jbe 0x1400016b2
call fcn.140006b94
int3
mov rcx, rax
call fcn.140002db0
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140002d50
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret