Function at 0x1400498e0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x688
mov rax, qword [0x140067040]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x58]
call fcn.140002af0
nop
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
xor edx, edx
mov ecx, 8
div rcx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002950
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov rax, qword [rax + 0x10]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
shl rax, 3
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x698]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x1400499f3
lea rdx, str.Could_not_get_module_snapshot_for_remote_process.
lea rcx, [rsp + 0x1b0]
call fcn.1400018a0
lea rdx, [0x140065290]
lea rcx, [rsp + 0x1b0]
call fcn.1400269fc
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rax + 0x10]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xb0]
shl rcx, 3
cmp rax, rcx
ja 0x140049923
lea rax, [rsp + 0x2c]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov eax, dword [rsp + 0x28]
xor edx, edx
mov ecx, 8
div rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xe8]
lea rax, [rax + rcx*8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x138], rax
mov r9, qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x1c8]
call fcn.140004650
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x58]
call fcn.1400029e0
nop
lea rcx, [rsp + 0x1c8]
call fcn.1400031d0
nop
mov byte [rsp + 0x20], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 8]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
jmp 0x140049c96
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x170]
cmp qword [rsp + 0x38], rax
je 0x140049e89
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov r9d, 0x104
lea r8, [rsp + 0x250]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x698]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
jne 0x140049d04
lea rdx, str.Could_not_get_ModuleName.
lea rcx, [rsp + 0x1e0]
call fcn.1400018a0
lea rdx, [0x140065290]
lea rcx, [rsp + 0x1e0]
call fcn.1400269fc
nop
mov r9d, 0x104
lea r8, [rsp + 0x460]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x698]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x140049d55
lea rdx, str.Could_not_get_ExePath.
lea rcx, [rsp + 0x1f8]
call fcn.1400018a0
lea rdx, [0x140065290]
lea rcx, [rsp + 0x1f8]
call fcn.1400269fc
nop
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x230]
call fcn.140002e70
nop
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
mov r8, qword [rsp + 0x6a0]
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x690]
call fcn.140049ed0
movzx eax, al
test eax, eax
jne 0x140049de9
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x210]
call fcn.140002e70
nop
mov eax, dword [rsp + 0x24]
or eax, 2
mov dword [rsp + 0x24], eax
mov r8, qword [rsp + 0x6a0]
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x690]
call fcn.140049ed0
movzx eax, al
test eax, eax
jne 0x140049de9
mov dword [rsp + 0x30], 0
jmp 0x140049df1
mov dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x24]
and eax, 2
test eax, eax
je 0x140049e28
and dword [rsp + 0x24], 0xfffffffd
lea rcx, [rsp + 0x210]
call fcn.140003350
nop
lea rax, [rsp + 0x210]
mov qword [rsp + 0x198], rax
mov eax, dword [rsp + 0x24]
and eax, 1
test eax, eax
je 0x140049e56
and dword [rsp + 0x24], 0xfffffffe
lea rcx, [rsp + 0x230]
call fcn.140003350
nop
lea rax, [rsp + 0x230]
mov qword [rsp + 0x1a0], rax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140049e84
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x58]
call fcn.1400031d0
nop
mov rax, qword [rsp + 0x178]
jmp 0x140049ea8
jmp 0x140049c88
mov qword [rsp + 0x180], 0
lea rcx, [rsp + 0x58]
call fcn.1400031d0
nop
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140024c50
add rsp, 0x688
ret