Function at 0x140040730
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2180]
mov eax, 0x2280
call fcn.1400cb1f0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x22d0], rbx
mov rax, qword [0x14011d8d0]
xor rax, rsp
mov qword [rbp + 0x2170], rax
mov rdi, rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x58], rdx
xor esi, esi
mov dword [rsp + 0x2c], esi
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rdx, [0x1400de328]
mov rcx, rdi
call fcn.140002710
mov dword [rsp + 0x2c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x28]
mov r8d, 0x2000
lea rdx, [rsp + 0x60]
call sub.PSAPI.DLL_EnumProcessModules
or r13, 0xffffffffffffffff
test eax, eax
je 0x140040ab9
mov r14d, esi
test dword [rsp + 0x28], 0xfffffff8
jbe 0x140040ab9
lea r15, [rsp + 0x60]
nop dword [rax]
lea rdi, [rbp + 0x1f60]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x208
lea rdx, [rbp + 0x1f60]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140040992
xor eax, eax
mov rcx, r13
lea rdi, [rbp + 0x1f60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400408a1
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140040921
cmp dword [rdx + 0x10], eax
jge 0x140040873
cmp dword [rbx - 0xc], eax
jl 0x1400409ae
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x140040921
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004088a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140040921
mov r12d, dword [rbx - 0x10]
lea rsi, [rbp + 0x1f60]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
js 0x140040aa9
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400408dc
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140040901
lea r8, [rbx + rsi*2]
call qword [sym.imp.MSVCR100.dll_memmove_s]
jmp 0x14004090e
lea r8, [rbp + 0x1f60]
call qword [sym.imp.MSVCR100.dll_memcpy_s]
cmp edi, dword [rbx - 0xc]
jg 0x140040a9e
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r12 + rbx], si
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
je 0x140040992
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x140040992
mov r8d, dword [rbx - 0x10]
sub r8d, eax
dec r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140001c80
nop
lea rdx, str.VUAgent.exe
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x1400409b9
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14004098d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
inc r14d
add r15, 8
mov eax, dword [rsp + 0x28]
shr eax, 3
cmp r14d, eax
jae 0x140040ab4
jmp 0x140040800
mov ecx, 0x80070057
call fcn.140001000
nop
movsxd rsi, dword [rbx - 0x10]
test esi, esi
jns 0x1400409cc
mov ecx, 0x80070057
call fcn.140001000
int3
mov r12d, 1
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, r12d
jge 0x1400409f1
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.140001c20
mov rbx, qword [rsp + 0x20]
lea eax, [rsi + 1]
movsxd rdx, eax
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wcsupr_s]
cmp esi, dword [rbx - 0xc]
jg 0x140040a93
mov dword [rbx - 0x10], esi
xor ecx, ecx
mov word [rbx + rsi*2], cx
lea r8, str.VUAC.DLL
lea rdx, str.VUAGENT.EXE
lea rcx, [rsp + 0x20]
call fcn.140003ec0
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140040a46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, qword [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140040220
nop
mov rdx, rax
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140002250
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140040a8c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x20]
jmp 0x140040ab9
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80070057
call fcn.140001000
int3
mov ecx, 0x80070057
call fcn.140001000
int3
mov rdi, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x140040ad4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x2170]
xor rcx, rsp
call fcn.1400cafa0
mov rbx, qword [rsp + 0x22d0]
add rsp, 0x2280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret