Function at 0x1401dc950
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 - 0x560]
sub rsp, 0x660
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rbp + 0x550], rax
xor edi, edi
mov r12, rdx
mov r15, rcx
mov dword [0x1406c6b4c], edi
lea rdx, [0x1401dc940]
mov dword [0x1406c6b50], edi
mov r14d, r9d
mov esi, r8d
lea ecx, [rdi + 0x16]
call fcn.14035ceb0
lea rdx, [0x1401dc940]
mov qword [0x1406c6ae0], rax
lea ecx, [rdi + 8]
call fcn.14035ceb0
lea rdx, [0x1401dc940]
mov qword [0x1406c6a70], rax
lea ecx, [rdi + 4]
call fcn.14035ceb0
lea rdx, [0x1401dc940]
mov qword [0x1406c6a50], rax
lea ecx, [rdi + 2]
call fcn.14035ceb0
lea rdx, [0x1401dc940]
mov qword [0x1406c6a40], rax
lea ecx, [rdi + 0xb]
call fcn.14035ceb0
lea rdx, [0x1401dc940]
mov qword [0x1406c6a88], rax
lea ecx, [rdi + 0xf]
call fcn.14035ceb0
mov qword [0x1406c6aa8], rax
mov eax, 1
mov dword [0x1406c6b50], eax
test esi, esi
jne 0x1401dca5e
cmp dword [0x1406c6b48], edi
je 0x1401dca5e
mov eax, dword [0x1406c6b30]
mov ecx, 0xfffffff6
and eax, 0xfffffffb
mov dword [0x1406c6b34], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x1406c6b34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x1406c6b48], edi
mov ebx, 0xffffffff
mov dword [0x1406c6b50], 2
mov byte [rsp + 0x50], dil
lea r13d, [rbx + 0xb]
je 0x1401dcbe3
xor r8d, r8d
lea rcx, str.OPENSSL_WIN32_UTF8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0xfffffff6
test eax, eax
je 0x1401dcb75
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [rbp + 0x150]
mov r8d, 0x1ff
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x1401dcc93
mov edx, dword [rsp + 0x40]
cmp edx, 2
jb 0x1401dcb06
lea eax, [rdx - 2]
lea r8, [rbp + 0x150]
cmp word [r8 + rax*2], 0xd
lea r8, [r8 + rax*2]
jne 0x1401dcb06
lea ecx, [rdx - 1]
cmp word [rbp + rcx*2 + 0x150], r13w
jne 0x1401dcb06
mov word [r8], r13w
mov edx, ecx
mov dword [rsp + 0x40], ecx
mov eax, edx
add rax, rax
cmp rax, 0x400
jae 0x1401dcda4
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x150]
mov word [rbp + rax + 0x150], di
mov r9d, ebx
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x200
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, 0x400
lea rcx, [rbp + 0x150]
mov ebx, eax
call fcn.14023bdd0
test ebx, ebx
lea rax, [rsp + 0x50]
cmovle rax, rdi
jmp 0x1401dcbf9
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 0x1ff
call qword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x1401dcc93
mov edx, dword [rsp + 0x40]
cmp edx, 2
jb 0x1401dcbce
lea ecx, [rdx - 2]
lea r8, [rsp + 0x50]
add r8, rcx
cmp byte [r8], 0xd
jne 0x1401dcbce
lea ecx, [rdx - 1]
cmp byte [rsp + rcx + 0x50], r13b
jne 0x1401dcbce
mov byte [r8], r13b
mov edx, ecx
mov dword [rsp + 0x40], ecx
mov eax, edx
cmp rax, 0x200
jae 0x1401dcdaa
mov byte [rsp + rax + 0x50], dil
jmp 0x1401dcc02
mov r8, qword [0x1406c6b38]
lea rcx, [rsp + 0x50]
mov edx, 0x1ff
call fcn.140357e80
test rax, rax
je 0x1401dcc93
mov rcx, qword [0x1406c6b38]
call fcn.14035788c
test eax, eax
jne 0x1401dcc93
mov rcx, qword [0x1406c6b38]
call fcn.1403578b8
test eax, eax
jne 0x1401dcc93
mov edx, r13d
lea rcx, [rsp + 0x50]
call fcn.14033d6a0
test rax, rax
je 0x1401dcc42
test r14d, r14d
je 0x1401dcc79
mov byte [rax], dil
jmp 0x1401dcc79
mov rbx, qword [0x1406c6b38]
nop dword [rax]
mov r8, rbx
lea rcx, [rsp + 0x44]
mov edx, 4
call fcn.140357e80
test rax, rax
je 0x1401dcc93
mov edx, r13d
lea rcx, [rsp + 0x44]
call fcn.14033d6a0
test rax, rax
je 0x1401dcc50
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, r15
call fcn.1401dc330
test eax, eax
mov eax, 1
cmovns edi, eax
mov eax, dword [0x1406c6b4c]
cmp eax, 2
mov eax, 0xffffffff
cmove edi, eax
test esi, esi
jne 0x1401dccbb
mov rcx, qword [0x1406c6b40]
lea rdx, [0x14040201c]
call fcn.1401dc8d0
mov eax, dword [0x1406c6b50]
cmp eax, 2
jl 0x1401dccfe
test esi, esi
jne 0x1401dccfe
cmp dword [0x1406c6b48], esi
je 0x1401dccfe
mov eax, dword [0x1406c6b30]
mov ecx, 0xfffffff6
mov dword [0x1406c6b34], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x1406c6b34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x1406c6b50]
cmp eax, 1
jl 0x1401dcd69
mov rdx, qword [0x1406c6ae0]
mov ecx, reloc.WS2_32.dll_shutdown
call fcn.14035ceb0
mov rdx, qword [0x1406c6a70]
mov ecx, 8
call fcn.14035ceb0
mov rdx, qword [0x1406c6a50]
mov ecx, 4
call fcn.14035ceb0
mov rdx, qword [0x1406c6a40]
mov ecx, 2
call fcn.14035ceb0
mov rdx, qword [0x1406c6a88]
mov ecx, ntohs
call fcn.14035ceb0
mov rdx, qword [0x1406c6aa8]
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.14035ceb0
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.14023bdd0
mov eax, edi
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140170e40
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x660
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140175c7c
int3
call fcn.140175c7c
int3