joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ddf00
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [0x1401a4678]
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QString::isEmpty_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x1400de09e
xor eax, eax
mov word [rsp + 0x80], ax
lea rax, [rsp + 0x82]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
nop
call fcn.1400de320
movzx eax, al
test eax, eax
je 0x1400ddf81
lea rcx, [rsp + 0x80]
call fcn.1400de750
jmp 0x1400ddfd4
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400ddfa9
cmp dword [rsp + 0x20], 0x104
jbe 0x1400ddfd4
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QDir::homePath_void_]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140011380
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDir::constructor_class_QString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QDir::absolutePath_void____ptr64]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xor eax, eax
cmp eax, 1
je 0x1400de074
xor eax, eax
test eax, eax
je 0x1400de074
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QString::isEmpty_void_const___ptr64]
movzx eax, al
test eax, eax
jne 0x1400de06a
mov dword [rsp + 0x30], 1
jmp 0x1400de072
mov dword [rsp + 0x30], 0
jmp 0x1400de048
lea rdx, [rsp + 0x28]
lea rcx, [0x1401a4678]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDir::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rax, [0x1401a4678]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400de320
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x190
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x180], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x114
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x64], 6
jae 0x1400de388
movzx eax, byte [rsp + 0x30]
jmp 0x1400de4be
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x48]
mov edx, 0x18
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400de4b9
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x19
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400de4ae
call fcn.1400d2d40
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x7a
jne 0x1400de4ae
mov eax, dword [rsp + 0x40]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400de4ae
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov edx, 0x19
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400de4a3
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1400de468
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x1400de4be
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [rax]
dec eax
movzx eax, al
mov edx, eax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x2000
jae 0x1400de4a3
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x190
pop rdi
ret
Function at 0x1400e1dc0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
lea rcx, fcn.1400e1dc0
mov qword [rax], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x10325476
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
ret

Function at 0x1400e2960
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov dword [rsp + 0x40], 0
lea rdx, [0x140168938]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_char_const____ptr64____ptr64]
nop
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.1400168b0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
call fcn.1400de230
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400e2a40
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.140016f00
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, qword [rsp + 0xa8]
add rsp, 0x98
ret

Function at 0x1400e44f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.Qt5Core.dll__toLatin1_QString__QEGBA_AVQByteArray__XZ]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov rcx, qword [rsp + 0x30]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400110e0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.140064660
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x50]
call fcn.140055510
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x88
ret
Function at 0x1400ea570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.140011380
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x258
ret

Function at 0x1400ea9d0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x10
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140011380
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x58
ret
Function at 0x1400ec530
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
lea rcx, fcn.1400ec530
mov qword [rax], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xc3d2e1f0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
ret

Function at 0x1400eccc0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
lea rcx, fcn.1400eccc0
mov qword [rax], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
ret
Function at 0x1400ff4e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400ff557
lea rdx, str.SystemFunction036
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400ff54c
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x30]
movzx eax, al
cmp eax, 1
jne 0x1400ff54c
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x1400ff5a0
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rcx, str.EXPAT_ENTROPY_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400ff611
lea rdx, [0x1401a0df4]
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400ff611
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 4
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x20], ecx
mov r9d, 8
mov r8, qword [rsp + 0x50]
lea rdx, str.Entropy:__s_____0x_0lx___lu_bytes__n
mov rcx, rax
call fcn.140006a80
mov eax, dword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x140124290
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx]
shr ecx, 8
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x20]
imul eax, dword [rax + 4], 0x8088405
inc eax
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
shr eax, 0x18
mov dword [rsp], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 8]
shr ecx, 8
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x18
ret
Function at 0x140127a90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx]
shr ecx, 8
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x20]
imul eax, dword [rax + 4], 0x8088405
inc eax
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
shr eax, 0x18
mov dword [rsp], eax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
cdqe
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 8]
shr ecx, 8
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx + rax*4]
xor eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x18
ret
Function at 0x1400019b0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rdx
mov edx, ecx
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001a4d
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140001a44
nop dword [rax]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001a70
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140001a20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140005fe0
mov rbx, qword [rsp + 0x490]
add rsp, 0x470
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
jmp 0x140001a4f
Function at 0x140003180
Capabilities:
Log keystrokes via polling
Terminate process

Disassembly:
sub rsp, 0x48
call fcn.140002f30
call fcn.140001b60
call fcn.140002290
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400032b3
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x38], rsi
movabs rsi, 0x7fffffffffffff4a
mov qword [rsp + 0x30], rdi
movabs rdi, 0x7fffffffffffffff
lea rdx, str.Counter_Strike_2
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
jne 0x14000328b
mov rcx, qword [0x14000daf8]
add rcx, qword [0x14000dac0]
call fcn.1400051f0
test rax, rax
je 0x140003286
mov rcx, qword [0x14000dad0]
add rcx, rax
call fcn.1400051f0
mov ecx, 0x20
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140003286
test bl, 1
je 0x140003286
lea rcx, [rsp + 0x58]
call fcn.140001a80
mov rax, qword [rsp + 0x58]
cmp rax, rsi
jg 0x140003252
add rax, 0xb4
mov qword [rsp + 0x50], rax
jmp 0x140003257
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x50]
call fcn.140005bd0
call fcn.140002630
mov r9d, 0xffffff88
mov qword [rsp + 0x20], rbp
xor r8d, r8d
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.USER32.dll_mouse_event]
call fcn.140002630
call fcn.140002790
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400031d1
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140003cb0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140003cd8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140003cfe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003d00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003d59
test ecx, ecx
jle 0x140003d39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003d59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003d59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140003d80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003da2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003db8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003dd4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003dd6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003e12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140003eae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003e4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140003e8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140003eae
cmp rbx, rax
ja 0x140003e60
test rbx, rbx
je 0x140003eae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140004310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000433d
xor eax, eax
jmp 0x1400044a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004377
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004377
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400044a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000449c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400043ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400043e5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400044a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004454
sub eax, 1
je 0x140004454
cmp eax, 2
jne 0x14000449c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400044a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004482
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000449c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400044a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005fe0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret