Function at 0x14003d310
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140175540]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x68], r12d
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x14003d371
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140002c50
nop
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
mov rcx, qword [rbp + 0x30]
sub rax, rcx
cmp rax, 1
jb 0x14003d821
lea r9, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova r9, qword [rbp + 0x20]
mov qword [rsp + 0x30], 1
lea r13, [0x140144cf4]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x20]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.1400216a0
mov edi, 1
mov r8d, 8
lea rdx, str.UnixxVPN
lea rcx, [rbp - 0x20]
call fcn.1400269e0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or edi, 2
lea rcx, [rbp - 0x20]
call fcn.140004030
lea rax, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rax, qword [rbp]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x78], rax
call fcn.1400eec48
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400277b0
or edi, 0xc
lea rcx, [rsp + 0x48]
call fcn.140029030
movzx ebx, al
lea rcx, [rsp + 0x48]
call fcn.1400041a0
test bl, bl
jne 0x14003d500
lea rax, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova rax, qword [rbp]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x78], rax
call fcn.1400eec48
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400277b0
or edi, 0x300
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call fcn.1400eeea8
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x14003d827
lea rcx, [rsp + 0x48]
call fcn.1400041a0
mov rax, qword [rbp + 0x10]
sub rsi, rax
cmp rsi, 1
jb 0x14003d81b
lea r9, [rbp]
cmp qword [rbp + 0x18], 0xf
cmova r9, qword [rbp]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea r8, [rbp]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400216a0
or edi, 0x10
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0xf
jbe 0x14003d556
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400269e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r12
mov byte [rax], 0
or edi, 0x20
mov r8d, 5
lea rdx, str..json
lea rcx, [rsp + 0x48]
call fcn.1400269e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or edi, 0x40
lea rcx, [rsp + 0x48]
call fcn.140004030
nop
lea rcx, [rsp + 0x70]
call fcn.140004030
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0xf
cmova rbx, qword [rbp + 0x40]
lea rax, [0x1401418f0]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
bts edi, 7
mov dword [rsp + 0x68], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rdi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x68], rax
mov byte [rbp + 0xe4], 0
mov byte [rbp + 0xd9], 0
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xe8], r12
mov rax, qword [0x1401b2d20]
mov qword [rbp + 0xdc], rax
mov qword [rbp + 0xd0], r12
mov r8d, 2
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.140026a70
test rax, rax
jne 0x14003d6ec
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], rdi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
cmp qword [rbp + 0xe8], 0
je 0x14003d768
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.14003e8f0
nop
mov dword [rsp + 0x20], 4
mov r9d, 0xffffffff
mov r8d, 4
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x70]
call qword [sym.imp.PocoJSON64.dll_public:_static_void___cdecl_Poco::JSON::Stringifier::stringify_class_Poco::Dynamic::Var_const____ptr64__class_std::basic_ostream_char__struct_std::char_traits_char______ptr64__unsigned_int__int__int_]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.PocoFoundation64.dll_public:_void___cdecl_Poco::Dynamic::Var::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call fcn.1400191d0
test rax, rax
jne 0x14003d794
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x60], rdi
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call fcn.140018e10
lea rcx, [rbp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x108]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x40]
call fcn.140004030
nop
lea rcx, [rbp]
call fcn.140004030
nop
lea rcx, [rbp + 0x20]
call fcn.140004030
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400ef390
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002af0
nop
call fcn.140002af0
nop
shr rdx, 0x20
lea r8, [rsp + 0x48]
lea rcx, str.create_directory
call fcn.140028480
int3