joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010ae8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140010b16
lea eax, [rbx + 0xd]
jmp 0x140010b4b
mov rsi, rdi
mov rcx, rsi
call fcn.140033d04
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140010b19
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140011310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140011381
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14000d600]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14001137e
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140011bf0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14008a000], 0
mov esi, edx
mov rdi, rcx
je 0x140011c12
or eax, 0xffffffff
jmp 0x140011c7d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140011c3f
cmp eax, 0x80010106
jne 0x140011c7b
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140011c43
jmp 0x140011c7b
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.14000e330
cmp al, 1
jne 0x140011c6b
mov edx, esi
mov rcx, rdi
call fcn.1400108f4
mov ebx, eax
jmp 0x140011c6f
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140011c7b
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140012adc
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea r8, str.EM47D2CDD9E9E7
xor ecx, ecx
mov esi, r9d
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140012b2e
lea ecx, [rdi + 1]
call fcn.14000d134
test al, al
je 0x140012b2e
mov edx, esi
lea rcx, [0x14008a2d0]
call fcn.140011bf0
mov edi, eax
test rbx, rbx
je 0x140012b3c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140012b80
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
lea r15, str.585BF6B5_D7F1_4A35_9FB7_F7FBF163FE0A
xor r14d, r14d
mov ebp, r8d
mov ecx, r14d
mov rsi, rdx
mov ebx, 0x80004005
mov qword [rsp + 0x40], rcx
cmp dword [rdi + 0x38], 1
jne 0x140012bca
mov rcx, r15
jmp 0x140012bd7
cmp dword [rdi + 0x38], 2
jne 0x140012c09
lea rcx, str.9A0E3427_FC52_4A9D_B824_18952E11754A
call fcn.1400395e0
mov r9d, dword [rdi + 0x30]
lea rdx, [rsp + 0x40]
mov r8, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jne 0x140012c40
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jne 0x140012c36
mov r8d, dword [rdi + 0x34]
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsp + 0x40]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
cmove ebx, r14d
mov rcx, qword [rsp + 0x40]
call sub.bcrypt.dll_BCryptDestroyHash
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012c64
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xc0]
lea rax, [r11 - 0x48]
and dword [rsp + 0x50], 0
lea r14d, [r8 - 0x114]
mov dword [rsp + 0x48], 1
mov r15, r9
mov qword [r11 - 0x58], rax
mov rsi, rcx
and dword [rsp + 0x38], 0
xor r9d, r9d
and qword [r11 - 0x68], 0
mov r8d, r14d
and dword [rsp + 0x28], 0
mov rbp, rdx
mov rcx, qword [rcx]
mov ebx, 0x80004005
and qword [r11 - 0x78], 0
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jne 0x140012d53
mov eax, dword [rsp + 0x50]
cmp dword [rdi], eax
jb 0x140012d4f
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
call fcn.140012b80
test eax, eax
js 0x140012d53
lfence
mov r8d, dword [rsi + 0x34]
lea rcx, [rbp + 0x14]
mov rdx, qword [rsi + 0x28]
mov eax, r14d
add rcx, rax
call fcn.14002ed00
test eax, eax
jne 0x140012d53
lfence
mov eax, dword [rdi]
xor r9d, r9d
mov rcx, qword [rsi]
mov r8d, r14d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r15
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jne 0x140012d53
jmp 0x140012d51
mov dword [rdi], eax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002a660
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012d70
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xc0]
lea rax, [r11 - 0x48]
and dword [rsp + 0x50], 0
mov rbp, r9
mov dword [rsp + 0x48], 1
mov rsi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [r11 - 0x58], rax
mov r15d, r8d
and dword [rsp + 0x38], 0
mov r14, rdx
and qword [r11 - 0x68], 0
mov ebx, 0x80004005
and dword [rsp + 0x28], 0
and qword [r11 - 0x78], 0
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x140012ec4
mov eax, dword [rsp + 0x50]
mov ecx, dword [rdi]
add eax, 0x114
mov dword [rsp + 0x50], eax
cmp ecx, eax
jb 0x140012ec0
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov r8d, r15d
mov dword [rsp + 0x38], ecx
mov rdx, r14
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rbp
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x140012ec4
mov r8d, dword [rdi]
mov rdx, rbp
mov rcx, rsi
call fcn.140012b80
test eax, eax
js 0x140012ec4
lfence
mov ebx, dword [rdi]
xor edx, edx
add rbx, rbp
mov ebp, VarUI4FromDisp
mov r8d, ebp
mov rcx, rbx
call fcn.14002de80
cmp dword [rsi + 0x38], 1
jne 0x140012e6f
mov dword [rbx + 4], 1
jmp 0x140012e7c
cmp dword [rsi + 0x38], 2
jne 0x140012e7c
mov dword [rbx + 4], 3
mov r8d, dword [rsi + 0x34]
lea rcx, [rbx + 0x14]
mov rdx, qword [rsi + 0x28]
test r8, r8
je 0x140012eb6
test rcx, rcx
je 0x140012ea6
lfence
test rdx, rdx
je 0x140012ea1
call fcn.14002ee00
jmp 0x140012eb6
call fcn.14002de80
call fcn.1400337d8
mov dword [rax], 0x16
call fcn.14003366c
mov eax, dword [rsi + 0x34]
mov dword [rbx + 0x10], eax
add dword [rdi], ebp
jmp 0x140012ec2
mov dword [rdi], eax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002a660
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400183a4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
xor eax, eax
mov qword [rbp - 0x18], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
and qword [rbp - 0x18], rax
lea rdx, [rbp - 0x28]
call fcn.1400180d8
mov rbx, qword [rbp - 0x28]
or r14d, 0xffffffff
mov rdi, qword [rbp - 0x20]
cmp rbx, rdi
je 0x14001854d
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.140013514
add rax, 0x18
mov qword [rbp - 0x50], rax
and qword [rbp - 0x30], 0
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.14001825c
nop
lea r8, [0x140067c80]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140013308
nop
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400175d4
nop
lea r8, [0x14008a670]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.1400175d4
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140018484
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
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 0x1400184af
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1400184d9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001850e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
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 0x140018538
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
add rbx, 8
mov rdi, qword [rbp - 0x20]
cmp rbx, rdi
jne 0x1400183fa
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x1400185a0
cmp rbx, rdi
je 0x14001858d
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140018580
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
add rbx, 8
cmp rbx, rdi
jne 0x140018557
mov rbx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x18]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rcx, rbx
call fcn.140013938
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002a660
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400185c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.14001834c
test eax, eax
je 0x14001867c
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 0x140018659
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0
je 0x140018674
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 0x14001864e
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 0x140018606
cmp dword [rsp + 0x30], 0
je 0x140018674
mov eax, 1
jmp 0x14001867e
mov rcx, rbx
call fcn.140017690
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14001c9b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140086e08]
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 0x14001caed
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001caed
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 0x14001ca70
cmp dword [rsp + 0x40], 1
jne 0x14001ca70
mov dword [rbx + 0x7c], 1
cmp dword [rbx + 0x7c], 0
je 0x14001cae2
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.14002de80
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 0x14001cae2
lea rcx, [rbx + 0x80]
lea r8, [rsp + 0x50]
lea rdx, [0x1400681a4]
call fcn.14001c7b8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.14001cbec
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x34], 1
test rax, rax
je 0x14001cb72
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, [0x140066a54]
mov rcx, rbx
call fcn.14003fff0
test eax, eax
jne 0x14001cb93
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002a660
add rsp, 0x40
pop rbx
ret
Function at 0x14001cbec
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 [0x140086e08]
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.14001d1d0
test al, al
je 0x14001cc3a
movups xmm0, xmmword [0x140067cb0]
jmp 0x14001cc41
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 0x14001cd11
xor esi, esi
mov dword [rbp - 0x28], 0x20
xor edx, edx
jmp 0x14001ccf3
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 0x14001ccea
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 0x14001cce0
cmp dword [rbp - 0x48], eax
jne 0x14001cd08
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 0x14001cc75
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rbp - 0x50]
test rax, rax
jne 0x14001cd42
test r14, r14
je 0x14001cd42
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.14002a660
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 0x14001cd68
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 [0x140086e08]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov qword [rbp - 0x11], rdx
and dword [rbp - 0x21], 0
call fcn.14000c200
mov rcx, rax
test rax, rax
je 0x14001cf99
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140063a18]
add rax, 0x18
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
call fcn.14000b7a0
nop
mov ecx, 0x400
call fcn.14002a6c0
mov rdi, rax
lea r13, [fcn.140006e70]
mov qword [rsp + 0x20], r13
lea r9, [0x140013f90]
mov r12d, 8
mov r8d, r12d
mov edx, r12d
lea rcx, [rbp - 9]
call fcn.14002a12c
nop
test rdi, rdi
je 0x14001cf17
mov r8d, 0x200
mov rdx, rdi
lea rcx, str._USERPROFILE_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.140033d04
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140010c34
mov rax, qword [rbp - 0x39]
cmp dword [rax - 0x10], 0
jle 0x14001cf0f
and dword [rbp - 0x31], 0
xor esi, esi
and qword [rbp - 0x29], rsi
lea r9, [rbp - 0x31]
lea r8, [0x140067c80]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.1400160d0
nop
lea rdx, [0x140066a54]
mov rcx, qword [rbp - 0x29]
call fcn.14003fff0
test eax, eax
je 0x14001cee7
movsxd rax, esi
lea rcx, [rbp - 9]
lea rcx, [rcx + rax*8]
inc esi
lea rdx, [rbp - 0x29]
call fcn.140013280
lea r9, [rbp - 0x31]
lea r8, [0x140067c80]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.1400160d0
nop
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140013280
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ce6d
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
jmp 0x14001ce6d
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001cf0f
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
mov rcx, rdi
call fcn.140029c24
mov rcx, qword [rbp + 7]
add rcx, 0xffffffffffffffe8
call fcn.140013514
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.140029b54
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001cf6d
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140063a18]
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002a660
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.1400099c0
int3
Function at 0x14001cfa4
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.14000c200
mov rcx, rax
test rax, rax
je 0x14001d046
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140063a18]
add rax, 0x18
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000b7a0
nop
mov dword [rsp + 0x20], 1
mov ecx, 0x400
call fcn.14002a6c0
mov rdi, rax
test rax, rax
je 0x14001d038
mov r8d, 0x200
mov rdx, rax
lea rcx, str._USERPROFILE_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.140033d04
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140010c34
mov rcx, rdi
call fcn.140029c24
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400099c0
int3

Function at 0x14001d1d0
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 [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [0x140067cb0]
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 0x14001d2c3
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 0x14001d2ba
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 0x14001d2ba
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 0x14001d2b1
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.14002a660
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 0x14001e394
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.14001d18c
test eax, eax
je 0x14001e44c
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 0x14001e429
mov rcx, qword [rbx + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0
je 0x14001e444
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 0x14001e41e
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 0x14001e3d6
cmp dword [rsp + 0x30], 0
je 0x14001e444
mov eax, 1
jmp 0x14001e44e
mov rcx, rbx
call fcn.14001b028
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret