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

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x5e8]
sub rsp, 0x6d8
mov rax, qword [0x18010e6c0]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov qword [r11 - 0x18], rsi
mov rsi, r9
mov qword [r11 - 0x20], rdi
mov rdi, qword [rbp + 0x610]
mov qword [r11 - 0x28], r12
movzx r12d, cx
mov qword [r11 - 0x30], r13
xor ecx, ecx
mov qword [r11 - 0x40], r15
mov r13, rdx
mov r15, r8
lea rdx, [rbp + 0x270]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
lea rax, [rbp + 0x270]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rbp - 0x30], xmm0
movdqu xmmword [rbp - 0x20], xmm1
nop
inc r8
cmp byte [rax + r8], 0
jne 0x180051010
lea rdx, [rbp + 0x270]
lea rcx, [rbp - 0x30]
call fcn.180001bb0
xor ebx, ebx
mov dword [rbp - 0x40], 0xd0fae6c0
mov edx, ebx
mov dword [rbp - 0x3c], 0xb5fff4f9
mov dword [rbp - 0x38], 0xfbe5f9
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rdx - 0x6c]
inc edx
xor byte [rcx], al
cmp edx, 0xb
jb 0x180051050
xor r8d, r8d
mov byte [rbp - 0x35], bl
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.180050bf0
cmp rax, 0xffffffffffffffff
je 0x1800513eb
cmp dword [r15 + 0x28], 1
mov qword [rsp + 0x6b0], r14
jle 0x1800513dc
movups xmm0, xmmword [rsi]
lea r9, [rsp + 0x34]
xor edx, edx
movups xmm1, xmmword [rsi + 0x10]
lea r8, [rsp + 0x30]
xor ecx, ecx
movaps xmmword [0x180114020], xmm0
movups xmm0, xmmword [rsi + 0x20]
mov dword [rsp + 0x30], ebx
movaps xmmword [0x180114030], xmm1
movups xmm1, xmmword [rsi + 0x30]
movaps xmmword [0x180114040], xmm0
movups xmm0, xmmword [rsi + 0x40]
movaps xmmword [0x180114050], xmm1
movups xmm1, xmmword [rsi + 0x50]
movaps xmmword [0x180114060], xmm0
movups xmm0, xmmword [rsi + 0x60]
movaps xmmword [0x180114070], xmm1
movsd xmm1, qword [rsi + 0x70]
movaps xmmword [0x180114080], xmm0
movsd qword [0x180114090], xmm1
call sub.WS2_32.dll_WSCEnumProtocols
cmp eax, 0xffffffff
jne 0x18005111f
cmp dword [rsp + 0x34], 0x2747
je 0x18005111f
mov r11d, dword [rsp + 0x38]
mov r14, rbx
jmp 0x180051148
mov edx, dword [rsp + 0x30]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea r9, [rsp + 0x34]
xor ecx, ecx
mov rdx, rax
lea r8, [rsp + 0x30]
mov r14, rax
call sub.WS2_32.dll_WSCEnumProtocols
mov r11d, eax
mov r10d, dword [r15 + 0x30]
mov r8d, ebx
movsxd r9, r11d
test r11d, r11d
jle 0x180051223
mov rdx, rbx
lea rcx, [r14 + 0x24]
cmp dword [rcx], r10d
je 0x18005117e
inc r8d
inc rdx
add rcx, 0x274
cmp rdx, r9
jl 0x180051162
jmp 0x180051223
movsxd rax, r8d
lea rcx, [rbp - 0x10]
imul rax, rax, 0x274
mov edx, 4
add rax, r14
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180051194
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
cmp r8d, r11d
jge 0x1800513dc
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x38], 0x104
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 4]
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x1800513dc
mov r8d, 0x104
lea rdx, [rbp + 0x380]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1800513dc
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r8, rax
test rax, rax
je 0x1800513dc
xor eax, eax
mov dword [rbp - 0x40], 0xc4c6c6c3
mov byte [rbp - 0x36], al
mov edx, ebx
mov dword [rbp - 0x3c], 0xefe8f8ec
mov word [rbp - 0x38], 0xede9
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x40]
add rcx, rax
lea eax, [rdx - 0x6c]
inc edx
xor byte [rcx], al
cmp edx, 0xa
jb 0x1800512b0
lea rdx, [rbp - 0x40]
mov byte [rbp - 0x36], bl
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800513dc
movups xmm0, xmmword [rsi]
cmp dword [rbp + 0x18], 1
lea r8, [rbp - 0x10]
movups xmm1, xmmword [rsi + 0x10]
lea r9, [rsp + 0x40]
cmovne r8, r15
movaps xmmword [rsp + 0x40], xmm0
mov rdx, r13
movups xmm0, xmmword [rsi + 0x20]
movzx ecx, r12w
mov qword [rsp + 0x20], rdi
movaps xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [rsi + 0x30]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsi + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [rsi + 0x50]
movaps xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rsi + 0x60]
movaps xmmword [rbp - 0x70], xmm1
movsd xmm1, qword [rsi + 0x70]
movaps xmmword [rbp - 0x60], xmm0
movsd qword [rbp - 0x50], xmm1
call rax
test eax, eax
jne 0x1800513e1
movups xmm0, xmmword [rdi]
lea rax, [0x1801140a0]
mov rcx, r14
movups xmmword [rax], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdi + 0x70]
sub rdi, 0xffffffffffffff80
movups xmmword [rax - 0x10], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rax + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1800513e3
mov eax, 0x277a
mov ebx, eax
mov r14, qword [rsp + 0x6b0]
mov rdx, qword [rbp - 0x18]
mov r15, qword [rsp + 0x6a8]
mov r13, qword [rsp + 0x6b8]
mov r12, qword [rsp + 0x6c0]
mov rdi, qword [rsp + 0x6c8]
mov rsi, qword [rsp + 0x6d0]
cmp rdx, 0xf
jbe 0x18005144a
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051445
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180051465
call fcn.180051684
mov eax, ebx
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.180051b70
add rsp, 0x6d8
pop rbx
pop rbp
ret
call fcn.18005882c
int3