Function at 0x1400119d8
Capabilities:
Listen for remote procedure calls

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rbx, rdx
mov r14, rcx
xor esi, esi
lea rdx, [rbp - 0x10]
and qword [rbp + 0x40], rsi
lea rcx, [0x1400dfac4]
and qword [rbp - 8], rsi
xor edi, edi
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140011c7e
lea rdx, [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140011ac6
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x48]
mov edi, eax
add edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, r14
lea r12d, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, edi
lea rdx, [r12 + 4]
add rdx, rbx
lea ecx, [rsi + 0x40]
lea r15d, [rax + rax]
add rdx, r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140011aba
mov rdx, qword [rbp - 0x10]
mov r8d, ebx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rdx, qword [rbp + 0x48]
lea rcx, [rdi + 2]
add rcx, rbx
mov r8d, r12d
call sub.msvcrt.dll_memcpy
mov byte [rbx + rdi], 0x2f
mov r8d, r15d
add rbx, r15
mov rdx, r14
lea rcx, [rbx + 4]
add rcx, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbx + rdi + 2], 0x2f
lea rcx, [rbp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140011ad4
mov edx, eax
lea rcx, str.ERROR_kull_m_rpc_drsr_MakeSpnWithGUID___UuidToString_i_:__08x_n
call fcn.14000bf2c
lea rcx, [rbp - 0x10]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test rdi, rdi
je 0x140011c8c
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 0x140011c65
xor r9d, r9d
lea edx, [rax + 9]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov esi, eax
test eax, eax
jne 0x140011c5c
and qword [rsp + 0x30], 0
lea r9d, [rax + 8]
or dword [rsp + 0x28], 0xffffffff
lea rcx, [0x1400dfac0]
mov r15d, 0x4d2
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
mov esi, eax
test eax, eax
jne 0x140011c53
lea rcx, [rbp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov esi, eax
test eax, eax
jne 0x140011c4a
lea r14d, [rax + 1]
xor ebx, ebx
mov rax, qword [rbp + 0x40]
cmp dword [rax], ebx
jbe 0x140011bc6
mov rcx, qword [rax + rbx*8 + 8]
lea rdx, [rbp - 8]
call qword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
test eax, eax
jne 0x140011bad
mov r8, qword [rbp - 8]
lea rcx, str.___BindString__u_:__s_n
mov edx, ebx
call fcn.14000bf2c
lea rcx, [rbp - 8]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140011bbb
mov edx, eax
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcBindingToStringBinding:__08x_n
call fcn.14000bf2c
mov rax, qword [rbp + 0x40]
add ebx, r14d
cmp ebx, dword [rax]
jb 0x140011b7c
lea r9, str.mimikatz_Ho__hey__Im_a_DC_:_
xor r8d, r8d
mov rdx, rax
lea rcx, [0x1400dfac0]
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
lea rcx, [rbp + 0x40]
mov esi, eax
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
test esi, esi
jne 0x140011c3f
lea rcx, str.___RPC_bind_registered_n
call fcn.14000bf2c
mov r8d, r14d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test eax, eax
jne 0x140011c1f
lea rcx, str.___RPC_Server_is_waiting__n
call fcn.14000bf2c
jmp 0x140011c73
cmp eax, 0x6b1
jne 0x140011c36
lea rcx, str.___RPC_Server_already_waiting__n
call fcn.14000bf2c
xor esi, esi
jmp 0x140011c73
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerListen:__08x_n
jmp 0x140011c6c
mov edx, esi
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcEpRegister:__08x_n
jmp 0x140011c6e
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerInqBindings:__08x_n
jmp 0x140011c6c
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerRegisterIf2:__08x_n
jmp 0x140011c6c
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerRegisterAuthInfo:__08x_n
jmp 0x140011c6c
lea rcx, str.ERROR_kull_m_rpc_drsr_start_server___RpcServerUseProtseqEp:__08x_n
mov edx, eax
call fcn.14000bf2c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140011c8c
mov edx, eax
lea rcx, str.ERROR_kull_m_rpc_drsr_MakeSpnWithGUID___UuidToString_s_:__08x_n
call fcn.14000bf2c
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret