Function at 0x140081c00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1401c8c00]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r14d, r14d
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 - 0x10], r14
mov qword [rbp - 8], r14
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140081c60
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140004860
nop
movabs rsi, 0x7fffffffffffffff
mov rax, rsi
mov rcx, qword [rbp - 0x10]
sub rax, rcx
cmp rax, 1
jb 0x1400821b9
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova r9, qword [rbp - 0x20]
mov qword [rsp + 0x30], 1
lea rax, [0x14016af6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x20]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140005120
nop
mov r8d, 8
lea rdx, [0x14016af60]
lea rcx, [rsp + 0x78]
call fcn.140004430
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140081d53
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081d4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081d4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdi, qword [rbp - 0x30]
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rbx, qword [rbp - 0x40]
call fcn.140130c20
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.140001eb0
nop
mov r8d, 3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.140002970
movsd xmm0, qword [rax]
movsd qword [rbp - 0x68], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp - 0x50], ecx
lea rax, [0x1401c8c88]
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rbp - 0x68]
test eax, eax
je 0x140081e1a
cmp eax, 1
sete bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140081e2b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081e26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081e26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test ecx, ecx
jne 0x1400821aa
jmp 0x140081dda
call fcn.140131bf4
test bl, bl
je 0x140081ecd
mov rdi, qword [rbp - 0x30]
lea rbx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rbx, qword [rbp - 0x40]
call fcn.140130c20
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.140001eb0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rcx, qword [rsp + 0x58]
call fcn.140131124
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1400821bf
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140081ecd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081ec8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081ec8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov rax, qword [rbp - 0x30]
sub rsi, rax
cmp rsi, 0xe
jb 0x1400821a4
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x30], send
lea rcx, str._rpc_data.json
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140005120
nop
xor edx, edx
lea rcx, [rbp]
call fcn.14000ccd0
nop
lea rax, [rbp - 0x50]
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor eax, eax
mov qword [rbp - 0x48], rax
movzx ebx, byte [reloc.WS2_32.dll_accept]
movzx edx, byte [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.14000bd50
mov byte [rbp - 0x50], 4
mov byte [rsp + 0x48], bl
mov rax, qword [rsp + 0x48]
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r14
mov r8d, 6
lea rdx, str.toggle
lea rcx, [rsp + 0x78]
call fcn.140004860
lea rdx, [rsp + 0x78]
lea rcx, [rbp]
call fcn.14000c830
nop
movzx edx, byte [rax]
movzx ecx, byte [rbp - 0x50]
mov byte [rax], cl
mov byte [rbp - 0x50], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rbp - 0x48]
mov qword [rax + 8], rdx
mov qword [rbp - 0x48], rcx
movzx edx, byte [rbp - 0x50]
lea rcx, [rbp - 0x48]
call fcn.14000bd50
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.14008d770
nop
cmp qword [rbp + 0xb8], 0
je 0x140082048
mov edx, 4
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbp + 0x30]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp + 0x30]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
lea rdx, [rbp]
lea rcx, [rbp + 0x30]
call fcn.14008d910
lea rcx, [rbp + 0x38]
call fcn.14001a200
test rax, rax
jne 0x140082048
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 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 + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.140019750
lea rcx, [rbp + 0x40]
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 + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp]
lea rcx, [rbp + 8]
call fcn.14000bd50
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x1400820db
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400820d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400820d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
movdqa xmm0, xmmword [0x1401a6e30]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14008212a
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082125
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082125
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140082178
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082173
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140082173
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131bf4
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140131b90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140001810
nop
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x50]
call fcn.140002880
nop
call fcn.140001810
nop
shr rdx, 0x20
lea r8, [rsp + 0x58]
lea rcx, str.create_directory
call fcn.140002810
int3