Function at 0x140011d50
Capabilities:
Listen for remote procedure calls

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbx, rdx
mov rbp, rcx
xor esi, esi
and qword [rax + 0x18], rsi
and qword [rax - 0x30], rsi
lea rdx, [rax - 0x38]
lea rcx, [0x1400de874]
xor edi, edi
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140011e5e
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140011e43
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x98]
mov edi, eax
add edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov ebx, eax
lea r13d, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rsi + 0x40]
lea r12d, [rax + rax]
lea rax, [rdi + r13]
mov ebx, edi
lea rdx, [rax + r12 + 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140011e33
mov rdx, qword [rsp + 0x40]
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x98]
lea rcx, [rbx + rdi + 2]
mov r8, r13
call sub.msvcrt.dll_memcpy
mov byte [rbx + rdi], 0x2f
add rbx, r12
lea rcx, [rbx + rdi + 4]
mov r8, r12
mov rdx, rbp
call sub.msvcrt.dll_memcpy
mov byte [rbx + rdi + 2], 0x2f
lea rcx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140011e51
lea rcx, str.ERROR_kull_m_rpc_drsr_MakeSpnWithGUID___UuidToString_i_:__08x_n
mov edx, eax
call fcn.14000c030
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140011e6c
lea rcx, str.ERROR_kull_m_rpc_drsr_MakeSpnWithGUID___UuidToString_s_:__08x_n
mov edx, eax
call fcn.14000c030
test rdi, rdi
je 0x140012020
xor r9d, r9d
lea rcx, str.ncacn_ip_tcp
xor r8d, r8d
lea edx, [r9 + 0xa]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov esi, eax
test eax, eax
jne 0x140012009
lea edx, [rax + 9]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov esi, eax
test eax, eax
jne 0x140012000
and qword [rsp + 0x30], 0
or dword [rsp + 0x28], 0xffffffff
lea r9d, [rax + 8]
lea rcx, [0x1400de870]
mov r12d, 0x4d2
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
mov esi, eax
test eax, eax
jne 0x140011ff7
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov esi, eax
test eax, eax
jne 0x140011fee
lea ebp, [rax + 1]
mov rax, qword [rsp + 0x90]
xor ebx, ebx
cmp dword [rax], ebx
jbe 0x140011f67
xor esi, esi
mov rcx, qword [rsi + rax + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
test eax, eax
jne 0x140011f47
mov r8, qword [rsp + 0x48]
lea rcx, str.___BindString__u_:__s_n
mov edx, ebx
call fcn.14000c030
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140011f55
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcBindingToStringBinding:__08x_n
mov edx, eax
call fcn.14000c030
mov rax, qword [rsp + 0x90]
add ebx, ebp
add rsi, 8
cmp ebx, dword [rax]
jb 0x140011f13
lea r9, str.mimikatz_Ho__hey__Im_a_DC_:_
lea rcx, [0x1400de870]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
lea rcx, [rsp + 0x90]
mov esi, eax
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
test esi, esi
jne 0x140011fe3
lea rcx, str.___RPC_bind_registered_n
call fcn.14000c030
mov r8d, ebp
mov edx, r12d
mov ecx, ebp
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test eax, eax
jne 0x140011fc3
lea rcx, str.___RPC_Server_is_waiting__n
call fcn.14000c030
jmp 0x140012017
cmp eax, 0x6b1
jne 0x140011fda
lea rcx, str.___RPC_Server_already_waiting__n
call fcn.14000c030
xor esi, esi
jmp 0x140012017
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerListen:__08x_n
jmp 0x140012010
mov edx, esi
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcEpRegister:__08x_n
jmp 0x140012012
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerInqBindings:__08x_n
jmp 0x140012010
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerRegisterIf2:__08x_n
jmp 0x140012010
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerRegisterAuthInfo:__08x_n
jmp 0x140012010
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerUseProtseqEp:__08x_n
mov edx, eax
call fcn.14000c030
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret