Function at 0x518153
Capabilities:
Enumerate process modules

Disassembly:
push rbp
mov rbp, rsp
test dword [rbp - 0xfc0], eax
sub rsp, 0x1460
lea rax, [rbp - 0x420]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x830]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0xc40]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x400
ja 0x5184a8
mov rax, qword [rbp + 0x20]
cmp dword [rax], 0x400
ja 0x5184a8
mov rax, qword [rbp + 0x18]
cmp dword [rax], 0x400
ja 0x5184a8
mov dword [rbp - 0x420], 1
mov byte [rbp - 0x41c], 1
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x830], eax
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x1454], eax
mov eax, 0x400
sub eax, dword [rbp - 0x1454]
jb 0x5184aa
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov dword [rbp - 0x1458], eax
mov eax, 0x400
sub eax, dword [rbp - 0x1458]
jb 0x5184aa
mov rax, qword [rbp + 0x20]
mov ebx, dword [rbp - 0x1458]
cmp ebx, dword [rbp - 0x1454]
jne 0x5184aa
mov r8d, ebx
lea rdx, [rax + 4]
lea rcx, [rbp - 0x82c]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
add rsp, 0x20
mov rax, qword [rbp + 0x28]
mov eax, dword [rax]
mov dword [rbp - 0xc40], eax
mov eax, dword [rbp - 0xc40]
mov dword [rbp - 0x1454], eax
mov eax, 0x400
sub eax, dword [rbp - 0x1454]
jb 0x5184ac
mov eax, dword [rbp - 0xc40]
mov dword [rbp - 0x1458], eax
mov eax, 0x400
sub eax, dword [rbp - 0x1458]
jb 0x5184ac
mov rax, qword [rbp + 0x28]
mov ebx, dword [rbp - 0x1458]
cmp ebx, dword [rbp - 0x1454]
jne 0x5184ac
mov r8d, ebx
lea rdx, [rax + 4]
lea rcx, [rbp - 0xc3c]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
add rsp, 0x20
jmp 0x518429
movzx eax, byte [rbp - 0x82c]
and eax, 1
cmp eax, 0
je 0x518343
push rax
lea rax, [rbp - 0x420]
push rax
lea rax, [rbp - 0xc40]
push rax
lea rax, [rbp - 0x1450]
push rax
call fcn.00517ee4
pop rcx
lea rax, [rbp - 0x1450]
push rax
push qword [rbp + 0x18]
push 0
lea rax, [rbp - 0x420]
push rax
call fcn.0058ad22
cmp eax, 0
jge 0x518319
mov eax, 0xffffffff
leave
ret 0x20
dec byte [rbp - 0x82c]
movzx eax, byte [rbp - 0x82c]
cmp eax, 0
jne 0x51833e
cmp dword [rbp - 0x830], 1
jne 0x51833e
mov dword [rbp - 0x830], 0
jmp 0x518429
push rax
lea rax, [rbp - 0xc40]
push rax
lea rax, [rbp - 0xc40]
push rax
lea rax, [rbp - 0x1450]
push rax
call fcn.00517ee4
pop rcx
lea rax, [rbp - 0x1450]
push rax
push qword [rbp + 0x18]
push 0
lea rax, [rbp - 0xc40]
push rax
call fcn.0058ad22
cmp eax, 0
jge 0x51838a
mov eax, 0xffffffff
leave
ret 0x20
mov dword [rbp - 4], 0
jmp 0x5183e4
mov eax, dword [rbp - 4]
cmp eax, 0x400
jae 0x5184ae
shr byte [rbp + rax - 0x82c], 1
mov eax, dword [rbp - 4]
inc eax
cmp eax, 0x400
jae 0x5184b0
movzx eax, byte [rbp + rax - 0x82c]
and eax, 1
cmp eax, 0
je 0x5183e1
mov eax, dword [rbp - 4]
cmp eax, 0x400
jae 0x5184b2
or byte [rbp + rax - 0x82c], 0x80
inc dword [rbp - 4]
mov eax, dword [rbp - 0x830]
dec eax
cmp eax, dword [rbp - 4]
ja 0x518393
mov eax, dword [rbp - 4]
cmp eax, 0x400
jae 0x5184b4
shr byte [rbp + rax - 0x82c], 1
mov eax, dword [rbp - 4]
cmp eax, 0x400
jae 0x5184b6
movzx eax, byte [rbp + rax - 0x82c]
cmp eax, 0
jne 0x518429
dec dword [rbp - 0x830]
cmp dword [rbp - 0x830], 0
jne 0x5182c3
mov rax, qword [rbp + 0x10]
mov ebx, dword [rbp - 0x420]
mov dword [rax], ebx
mov eax, dword [rbp - 0x420]
mov dword [rbp - 0x1454], eax
mov eax, 0x400
sub eax, dword [rbp - 0x1454]
jb 0x5184b8
mov rax, qword [rbp + 0x10]
mov ebx, dword [rbp - 0x420]
mov dword [rbp - 0x1458], ebx
mov ebx, 0x400
sub ebx, dword [rbp - 0x1458]
jb 0x5184b8
mov ebx, dword [rbp - 0x1458]
cmp ebx, dword [rbp - 0x1454]
jne 0x5184b8
mov r8d, ebx
lea rdx, [rbp - 0x41c]
lea rcx, [rax + 4]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
add rsp, 0x20
xor eax, eax
leave
ret 0x20
int 5
int 5
int 5
int 5
int 5
int 5
int 5
int 5
int 5