joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cec0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor eax, eax
mov qword [rbp - 0x10], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
and qword [rbp - 0x10], rax
lea rdx, [rbp - 0x20]
call fcn.14001c12c
mov rbx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
cmp rbx, rdx
je 0x14001d064
or esi, 0xffffffff
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.1400135d4
add rax, 0x18
mov qword [rbp - 0x50], rax
and qword [rbp - 0x28], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.14001c2b0
nop
lea r8, [0x14007ce60]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400133b8
nop
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140018fc8
nop
lea r8, [0x1400a5780]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140018fc8
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001cf9f
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001cfc8
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001cff0
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001d023
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14001d04b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
add rbx, 8
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x30], rdx
cmp rbx, rdx
jne 0x14001cf17
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x14001d089
lea r8, [rbp - 0x20]
mov rcx, rbx
call fcn.1400189fc
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
call fcn.140013b38
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001d0b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rdx]
mov rbx, rdx
movsxd rcx, dword [rax - 0x10]
mov eax, 2
add rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400374f0
mov r8, qword [rbx]
mov rsi, rax
mov ecx, dword [r8 - 0x10]
add ecx, 2
movsxd rdx, ecx
mov rcx, rax
call fcn.14001d880
mov rcx, qword [rbx]
xor edi, edi
mov eax, 0x614
movsxd rdx, dword [rcx - 0x10]
mov word [rsi + rdx*2], di
mov rcx, qword [rbx]
movsxd rdx, dword [rcx - 0x10]
mov word [rsi + rdx*2 + 2], di
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x40], ax
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [rsp + 0x44], 1
mov ebx, eax
jne 0x14001d16f
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001d14e
mov rcx, rsi
call fcn.140036a34
test ebx, ebx
setne dil
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001d748
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14001ca04
cmp eax, 1
je 0x14001d79f
mov rcx, rbx
call fcn.140019084
xor r8d, r8d
lea r9, str.CUI_PROMOTIONS_STOP_THREAD
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x28], rbx
lea r8, [0x14001cc30]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x10], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14001d7a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.14001ca04
test eax, eax
je 0x14001d860
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
mov edi, eax
jmp 0x14001d83d
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0
je 0x14001d858
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001d832
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xffffffff
jb 0x14001d7ea
cmp dword [rsp + 0x30], 0
je 0x14001d858
mov eax, 1
jmp 0x14001d862
mov rcx, rbx
call fcn.140019084
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14001d904
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
and qword [rbp - 0x18], 0
lea rdx, [rbp - 0x40]
call fcn.14001b91c
nop
lea r8, [0x14007ce60]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400133b8
nop
lea r8, [0x1400a5788]
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140018fc8
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001d98d
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001d9b7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
and qword [rbp - 0x28], 0
lea r8, [0x14007d018]
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x28]
call fcn.140053cf0
cmp qword [rbp - 0x28], 0
je 0x14001daf7
call fcn.14000c2f0
mov rcx, rax
test rax, rax
je 0x14001db46
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140078a80]
add rax, 0x18
mov qword [rbp - 0x50], rax
xor ecx, ecx
call fcn.1400583d8
mov qword [rbp - 0x38], rax
lea r8, str._Y__m__d__H:_M:_S
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x38]
call fcn.14001b7a0
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140013330
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001da58
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov rcx, qword [rbp - 0x50]
movsxd r8, dword [rcx - 0x10]
mov r9, qword [rbp - 0x28]
mov edx, 2
call fcn.140054b78
and qword [rbp - 0x20], 0
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.14001baa8
mov rcx, qword [rbp - 0x20]
movsxd r8, dword [rcx - 0x10]
mov r9, qword [rbp - 0x28]
mov edx, 2
call fcn.140054b78
mov rcx, qword [rbp - 0x28]
call fcn.140054154
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001dac9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001daf3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
xor ebx, ebx
jmp 0x14001dafc
mov ebx, 1
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x14001db26
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140078a80]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140009b24
int3
Function at 0x1400274a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareIntelDisplayigfxcui
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400275dd
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400275dd
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x3c]
mov eax, 4
lea rdx, str.AGSDevMode
mov dword [rsp + 0x38], eax
xor r8d, r8d
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027560
cmp dword [rsp + 0x40], 1
jne 0x140027560
mov dword [rbx + 0x7c], 1
cmp dword [rbx + 0x7c], 0
je 0x1400275d2
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14003b440
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AGSDevModePlatform
mov dword [rsp + 0x3c], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400275d2
lea rcx, [rbx + 0x80]
lea r8, [rsp + 0x50]
lea rdx, [0x14007d6bc]
call fcn.140027148
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret

Function at 0x140027600
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.140027b84
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x34], 1
test rax, rax
je 0x140027662
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea rdx, str.InstPath
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x14007bb24]
mov rcx, rbx
call fcn.1400538fc
test eax, eax
jne 0x140027683
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140037490
add rsp, 0x40
pop rbx
ret
Function at 0x140027b84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
mov edi, 0x20019
cmp ecx, 1
mov r14, rdx
lea eax, [rdi + 6]
cmove edi, eax
call fcn.1400286fc
test al, al
je 0x140027bd2
movups xmm0, xmmword [0x14007d060]
jmp 0x140027bd9
movups xmm0, xmmword [str.23LM4_H]
mov r9d, 2
lea rcx, [rbp - 0x38]
xor r8d, r8d
xor edx, edx
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140027ca9
xor esi, esi
mov dword [rbp - 0x28], 0x20
xor edx, edx
jmp 0x140027c8b
xor r9d, r9d
mov dword [rsp + 0x28], edi
lea rdx, [rbp - 0x28]
mov dword [rsp + 0x20], 2
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rbp - 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140027c82
and dword [rbp - 0x40], 0
lea rcx, [rbp - 0x44]
and dword [rbp - 0x48], 0
lea r9, [rbp - 0x40]
mov qword [rsp + 0x28], rcx
lea rdx, str.Inst
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x44], 4
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027c78
cmp dword [rbp - 0x48], eax
jne 0x140027ca0
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x50], 0
inc esi
mov edx, esi
lea r8, [rbp - 0x28]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140027c0d
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rbp - 0x50]
test rax, rax
jne 0x140027cda
test r14, r14
je 0x140027cda
lea rax, [rbp - 0x50]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140028070
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov qword [rbp - 0x11], rdx
and dword [rbp - 0x21], 0
call fcn.14000c2f0
mov rcx, rax
test rax, rax
je 0x1400282a1
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140078a80]
add rax, 0x18
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
call fcn.14000b844
nop
mov ecx, 0x400
call fcn.1400374f0
mov rdi, rax
lea r13, [fcn.140006e80]
mov qword [rsp + 0x20], r13
lea r9, [0x140014370]
mov r12d, 8
mov r8d, r12d
mov edx, r12d
lea rcx, [rbp - 9]
call fcn.140036f48
nop
test rdi, rdi
je 0x14002821f
mov r8d, 0x200
mov rdx, rdi
lea rcx, str._USERPROFILE_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.140048168
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140010ce4
mov rax, qword [rbp - 0x39]
cmp dword [rax - 0x10], 0
jle 0x140028217
and dword [rbp - 0x31], 0
xor esi, esi
and qword [rbp - 0x29], rsi
lea r9, [rbp - 0x31]
lea r8, [0x14007ce60]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.140017760
nop
lea rdx, [0x14007bb24]
mov rcx, qword [rbp - 0x29]
call fcn.1400538fc
test eax, eax
je 0x1400281ef
movsxd rax, esi
lea rcx, [rbp - 9]
lea rcx, [rcx + rax*8]
inc esi
lea rdx, [rbp - 0x29]
call fcn.140013330
lea r9, [rbp - 0x31]
lea r8, [0x14007ce60]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.140017760
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140013330
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028175
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
jmp 0x140028175
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028217
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov rcx, rdi
call fcn.140036a34
mov rcx, qword [rbp + 7]
add rcx, 0xffffffffffffffe8
call fcn.1400135d4
add rax, 0x18
mov qword [rbx], rax
mov dword [rbp - 0x21], 1
mov r9, r13
mov r8, r12
mov rdx, r12
lea rcx, [rbp - 9]
call fcn.140036964
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140028275
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140078a80]
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140009b24
int3
Function at 0x1400282ac
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
and dword [rsp + 0x20], 0
xor eax, eax
mov qword [rdx], rax
call fcn.14000c2f0
mov rcx, rax
test rax, rax
je 0x14002834e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140078a80]
add rax, 0x18
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000b844
nop
mov dword [rsp + 0x20], 1
mov ecx, 0x400
call fcn.1400374f0
mov rdi, rax
test rax, rax
je 0x140028340
mov r8d, 0x200
mov rdx, rax
lea rcx, str._USERPROFILE_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.140048168
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140010ce4
mov rcx, rdi
call fcn.140036a34
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140009b24
int3

Function at 0x1400286fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [0x14007d060]
xor r8d, r8d
xor edx, edx
lea esi, [rbx + 2]
mov r9d, esi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400287ef
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x20
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400287e6
lea ebp, [rbx + 1]
mov dword [rsp + 0x28], 0x20019
mov r8d, ebp
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rsi, rax
test rax, rax
je 0x1400287e6
lea rax, [rsp + 0x34]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Inst
mov dword [rsp + 0x30], ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400287dd
cmp dword [rsp + 0x30], ebx
movzx eax, bl
cmovne eax, ebp
mov bl, al
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov al, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14002a22c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140028620
cmp eax, 1
je 0x14002a287
mov rcx, rbx
call fcn.140021588
xor r8d, r8d
lea r9, str.CUI_GAME_STOP_THREAD
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
mov r9, rbx
lea r8, [0x140027260]
xor edx, edx
lea rax, [rbx + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x38], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14002a290
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140028620
cmp eax, 1
jne 0x14002a2ee
mov rcx, rbx
call fcn.14002a340
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140027a94
nop
mov rdx, rax
mov rcx, rbx
call fcn.14001d0b0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a2ee
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov rcx, rbx
call fcn.140021588
lea r9, str.CUI_GAME_STOP_THREAD
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
lea rax, [rbx + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140027290]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x38], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14002a340
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.140028620
test eax, eax
je 0x14002a3f8
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
mov edi, eax
jmp 0x14002a3d5
mov rcx, qword [rbx + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0
je 0x14002a3f0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14002a3ca
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xffffffff
jb 0x14002a382
cmp dword [rsp + 0x30], 0
je 0x14002a3f0
mov eax, 1
jmp 0x14002a3fa
mov rcx, rbx
call fcn.140021588
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret