Function at 0x1400ce480
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x14016a080]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400ce93b
test r8, r8
je 0x1400ce93b
lea rax, [rbp + 0x20]
mov qword [rbp + 0x40], rdx
mov qword [rsp + 0x198], rbx
lea r8, [rbp + 0x28]
xor ebx, ebx
mov qword [rbp + 0x28], Ordinal_41
mov qword [rsp + 0x38], rbx
mov edx, 0x80862007
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
lea r9d, [rbx + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rbx
mov dword [rbp + 0x20], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400ce5fb
mov dword [rbp - 0x40], 0xfc0afc7d
mov ecx, 0x3da
mov dword [rbp - 0x3c], 0xfc09fc75
mov dword [rbp - 0x38], 0xfc4afc6c
mov dword [rbp - 0x34], 0xfc41fc45
mov dword [rbp - 0x30], 0xfc4bfc4b
mov dword [rbp - 0x2c], 0xfc45fc10
mov dword [rbp - 0x28], 0xfc13fc5d
mov dword [rbp - 0x24], 0xfc47fc40
mov dword [rbp - 0x20], 0xfc59fc57
mov dword [rbp - 0x1c], 0xfc55fc4b
mov dword [rbp - 0x18], 0xfc4ffc5b
mov dword [rbp - 0x14], 0xfc1dfc59
mov dword [rbp - 0x10], 0xfc56fc48
mov dword [rbp - 0xc], 0xfc35fc32
mov dword [rbp - 8], 0xfc22fc37
mov dword [rbp - 4], 0xfc65fc28
mov dword [rbp], 0xfc23fc27
mov dword [rbp + 4], 0xfc3bfc2c
mov dword [rbp + 8], 0xfc38fc2f
mov dword [rbp + 0xc], 0xfc6dfc3f
mov dword [rbp + 0x10], 0xfc37fc7e
mov word [rbp + 0x14], bx
mov byte [rbp + 0x16], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x40], ax
inc rbx
cmp rbx, 0x2a
jb 0x1400ce5b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x40]
mov byte [rbp + 0x16], 0
call fcn.1400d4d70
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400d4f50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1400ce851
mov rdi, qword [rbp + 0x38]
mov qword [rsp + 0x150], r14
test rdi, rdi
je 0x1400ce872
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x40]
xorps xmm0, xmm0
mov dword [rsp + 0x28], ebx
mov r9d, Ordinal_50
mov qword [rsp + 0x20], rbx
mov edx, 0x80862007
mov qword [rbp - 0x28], rbx
mov rcx, rsi
mov qword [rbp - 0x18], ntohl
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x40], Ordinal_30
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x50], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400ce872
mov r14, qword [rbp - 0x28]
test r14, r14
je 0x1400ce872
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x40]
mov dword [rsp + 0x28], ebx
mov r9d, Ordinal_45
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], gethostname
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], ntohl
mov dword [rbp - 0x50], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], rbx
lea r8, [rbp - 0x40]
test eax, eax
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], ntohl
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov dword [rsp + 0x28], ebx
mov r9d, Ordinal_50
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x40], reloc.WLDAP32.dll_Ordinal_26
setne r15b
mov qword [rbp - 0x28], r14
movdqu xmmword [rbp - 0x38], xmm0
mov dword [rbp - 0x50], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400ce845
mov dword [rsp + 0x40], 0xfc06fc7d
mov ecx, 0x3da
mov dword [rsp + 0x44], 0xfc09fc75
mov dword [rsp + 0x48], 0xfc4afc6c
mov dword [rsp + 0x4c], 0xfc41fc45
mov dword [rsp + 0x50], 0xfc4bfc4b
mov dword [rsp + 0x54], 0xfc45fc10
mov dword [rsp + 0x58], 0xfc13fc5d
mov dword [rsp + 0x5c], 0xfc5bfc41
mov dword [rsp + 0x60], 0xfc56fc5b
mov dword [rsp + 0x64], 0xfc19fc48
mov dword [rsp + 0x68], 0xfc74fc73
mov dword [rsp + 0x6c], 0xfc4efc1c
mov dword [rsp + 0x70], 0xfc5efc4e
mov dword [rsp + 0x74], 0xfc24fc23
mov dword [rsp + 0x78], 0xfc2cfc62
mov dword [rsp + 0x7c], 0xfc65fc22
mov dword [rbp - 0x80], 0xfc2ffc36
mov dword [rbp - 0x7c], 0xfc3afc31
mov dword [rbp - 0x78], 0xfc28fc23
mov dword [rbp - 0x74], 0xfc21fc2d
mov dword [rbp - 0x70], 0xfc2efc6e
mov dword [rbp - 0x6c], 0xfc35fc34
mov dword [rbp - 0x68], 0xfc36fc20
mov dword [rbp - 0x64], 0xfc26fc27
mov dword [rbp - 0x60], 0xfc67fc76
mov dword [rbp - 0x5c], 0xfc20
mov byte [rbp - 0x58], 1
nop dword [rax]
nop dword [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x33
jb 0x1400ce800
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x40]
mov byte [rbp - 0x58], 0
call fcn.1400d4d70
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400d4f50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
movzx eax, r15b
mov r14, qword [rsp + 0x150]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140142f30
add rsp, 0x158
pop r15
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x40], 0xfc0afc7d
mov ecx, 0x3da
mov dword [rbp - 0x3c], 0xfc09fc75
mov dword [rbp - 0x38], 0xfc4afc6c
mov dword [rbp - 0x34], 0xfc41fc45
mov dword [rbp - 0x30], 0xfc4bfc4b
mov dword [rbp - 0x2c], 0xfc45fc10
mov dword [rbp - 0x28], 0xfc13fc5d
mov dword [rbp - 0x24], 0xfc54fc59
mov dword [rbp - 0x20], 0xfc17fc46
mov dword [rbp - 0x1c], 0xfc76fc71
mov dword [rbp - 0x18], 0xfc48fc1a
mov dword [rbp - 0x14], 0xfc5cfc4c
mov dword [rbp - 0x10], 0xfc5afc5d
mov dword [rbp - 0xc], 0xfc2efc60
mov dword [rbp - 8], 0xfc63fc24
mov dword [rbp - 4], 0xfc3dfc74
mov word [rbp], bx
mov byte [rbp + 2], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x40], ax
inc rbx
cmp rbx, 0x20
jb 0x1400ce8f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x40]
mov byte [rbp + 2], 0
call fcn.1400d4d70
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400d4f50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x1400ce849
xor al, al
jmp 0x1400ce859