joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056fb0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [0x1400cf798]
lea rdx, [rsp + 0x30]
test eax, eax
mov ecx, 0xffffff
mov r8d, 0xf003f
cmove eax, ecx
xor ebx, ebx
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov qword [rsp + 0x30], rbx
mov dword [0x1400cf798], eax
call fcn.140059a80
test eax, eax
jne 0x1400570c8
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x68]
mov r9d, 0xf003f
mov qword [rsp + 0x68], rbx
lea rdx, str.Tweak
call fcn.140059a60
test eax, eax
jne 0x1400570bd
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SwitchIDColor
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005706e
mov eax, dword [rsp + 0x50]
test eax, eax
mov ecx, dword [0x1400cf798]
cmovne ecx, eax
mov dword [0x1400cf798], ecx
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SwitchIDBackGround
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov dword [0x1400cf79c], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [0x1400cf8b0], rbx
jne 0x1400570ff
lea rax, [0x1400cf8ac]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140055c80]
mov edx, 0x7d00
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400cf8b0], rax
lea rdx, str.NVIDIA_nView_Desktop_Manager
lea rcx, str.NVDeskSwitchID
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x140057143
cmp ebx, 0x64
jae 0x140057143
mov ecx, 0xa
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.NVIDIA_nView_Desktop_Manager
lea rcx, str.NVDeskSwitchID
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140057118
call fcn.140057270
add rsp, 0x40
pop rbx
ret

Function at 0x140057210
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
sub rsp, 0x38
cmp qword [0x1400cf8b0], 0
je 0x14005722d
xor edx, edx
lea rcx, [0x140057180]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rax, [0x1400cf8ac]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140055c80]
mov edx, 0x7d00
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400cf8b0], rax
add rsp, 0x38
jmp fcn.140057270
Function at 0x1400572e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
cmp dword [0x1400cf8a8], 0
jne 0x14005731e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400cf7a0]
xor r9d, r9d
xor edx, edx
mov dword [0x1400cf8a4], eax
lea r8d, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
mov dword [0x1400cf8a8], 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400cf8a4], eax
xor edi, edi
lea rbx, [0x1400cf7a0]
nop dword [rax]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140057370
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140057365
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
inc edi
add rbx, 8
cmp edi, 0x20
jb 0x140057340
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140057d80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140057e5f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140057db7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140057e62
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140057e06
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x140057e10
test rax, rax
je 0x140057e5f
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140057e50
cmp rdx, rax
jb 0x140057e30
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140057e80
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x1400a4e00]
xor r12d, r12d
mov ebx, r12d
mov rsi, rcx
cmp dword [0x1400cf970], ebx
mov r14d, r12d
mov ebp, r12d
movdqu xmmword [rsp + 0x20], xmm0
jne 0x140057f3d
mov r8b, 3
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [r12 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [r12 + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x23]
mov dword [0x1400cf970], 0x11c
mov r8, rax
mov dword [0x1400cf974], 6
lea rcx, [0x1400cf970]
mov dword [0x1400cf978], 1
mov word [0x1400cfa84], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, r12d
test eax, eax
sete cl
mov dword [0x1400cc428], ecx
jmp 0x140057f43
mov ecx, dword [0x1400cc428]
test ecx, ecx
je 0x140057f51
mov eax, 1
jmp 0x1400580e2
test rsi, rsi
je 0x1400580ce
xor r9d, r9d
mov qword [rsp + 0x78], rdi
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x1400580c9
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400580c9
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x1400580c9
mov rsi, r12
mov rdi, 0xffffffffffffffff
nop dword [rax]
mov ecx, dword [rsp + rsi*4 + 0x20]
lea rdx, [0x14009df10]
call fcn.140057b70
mov rbx, rax
test rax, rax
je 0x1400580c9
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x140057fe0
mov rdx, rbx
mov rcx, r14
call fcn.14007e17c
test eax, eax
mov ebp, r12d
sete bpl
test eax, eax
je 0x1400580c9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rsi
cmp rsi, 4
jl 0x140057fc0
mov rbx, r12
cmp ebp, 1
je 0x1400580c9
movups xmm0, xmmword [str.WinSxS_]
movzx eax, word [0x1400a4dd8]
lea rcx, str._SystemRoot_
xor r8d, r8d
mov word [rsp + 0x30], ax
xor edx, edx
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x1400580c9
lea rdx, [rsi + 0x12]
mov qword [rsp + 0x80], r15
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400580c1
mov r8d, esi
lea rcx, str._SystemRoot_
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x1400580c1
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsi + 0x12]
call fcn.14004b8c0
nop dword [rax + rax]
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x1400580a0
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14007e17c
test eax, eax
mov ebp, r12d
sete bpl
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x40
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140058330
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
mov qword [0x1400cfa90], rcx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
jne 0x14005836b
mov ecx, 0xfc00
mov byte [0x1400cfa98], 1
and ax, cx
mov ecx, 0x400
cmp ax, cx
je 0x140058372
mov byte [0x1400cfa98], 0
add rsp, 0x28
ret

Function at 0x140058de0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x4005], 0
mov rdi, rdx
mov rbx, rcx
je 0x140058e02
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbx + 0x4030]
test rcx, rcx
je 0x140058e29
mov r8, rdi
lea rdx, [0x14009e670]
call fcn.140059570
mov rcx, qword [rbx + 0x4030]
call fcn.14007d4a0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140059400
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov ebp, 1
mov rsi, r8
movzx ebx, r14w
sub edx, ebp
je 0x140059441
sub edx, ebp
je 0x14005943a
cmp edx, ebp
jne 0x140059444
lea ebx, [rbp + 3]
jmp 0x140059444
mov ebx, 2
jmp 0x140059444
movzx ebx, bp
lea rdx, str.nview
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14005948f
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov dword [rsp + 0x30], r14d
movzx edx, bx
mov word [rsp + 0x28], bp
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140059620
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp byte [0x1400cfaec], 0
mov rbx, 0xffffffff80000001
lea rdi, [rbx + 1]
jne 0x14005977c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005972c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UseHKLM
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400596c7
cmp dword [rsp + 0x50], esi
je 0x1400596c7
mov byte [0x1400cfaed], 1
jmp 0x1400596d0
cmp byte [0x1400cfaed], sil
je 0x14005971c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HKLMIsWritable
mov dword [rsp + 0x50], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
jmp 0x14005972c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140059770
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x1400cfaed], sil
je 0x140059770
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140059769
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140059770
mov byte [0x1400cfaed], sil
mov rsi, qword [rsp + 0x30]
mov byte [0x1400cfaec], 1
cmp byte [0x1400cfaed], 0
cmovne rbx, rdi
mov rax, rbx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400598e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
call fcn.140059620
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffff80000001
jne 0x140059942
lea rdx, [rsp + 0x50]
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140059963
lea rcx, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x140059982
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140059b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140059b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140059ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 0xb
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140059bf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 8
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140059c30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, r8
mov r15, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140070390
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov r8, rbx
sete sil
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140059cb0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14000d670
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140059d7b
test sil, sil
jne 0x140059d7b
mov ecx, eax
mov qword [rsp + 0x2a8], rdi
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.14006f2e8
mov rdi, rax
test rax, rax
je 0x140059d50
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete sil
test eax, eax
jne 0x140059d48
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140059d30
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.14000d670
mov rcx, rdi
call fcn.14006ec58
mov rdi, qword [rsp + 0x2a8]
movzx eax, sil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x260
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
movzx eax, sil
jmp 0x140059d5c

Function at 0x140059d90
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140059dc0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140059e00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140059e40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [r8 + 0x10]
add rax, rax
cmp qword [r8 + 0x18], 8
jb 0x140059e55
mov r8, qword [r8]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140059e80
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
xor r10d, r10d
test r8, r8
je 0x140059ec0
mov r9d, r9d
mov rax, r8
shr r9, 1
mov r11, r9
je 0x140059eb0
nop word [rax + rax]
cmp word [rax], r10w
je 0x140059eb0
add rax, 2
sub r9, 1
jne 0x140059ea0
sub r11, r9
test r9, r9
cmove r11, r10
je 0x140059ec0
lea r10, [r11 + r11]
add r10, 2
mov r9d, 1
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14005b450
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edx, dword [0x1400cfb40]
mov rbx, rcx
test edx, edx
je 0x14005b487
mov eax, dword [0x1400cc47c]
cmp eax, 0xffffffff
jne 0x14005b58b
lea rcx, [0x1400a5528]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x14005b4ba
call rax
jmp 0x14005b4c0
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14005b57b
mov ecx, dword [rsp + 0x24]
cmp ecx, 5
jne 0x14005b4ea
xor edx, edx
cmp dword [rsp + 0x28], edx
seta dl
inc edx
mov dword [0x1400cfb40], edx
jmp 0x14005b581
cmp ecx, 6
jne 0x14005b549
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005b504
mov edx, 3
mov dword [0x1400cfb40], edx
jmp 0x14005b581
cmp eax, 1
jne 0x14005b516
mov edx, 4
mov dword [0x1400cfb40], edx
jmp 0x14005b581
cmp eax, 2
jne 0x14005b528
mov edx, 5
mov dword [0x1400cfb40], edx
jmp 0x14005b581
cmp eax, 3
jne 0x14005b53a
mov edx, 6
mov dword [0x1400cfb40], edx
jmp 0x14005b581
jbe 0x14005b57b
mov edx, 8
mov dword [0x1400cfb40], edx
jmp 0x14005b581
cmp ecx, 0xa
jne 0x14005b563
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005b53c
mov edx, 7
mov dword [0x1400cfb40], edx
jmp 0x14005b581
mov eax, dword [0x1400cfb40]
mov edx, 8
cmova eax, edx
mov edx, eax
mov dword [0x1400cfb40], eax
jmp 0x14005b581
mov edx, dword [0x1400cfb40]
mov eax, dword [rsp + 0x2c]
mov dword [0x1400cc47c], eax
test rbx, rbx
je 0x14005b592
mov dword [rbx], eax
mov eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x150
pop rbx
ret

Function at 0x14005b5b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 2
test eax, eax
jne 0x14005b5cd
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x14005b5e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400cd548]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x1400cfb40]
test ecx, ecx
je 0x14005b610
cmp dword [0x1400cc47c], 0xffffffff
jne 0x14005b714
lea rcx, [0x1400a5528]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x14005b643
call rax
jmp 0x14005b649
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14005b704
mov edx, dword [rsp + 0x24]
cmp edx, 5
jne 0x14005b673
xor ecx, ecx
cmp dword [rsp + 0x28], ecx
seta cl
inc ecx
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
cmp edx, 6
jne 0x14005b6d2
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005b68d
mov ecx, 3
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
cmp eax, 1
jne 0x14005b69f
mov ecx, 4
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
cmp eax, 2
jne 0x14005b6b1
mov ecx, 5
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
cmp eax, 3
jne 0x14005b6c3
mov ecx, 6
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
jbe 0x14005b704
mov ecx, 8
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
cmp edx, 0xa
jne 0x14005b6ec
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005b6c5
mov ecx, 7
mov dword [0x1400cfb40], ecx
jmp 0x14005b70a
mov eax, dword [0x1400cfb40]
mov ecx, 8
cmova eax, ecx
mov ecx, eax
mov dword [0x1400cfb40], eax
jmp 0x14005b70a
mov ecx, dword [0x1400cfb40]
mov eax, dword [rsp + 0x2c]
mov dword [0x1400cc47c], eax
cmp ecx, 7
setge al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x158
ret