joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6cc7ded20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
mov r8d, 0x40
call fcn.7ff6cc7defc0
nop
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x7ff6cc7ded5f
mov eax, 0xc000012f
jmp 0x7ff6cc7dedf7
mov eax, dword [rdi + 0x3c]
test eax, eax
jne 0x7ff6cc7ded70
mov eax, 0xc000007b
jmp 0x7ff6cc7dedf7
cmp eax, 0x10000000
jae 0x7ff6cc7ded66
cmp rax, rsi
jae 0x7ff6cc7ded66
lea rdx, [rax + rdi]
mov qword [rbx + 0x10], rdx
mov r8d, 0x18
mov rcx, rbx
call fcn.7ff6cc7defc0
mov rdx, qword [rbx + 0x10]
movzx eax, word [rdx + 0x14]
add eax, 0x18
movsxd r8, eax
movzx eax, word [rdx + 6]
lea rcx, [rax + rax*4]
lea r8, [r8 + rcx*8]
mov rcx, rbx
call fcn.7ff6cc7defc0
nop
mov rcx, qword [rbx + 0x10]
cmp dword [rcx], 0x4550
jne 0x7ff6cc7ded66
movzx eax, word [rcx + 0x18]
mov word [rbx + 0x28], ax
mov edx, 0x10b
sub ax, dx
mov edx, 0xfeff
test dx, ax
jne 0x7ff6cc7ded66
movzx eax, word [rcx + 6]
mov dword [rbx + 0x18], eax
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rbx + 0x20], rcx
xor eax, eax
jmp 0x7ff6cc7dedf7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff6cc7dee10
Capabilities:
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
sub rsp, 0x98
xor ebp, ebp
mov rsi, r9
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0xb0], rbp
test rcx, rcx
jne 0x7ff6cc7dee44
mov eax, 0xc0000030
add rsp, 0x98
pop rsi
pop rbp
ret
mov qword [rsp + 0x38], rbp
mov rdx, rcx
mov dword [rsp + 0x30], 0x60
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov r8d, 0x1000a1
mov dword [rsp + 0x20], 1
call sym.ProcessHacker.exe_PhCreateFileWin32Ex
test eax, eax
js 0x7ff6cc7defb1
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0x78]
mov qword [rsp + 0x90], rdi
lea rdx, [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov r9d, 0x18
mov rcx, rdi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
mov ebx, eax
test eax, eax
js 0x7ff6cc7deecd
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
test ecx, ecx
js 0x7ff6cc7def83
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0xb8]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x20], 0x20
mov edx, 0xf001f
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x7ff6cc7def83
mov rax, qword [rsp + 0xb8]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
xor r9d, r9d
mov dword [rsp + 0x48], 0x20
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x7ff6cc7def83
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xd0]
mov qword [rsi], rax
mov rax, qword [rsp + 0xb8]
mov qword [rdx], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x7ff6cc7def96
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x98
pop rsi
pop rbp
ret
Function at 0x7ff6cc7df670
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.wintrust.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.crypt32.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminCalcHashFromFileHandle2
mov rcx, rbx
mov qword [0x7ff6cc85de40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov qword [0x7ff6cc85dde8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext2
mov rcx, rbx
mov qword [0x7ff6cc85de00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
mov qword [0x7ff6cc85de30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
mov qword [0x7ff6cc85de08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov qword [0x7ff6cc85ddf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov qword [0x7ff6cc85ddd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
mov qword [0x7ff6cc85dde0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
mov qword [0x7ff6cc85de38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WinVerifyTrust
mov rcx, rbx
mov qword [0x7ff6cc85ddf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertNameToStrW
mov rcx, rdi
mov qword [0x7ff6cc85de28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertDuplicateCertificateContext
mov rcx, rdi
mov qword [0x7ff6cc85de10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [0x7ff6cc85de18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov qword [0x7ff6cc85de20], rax
add rsp, 0x20
pop rdi
ret
Function at 0x7ff6cc7e2860
Capabilities:
Hash data using sha1

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, 0x70
mov edi, dword [rcx + 0x30]
mov r14, rdx
mov eax, edi
mov rbp, rcx
and eax, 0x3f
mov esi, 0x78
cmp eax, 0x38
jae 0x7ff6cc7e2897
mov esi, 0x38
sub esi, eax
mov ebx, edi
mov eax, dword [rcx + 0x2c]
lea edi, [rdi*8]
shl eax, 3
lea rcx, [rsp + 0x21]
shr ebx, 0x1d
xor edx, edx
or ebx, eax
lea eax, [rsi - 1]
movsxd r8, eax
call fcn.7ff6cc7e43c0
movsxd rax, esi
lea rdx, [rsp + 0x20]
add rdx, rax
mov byte [rsp + 0x20], 0x80
mov eax, ebx
lea r8d, [rsi + 8]
shr eax, 0x10
mov ecx, ebx
and ecx, 0xff0000
or ecx, eax
mov eax, ebx
and eax, 0xff00
shr ecx, 8
shl ebx, 0x10
or eax, ebx
shl eax, 8
or ecx, eax
mov eax, edi
mov dword [rdx], ecx
mov ecx, edi
shr eax, 0x10
and ecx, 0xff0000
or ecx, eax
mov eax, edi
and eax, 0xff00
shr ecx, 8
shl edi, 0x10
or eax, edi
shl eax, 8
or ecx, eax
mov dword [rdx + 4], ecx
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.7ff6cc7e2780
mov ecx, dword [rbp + 0x18]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x1b]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [r14], edx
mov ecx, dword [rbp + 0x1c]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x1f]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [r14 + 4], edx
mov ecx, dword [rbp + 0x20]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
shr ecx, 8
or edx, eax
shl edx, 8
and ecx, 0xff00
movzx eax, byte [rbp + 0x23]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
or edx, ecx
mov rsi, qword [r11 + 0x20]
or edx, eax
mov rdi, qword [r11 + 0x28]
mov dword [r14 + 8], edx
mov ecx, dword [rbp + 0x24]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
shr ecx, 8
movzx eax, byte [rbp + 0x27]
and ecx, 0xff00
shl edx, 8
or edx, ecx
or edx, eax
mov dword [r14 + 0xc], edx
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
shr ecx, 8
movzx eax, byte [rbp + 0x2b]
and ecx, 0xff00
shl edx, 8
or edx, ecx
or edx, eax
mov dword [r14 + 0x10], edx
xor eax, eax
mov qword [rbp + 0x2c], rax
mov dword [rbp + 0x18], 0x67452301
mov dword [rbp + 0x1c], 0xefcdab89
mov dword [rbp + 0x20], 0x98badcfe
mov dword [rbp + 0x24], 0x10325476
mov dword [rbp + 0x28], 0xc3d2e1f0
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x7ff6cc7e3064
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x7ff6cc700000], ax
jne 0x7ff6cc7e30f5
movsxd rax, dword [0x7ff6cc70003c]
lea rdx, [0x7ff6cc700000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x7ff6cc7e30f5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6cc7e30f5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x7ff6cc7e30d9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x7ff6cc7e30d3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x7ff6cc7e30db
add rdx, 0x28
jmp 0x7ff6cc7e30b8
xor edx, edx
test rdx, rdx
jne 0x7ff6cc7e30e4
xor al, al
jmp 0x7ff6cc7e30fb
test dword [rdx + 0x24], 0x80000000
je 0x7ff6cc7e30f1
xor al, al
jmp 0x7ff6cc7e30fb
mov al, 1
jmp 0x7ff6cc7e30fb
xor al, al
jmp 0x7ff6cc7e30fb
add rsp, 0x18
ret

Function at 0x7ff6cc7f1480
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x7ff6cc7f1254
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff6cc7f1254
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6cc7f1254
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff6cc7f1254
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6cc7f1254
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff6cc7f1254
cmp dword [rcx + 0xf8], esi
je 0x7ff6cc7f1254
mov ecx, r14d
call fcn.7ff6cc7f139c
mov ecx, 2
call fcn.7ff6cc7f8d68
nop
cmp byte [0x7ff6cc858bd0], 0
jne 0x7ff6cc7f131e
mov r15d, 1
mov eax, r15d
xchg dword [0x7ff6cc858bc4], eax
test ebx, ebx
jne 0x7ff6cc7f12c7
mov rdi, qword [0x7ff6cc852018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x7ff6cc858bc8]
cmp rcx, rax
je 0x7ff6cc7f12be
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x7ff6cc8021e0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x7ff6cc858be0]
jmp 0x7ff6cc7f12d3
cmp ebx, r15d
jne 0x7ff6cc7f12d9
lea rcx, [0x7ff6cc858bf8]
call fcn.7ff6cc7f19e0
nop
test ebx, ebx
jne 0x7ff6cc7f12f0
lea rdx, [0x7ff6cc802260]
lea rcx, [0x7ff6cc802240]
call fcn.7ff6cc7f1114
lea rdx, [0x7ff6cc802270]
lea rcx, [0x7ff6cc802268]
call fcn.7ff6cc7f1114
movzx eax, byte [0x7ff6cc858bd0]
test esi, esi
cmove eax, r15d
mov byte [0x7ff6cc858bd0], al
jmp 0x7ff6cc7f131e
mov ecx, 2
call fcn.7ff6cc7f8dbc
test esi, esi
jne 0x7ff6cc7f1335
mov ecx, r14d
call fcn.7ff6cc7f1350
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x7ff6cc7f11e4
Function at 0x7ff6cc7f3c84
Capabilities:
Get geographical location

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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, str.GetLocaleInfoEx
mov r14, rcx
lea r8, [0x7ff6cc804b70]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xc
call fcn.7ff6cc7f3880
mov rbx, rax
test rax, rax
je 0x7ff6cc7f3ce7
mov rcx, rax
call qword [0x7ff6cc8021e0]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x7ff6cc7f3d01
xor edx, edx
mov rcx, r14
call fcn.7ff6cc7f3fec
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1000093ac
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
xor ebx, ebx
cmp dword [0x1000254c8], ebx
je 0x10000960b
lea rax, [rsp + 0x30]
lea rdx, [0x100006250]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [0x1000254c8], ebx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10000960b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea edi, [rbx + 4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x108]
lea r9, [rsp + 0xf8]
lea rdx, [0x100006548]
xor r8d, r8d
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xf8], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10000947f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x108]
lea rdx, [0x100006548]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x108], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x100009600
cmp dword [rsp + 0xf8], edi
jne 0x100009600
cmp dword [rsp + 0x108], ebx
jne 0x100009600
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
lea rdx, [0x100006578]
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x100], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xf8], edi
mov dword [rsp + 0x3c], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000094f7
mov ecx, dword [rsp + 0x100]
cmp dword [rsp + 0xf8], edi
je 0x1000094f9
mov ecx, ebx
inc ecx
mov eax, 0xcccccccd
mov dword [rsp + 0x100], ecx
mul ecx
shr edx, 2
lea eax, [rdx + rdx*4]
cmp ecx, eax
jne 0x1000095a6
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x9c
mov dword [rsp + 0x100], ebx
call sub.msvcrt.dll_memset
mov rax, qword [0x100026048]
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x40], 0xa0
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x5c], 0x8e
mov qword [rsp + 0x64], 0xfffd
mov qword [rsp + 0x6c], 0x8f
mov qword [rsp + 0x74], 0x90
mov dword [rsp + 0x7c], ebx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x9c], 0x91
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov r9d, edi
cmp dword [rsp + 0x38], ebx
je 0x1000095e6
lea rax, [rsp + 0x38]
lea rdx, [0x100006548]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100006578]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x100009600
lea rax, [rsp + 0x100]
lea rdx, [0x100006578]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x10000a618
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
test rdx, rdx
jne 0x10000a663
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000a659
test byte [rcx + 0x1c], 4
je 0x10000a659
mov rcx, qword [rcx + 0x10]
lea r8, [0x100006488]
mov edx, 0xa
call fcn.10000a5f4
mov eax, 0x80070057
jmp 0x10000a741
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x68]
xor esi, esi
and qword [rsp + 0x68], rsi
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10000a695
mov rsi, qword [rsp + 0x68]
test ebx, ebx
jne 0x10000a723
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
lea rdx, [0x100006668]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
lea rax, [rdi + 4]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rdx, [0x100006688]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and qword [rsp + 0x28], 0
lea r11, [rdi + 0x48]
lea r8, [0x1000066b8]
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.10000a750
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test rsi, rsi
je 0x10000a73f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x10000a750
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, 0x40
mov rdi, qword [rsp + 0x70]
xor ebx, ebx
mov rbp, rdx
test rdi, rdi
jne 0x10000a7a9
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000a79f
test byte [rcx + 0x1c], 4
je 0x10000a79f
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
lea r8, [0x100006488]
call fcn.10000a5f4
mov eax, 0x80070057
jmp 0x10000a87c
and dword [rsp + 0x70], ebx
lea rax, [rsp + 0x70]
lea rdx, [0x1000066b8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x10000a831
mov rcx, qword [rdi]
test rcx, rcx
je 0x10000a7e8
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
and qword [rdi], rbx
mov ecx, dword [rsp + 0x70]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rdi], rax
test rax, rax
jne 0x10000a831
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10000a82c
test byte [rcx + 0x1c], 4
je 0x10000a82c
mov r9d, dword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100006488]
mov edx, 0xc
call fcn.100009850
mov ebx, 0x8007000e
and dword [rsp + 0x30], 0
test ebx, ebx
js 0x10000a87a
test esi, esi
jne 0x10000a87a
mov rax, qword [rdi]
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
lea rdx, [0x1000066b8]
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10000a87a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x10000b1b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov ebp, 0x80004005
cmp dword [rcx + 0x920], esi
je 0x10000b282
and qword [r11 + 0x18], rsi
lea rax, [r11 + 0x18]
lea rdx, [0x100006750]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000b282
mov rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
lea rax, [rbx + 0x91c]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
lea rdx, [0x100006780]
mov rcx, rsi
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x10000b258
cmp dword [rsp + 0x58], 3
je 0x10000b256
lea edi, [rax + 0xd]
jmp 0x10000b25c
xor edi, edi
test edi, edi
je 0x10000b26e
test rsi, rsi
je 0x10000b27a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x10000b27a
mov eax, dword [rsp + 0x50]
xor ebp, ebp
mov dword [rbx + 0x918], eax
test edi, edi
jne 0x10000b282
test ebp, ebp
jns 0x10000b2f1
xor eax, eax
xor ebp, ebp
mov dword [rbx + 0x91c], eax
and dword [rbx + 0x918], eax
movsxd r10, dword [rbx + 0x910]
xor edx, edx
xor r8d, r8d
xor ecx, ecx
test r10, r10
jle 0x10000b2ea
test rcx, rcx
js 0x10000b316
cmp r8d, dword [rbx + 0x910]
jge 0x10000b316
mov rax, qword [rbx + 0x908]
mov r9, qword [rax + rcx*8]
lea eax, [rdx + 1]
cmp eax, dword [r9 + 4]
je 0x10000b2d4
inc rcx
inc r8d
cmp rcx, r10
jl 0x10000b2a5
jmp 0x10000b2ea
mov ecx, dword [rbx + 0x918]
mov al, byte [r9]
mov byte [rcx + rbx + 0x91c], al
inc dword [rbx + 0x918]
inc edx
cmp edx, 4
jl 0x10000b29b
mov rcx, rbx
call fcn.10000aa7c
test rsi, rsi
je 0x10000b307
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x10000d61c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x100025108]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
lea rax, [rsp + 0x40]
mov rbx, rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, [0x100006380]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x40], 0x200
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, rbx
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
test r8d, r8d
js 0x10000d6a5
lea rdx, [rsp + 0x50]
call fcn.10000d6d4
test eax, eax
jns 0x10000d6ad
mov rcx, rbx
mov rdx, rdi
call fcn.10000d800
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.100020bc0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x10000d800
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x100025108]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r13, rcx
mov rcx, qword [rcx + 0x3f658]
mov ebx, 0x200
mov r14, rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r15d, r15d
lea r11, [rsp + 0x40]
mov qword [rsp + 0x30], r11
lea rax, [rsp + 0x60]
lea r8, [0x100006390]
mov qword [rsp + 0x28], rax
lea r9d, [r15 + 2]
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
cmp edi, r15d
jl 0x10000de35
lea rax, [rsp + 0x60]
cmp rax, r15
je 0x10000d8b6
lea rdx, [r13 + 0x400]
lea rcx, [rsp + 0x60]
call fcn.10000dea8
mov edi, eax
jmp 0x10000d8bb
mov edi, 0x80004003
cmp edi, r15d
jge 0x10000d8eb
mov rcx, qword [0x100025288]
lea rbp, [0x100025288]
cmp rcx, rbp
je 0x10000de66
test byte [rcx + 0x1c], 4
je 0x10000de66
mov edx, 0xc
jmp 0x10000de53
lea rax, [rsp + 0x40]
lea r8, [0x1000063f0]
mov r9d, 2
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, r14
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea r12, [0x100006370]
movzx edi, ax
mov ebx, 0x100
lea rbp, [0x100025288]
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
cmp edi, r15d
jl 0x10000d9c6
cmp r15w, word [rsp + 0x60]
je 0x10000d994
lea rcx, [r13 + 0xa0c]
lea r8, [rsp + 0x60]
mov rdx, rbx
sub r8, rcx
lea rax, [rdx + 0x7ffffefe]
cmp rax, r15
je 0x10000d985
movzx eax, word [r8 + rcx]
cmp ax, r15w
je 0x10000d985
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10000d961
cmp rdx, r15
jne 0x10000d98e
sub rcx, 2
mov word [rcx], r15w
jmp 0x10000d9ec
mov edi, 0x80004005
mov rcx, qword [0x100025288]
cmp rcx, rbp
je 0x10000de66
test byte [rcx + 0x1c], 4
je 0x10000de66
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r8, r12
call fcn.10000a5f4
jmp 0x10000d9ec
mov rcx, qword [0x100025288]
cmp rcx, rbp
je 0x10000d9ec
test byte [rcx + 0x1c], 4
je 0x10000d9ec
or dh, byte [rbp + 0x2c]
mov rcx, qword [0x100025288]
lea rbp, [0x100025288]
cmp rcx, rbp
je 0x10000de66
test byte [rcx + 0x1c], 4
je 0x10000de66
mov edx, 0xd
lea r8, [0x100006370]
mov rcx, qword [rcx + 0x10]
mov r9d, edi
call fcn.100009850
mov rcx, qword [r13 + 0x3f658]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100020bc0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret