Function at 0x405494
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1a50
call fcn.0040e140
sub rsp, rax
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rsp + 0x1a90], rbx
mov rax, qword [0x0041c0d8]
xor rax, rsp
mov qword [rsp + 0x1a40], rax
mov rdi, rdx
mov r13, rcx
xor r14d, r14d
mov byte [rsp + 0xb0], r14b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0xb1]
call fcn.00406400
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.00406400
mov qword [rsp + 0x20], r13
lea r9, str.GlobalTiHelperExist
lea r8, str._s__s
mov edx, esi
lea rcx, [rsp + 0xb0]
call fcn.004063c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [rsp + 0xb0]
xor r8d, r8d
lea edx, [r14 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r12, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x40557d
lea r9, [rsp + 0xb0]
lea r8, str.TiHelper_DeleteTargetFolder_event__s_has_been_successfully_created
lea rdx, [0x00417880]
mov ecx, 0x19000
call fcn.00404b04
jmp 0x4055a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0xb0]
lea r8, str.TiHelper_DeleteTargetFolder_event__s_creation_has_been_failed_with_last_error___d
lea rdx, [0x00417880]
mov ecx, 0x19000
call fcn.00404b04
mov ecx, 0x28
call fcn.00406c08
mov rbx, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4055d1
mov rcx, rbx
call fcn.00406a80
mov rbx, r14
test rbx, rbx
je 0x40562f
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4055f8
mov rcx, rbx
call fcn.00406a80
mov rbx, r14
test rbx, rbx
je 0x40562f
test r12, r12
je 0x405622
mov r8, rbx
mov edx, 4
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
jne 0x405622
mov rcx, rbx
call fcn.00406a80
mov rbx, r14
test rbx, rbx
je 0x40562f
mov rcx, rbx
call fcn.00406a80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x1c0]
call fcn.00406400
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
setne al
test rdi, rdi
je 0x405698
test al, al
je 0x405698
mov rcx, rdi
call fcn.00406700
mov r9, rax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r8, rdi
xor edx, edx
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x405816
mov r8d, 0x800
lea rdx, [rsp + 0xe20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0xa00]
call fcn.00406400
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x3d0]
call fcn.00406400
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0xc10]
call fcn.00406400
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x1830]
call fcn.00406400
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x1620]
call fcn.00406400
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0xc10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3d0]
mov r8, rsi
lea rdx, [rsp + 0xa00]
lea rcx, [rsp + 0xe20]
call fcn.00406f84
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x7f0]
call fcn.00406400
mov rcx, r13
call fcn.00406700
mov r9, rax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x7f0]
mov qword [rsp + 0x20], rax
mov r8, r13
xor edx, edx
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test rdi, rdi
jne 0x405796
lea r8, [rsp + 0x7f0]
jmp 0x4057dc
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x5e0]
call fcn.00406400
mov rcx, rdi
call fcn.00406700
mov r9, rax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x5e0]
mov qword [rsp + 0x20], rax
mov r8, rdi
xor edx, edx
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [rsp + 0x5e0]
mov rdx, rsi
lea rcx, [rsp + 0x3d0]
call fcn.00406b10
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3d0]
lea r8, [rsp + 0xa00]
mov rdx, rsi
lea rcx, [rsp + 0x1c0]
call fcn.00407254
lea r9, [rsp + 0x1c0]
lea r8, str.Target_folder_for_deletion_calculated_as__S
lea rdx, [0x00417880]
mov ecx, 0x19000
call fcn.00404b04
mov r13d, 0x3e8
mov dword [rsp + 0x3d0], 0x130
xor r8d, r8d
lea edx, [r8 + 2]
lea rcx, [rsp + 0x68]
call fcn.0040392c
nop
lea rdx, [rsp + 0x3d0]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x40594a
mov dword [rsp + 0xe20], 0x438
mov r8d, dword [rsp + 0x3d8]
mov dword [rsp + 0xe28], r8d
lea edx, [rax + 7]
lea rcx, [rsp + 0x60]
call fcn.0040392c
nop
lea rdx, [rsp + 0xe20]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
cmp eax, 1
jne 0x405920
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x1050]
call fcn.004073ac
test rax, rax
je 0x40590d
test rdi, rdi
je 0x4058eb
cmp rdi, 0xffffffffffffffff
je 0x4058eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rbx, rbx
je 0x4058ff
cmp rbx, 0xffffffffffffffff
je 0x4058ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40583c
lea rdx, [rsp + 0xe20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x4058b7
test rdi, rdi
je 0x405934
cmp rdi, 0xffffffffffffffff
je 0x405934
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x3d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x40586f
test rbx, rbx
je 0x40595e
cmp rbx, 0xffffffffffffffff
je 0x40595e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x1c0]
call fcn.00407238
cmp word [rsp + rax*2 + 0x1be], 0x5c
jne 0x40598c
lea rcx, [rsp + 0x1c0]
call fcn.00407238
mov word [rsp + rax*2 + 0x1be], r14w
lea rcx, [rsp + 0x1c0]
call fcn.00407238
sub rsi, rax
add rsi, rsi
lea rcx, [rsp + 0x1c0]
call fcn.00407238
lea rcx, [rsp + rax*2 + 0x1c0]
mov r8, rsi
xor edx, edx
call fcn.00406400
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
jne 0x4059e3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405a6d
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], 3
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], r14
mov eax, 0x14
mov word [rsp + 0x90], ax
mov dword [rsp + 0x94], r14d
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r14
lea ebx, [rax - 0xa]
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
test eax, eax
je 0x405a4e
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
mov dword [rsp + 0x50], ebx
test edi, edi
je 0x405a5c
test ebx, ebx
jg 0x405a34
jmp 0x405a63
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x1a40]
xor rcx, rsp
call fcn.004063a0
mov rbx, qword [rsp + 0x1a90]
add rsp, 0x1a50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret