Function at 0x1400121d8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x750
lea rdi, [rsp + 0x30]
mov ecx, 0x1c8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x760]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x740], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x768]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
test rax, rax
je 0x140012257
mov dword [rsp + 0x730], 1
jmp 0x140012262
mov dword [rsp + 0x730], 0
mov eax, dword [rsp + 0x730]
mov dword [rsp + 0x264], eax
mov rcx, qword [rsp + 0x760]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
test rax, rax
jne 0x14001228c
mov eax, dword [rsp + 0x30]
jmp 0x140012564
mov qword [rsp + 0x268], 0
cmp dword [rsp + 0x264], 0
je 0x140012364
lea rcx, [0x140049108]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x270], 0
je 0x1400122f7
lea rdx, [0x140049128]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x268], rax
cmp qword [rsp + 0x268], 0
jne 0x1400122f7
mov eax, dword [rsp + 0x30]
jmp 0x140012564
mov r8, qword [rsp + 0x768]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rax, [rsp + rax*2 + 0x4e]
lea rdx, [0x140049144]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
je 0x14001234a
lea r8, [0x140049148]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, qword [rsp + 0x760]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
jmp 0x14001237c
mov r8, qword [rsp + 0x760]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x50]
call fcn.140001cc8
lea rdx, [rsp + 0x50]
lea rcx, str.KillProcessByName:_Looking_for_Process:
call fcn.140012b60
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x1400123d8
cmp qword [rsp + 0x278], 0
je 0x1400123cf
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140012564
mov dword [rsp + 0x290], 0x238
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14001241e
cmp qword [rsp + 0x278], 0
je 0x140012415
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140012564
lea rax, [rsp + 0x4f0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x714], 0x104
mov qword [rsp + 0x38], 0
cmp dword [rsp + 0x264], 0
jne 0x14001246d
lea r8, [rsp + 0x2bc]
mov edx, 0x104
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400124ca
mov r8d, dword [rsp + 0x298]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400124ca
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x738], rax
lea r9, [rsp + 0x714]
lea r8, [rsp + 0x4f0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x738]
call qword [0x1400187a0]
test eax, eax
jne 0x1400124ca
jmp 0x140012516
lea rcx, [rsp + 0x4f0]
call fcn.140001cc8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140012516
lea rdx, [rsp + 0x4f0]
lea rcx, str.KillProcessByName:_Found_an_instance_of_process:
call fcn.140012b60
mov ecx, dword [rsp + 0x298]
call fcn.140012128
test eax, eax
jne 0x140012516
xor eax, eax
jmp 0x140012564
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14001241e
cmp qword [rsp + 0x278], 0
je 0x14001254c
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x14001255f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004bbf0]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0x740]
xor rcx, rsp
call fcn.140014710
add rsp, 0x750
pop rdi
ret