Function at 0x140034e60
Capabilities:
Enumerate processes
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x368]
sub rsp, 0x460
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x1400a3008]
xor rax, rsp
mov qword [rbp + 0x340], rax
xor edi, edi
mov dword [rbp - 0x50], edi
cmp byte [0x1400a63d1], dil
jne 0x140034ebc
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov dword [rbp - 0x10], 0x130
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140034f17
lea rdx, str.hl2.exe
lea rcx, [rbp + 0x1c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x140034f06
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x140034ede
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 8]
mov dword [0x1400a61dc], eax
jmp 0x140034f26
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1400a61dc], edi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rbp - 0x50]
cmp dword [0x1400a61dc], eax
jne 0x140034f26
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1400a6450], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x1400a6448], rax
lea rdx, [rbp - 0x28]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x20]
mov edx, dword [rbp - 0x28]
sub eax, edx
mov dword [0x1400a6438], eax
mov eax, dword [rbp - 0x1c]
mov ecx, dword [rbp - 0x24]
sub eax, ecx
mov dword [0x1400a643c], eax
mov dword [0x1400a6444], edx
mov dword [0x1400a6440], ecx
mov r8d, 0x104
lea rdx, [rbp + 0x120]
mov rcx, qword [0x1400a6448]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r8d, 0x104
lea rdx, [rbp + 0x230]
mov rcx, qword [0x1400a6448]
call qword [sym.imp.USER32.dll_GetClassNameA]
mov r9d, 0x104
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, qword [0x1400a6450]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov r8d, dword [0x1400a61dc]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x1400a63b8], rax
mov dword [rbp - 0x4c], 0x104
lea r9, [rbp - 0x4c]
lea rbx, [0x1400a62b0]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], dil
jne 0x140035030
sub rax, 7
cmp rax, 0x104
jae 0x1400352aa
mov byte [rax + rbx], dil
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov dword [rbp - 0x50], 1
mov ebx, 0xa
movabs rsi, 0x842108421084211
lea r14, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
nop
call fcn.140062fb8
movsxd rcx, eax
mov rax, rsi
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x3e
sub rcx, rax
movzx r9d, byte [rcx + r14]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
cmp rcx, rdx
jae 0x1400350d7
lea rax, [rcx + 1]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x48]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400350e0
lea rcx, [rbp - 0x48]
call fcn.140035d20
sub rbx, 1
jne 0x140035080
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rax, qword [rbp - 0x48]
mov qword [0x1400a63d8], rax
mov qword [rsp + 0x60], 0x50
lea rax, [0x140034d00]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp - 0x80], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbp - 0x78], rax
xorps xmm6, xmm6
mov rax, qword [0x1400a63d8]
mov qword [rbp - 0x60], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp - 0x58], rax
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [0x1400a63e0], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [0x1400a63f0], xmm1
movups xmm0, xmmword [rbp - 0x80]
movaps xmmword [0x1400a6400], xmm0
movaps xmmword [0x1400a6410], xmm6
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [0x1400a6420], xmm0
lea rcx, [0x1400a63e0]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rcx, qword [0x1400a6448]
test rcx, rcx
je 0x1400351fc
lea rdx, [0x1400a6b48]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [0x1400a6b98]
mov rcx, qword [0x1400a6448]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x1400a6b98]
mov dword [0x1400a6b48], eax
mov eax, dword [0x1400a6b9c]
mov dword [0x1400a6b4c], eax
mov eax, dword [0x1400a6b50]
mov dword [0x1400a6438], eax
mov ecx, dword [0x1400a6b54]
mov dword [0x1400a643c], ecx
jmp 0x140035208
mov eax, dword [0x1400a6438]
mov ecx, dword [0x1400a643c]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov eax, dword [0x1400a6440]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1400a6444]
mov dword [rsp + 0x20], eax
mov r9d, 0x90000000
mov rdx, qword [0x1400a63d8]
mov r8, rdx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400a6430], rax
lea rdx, [0x1400a3c88]
mov rcx, rax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 0xffffffec
mov r8d, 0x80020
mov rcx, qword [0x1400a6430]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, 5
mov rcx, qword [0x1400a6430]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400a6430]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.1400349b0
call fcn.140034620
jmp 0x1400352a3
call fcn.14004f648
int3