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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x1400cf018]
lea rsi, [0x1400cf018]
cmp rcx, rsi
je 0x14003ed0f
test byte [rcx + 0x1c], 1
je 0x14003ed0f
cmp byte [rcx + 0x19], 5
jb 0x14003ed0f
mov eax, dword [rdi]
lea r8, [0x1400b19d8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c
mov r9, rbx
mov dword [rsp + 0x20], eax
call fcn.1400201cc
mov rcx, qword [rbx]
lea rax, [rsp + 0x60]
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400b1870]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14003ed62
mov eax, dword [rsp + 0x68]
sub eax, 4
neg eax
sbb ebx, ebx
and ebx, 0xd
mov r10, qword [0x1400cf018]
cmp r10, rsi
je 0x14003eda3
test byte [r10 + 0x1c], 2
je 0x14003eda3
cmp byte [r10 + 0x19], 5
jb 0x14003eda3
mov eax, dword [rsp + 0x50]
lea r8, [0x1400b19d8]
mov rcx, qword [r10 + 0x10]
mov edx, 0x2d
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.1400054e0
mov r10, qword [0x1400cf018]
test ebx, ebx
jne 0x14003ede5
cmp r10, rsi
je 0x14003edd8
test byte [r10 + 0x1c], 2
je 0x14003edd8
cmp byte [r10 + 0x19], 4
jb 0x14003edd8
mov eax, dword [rsp + 0x50]
lea edx, [rbx + 0x2e]
mov r9d, dword [rdi]
lea r8, [0x1400b19d8]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], eax
call fcn.1400054e0
mov eax, dword [rsp + 0x50]
mov dword [rdi], eax
mov r10, qword [0x1400cf018]
cmp r10, rsi
je 0x14003ee24
test byte [r10 + 0x1c], 1
je 0x14003ee24
movzx edx, byte [r10 + 0x19]
mov eax, ebx
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x14003ee24
mov ecx, dword [rdi]
lea r8, [0x1400b19d8]
mov dword [rsp + 0x20], ecx
mov edx, 0x2f
mov rcx, qword [r10 + 0x10]
mov r9d, ebx
call fcn.1400054e0
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400664e8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx + 0x48], rdx
mov rcx, qword [rcx + 0x50]
xor ebx, ebx
mov rsi, r8
cmp rcx, r8
je 0x14006653b
test r8, r8
je 0x140066525
mov rax, qword [r8]
mov rcx, r8
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140066537
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400688bc.0]
mov qword [rdi + 0x50], rsi
lea rax, [rdi + 0x68]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140066660]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 0x60], rax
test rax, rax
jne 0x140066585
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006795c
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx]
mov qword [rbp - 0x10], rsi
lea rax, [rsi + 0x48]
mov qword [rbp - 8], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rbp + 0x58], rax
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x10]
call fcn.140066984
mov ebx, eax
or r12, 0xffffffffffffffff
xor r15d, r15d
test eax, eax
js 0x140067ae6
lea rdx, str.SELECT_System.ItemNameDisplay__System.ItemUrl_FROM_SystemIndex_WHERE_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_stream__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_hidden__AND_System.Shell.OmitFromView___true_AND__System.ItemType__.wpl_OR_System.ItemType__.m3u_
lea rcx, [rbp + 0x40]
call fcn.140004b44
nop
lea rdx, [0x1400b73a0]
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x1400679f4
mov r8d, eax
lea rcx, [rbp + 0x40]
call fcn.140004550
mov rdx, qword [rbp + 0x58]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x40]
call fcn.140004550
lea rdx, str._ORDER_BY_System.ItemNameDisplay_ASC
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140067a25
mov r8d, eax
lea rcx, [rbp + 0x40]
call fcn.140004550
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x40]
lea rdx, [0x1400b9a08]
mov rax, qword [rax + 0x38]
call qword [case.0x1400688bc.0]
mov ebx, eax
test eax, eax
js 0x140067abe
mov qword [rbp + 0x50], r15
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rax, qword [rax + 0x20]
call qword [case.0x1400688bc.0]
mov ebx, eax
test eax, eax
js 0x140067aa7
mov r8, r14
mov rdx, qword [rbp + 0x50]
mov rcx, rdi
call fcn.140066b08
mov ebx, eax
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140067abe
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400688bc.0]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140067ae6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140067b0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140068fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rdx
mov rcx, r9
mov rdx, qword [r8]
mov rdi, r9
mov r8d, dword [rdx - 0x10]
call fcn.140004550
or rbx, 0xffffffffffffffff
lea rdx, [0x1400b0fd4]
mov rax, rbx
xor ebp, ebp
inc rax
cmp word [rdx + rax*2], bp
jne 0x140068ff3
mov r8d, eax
mov rcx, rdi
call fcn.140004550
mov r9, qword [rsi]
mov rdx, rbx
inc rdx
cmp word [r9 + rdx*2], bp
jne 0x14006900d
mov eax, 0x811c9dc5
mov r8, rbp
add rdx, rdx
je 0x140069039
movzx ecx, byte [r8 + r9]
inc r8
imul eax, eax, 0x1000193
xor eax, ecx
cmp r8, rdx
jb 0x140069024
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x20]
mov ecx, eax
lea r8d, [r9 + 0x11]
call qword [sym.imp.msvcrt.dll__ultow_s]
nop dword [rax + rax]
lea rax, [rsp + 0x20]
inc rbx
cmp word [rax + rbx*2], bp
jne 0x14006905b
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140004550
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a37d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x140071dc4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.140004484
mov ebx, eax
test eax, eax
js 0x140071ec9
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 0x20219
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferencesHME_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x140071e42
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x140071e36
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x88], rax
test ecx, ecx
jne 0x140071ebb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x140071eb4
mov rcx, rdi
call fcn.140072c58
mov ebx, eax
test eax, eax
js 0x140071ec9
xor edx, edx
mov rcx, rdi
call fcn.1400722a4
mov ebx, eax
test eax, eax
js 0x140071ec9
and qword [rsp + 0x28], 0
lea r8, [0x140072cc0]
and dword [rsp + 0x20], 0
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 0xa8], rax
jmp 0x140071ec9
mov ebx, 0x8000ffff
jmp 0x140071ec9
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140072e00
Capabilities:
Create thread
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
or r14, 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
mov ebx, ebp
test rdx, rdx
jne 0x140072e2f
mov eax, ebp
jmp 0x140072e3b
mov rax, r14
inc rax
cmp word [rdx + rax*2], bp
jne 0x140072e32
mov r8d, eax
call fcn.140004f30
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
mov r15d, 0x80070000
test rax, rax
jne 0x140072e87
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140072f89
mov edx, 1
mov rcx, rsi
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
nop dword [rax + rax]
mov qword [rdi + 0x18], rax
cmp rax, r14
jne 0x140072ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140072f89
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
xor r8d, r8d
lea rcx, [0x1400adb38]
xor edx, edx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140072f74
mov rcx, qword [rsp + 0x50]
mov edx, 1
lea r8d, [rdx + 0x12]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
cmp rax, r14
jne 0x140072f2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140072f74
mov qword [rsp + 0x28], rbp
lea r8, [0x1400732b0]
mov r9, rdi
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140072f74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x140072fc3
mov rcx, qword [rdi + 0x18]
cmp rcx, r14
je 0x140072fa2
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
nop dword [rax + rax]
mov qword [rdi + 0x18], r14
mov rcx, qword [rdi + 0x20]
cmp rcx, r14
je 0x140072fbb
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
nop dword [rax + rax]
mov qword [rdi + 0x20], r14
mov rcx, rdi
call fcn.140073874
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140088e34
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov dword [rax + 0x10], edx
push r15
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [0x1400cf018]
lea r14, [0x1400cf018]
lea r15, [0x1400b9728]
cmp rcx, r14
je 0x140088ead
test byte [rcx + 0x1c], 1
je 0x140088e87
mov rcx, qword [rcx + 0x10]
mov edx, DispGetParam
mov r8, r15
call fcn.1400034f0
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140088ead
test byte [rcx + 0x1c], 2
je 0x140088ead
cmp byte [rcx + 0x19], 4
jb 0x140088ead
mov rcx, qword [rcx + 0x10]
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r8, r15
lea r9d, [rdx - 0x1a]
call fcn.1400035c4
mov edx, 1
mov rcx, rdi
call fcn.1400892dc
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140088ee8
test byte [rcx + 0x1c], 2
je 0x140088ee8
cmp byte [rcx + 0x19], 4
jb 0x140088ee8
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r9d, eax
mov r8, r15
call fcn.1400035c4
cmp ebx, 1
jne 0x140088fc9
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x78]
lea edx, [rbx + 2]
mov dword [rsp + 0x78], ebx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
je 0x140088f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140088fc9
test byte [rcx + 0x1c], 2
je 0x140088fc9
cmp byte [rcx + 0x19], 2
jb 0x140088fc9
mov edx, 0x1d
jmp 0x140088fba
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x50], rax
or edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
je 0x140088fc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140088fc9
test byte [rcx + 0x1c], 2
je 0x140088fc9
cmp byte [rcx + 0x19], 4
jb 0x140088fc9
mov edx, 0x1e
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400035c4
mov rcx, rdi
call fcn.140089530
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140088ffd
test byte [rcx + 0x1c], 1
je 0x140088ffd
cmp byte [rcx + 0x19], 5
jb 0x140088ffd
mov rcx, qword [rcx + 0x10]
mov edx, 0x1f
mov r9d, ebx
mov r8, r15
call fcn.1400035c4
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x140089020
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400cf018]
lea rsi, [0x1400cf018]
cmp rcx, rsi
je 0x140089060
test byte [rcx + 0x1c], 1
je 0x140089060
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x20
call fcn.1400034f0
xor edx, edx
mov rcx, rdi
call fcn.1400892dc
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x14008909c
test byte [rcx + 0x1c], 2
je 0x14008909c
cmp byte [rcx + 0x19], 4
jb 0x14008909c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x21
mov r9d, eax
call fcn.1400035c4
cmp ebx, 1
jne 0x1400890f9
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 1
je 0x1400890f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x1400890f9
test byte [rcx + 0x1c], 2
je 0x1400890f9
cmp byte [rcx + 0x19], 4
jb 0x1400890f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x22
mov r9d, eax
call fcn.1400035c4
mov rcx, rdi
call fcn.140089530
mov rcx, qword [0x1400cf018]
cmp rcx, rsi
je 0x140089131
test byte [rcx + 0x1c], 1
je 0x140089131
cmp byte [rcx + 0x19], 5
jb 0x140089131
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x23
mov r9d, ebx
call fcn.1400035c4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008914c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push r15
sub rsp, 0x60
mov rcx, qword [0x1400cf018]
lea r15, [0x1400cf018]
cmp rcx, r15
je 0x140089193
test byte [rcx + 0x1c], 1
je 0x140089193
cmp byte [rcx + 0x19], 5
jb 0x140089193
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x33
lea r9d, [rdx - 0x31]
call fcn.1400035c4
and qword [rsp + 0x40], 0
lea r8, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
and qword [rsp + 0x50], 0
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2011f
call fcn.140016f68
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, r15
je 0x1400891fe
test byte [rcx + 0x1c], 2
je 0x1400891fe
cmp byte [rcx + 0x19], 4
jb 0x1400891fe
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x34
mov r9d, eax
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
test ebx, ebx
jne 0x140089274
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SubStatus
mov dword [rsp + 0x78], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400cf018]
cmp rcx, r15
je 0x1400892ad
test byte [rcx + 0x1c], 2
je 0x140089274
cmp byte [rcx + 0x19], 4
jb 0x140089274
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x35
mov r9d, eax
call fcn.1400035c4
mov rcx, qword [0x1400cf018]
cmp rcx, r15
je 0x1400892ad
test byte [rcx + 0x1c], 1
je 0x1400892ad
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x1400892ad
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9728]
mov edx, 0x36
mov r9d, ebx
call fcn.1400035c4
cmp qword [rsp + 0x40], 0
je 0x1400892c6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop r15
ret
Function at 0x14008bc14
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov r14, rcx
mov rcx, qword [0x1400cf018]
lea rax, [0x1400cf018]
lea r13, [0x1400b97d8]
cmp rcx, rax
je 0x14008bc6d
test byte [rcx + 0x1c], 1
je 0x14008bc6d
cmp byte [rcx + 0x19], 5
jb 0x14008bc6d
mov rcx, qword [rcx + 0x10]
mov edx, 0x4a
mov r9, rbp
mov r8, r13
call fcn.14000351c
mov rcx, qword [r14]
lea rax, [rsp + 0x70]
xor r15d, r15d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov dword [rsp + 0x70], r15d
mov rdx, rbp
mov dword [rsp + 0x88], r15d
mov edi, r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14008bcd0
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x14008bcc0
lea ebx, [r15 + 0xd]
jmp 0x14008bcd0
mov edi, dword [rsp + 0x70]
mov ebx, r15d
shr edi, 1
mov dword [rsp + 0x88], edi
mov rax, qword [0x1400cf018]
lea rcx, [0x1400cf018]
cmp rax, rcx
je 0x14008bd0a
test byte [rax + 0x1c], 2
je 0x14008bd0a
cmp byte [rax + 0x19], 4
jb 0x14008bd0a
mov rcx, qword [rax + 0x10]
mov edx, 0x4b
mov r9d, ebx
mov r8, r13
call fcn.1400035c4
mov rax, qword [0x1400cf018]
test ebx, ebx
jne 0x14008bdfc
mov r8, qword [rsi]
lea edx, [rdi + 2]
lea ecx, [rbx + 1]
mov eax, dword [r8 - 0xc]
sub ecx, dword [r8 - 8]
sub eax, edx
or ecx, eax
jge 0x14008bd34
mov rcx, rsi
call fcn.140004ec8
mov r8, qword [rsi]
lea r9, [rsp + 0x88]
mov rdx, rbp
mov rcx, r14
call fcn.140017038
mov ebx, eax
mov rcx, qword [0x1400cf018]
lea rdi, [0x1400cf018]
cmp rcx, rdi
je 0x14008bd7c
test byte [rcx + 0x1c], 2
je 0x14008bd7c
cmp byte [rcx + 0x19], 4
jb 0x14008bd7c
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r9d, eax
mov r8, r13
call fcn.1400035c4
mov eax, ebx
neg eax
sbb ecx, ecx
neg ecx
dec ecx
test ebx, ebx
jne 0x14008bda5
mov rax, qword [rsi]
test rax, rax
jne 0x14008bd97
mov ecx, r15d
jmp 0x14008bdad
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14008bd9b
test ecx, ecx
js 0x14008be54
mov rax, qword [rsi]
cmp ecx, dword [rax - 0xc]
jg 0x14008be54
mov dword [rax - 0x10], ecx
mov rax, qword [rsi]
movsxd rcx, ecx
mov word [rax + rcx*2], r15w
mov rax, qword [0x1400cf018]
cmp rax, rdi
je 0x14008be38
test byte [rax + 0x1c], 2
je 0x14008be03
cmp byte [rax + 0x19], 4
jb 0x14008be03
mov r9, qword [rsi]
mov edx, 0x4d
mov rcx, qword [rax + 0x10]
mov r8, r13
call fcn.14000351c
mov rax, qword [0x1400cf018]
jmp 0x14008be03
lea rdi, [0x1400cf018]
cmp rax, rdi
je 0x14008be38
test byte [rax + 0x1c], 1
je 0x14008be38
movzx r9d, byte [rax + 0x19]
mov ecx, ebx
neg ecx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x14008be38
mov rcx, qword [rax + 0x10]
mov edx, 0x4e
mov r9d, ebx
mov r8, r13
call fcn.1400035c4
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140005068
int3
Function at 0x14008c670
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r14d, r14d
lea rax, [rsp + 0x60]
mov rdi, rcx
mov qword [rsp + 0x48], r14
mov rcx, qword [rcx]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rsi, rdx
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14008c845
mov rcx, qword [rsp + 0x48]
mov ebx, r14d
test rcx, rcx
je 0x14008c702
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14008c845
jmp 0x14008c734
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14008c670
mov ebx, eax
test eax, eax
jne 0x14008c845
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14008c716
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008c78c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x48], r14
cmp qword [rdi + 8], r14
jne 0x14008c803
cmp qword [rdi + 0x10], r14
jne 0x14008c803
lea rcx, str.API_MS_Win_Core_LocalRegistry_L1_1_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x14008c7cc
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rdi + 8], rax
jmp 0x14008c803
xor r8d, r8d
lea rcx, str.advapi32.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
test rax, rax
je 0x14008c803
lea rdx, str.RegDeleteKeyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
mov rax, qword [rdi + 8]
test rax, rax
je 0x14008c820
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [case.0x1400688bc.0]
jmp 0x14008c843
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14008c837
mov rcx, qword [rdi]
mov rdx, rsi
call qword [case.0x1400688bc.0]
jmp 0x14008c843
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008c85b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400a37d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret