Function at 0x1400c4c00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x470
movaps xmmword [rsp + 0x460], xmm6
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14059d190]
mov ecx, edx
sar ecx, 0xd
and ecx, 0xfffffff8
add rcx, qword [0x14059d050]
add rax, rcx
add rax, 0x10
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rax
lea r12, [rsp + 0x40]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 8
mov eax, dword [0x14059d048]
mov dword [rsp + 0x60], eax
cmp byte [0x14059d058], 0
mov rcx, qword [0x14059d040]
mov ebp, 0x220c58
mov edi, 0x222404
mov edx, 0x222404
cmove edx, ebp
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r14, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r8, [rsp + 0x60]
mov r9d, reloc.WLDAP32.dll_Ordinal_32
call r14
movzx r15d, bx
add r15d, r15d
add r15, qword [rsp + 0x40]
mov word [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 2
mov eax, dword [0x14059d048]
mov dword [rsp + 0x60], eax
cmp byte [0x14059d058], 0
mov rcx, qword [0x14059d040]
mov edx, 0x222404
cmove edx, ebp
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov r9d, reloc.WLDAP32.dll_Ordinal_32
call r14
movzx r14d, word [rsp + 0x40]
lea rbx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
cmp r14, 0x40
jae 0x1400c4d69
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
jmp 0x1400c4f35
mov r12d, r14d
shr r14, 6
lea rax, [r14 + r14]
add r15, 2
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov eax, dword [0x14059d048]
cmp byte [0x14059d058], 0
mov dword [rsp + 0x40], eax
mov rcx, qword [0x14059d040]
cmove edi, ebp
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov edx, edi
mov r9d, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp r14d, 2
mov eax, 1
cmovae eax, r14d
movzx ecx, r12w
cmp ecx, 0x80
jae 0x1400c4e01
mov r8d, 0xb000
mov ecx, Ordinal_27
test al, 1
jne 0x1400c4e6f
jmp 0x1400c4e7b
mov r8d, eax
and r8d, 0xfffffffe
mov ecx, Ordinal_27
xor edx, edx
nop
mov r9d, edx
or r9d, 0xb000
add r9d, ecx
mov ecx, r9d
shr ecx, 2
xor r9b, byte [rsp + rdx + 0x60]
not r9b
mov byte [rsp + rdx + 0x60], r9b
mov r9d, edx
or r9d, 0xb001
add r9d, ecx
mov ecx, r9d
shr ecx, 2
xor r9b, byte [rsp + rdx + 0x61]
not r9b
mov byte [rsp + rdx + 0x61], r9b
add rdx, 2
cmp r8d, edx
jne 0x1400c4e10
mov r8d, edx
or r8d, 0xb000
lea rbx, [rsp + rdx]
add rbx, 0x60
test al, 1
je 0x1400c4e7b
add r8d, ecx
xor r8b, byte [rbx]
not r8b
mov byte [rbx], r8b
movzx eax, r14w
mov byte [rsp + rax + 0x60], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rax, rax
js 0x1400c4f52
mov rdi, rax
cmp rax, 0xf
ja 0x1400c4ecb
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rsi
jmp 0x1400c4f32
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov rax, rdi
or rax, 0xf
cmp rax, 0x17
mov r14d, reloc.WLDAP32.dll_Ordinal_22
cmovae r14, rax
cmp r14, 0xfff
jb 0x1400c4f08
lea rcx, [r14 + 0x28]
call fcn.140127dec
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400c4f14
lea rcx, [r14 + 1]
call fcn.140127dec
mov rbx, rax
mov qword [rsi], rbx
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], r14
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rbx
mov byte [rdi], 0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x460]
add rsp, 0x470
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140008e60
int3