Function at 0x140010310
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, [0x1400cfa74]
xor edi, edi
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x14001041e
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140010403
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 0x1400103f3
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 0x140010411
lea rcx, str.ERROR_kull_m_rpc_drsr_MakeSpnWithGUID___UuidToString_i_:__08x_n
mov edx, eax
call fcn.14000a838
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x14001042c
lea rcx, str.ERROR_kull_m_rpc_drsr_MakeSpnWithGUID___UuidToString_s_:__08x_n
mov edx, eax
call fcn.14000a838
test rdi, rdi
je 0x1400105e0
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 0x1400105c9
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 0x1400105c0
and qword [rsp + 0x30], 0
or dword [rsp + 0x28], 0xffffffff
lea r9d, [rax + 8]
lea rcx, [0x1400cfa70]
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 0x1400105b7
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov esi, eax
test eax, eax
jne 0x1400105ae
lea ebp, [rax + 1]
mov rax, qword [rsp + 0x90]
xor ebx, ebx
cmp dword [rax], ebx
jbe 0x140010527
xor esi, esi
mov rcx, qword [rsi + rax + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
test eax, eax
jne 0x140010507
mov r8, qword [rsp + 0x48]
lea rcx, str.___BindString__u_:__s_n
mov edx, ebx
call fcn.14000a838
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140010515
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcBindingToStringBinding:__08x_n
mov edx, eax
call fcn.14000a838
mov rax, qword [rsp + 0x90]
add ebx, ebp
add rsi, 8
cmp ebx, dword [rax]
jb 0x1400104d3
lea r9, str.mimikatz_Ho__hey__Im_a_DC_:_
lea rcx, [0x1400cfa70]
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 0x1400105a3
lea rcx, str.___RPC_bind_registered_n
call fcn.14000a838
mov r8d, ebp
mov edx, r12d
mov ecx, ebp
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test eax, eax
jne 0x140010583
lea rcx, str.___RPC_Server_is_waiting__n
call fcn.14000a838
jmp 0x1400105d7
cmp eax, 0x6b1
jne 0x14001059a
lea rcx, str.___RPC_Server_already_waiting__n
call fcn.14000a838
xor esi, esi
jmp 0x1400105d7
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerListen:__08x_n
jmp 0x1400105d0
mov edx, esi
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcEpRegister:__08x_n
jmp 0x1400105d2
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerInqBindings:__08x_n
jmp 0x1400105d0
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerRegisterIf2:__08x_n
jmp 0x1400105d0
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerRegisterAuthInfo:__08x_n
jmp 0x1400105d0
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerUseProtseqEp:__08x_n
mov edx, eax
call fcn.14000a838
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