joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cc20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14009bc48], 0
jne 0x14000cc5d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000cc50
mov dword [rdi], eax
mov dword [0x14009bc50], eax
mov qword [0x14009bc48], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14000cdc0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14000cee1
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14000cf1d
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14000cf25
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14000cf17
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14000cf29
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x14000cf10
xor r10d, r10d
jmp 0x14000ce1f
xor eax, eax
jmp 0x14000ceb4
cmp byte [r8 + 0x1a], 0
je 0x14000cf14
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14000cf14
cmp ecx, 0x666f736f
jne 0x14000cf14
cmp edx, 0x76482074
jne 0x14000cf14
mov byte [r8 + 0x19], 1
jmp 0x14000cf14
Function at 0x140016d1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016d66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140016d66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140016d66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140016d66
cmp dword [rcx + 0x84], 0xe
jbe 0x140016d66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140016d68
xor al, al
add rsp, 0x28
ret

Function at 0x140017964
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400179dc
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400179dc
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400179dc
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400179d0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400179ee
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400179be
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400179de

Function at 0x1400223c8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400223ff
call fcn.1400251c8
mov dword [rax], 0x16
call fcn.140032b94
xor eax, eax
jmp 0x14002248d
mov rdx, r9
mov rcx, r8
call fcn.1400224b0
mov rbx, rax
test rax, rax
je 0x14002248a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140022520]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140022477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140025208
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002245e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002246d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14000fa50
jmp 0x14002248a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140022487
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400225f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002273c
Function at 0x14002cc80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002cca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002cca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140036d68
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140030824
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140036e09
cmp ebx, dword [rsp + 0x30]
je 0x140036e02
test esi, esi
je 0x140036e02
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140036ddd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140036dea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140036dc7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140036dee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140036e0b
mov eax, 1
jmp 0x140036e0b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140037cd8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140037d5f
mov rsi, rbx
cmp word [rax], bp
je 0x140037d1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140037d08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140037d04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009e40
mov rdi, rax
test rax, rax
je 0x140037d4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140019460
mov rbp, rdi
xor ecx, ecx
call fcn.14000fa50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003a9f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003aa0a
mov al, 1
jmp 0x14003aa6a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003aa1b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003aa68
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002531c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003aa68
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003aa68
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003aa68
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003aa6a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140061bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x140061be3
cmp dword [0x14009bc98], ecx
jle 0x140061bea
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.140061c30
test edi, edi
je 0x140061be3
cmp byte [rsi + rdi - 1], 0xa
je 0x140061be3
lea rcx, str._nl_
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140061c30

Function at 0x140061c30
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14007f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140061c7e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x140061cbc
cmp rdi, rsi
jae 0x140061cbc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x140061c77
jmp 0x140061c74
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140017390
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400020d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400045e0], rbx
je 0x14000211c
cmp rax, rbx
jne 0x14000210f
mov ebx, 1
mov esi, ebx
jmp 0x140002121
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400020f4
mov ebx, 1
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x140002137
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000219c
mov eax, dword [0x1400045e8]
test eax, eax
jne 0x140002196
mov dword [0x1400045e8], ebx
lea r15, [0x1400032b0]
lea rdi, [0x140003298]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002188
test eax, eax
jne 0x14000218c
cmp qword [rdi], 0
je 0x14000217d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000215e
test eax, eax
je 0x14000219c
mov eax, 0xff
jmp 0x140002278
mov dword [0x140004024], ebx
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x1400021c3
lea rdx, [0x140003290]
lea rcx, [0x140003280]
call sub.msvcrt.dll__initterm
mov dword [0x1400045e8], 2
test esi, esi
jne 0x1400021d0
xor eax, eax
xchg qword [0x1400045e0], rax
cmp qword [0x1400045f0], 0
je 0x140002204
lea rcx, [0x1400045f0]
call fcn.140002630
test eax, eax
je 0x140002204
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400045f0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x140004038]
mov rdx, qword [0x140004030]
mov ecx, dword [0x140004028]
call fcn.14000116c
mov dword [0x140004020], eax
cmp dword [0x140004040], 0
jne 0x140002234
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004024], 0
jne 0x140002249
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004020]
jmp 0x140002278
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140174000
add rsp, 0x28
jmp 0x1400020d0

Function at 0x14000251c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002568
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002560
cmp dword [rcx + 0x3c], edx
jl 0x140002560
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002560
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002568
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000f110
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r8, str.AllowMultipleInstances
lea rdx, [rsp + 0x30]
add rcx, 0x1a0
call fcn.140053410
mov r8, qword [rax]
movzx eax, word [reloc.msi.dll_MsiGetFeatureCostA]
movzx edx, word [r8]
sub edx, eax
jne 0x14000f155
movzx edx, word [r8 + 2]
movzx eax, word [0x1402964f6]
sub edx, eax
test edx, edx
mov rdx, qword [rsp + 0x30]
sete bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14000f178
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14000f189
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, str.GlobalSETUPRUNNING_MUTEX_NAME_BB2A5A67_F70A_4606_8A1D_AD930562E1EE
xor edx, edx
xor ecx, ecx
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x178], rax
test rax, rax
je 0x14000f1b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000f1b7
mov bl, 1
movzx eax, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400108d0
Capabilities:
Shutdown system

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1402fcb80]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001091c
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f2f70
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010907
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 1
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
mov rcx, qword [rsp + 0x30]
test eax, eax
movzx ebx, bl
lea r8, [rsp + 0x38]
cmove ebx, edi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401f2f70
add rsp, 0x50
pop rdi
ret
Function at 0x140011790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400117c3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140011809
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140011804
nop
cmp rbx, rcx
jae 0x140011809
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400117f0
cmp rbx, rcx
jb 0x14001180d
xor eax, eax
jmp 0x140011819
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400163c0
Capabilities:
Resume thread

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x120], 0
mov rbx, rcx
jne 0x1400163e1
mov eax, 2
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400163f9
xor edx, edx
mov rcx, rbx
call fcn.14006e170
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov r8d, 0x1f4
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetTimer]
xor ecx, ecx
mov dword [rsp + 0x38], 0x103
mov qword [rbx + 0x130], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x120]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x12c], eax
cmp eax, 0x103
jne 0x140016466
mov rcx, qword [rbx + 0x120]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140077fc4
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14001abe0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor ebx, ebx
lea r8, str.PatchSearchFile
lea rdx, [rsp + 0xe0]
lea rcx, [0x140313370]
call fcn.140053410
nop
mov rax, qword [rsp + 0xe0]
movzx ecx, word [rax]
cmp cx, word [0x140296e0c]
jne 0x14001ac2e
mov eax, ebx
jmp 0x14001ac33
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14001ac4f
lea r8d, [rax + 9]
lea rdx, [0x140296568]
lea rcx, [rsp + 0xe0]
call fcn.140011b80
lea r8, [0x140296b88]
lea rdx, [rsp + 0xe8]
lea rcx, [0x140313370]
call fcn.140053410
nop
mov rsi, qword [rax]
call fcn.1400694ec
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001ac8d
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, vtable.CUtlCommonPath.0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], ebx
or rdi, 0xffffffffffffffff
test rsi, rsi
jne 0x14001acbc
mov eax, ebx
jmp 0x14001acca
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x14001acc0
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140011b80
nop
mov rdx, qword [rsp + 0xe8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001acf7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x140296e0c]
mov rdx, qword [rsp + 0x38]
cmp rax, rdx
jne 0x14001ad12
mov esi, 3
jmp 0x14001ada6
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x30]
call fcn.14003c130
lea rcx, [rsp + 0x80]
call fcn.140070da8
nop
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x30]
call fcn.14003bfc0
nop
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rsp + 0x80]
call fcn.140070fc4
test eax, eax
sete sil
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001ad7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x14001ad92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, 3
cmp eax, 2
cmove ebx, esi
mov esi, ebx
lea rcx, [rsp + 0x80]
call fcn.140070ef0
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001adbb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xe0]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001add8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021240
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push r14
push r15
sub rsp, 0x28
movsxd rbx, edx
xor r14d, r14d
lea r15, [0x1403137b0]
shl rbx, 5
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r14
mov rdx, qword [rbx + r15]
mov rbp, qword [rbx + r15 + 0x18]
mov qword [rsp + 0x60], r14
call fcn.1400213b0
add rbp, rax
test rbp, rbp
jle 0x140021399
movzx eax, word [0x140296e0c]
mov qword [rsp + 0x58], rsi
lea rsi, [rbx + r15]
lea rbx, [0x1403150f8]
mov r11d, r14d
lea r10, [0x1403150b0]
nop word [rax + rax]
mov r9, qword [r10]
cmp word [r9], ax
je 0x140021326
test r9, r9
je 0x1400213a4
mov rcx, qword [rsi + 8]
sub r9, rcx
nop dword [rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x1400212e6
add rcx, 2
test edx, edx
jne 0x1400212d0
test r8d, r8d
je 0x140021307
add r10, 0x18
inc r11d
cmp r10, rbx
jl 0x1400212b0
mov rsi, qword [rsp + 0x58]
add rsp, 0x28
pop r15
pop r14
pop rbp
pop rbx
ret
mov rsi, qword [rsp + 0x58]
movsxd rax, r11d
lea rcx, [rax + rax*2]
add qword [r15 + rcx*8 + 0x1910], rbp
add rsp, 0x28
pop r15
pop r14
pop rbp
pop rbx
ret
movsxd rbx, r11d
mov qword [rsp + 0x20], rdi
lea rdx, [rsi + 8]
lea rax, [rbx + rbx*2]
lea rdi, [r15 + rax*8]
lea rcx, [rdi + 0x1900]
call fcn.1400114e0
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test eax, eax
mov qword [rdi + 0x1910], rbp
mov rdi, qword [rsp + 0x20]
cmove rcx, r14
mov rax, rcx
lea rcx, [rbx + rbx*2]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [r15 + rcx*8 + 0x1908], rax
add rsp, 0x28
pop r15
pop r14
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140011b60
int3

Function at 0x140022070
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140312398], 0
mov rbx, rdx
mov rdi, rcx
jne 0x14002213d
mov eax, dword [rdx + 8]
sub eax, 0x100
test eax, 0xfffffffa
jne 0x1400220ea
mov rax, qword [rdx + 0x10]
lea rdx, [rax - 0x70]
cmp rdx, 0xb
ja 0x1400220ba
mov ecx, 0xff7
bt rcx, rdx
jb 0x1400220d5
cmp rax, 0x2f
je 0x1400220d5
cmp rax, 0x1b
je 0x1400220d5
cmp byte [rdi + 0x4b0], 0
jne 0x1400220ea
cmp rax, 8
jne 0x1400220ea
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, reloc.msi.dll_MsiDatabaseExportA
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
je 0x14002211d
mov rax, qword [rbx + 0x10]
add rax, 0xffffffffffffffdb
cmp rax, 0x2b
ja 0x14002211d
movabs rcx, 0xa0080000005
bt rcx, rax
jb 0x1400220d5
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetUBound
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x14002213d
mov rax, qword [rbx + 0x10]
sub rax, 0x25
test rax, 0xfffffffffffffffd
je 0x1400220d5
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14006d054