Function at 0x140005900
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x140087118]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor ebx, ebx
mov dword [0x140087798], 3
cmp qword [0x1400876c8], rbx
jne 0x1400059a2
mov dword [rsp + 0x60], 0xa1f1013
mov dword [rsp + 0x64], 0xe7a2e9f4
mov dword [rsp + 0x68], 0xe2e4e1
mov byte [rsp + 0x6c], 1
nop word [rax + rax]
lea eax, [rbx + 0x7c]
xor byte [rsp + rbx + 0x60], al
inc rbx
cmp rbx, 0xb
jb 0x140005970
mov byte [rsp + 0x6c], 0
mov edx, 5
lea rcx, [rsp + 0x60]
call fcn.140010200
mov byte [0x140087611], 1
xor al, al
jmp 0x140006383
mov dword [rsp + 0x50], 0xd1b0e09
mov dword [rsp + 0x54], 0xe6efe0ee
mov word [rsp + 0x58], 0x100
mov rcx, rbx
nop dword [rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 8
jb 0x1400059c0
mov byte [rsp + 0x59], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xf8], rbx
mov r12, 0xffffffffffffffff
mov r8, r12
inc r8
cmp byte [rax + r8], 0
jne 0x140005a02
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.1400025a0
nop
mov qword [rsp + 0xc0], rbx
movdqa xmm0, xmmword [0x14006abc0]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
mov ecx, 8
call fcn.140066880
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140005a5b
mov rcx, rax
call fcn.14000fb50
nop
mov ecx, 0x1024
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x1024
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [0x140087610], 0
xor r8d, r8d
lea rdx, [0x14006ace3]
lea rcx, [0x140087618]
call fcn.140003080
mov dword [rsp + 0x38], 0xb1f0f3e
mov dword [rsp + 0x3c], 0x100e0f6
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 6
jb 0x140005ab0
mov byte [rsp + 0x3f], 0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], 6
mov qword [rsp + 0x88], reloc.WS2_32.dll_ntohs
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x70], eax
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x74], ax
mov byte [rsp + 0x76], 0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.140011210
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005b18
mov r8, qword [rax]
mov dword [rsp + 0x40], 0x160a1e1d
mov dword [rsp + 0x44], 0x100efef
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 6
jb 0x140005b30
mov byte [rsp + 0x47], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.14000eb20
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140005b9e
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
movdqa xmm0, xmmword [0x14006abc0]
movdqu xmmword [rsp + 0xa0], xmm0
mov byte [rsp + 0x90], 0
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x140005bfa
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
lea rdx, [0x1400876f8]
lea rcx, [rsp + 0x90]
call fcn.140011210
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005c1b
mov r8, qword [rax]
mov dword [rsp + 0x40], 0x170a081d
mov dword [rsp + 0x44], 0xe6e8df
mov byte [rsp + 0x48], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 7
jb 0x140005c40
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.14000eb20
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140005cae
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ca9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ca9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
lea rdx, [0x1400876d8]
lea rcx, [rsp + 0x70]
call fcn.140002860
mov r8, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140015c60
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005ce1
mov r8, qword [rax]
mov dword [rsp + 0x40], 0x170a081d
mov dword [rsp + 0x44], 0xeaf6efe5
mov dword [rsp + 0x48], 0xeef2e4e7
mov dword [rsp + 0x4c], 0x100e7e7
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xe
jb 0x140005d10
mov byte [rsp + 0x4f], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.14000eb20
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140005d7e
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140002860
mov r8, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140015c60
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005dad
mov r8, qword [rax]
mov dword [rsp + 0x40], 0xb1f0f3e
mov dword [rsp + 0x44], 0x100e0f6
mov rcx, rbx
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 6
jb 0x140005dc0
mov byte [rsp + 0x47], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.14000eb20
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140005e2e
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
lea rdx, [0x140087698]
lea rcx, [rsp + 0x70]
call fcn.140002860
mov r8, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140015c60
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005e61
mov r8, qword [rax]
mov dword [rsp + 0x38], 0x1a0d1210
mov word [rsp + 0x3c], 0xf2
mov byte [rsp + 0x3e], 1
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 5
jb 0x140005e80
mov byte [rsp + 0x3e], 0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xc0]
call fcn.14000eb20
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x140005eee
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ee9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ee9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
lea r15, [rsp + 0xe0]
mov rdi, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xf8]
cmp r13, 0x10
cmovae r15, rdi
movabs rsi, 0x7fffffffffffffff
mov r14, qword [rsp + 0xf0]
cmp r14, rsi
ja 0x1400063b0
mov qword [rsp + 0x88], reloc.WS2_32.dll_ntohs
cmp r14, 0x10
jae 0x140005f6d
mov qword [rsp + 0x80], r14
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r15
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memmove
jmp 0x140005fba
mov rax, r14
or rax, 0xf
cmp rax, rsi
ja 0x140005f88
mov rsi, rax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rax, rcx
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x70]
call fcn.140001d30
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], rsi
lea r8, [r14 + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140015c60
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x140005fde
mov r8, qword [rax]
mov dword [rsp + 0x38], 0xd1b0e15
mov word [rsp + 0x3c], 0x100
mov rcx, rbx
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 4
jb 0x140005ff0
mov byte [rsp + 0x3d], 0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xc0]
call fcn.14000eb20
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 0x10
jb 0x14000605e
inc rdx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006059
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
lea rcx, [rsp + 0xc0]
call fcn.14000edc0
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rbx
inc r12
cmp byte [rax + r12], 0
jne 0x140006083
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400025a0
mov dword [rsp + 0x40], 0x50170d1d
mov dword [rsp + 0x44], 0xaceeede4
mov word [rsp + 0x48], 0x100
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 8
jb 0x1400060c0
mov byte [rsp + 0x49], 0
movdqa xmm0, xmmword [0x14006ad80]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x80], 1
mov rcx, rbx
nop
lea eax, [rcx + 0x7c]
xor byte [rsp + rcx + 0x70], al
inc rcx
cmp rcx, 0xf
jb 0x1400060f0
mov byte [rsp + 0x80], 0
xor eax, eax
mov word [rsp + 0x38], ax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x50]
mov r9, rbx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.14000bd00
test al, al
jne 0x1400061e5
mov byte [0x140087611], 1
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x14000618e
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006189
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006320
call fcn.1400668bc
movdqa xmm0, xmmword [0x14006abc0]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
cmp r13, 0x10
jb 0x1400061de
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400061d6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006370
mov rcx, rdi
call fcn.1400668bc
xor al, al
jmp 0x140006383
lea rax, str.Req_IDNF
cmp rbx, rax
jne 0x140006296
mov byte [0x140087611], 1
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x14000623f
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000623a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006320
call fcn.1400668bc
movdqa xmm0, xmmword [0x14006abc0]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
cmp r13, 0x10
jb 0x14000628f
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140006287
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006370
mov rcx, rdi
call fcn.1400668bc
xor al, al
jmp 0x140006383
xor edx, edx
mov r8d, 0x1024
mov rcx, qword [0x140087760]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
mov r8, qword [0x140087760]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r8], al
lea rdx, [rdx + 1]
lea r8, [r8 + 1]
test al, al
jne 0x1400062c0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x60]
call fcn.1400063c0
nop
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x14000632c
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006327
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006327
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668bc
movdqa xmm0, xmmword [0x14006abc0]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
cmp r13, 0x10
jb 0x14000637f
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140006377
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006377
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400668bc
mov al, 1
jmp 0x140006383
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140066950
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140001ab0
int3