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

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0x538]
sub rsp, 0x638
mov rax, qword [0x180291300]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rax, qword [rbp + 0x580]
mov rbx, r8
xor esi, esi
mov qword [rbp], rdx
mov qword [rsp + 0x58], rbx
mov edx, esi
mov qword [rsp + 0x60], rax
mov r12, r9
mov word [rsp + 0x40], cx
mov dword [rbp - 0x10], 0x92b8a086
mov dword [rbp - 0xc], 0xf7bdbab7
mov dword [rbp - 8], 0xb9a3bf
nop
movsxd rax, edx
lea rcx, [rbp - 0x10]
add rcx, rax
lea eax, [rdx - 0x2e]
inc edx
xor byte [rcx], al
cmp edx, 0xb
jb 0x18003de20
lea rcx, [rbp - 0x10]
mov byte [rbp - 5], sil
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18003e688
cmp dword [rbx + 0x28], 1
mov qword [rsp + 0x628], r13
jle 0x18003e6a4
movups xmm0, xmmword [r12]
lea r9, [rsp + 0x48]
xor edx, edx
movups xmm1, xmmword [r12 + 0x10]
lea r8, [rsp + 0x44]
xor ecx, ecx
movaps xmmword [0x180296df0], xmm0
movups xmm0, xmmword [r12 + 0x20]
mov dword [rsp + 0x44], esi
movaps xmmword [0x180296e00], xmm1
movups xmm1, xmmword [r12 + 0x30]
movaps xmmword [0x180296e10], xmm0
movups xmm0, xmmword [r12 + 0x40]
movaps xmmword [0x180296e20], xmm1
movups xmm1, xmmword [r12 + 0x50]
movaps xmmword [0x180296e30], xmm0
movups xmm0, xmmword [r12 + 0x60]
movaps xmmword [0x180296e40], xmm1
movsd xmm1, qword [r12 + 0x70]
movaps xmmword [0x180296e50], xmm0
movsd qword [0x180296e60], xmm1
call sub.WS2_32.dll_WSCEnumProtocols
cmp eax, 0xffffffff
jne 0x18003def8
cmp dword [rsp + 0x48], 0x2747
je 0x18003def8
mov r11d, dword [rsp + 0x4c]
mov r13, rsi
jmp 0x18003df21
mov edx, dword [rsp + 0x44]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea r9, [rsp + 0x48]
xor ecx, ecx
mov rdx, rax
lea r8, [rsp + 0x44]
mov r13, rax
call sub.WS2_32.dll_WSCEnumProtocols
mov r11d, eax
mov r10d, dword [rbx + 0x30]
mov r8d, esi
movsxd r9, r11d
test r11d, r11d
jle 0x18003e001
mov rdx, rsi
lea rcx, [r13 + 0x24]
nop dword [rax + rax]
cmp dword [rcx], r10d
je 0x18003df5c
inc r8d
inc rdx
add rcx, 0x274
cmp rdx, r9
jl 0x18003df40
jmp 0x18003e001
movsxd rax, r8d
mov edx, 4
imul rcx, rax, 0x274
lea rax, [rbp + 0x70]
add rcx, r13
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x18003df72
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x70], ecx
cmp r8d, r11d
jge 0x18003e6a4
lea r9, [rsp + 0x50]
mov dword [rsp + 0x4c], 0x104
lea r8, [rsp + 0x4c]
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x84]
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x18003e6a4
mov r8d, 0x104
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18003e6a4
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x2f0]
mov qword [rsp + 0x630], rdi
xor edx, edx
mov qword [rsp + 0x620], r14
xor ecx, ecx
mov qword [rsp + 0x30], rsi
mov r14, 0xffffffffffffffff
mov r9d, r14d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x618], r15
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea ecx, [rax + 1]
movsxd rbx, ecx
mov rcx, rbx
call fcn.18003f000
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.180065a60
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x2f0]
mov qword [rsp + 0x30], rsi
mov r9d, r14d
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x10], xmm0
movdqu xmmword [rbp + 0x20], xmm1
inc r14
cmp byte [r15 + r14], sil
jne 0x18003e0f6
mov r8, r14
lea rcx, [rbp + 0x10]
mov rdx, r15
call fcn.1800023f0
mov rcx, r15
call fcn.18003e7c0
cmp qword [rbp + 0x28], 0xf
lea rcx, [rbp + 0x10]
cmova rcx, qword [rbp + 0x10]
xor edx, edx
lea r8d, [rdx + 8]
call fcn.18000da30
mov rdx, qword [rbp + 0x28]
mov rbx, rax
cmp rdx, 0xf
jbe 0x18003e16d
mov rcx, qword [rbp + 0x10]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003e168
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003e6ab
call fcn.18003e7c0
movdqa xmm0, xmmword [0x1800de940]
xor eax, eax
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp - 6], al
mov edx, esi
mov byte [rbp + 0x10], sil
mov dword [rbp - 0x10], 0x86848085
mov dword [rbp - 0xc], 0xadaab6a2
mov word [rbp - 8], 0xabaf
nop dword [rax]
movsxd rax, edx
lea rcx, [rbp - 0x10]
add rcx, rax
lea eax, [rdx - 0x2e]
inc edx
xor byte [rcx], al
cmp edx, 0xa
jb 0x18003e1a0
lea rdx, [rbp - 0x10]
mov byte [rbp - 6], sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movups xmm0, xmmword [r12]
cmp dword [rbp + 0x98], 1
lea r8, [rbp + 0x70]
movups xmm1, xmmword [r12 + 0x10]
mov rbx, qword [rsp + 0x60]
lea r9, [rsp + 0x70]
cmovne r8, qword [rsp + 0x58]
mov rdx, qword [rbp]
movzx ecx, word [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [r12 + 0x20]
mov qword [rsp + 0x20], rbx
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [r12 + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [r12 + 0x40]
movaps xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [r12 + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [r12 + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movsd xmm1, qword [r12 + 0x70]
movaps xmmword [rbp - 0x30], xmm0
movsd qword [rbp - 0x20], xmm1
call rax
movups xmm0, xmmword [rbx]
lea rdx, [rbx + 0x80]
mov dword [rsp + 0x40], eax
lea rax, [0x180000000]
movups xmmword [rax + 0x296e70], xmm0
lea rcx, [rax + 0x296e70]
movups xmm1, xmmword [rbx + 0x10]
lea rcx, [rcx + 0x80]
lea rax, [rax + 0x297070]
movups xmmword [rcx - 0x70], xmm1
lea rax, [rax + 0x80]
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rbx]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rax - 0x10], xmm1
sub rbx, 0xffffffffffffff80
cmp byte [0x1802975b9], sil
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rax + 0x60], xmm0
jne 0x18003e65b
mov eax, 0xdedc
mov byte [0x1802975b9], 1
mov word [rbp + 0x24], ax
mov ebx, 0xdedd
mov eax, ebx
mov dword [rbp + 0x10], 0xde9fde9e
xor ax, word [0x1800e4016]
mov edi, 0xdede
mov word [rbp + 0x26], ax
mov r14d, 0xdedf
mov eax, edi
mov dword [rbp + 0x14], 0xde97de98
xor ax, word [0x1800e4018]
mov r15d, 0xdee0
mov word [rbp + 0x28], ax
mov r12d, 0xdee1
mov eax, r14d
mov dword [rbp + 0x18], 0xde90de9e
xor ax, word [0x1800e401a]
mov edx, esi
mov word [rbp + 0x2a], ax
mov r8d, 0x212e
mov eax, r15d
mov dword [rbp + 0x1c], 0xde9dde9c
xor ax, word [0x1800e401c]
mov word [rbp + 0x2c], ax
mov eax, r12d
xor ax, word [0x1800e401e]
mov word [rbp + 0x2e], ax
mov eax, 0xdee2
xor ax, word [0x1800e4020]
mov word [rbp + 0x30], ax
mov eax, 0xdee3
xor ax, word [0x1800e4022]
mov word [rbp + 0x32], ax
mov eax, 0xdee4
xor ax, word [0x1800e4024]
mov word [rbp + 0x34], ax
mov eax, 0xdee5
xor ax, word [0x1800e4026]
mov word [rbp + 0x36], ax
mov eax, 0xdee6
xor ax, word [0x1800e4028]
mov word [rbp + 0x38], ax
xor eax, eax
mov word [rbp + 0x3a], ax
mov dword [rbp + 0x20], 0xde9ede9f
movsxd rax, edx
lea rcx, [rbp + 0x10]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
inc edx
xor word [rcx], ax
cmp edx, 0x15
jb 0x18003e461
lea r8, [rbp + 0x10]
mov word [rbp + 0x3a], si
xor edx, edx
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x18003e65b
xor bx, word [0x1800e4016]
mov eax, 0xdedc
xor di, word [0x1800e4018]
mov edx, esi
xor r14w, word [0x1800e401a]
mov r8d, 0x212e
xor r15w, word [0x1800e401c]
xor r12w, word [0x1800e401e]
mov word [rbp + 0x54], ax
mov eax, 0xdee2
xor ax, word [0x1800e4020]
mov word [rbp + 0x60], ax
mov eax, 0xdee3
xor ax, word [0x1800e4022]
mov word [rbp + 0x62], ax
mov eax, 0xdee4
xor ax, word [0x1800e4024]
mov word [rbp + 0x64], ax
mov eax, 0xdee5
xor ax, word [0x1800e4026]
mov word [rbp + 0x66], ax
mov eax, 0xdee6
xor ax, word [0x1800e4028]
mov word [rbp + 0x68], ax
xor eax, eax
mov word [rbp + 0x6a], ax
mov dword [rbp + 0x40], 0xde9fde9e
mov dword [rbp + 0x44], 0xde97de98
mov dword [rbp + 0x48], 0xde90de9e
mov dword [rbp + 0x4c], 0xde9dde9c
mov dword [rbp + 0x50], 0xde9ede9f
mov word [rbp + 0x56], bx
mov word [rbp + 0x58], di
mov word [rbp + 0x5a], r14w
mov word [rbp + 0x5c], r15w
mov word [rbp + 0x5e], r12w
movsxd rax, edx
lea rcx, [rbp + 0x40]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
inc edx
xor word [rcx], ax
cmp edx, 0x15
jb 0x18003e562
lea r8, [rbp + 0x40]
mov word [rbp + 0x6a], si
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x18003e5aa
cmp eax, 0xb7
jne 0x18003e5b2
mov rcx, rbx
jmp 0x18003e5ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movdqa xmm0, xmmword [0x1800e4030]
xor eax, eax
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp + 0x2a], al
mov edx, esi
mov dword [rbp + 0x20], 0x8e8a8aae
mov dword [rbp + 0x24], 0x8c8285a9
mov word [rbp + 0x28], 0x9f89
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rbp + 0x10]
add rcx, rax
lea eax, [rdx - 0x2e]
inc edx
xor byte [rcx], al
cmp edx, 0x1a
jb 0x18003e5e0
mov byte [rbp + 0x2a], sil
mov dword [rbp], 0xb9b0a79c
mov dword [rbp + 4], 0xb5bcf9ba
mov word [rbp + 8], 0xb6
nop
movsxd rax, esi
lea rcx, [rbp]
add rcx, rax
lea eax, [rsi - 0x2e]
inc esi
xor byte [rcx], al
cmp esi, 9
jb 0x18003e610
lea rcx, [rbp]
mov byte [rbp + 9], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [0x18003c890]
mov eax, dword [rax + 4]
inc eax
mov qword [0x180297168], rax
call fcn.18003dbf0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rsp + 0x40]
mov r14, qword [rsp + 0x620]
mov rdi, qword [rsp + 0x630]
mov r15, qword [rsp + 0x618]
mov r13, qword [rsp + 0x628]
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.18003ec50
add rsp, 0x638
pop r12
pop rsi
pop rbx
pop rbp
ret
mov eax, 0x277a
jmp 0x18003e680
call fcn.180045b6c
int3