Function at 0x14001b650
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1170]
mov eax, 0x1270
call fcn.140023a50
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x12a0], rbx
mov qword [rsp + 0x12a8], rsi
mov qword [rsp + 0x12b0], rdi
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rbp + 0x1160], rax
mov qword [rsp + 0x40], rcx
xor edi, edi
mov r13d, edi
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call fcn.140026290
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x20]
mov edx, 0x410
lea rcx, [rsp + 0x50]
call sub.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcesses
test eax, eax
jne 0x14001b70c
lea rcx, str.enum_process_fail
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x117
lea rdx, str.FindProcess
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
xor al, al
jmp 0x14001b91b
mov r12d, dword [rsp + 0x20]
shr r12d, 2
movups xmm0, xmmword [0x140090da8]
movaps xmmword [rbp + 0xf50], xmm0
mov eax, dword [0x140090db8]
mov dword [rbp + 0xf60], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xf64]
call fcn.140026290
mov r14d, edi
test r12d, r12d
je 0x14001b915
lea r15, [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [r15]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rsi, rax
lea r9, [rsp + 0x38]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcessModules
test eax, eax
je 0x14001b905
mov r9d, 0x104
lea r8, [rbp + 0xf50]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call sub.api_ms_win_core_psapi_l1_1_0.dll_K32GetModuleBaseNameW
call fcn.1400030f0
test rax, rax
je 0x14001b956
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf50]
cmp rax, 0x10000
jae 0x14001b7f2
lea rax, [rbp + 0xf50]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.140003290
jmp 0x14001b81f
lea rcx, [rbp + 0xf50]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14001b800
mov r8d, eax
lea rdx, [rbp + 0xf50]
lea rcx, [rsp + 0x28]
call fcn.140005a50
nop
mov rbx, qword [rsp + 0x28]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14001b94b
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14001b852
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140004030
mov rbx, qword [rsp + 0x28]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14004a9a8
cmp edi, dword [rbx - 0xc]
jg 0x14001b961
mov dword [rbx - 0x10], edi
mov rax, rdi
xor edi, edi
mov word [rbx + rax*2], di
mov rax, rbx
mov r8, qword [rsp + 0x40]
sub r8, rbx
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14001b894
add rax, 2
test ecx, ecx
jne 0x14001b880
test edx, edx
jne 0x14001b8ca
lea rcx, str.process_exist
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x130
lea rdx, str.FindProcess
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov r13d, 1
cmp rsi, 0xffffffffffffffff
je 0x14001b8e9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x30], rdi
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b905
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc r14d
add r15, 4
cmp r14d, r12d
jb 0x14001b760
test r13d, r13d
setne al
mov rcx, qword [rbp + 0x1160]
xor rcx, rsp
call fcn.140023950
lea r11, [rsp + 0x1270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002850
nop
mov ecx, 0x80004005
call fcn.140002850
nop
mov ecx, 0x80070057
call fcn.140002850
int3