joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003320
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [r11 + 0x18], rbx
add rcx, 8
xor ebx, ebx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x18], r14
mov edi, ebx
mov r14, rdx
cmp qword [rcx + 0x18], 8
jb 0x14000335e
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov edx, 0xc0000000
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400034e7
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x28
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x74], rbx
mov rcx, rbp
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400034e7
mov ecx, dword [rsp + 0x44]
call fcn.140069164
mov ecx, dword [rsp + 0x44]
lea r8, [rsp + 0x70]
mov rdi, rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov r9d, 0xc
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov dword [rsp + 0x28], ecx
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400034e7
mov eax, dword [rdi + 0x1c]
mov sil, 1
mov dword [r14 + 4], eax
mov rbx, 0xffffffffffffffff
movzx eax, byte [rdi + 8]
mov byte [r14 + 1], al
movzx eax, byte [rdi + 9]
mov byte [r14 + 2], al
cmp byte [rdi + 0xa], sil
sete al
mov byte [r14], al
mov eax, dword [rdi + 0x18]
test eax, eax
je 0x140003479
lea rdx, [rdi + rax]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x140003466
lea rcx, [r14 + 0x68]
call fcn.1400027a0
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x1400034a3
lea rdx, [rdi + rax]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003490
lea rcx, [r14 + 8]
call fcn.1400027a0
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x1400034c4
lea rdx, [rdi + rax]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x1400034b1
lea rcx, [r14 + 0x28]
call fcn.1400027a0
mov eax, dword [rdi + 0x14]
test eax, eax
je 0x1400034ea
lea rdx, [rdi + rax]
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400034d0
mov r8, rbx
lea rcx, [r14 + 0x48]
call fcn.1400027a0
jmp 0x1400034ea
xor sil, sil
mov r14, qword [rsp + 0x90]
lea rcx, [rbp - 1]
mov rbx, qword [rsp + 0xc0]
cmp rcx, 0xfffffffffffffffd
ja 0x14000350d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xc8]
test rdi, rdi
je 0x140003522
mov rcx, rdi
call fcn.140069150
movzx eax, sil
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005da30
add rsp, 0xa0
pop rdi
ret
Function at 0x14001d8e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8d, dword [0x1400ccc34]
lea rcx, str.IsNBHealthTableSupport_Start_HealthyTable_Value_Version:__d____d
mov edx, dword [0x1400ccc30]
call fcn.1400408b0
mov edx, dword [0x1400ccc34]
xor esi, esi
cmp edx, 0xffffffff
je 0x14001d92b
cmp dword [0x1400ccc30], esi
je 0x14001d9c6
lea rcx, str.NBHealthTableVersionThread_Start
mov qword [rsp + 0x50], rbx
call fcn.1400408b0
xor r9d, r9d
mov qword [rsp + 0x28], rsi
lea r8, [0x14001d5e0]
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0x7d0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, eax
lea rcx, str.NBHealthTableVersionThread_ret_:__u
mov ebx, eax
call fcn.1400408b0
test ebx, ebx
mov rbx, qword [rsp + 0x50]
jne 0x14001da24
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [rsp + 0x30]
lea rcx, str.NBHealthTableVersionThread_ExitCode:__u
call fcn.1400408b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x30]
mov edx, dword [0x1400ccc34]
mov dword [0x1400ccc30], ecx
cmp edx, 0xffffffff
jne 0x14001d9df
lea rcx, str.Not_Support__HealthyTable_Version_is_defaul_value_
call fcn.1400408b0
mov dword [0x1400ccc30], esi
jmp 0x14001da43
cmp edx, 2
jge 0x14001d9f8
lea rcx, str.Not_Support__HealthyTable_Version___2__
call fcn.1400408b0
mov dword [0x1400ccc30], esi
jmp 0x14001da43
cmp edx, 0x7fffffff
jne 0x14001da14
lea rcx, str.Not_Support__ASUS_System_Control_Interface_V2_Can_Not_Find__
call fcn.1400408b0
mov dword [0x1400ccc30], esi
jmp 0x14001da43
lea rcx, str.IsNBHealthTableSupport_HealthyTable_Version:__d
call fcn.1400408b0
xor eax, eax
jmp 0x14001da48
lea rcx, str.NBHealthTableVersionThread_Timeout
call fcn.1400408b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1400ccc30], 1
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005da30
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140040250
Capabilities:
Create directory

Disassembly:
sub rsp, 0x678
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x660], rax
xor edx, edx
lea rcx, str.C:ProgramData
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004028d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400403ad
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140062890
lea rax, str.ASUS
mov edx, 0x104
lea r9, str.C:ProgramData
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x30]
call fcn.140004aa0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400402ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400403ad
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.140062890
lea rax, str.ASUS_System_Control_Interface
mov edx, 0x104
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x240]
call fcn.140004aa0
xor edx, edx
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004034a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400403ad
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x208
call fcn.140062890
lea rax, str.AsusSystemDiagnosis
mov edx, 0x104
lea r9, [rsp + 0x240]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x450]
call fcn.140004aa0
xor edx, edx
lea rcx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400403c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400403c7
xor al, al
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x678
ret
mov al, 1
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x678
ret
Function at 0x140040f20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x460], rax
movdqa xmm0, xmmword [0x1400b9690]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov r8d, reloc.OLEAUT32.dll_SafeArrayPutElement
lea rdx, str._SystemDiagnosisService_
lea rcx, [rsp + 0x38]
call fcn.1400027a0
nop
lea rbx, [rsp + 0x488]
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x60]
call fcn.140062890
call fcn.140002f60
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x480]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call fcn.140068f9c
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140040fd6
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140026a20
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140041040
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004103b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041059
call fcn.14005da54
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x470
pop rbx
ret
call fcn.140064eec
int3
Function at 0x140041910
Capabilities:
Compare security identifiers

Disassembly:
push rdi
mov eax, 0x1090
call fcn.14008ea30
sub rsp, rax
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x1080], rax
xor edi, edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140041976
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WTSQueryUserToken_Fail:__u
call fcn.140040f20
lea rcx, str.IsCurrentUserAdmin_End_r_n
call fcn.140040a00
xor al, al
jmp 0x140041a91
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov r9d, 0x1000
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
mov dword [rsp + 0x78], 0x1000
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400419d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cannot_get_group_list_from_token___lu_.n
mov edx, eax
call fcn.140040b50
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140041a91
lea rax, [rsp + 0x68]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rsp + 0x74], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140041a29
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cannot_create_SID_for_Administrators___lu_.n
jmp 0x1400419b7
mov qword [rsp + 0x10a0], rbx
mov ebx, edi
cmp dword [rsp + 0x80], edi
jbe 0x140041a6e
nop dword [rax]
mov rcx, qword [rsp + 0x68]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x88]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140041a69
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x140041a40
jmp 0x140041a6e
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x10a0]
test edi, edi
setne al
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x1090
pop rdi
ret
Function at 0x140041dd0
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rbp + 0x220], rax
lea rcx, str.OpenTaskmgrWindowNormal_Start
call fcn.140040a00
xor ebx, ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140041e52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WTSQueryUserToken_Fail:__u
call fcn.140040f20
lea rcx, str.OpenTaskmgrWindowNormal_End_r_n
call fcn.140040a00
jmp 0x140041fb1
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140062890
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x70], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x34], 1
mov eax, 5
mov word [rbp - 0x30], ax
movdqa xmm0, xmmword [0x1400b9680]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], bx
lea r8d, [rax + 6]
lea rdx, str.taskmgr.exe
lea rcx, [rbp]
call fcn.140001a40
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x20]
call fcn.140062890
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.140070b94
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, str.C:WindowsSystem32_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140041f47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_taskmgr.exe_Fail:__u
call fcn.140040f20
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.OpenTaskmgrWindowNormal_End_r_n
call fcn.140040a00
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140041fb1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041fac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041fd1
call fcn.14005da54
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14005da30
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rbp
ret
call fcn.140064eec
int3
Function at 0x140042350
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rbp + 0x220], rax
lea rcx, str.OpenTaskschdWindowNormal_Start
call fcn.140040a00
xor ebx, ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x1400423d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WTSQueryUserToken_Fail:__u
call fcn.140040f20
lea rcx, str.OpenTaskmgrWindowNormal_End_r_n
call fcn.140040a00
jmp 0x140042531
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140062890
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x70], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x34], 1
mov eax, 5
mov word [rbp - 0x30], ax
movdqa xmm0, xmmword [0x1400b9680]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], bx
lea r8d, [rax + 0xf]
lea rdx, str.mmc.exe_taskschd.msc
lea rcx, [rbp]
call fcn.140001a40
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x20]
call fcn.140062890
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.140070b94
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, str.C:WindowsSystem32_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400424c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_taskschd.msc_Fail:__u
call fcn.140040f20
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.OpenTaskschdWindowNormal_End_r_n
call fcn.140040a00
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140042531
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004252c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042551
call fcn.14005da54
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14005da30
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rbp
ret
call fcn.140064eec
int3
Function at 0x140043370
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rdx + 0x18], 8
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x58], r9d
jb 0x14004339c
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
je 0x1400434a2
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400433d3
mov rdx, qword [rbx]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400434a2
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14004344d
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043448
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043594
mov rcx, r8
call fcn.14005da54
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14004349b
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043496
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043594
mov rcx, r8
call fcn.14005da54
xor al, al
jmp 0x140043570
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400434af
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400434e9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004340e
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140043524
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14004351f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043594
mov rcx, r8
call fcn.14005da54
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14004356e
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140043569
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043594
mov rcx, r8
call fcn.14005da54
mov al, 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
call fcn.140064eec
int3
Function at 0x1400435a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov rsi, r8
cmp qword [rcx + 0x18], 8
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x40], edi
jb 0x1400435d6
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov rdx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140043604
xor bl, bl
jmp 0x1400436a7
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140043611
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400435fd
mov ecx, dword [rsp + 0x30]
call fcn.14005da98
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140062890
cmp qword [rbx + 0x18], 8
jb 0x14004365c
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140043689
xor bl, bl
jmp 0x14004369a
cmp dword [rsp + 0x40], 4
je 0x140043694
xor bl, bl
jmp 0x14004369a
mov eax, dword [rdi]
mov bl, 1
mov dword [rsi], eax
test rdi, rdi
je 0x1400436a7
mov rcx, rdi
call fcn.14005da54
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400436d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, r8
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x40], ebx
jb 0x140043706
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov rdx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140043735
xor dil, dil
jmp 0x1400437fb
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140043742
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004372d
mov ecx, dword [rsp + 0x30]
add ecx, 2
call fcn.14005da98
mov r8d, dword [rsp + 0x30]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rbx, rax
call fcn.140062890
cmp qword [rdi + 0x18], 8
jb 0x140043794
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400437c2
xor dil, dil
jmp 0x1400437ee
cmp dword [rsp + 0x40], 1
je 0x1400437ce
xor dil, dil
jmp 0x1400437ee
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400437d5
mov rdx, rbx
mov rcx, rsi
call fcn.140001a40
mov dil, 1
test rbx, rbx
je 0x1400437fb
mov rcx, rbx
call fcn.14005da54
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret