Function at 0x140012240
Capabilities:
Enumerate process modules
Enumerate processes
Enumerate threads
Inject apc

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x5e8]
sub rsp, 0x6e8
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
movups xmm0, xmmword [0x1400205c8]
movups xmm1, xmmword [0x1400205d8]
movups xmmword [rbp + 0x3a0], xmm0
movups xmmword [rbp + 0x3b0], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, eax
lea rdi, [rsp + 0x60]
xor ebx, ebx
mov ecx, 0x238
rep stosb byte [rdi], al
lea ecx, [rbx + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400122b9
lea rcx, [0x140021cc0]
call fcn.140013080
jmp 0x1400122e8
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14001232d
lea rcx, str.Process32First
call fcn.140013080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rdi, [rsp + 0x60]
mov ecx, 0x238
xor edx, edx
rep stosb byte [rdi], al
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140012399
lea rcx, [0x140021cc0]
call fcn.140013080
lea rcx, str.GetProcessIdFromName
call fcn.140013080
xor eax, eax
jmp 0x140012504
lea rdx, str.calc.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
je 0x140012380
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400122df
lea rdx, str.calc.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
je 0x140012380
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140012354
jmp 0x1400122df
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x68]
mov eax, esi
test eax, eax
jne 0x14001243b
jmp 0x1400122e8
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400123db
lea rcx, str.Process32First
call fcn.140013080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.GetProcessIdFromName
call fcn.140013080
xor eax, eax
jmp 0x140012504
lea rdx, str.win32calc.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
je 0x14001242b
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400123bf
lea rdx, str.win32calc.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov rcx, rdi
test eax, eax
je 0x14001242b
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140012402
jmp 0x1400123bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x68]
mov eax, esi
test eax, eax
je 0x1400123c8
lea rcx, [0x14001c0f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140012463
lea rcx, str.GetModuleHandle
call fcn.140013080
xor eax, eax
jmp 0x140012504
lea rcx, str._t___Looking_for_LoadLibrary_in_kernel32_n
mov qword [rsp + 0x6e0], r15
call fcn.140008990
lea rdx, [0x1400206f8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
mov r15, rax
test rax, rax
jne 0x1400124a4
lea rcx, [0x140020708]
call fcn.140013080
xor eax, eax
jmp 0x1400124fc
mov rdx, rax
mov qword [rsp + 0x720], r14
lea rcx, str._t___Found_at_0x_p_n
call fcn.140008990
mov edx, esi
lea rcx, str._t___Getting_proc_id:__u_n
call fcn.140008990
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
mov r14, rax
test rax, rax
jne 0x14001251f
lea rcx, [0x140020688]
call fcn.140013080
xor eax, eax
mov r14, qword [rsp + 0x720]
mov r15, qword [rsp + 0x6e0]
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400160d0
add rsp, 0x6e8
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x718], r13
lea r8, [rbp + 0x3c0]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rbp + 0x3c0]
lea rcx, str._t___Full_DLL_Path:__s_n
call fcn.140008990
lea rax, [rbp + 0x3c0]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140012564
lea rcx, str._t___Allocating_space_for_the_path_of_the_DLL_n
add rdi, rdi
call fcn.140008990
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8, rdi
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x1400125b1
lea rcx, [0x1400207e0]
call fcn.140013080
jmp 0x140012748
mov rdx, r13
lea rcx, str._t___Writing_into_the_current_process_space_at_0x_p_n
call fcn.140008920
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, [rbp + 0x3c0]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400125f0
lea rcx, [0x140020838]
call fcn.140013080
jmp 0x140012733
xor edx, edx
mov qword [rsp + 0x710], r12
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001272b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140012722
nop
xor ebx, ebx
cmp dword [rsp + 0x4c], esi
jne 0x1400126eb
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
je 0x1400126eb
mov r8, r13
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x1400126e2
mov edx, esi
lea ecx, [rbx + 8]
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400126dd
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1400126cf
nop
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400126c9
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400126a0
jmp 0x1400126cf
mov r15d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
jne 0x140012703
mov r15, qword [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140012630
jmp 0x14001271d
mov rcx, r14
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._t___Dll_has_been_injected_successfully_..._n
call fcn.140008990
mov r14, qword [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x710]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x718]
mov eax, ebx
jmp 0x1400124f4