Function at 0x1402c1ab8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140423a40]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402c1b02
call fcn.1402a20c0
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1402a20e0
mov dword [rax], recv
call fcn.1402a1f74
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140293710
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402c1b0d
lea eax, [rbx + 1]
jmp 0x1402c1aef
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402c1aed
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402c1aef

Function at 0x1402c4a5c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1402ab4fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402c4ae6
cmp byte [rbp - 0x21], r15b
je 0x1402c4ae1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402c4b1c
call fcn.1402b6bec
test eax, eax
jne 0x1402c4b08
cmp byte [rbp - 0x21], r15b
je 0x1402c4b00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402c4b1c
cmp byte [rbp - 0x21], r15b
je 0x1402c4b19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1402aafe4
test eax, eax
jne 0x1402c4bbc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402ab4fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402c4b5b
cmp byte [rbp - 0x21], r15b
je 0x1402c4b90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402c4b90
call fcn.1402b6bec
test eax, eax
jne 0x1402c4b7c
cmp byte [rbp - 0x21], r15b
je 0x1402c4b75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402c4b90
cmp byte [rbp - 0x21], r15b
je 0x1402c4b8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1402aafe4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402c4bbc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402c4bbf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402c4bcd
mov rcx, rdi
call fcn.1402b68e4
cmp byte [rbp + 0x3f], r15b
je 0x1402c4bdc
mov rcx, qword [rbp + 0x27]
call fcn.1402b68e4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret