Function at 0x1400037e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400ca190]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
mov qword [rsp + 0x20], rcx
xor edi, edi
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov ecx, 0x520
mov eax, dword [rcx + rsi]
mov edx, 0x450
test al, 1
jne 0x140003868
or eax, 1
mov dword [rcx + rsi], eax
lea rbx, [rsi + rdx]
mov dword [rbx + 0xa], 0x1cba43d
mov dword [rbx], 0xa42a9e91
mov dword [rbx + 4], 0x25576887
mov word [rbx + 8], 0x9099
lea rcx, [0x14009b050]
call fcn.140087430
nop
jmp 0x14000386c
lea rbx, [rsi + rdx]
cmp byte [rbx + 0xd], 0
je 0x1400038a9
xor byte [rbx], 0xdd
xor byte [rbx + 1], 0xd1
xor byte [rbx + 2], 0x69
xor byte [rbx + 3], 0xe5
xor byte [rbx + 4], 0xcb
xor byte [rbx + 5], 0x29
xor byte [rbx + 6], 7
xor byte [rbx + 7], 0x75
xor byte [rbx + 8], 0xdd
xor byte [rbx + 9], 0xd1
xor byte [rbx + 0xa], 0x69
xor byte [rbx + 0xb], 0xe5
xor byte [rbx + 0xc], 0xcb
mov byte [rbx + 0xd], 0
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
lea rax, [rbp - 0x80]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400038e0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140009730
nop
mov ecx, 0x248
mov eax, dword [rcx + rsi]
mov edx, 0x360
test al, 1
jne 0x14000393a
or eax, 1
mov dword [rcx + rsi], eax
lea rbx, [rdx + rsi]
mov word [rbx + 9], 0x1d3
mov dword [rbx], 0x4c259651
mov dword [rbx + 4], 0x23131a3d
mov byte [rbx + 8], 0x43
lea rcx, [0x14009b030]
call fcn.140087430
nop
jmp 0x14000393e
lea rbx, [rdx + rsi]
cmp byte [rbx + 0xa], 0
je 0x140003970
xor byte [rbx], 0xd
xor byte [rbx + 1], 0xd3
xor byte [rbx + 2], 0x49
xor byte [rbx + 3], 0x25
xor byte [rbx + 4], 0x45
xor byte [rbx + 5], 0x73
xor byte [rbx + 6], 0x61
xor byte [rbx + 7], 0x65
xor byte [rbx + 8], 0xd
xor byte [rbx + 9], 0xd3
mov byte [rbx + 0xa], 0
nop
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140003970
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400082e0
mov rdi, qword [rsp + 0x68]
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
call fcn.140086774
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140002780
nop
lea rcx, [rsp + 0x30]
call fcn.1400032c0
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140003a12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087354
test bl, bl
jne 0x140003abb
mov rdi, qword [rsp + 0x68]
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
call fcn.140086774
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140002780
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call fcn.1400869d4
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x140003b5a
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140003abb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ab6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ab6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087354
mov rdi, qword [rsp + 0x68]
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
call fcn.140086774
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, r14
call fcn.140002780
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140003b30
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140087354
mov rax, r14
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140086fd0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
shr rdx, 0x20
lea r8, [rsp + 0x30]
call fcn.1400031f0
int3