Function at 0x140014cd0
Capabilities:
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1403f2078]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov byte [rbp - 0x59], r9b
mov r15, r8
mov qword [rbp - 0x31], r8
mov rsi, rdx
mov qword [rbp - 0x29], rdx
xor r14d, r14d
mov r12d, r14d
mov dword [rbp - 0x21], r14d
lea r9, [rbp - 0x21]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call fcn.14007e196
cmp eax, 0xc0000004
jne 0x140014d85
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x21]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
lea r9, [rbp - 0x21]
mov r8d, dword [rbp - 0x21]
mov rdx, rax
mov ecx, listen
call fcn.14007e196
cmp eax, 0xc0000004
je 0x140014d40
test eax, eax
js 0x140015101
mov r13d, r14d
cmp dword [r12], r14d
jbe 0x140015101
movzx ebx, byte [rbp - 0x59]
nop
mov eax, r13d
imul rcx, rax, 0x128
lea rdi, [rcx + r12]
movzx eax, word [rdi + 0x2e]
add rax, rcx
lea rdx, [r12 + 0x30]
add rdx, rax
mov qword [rbp + 7], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 7], 0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140014de0
lea rcx, [rbp + 7]
call fcn.140007030
nop
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400150b9
lea rdx, [rdi + 0x30]
mov qword [rbp - 0x19], r14
mov qword [rbp - 9], r14
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140014e31
lea rcx, [rbp - 0x19]
call fcn.140007030
nop
lea rcx, [0x14013b120]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140014e70
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140007030
nop
mov rcx, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x39]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140014ebc
lea rax, [rcx + 1]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x51]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x51]
mov word [rax + rcx], 0x5c
lea r14, [rbp - 0x51]
jmp 0x140014ee1
mov qword [rsp + 0x20], 1
lea r9, [0x14013b12c]
movzx r8d, bl
mov edx, 1
lea rcx, [rbp - 0x51]
call fcn.140014840
mov r14, rax
lea rsi, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rsi, qword [rbp - 0x19]
mov rax, qword [rbp - 9]
cmp rax, 0xc
jb 0x140014f60
lea r15, [rax + rsi]
lea r8, [r15 - 0xb]
sub r8, rsi
mov edx, 0x5c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x140014f5c
nop dword [rax]
mov r8d, recv
lea rdx, [0x14013b130]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140015141
inc rdi
lea r8, [r15 - 0xb]
sub r8, rdi
mov edx, 0x5c
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x140014f20
mov r15, qword [rbp - 0x31]
mov rdi, 0xffffffffffffffff
mov rax, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x140014f75
mov r14, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8d, recv
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140015230
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140014fcb
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014fc6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001514d
call fcn.140135780
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14001518c
movsxd rcx, dword [rdi + 0x3c]
cmp dword [rcx + rdi], 0x4550
jne 0x14001518c
mov edx, dword [rcx + rdi + 0x88]
test edx, edx
je 0x14001518c
mov r11d, dword [rdx + rdi + 0x1c]
lea rsi, [rdi + r11]
mov r9d, dword [rdx + rdi + 0x20]
add r9, rdi
mov r14d, dword [rdx + rdi + 0x24]
add r14, rdi
xor r10d, r10d
test r11d, r11d
je 0x140015077
nop word [rax + rax]
mov r8d, dword [r9]
add r8, rdi
mov rax, r15
sub r8, r15
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140015063
inc rax
test ecx, ecx
jne 0x140015050
test edx, edx
je 0x140015154
inc r10d
add r9, 4
cmp r10d, r11d
jb 0x140015040
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1400150b2
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400150ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400151c0
call fcn.140135780
xor r14d, r14d
mov rsi, qword [rbp - 0x29]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x1400150f4
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400150ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015226
call fcn.140135780
inc r13d
cmp r13d, dword [r12]
jb 0x140014da0
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401358a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub rdi, rsi
mov r15, qword [rbp - 0x31]
jmp 0x140014f67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movzx ecx, word [r14 + r10*2]
mov ebx, dword [rsi + rcx*4]
xor edx, edx
mov r8d, 0x8000
cmp byte [rbp - 0x59], dl
jne 0x140015178
mov eax, r13d
imul rcx, rax, 0x128
add rbx, qword [rcx + r12 + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001518e
xor ebx, ebx
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1400151cc
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400151c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400151c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140135780
mov qword [rbp - 9], 0
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14001521e
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015219
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015219
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140135780
mov rax, rbx
jmp 0x140015114
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3