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

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rbp, rcx
lea rdi, [rcx + 0x240]
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14006677d
mov rsi, qword [rdi + 8]
mov rbx, qword [rdi]
mov qword [rsp + 0x40], rbx
cmp rbx, rsi
je 0x140066776
nop dword [rax]
mov rcx, rbx
call fcn.1400048d0
add rbx, 0x50
mov qword [rsp + 0x40], rbx
cmp rbx, rsi
jne 0x140066760
mov rax, qword [rdi]
mov qword [rdi + 8], rax
lea rdx, [rbp + 0x160]
mov r8, rdi
mov rcx, qword [0x14017bba0]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp fcn.14002bc80

Function at 0x14007b1f0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x68
cmp qword [rcx + 0x18], 0
jne 0x14007b205
mov eax, 0x57
add rsp, 0x68
ret
cmp qword [rcx + 0x20], 8
mov qword [rsp + 0x60], rdi
lea rdi, [rcx + 8]
jb 0x14007b21a
mov rcx, qword [rdi]
jmp 0x14007b21d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14007b236
mov eax, 2
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
ret
mov qword [rsp + 0x88], rbx
xor ebx, ebx
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x80], rbx
jb 0x14007b252
mov rdi, qword [rdi]
lea rax, [rsp + 0x80]
mov r9d, SafeArrayGetDim
mov qword [rsp + 0x50], rax
mov r8d, 0x3ffe
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rbx
mov rdx, rdi
mov qword [rsp + 0x38], rbx
lea ecx, [r9 - 0xd]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x14007b2bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp qword [rsp + 0x80], rbx
je 0x14007b344
mov eax, dword [rsp + 0x78]
dec eax
test eax, 0xfffffffb
jne 0x14007b344
mov edx, dword [rsp + 0x70]
lea rax, str.TrustedPeople
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0x20000
lea ecx, [r8 + 0xa]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rdi, rax
test rax, rax
je 0x14007b33a
mov r8, qword [rsp + 0x80]
mov rcx, rax
mov edx, dword [rsp + 0x70]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 3
mov r9d, dword [r8 + 0x10]
mov r8, qword [r8 + 8]
call qword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
je 0x14007b33a
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
test eax, eax
jne 0x14007b349
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14007b349
mov ebx, 0x32
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x68
ret
Function at 0x140084090
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400840bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400840bc
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400840d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
lea r9, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140084126
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14008419e
jmp 0x140084128
mov ebx, esi
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rdi + 0x20]
mov dword [rdi + 8], eax
mov rax, qword [rsp + 0x40]
mov dword [rdi + 0xc], eax
test rcx, rcx
je 0x140084153
mov edx, 1
call fcn.1400b3214
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x20], rsi
test eax, eax
je 0x14008419e
mov ecx, eax
call fcn.1400b321c
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14008416e
mov eax, 0xc0000017
jmp 0x1400841a0
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 0x28]
mov rdx, rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14008419c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14008419e
mov ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400841c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0
mov ebx, r9d
mov rdi, r8
mov rsi, rcx
test r8, r8
jne 0x1400841fa
test ebx, ebx
je 0x1400841fa
lea eax, [r8 + 0x57]
jmp 0x14008427c
mov rcx, qword [rcx + 0x28]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x3c], edx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0xde55adff
mov dword [rsp + 0x44], 0x55adffde
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140084245
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14008427c
jmp 0x140084247
xor eax, eax
test rdi, rdi
je 0x14008427c
test ebx, ebx
je 0x14008427c
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008427a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14008427c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140099320
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
lea rax, [rsp + 0x68]
mov r9d, 0x20019
mov qword [rsp + 0x68], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREInstallShield27.0Professional
mov rcx, 0xffffffff80000001
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400993ab
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DoVerboseLogging
mov dword [rsp + 0x58], 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400993ab
cmp dword [rsp + 0x60], 4
jne 0x1400993ab
cmp dword [rsp + 0x50], 1
sete bl
test rdi, rdi
je 0x1400993b9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400993d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x78], rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
cmp qword [0x14017bc78], r14
je 0x140099445
lea rdx, [0x14017bc68]
cmp qword [0x14017bc80], 8
cmovae rdx, qword [0x14017bc68]
call fcn.140006b80
nop
mov dword [rsp + 0x34], 1
jmp 0x14009961d
mov rdi, r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREInstallShield27.0Professional
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x1400994a0
mov dword [rsp + 0x48], r14d
mov esi, r14d
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], r14d
lea rcx, [rbp - 0x80]
call fcn.140004320
nop
test esi, esi
jne 0x14009952a
mov r8d, 0x104
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1400030b0
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov rsi, qword [rax]
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.VerboseLogPath
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140099520
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x140099520
test rsi, rsi
je 0x140099520
cmp dword [rsp + 0x30], 0
jne 0x140099520
mov word [rsi], r14w
lea rcx, [rsp + 0x58]
call fcn.1400038a0
cmp qword [rbp - 0x68], 0
jne 0x1400995c8
lea rcx, [rbp - 0x30]
call fcn.140004320
nop
mov r8d, 0x104
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.1400030b0
nop
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov r8d, 0x104
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
lea rcx, [rsp + 0x58]
call fcn.1400038a0
xor r8d, r8d
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400087d0
nop
test rax, rax
je 0x1400995a1
lea rdx, [rax + 8]
lea rax, [rbp - 0x78]
cmp rax, rdx
je 0x1400995b5
jmp 0x1400995a4
mov rdx, r14
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140004020
nop
lea rcx, [rbp + 0x20]
call fcn.140004210
nop
lea rcx, [rbp - 0x30]
call fcn.140004210
lea rdx, str.InstallShield.log
lea rcx, [rbp - 0x30]
call fcn.140006b80
nop
lea r8, [rbp - 0x30]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140099e60
mov dword [rsp + 0x34], 1
lea rcx, [rbp - 0x30]
call fcn.140004210
nop
lea rcx, [rbp - 0x80]
call fcn.140004210
nop
test rdi, rdi
je 0x140099618
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov rax, rbx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140099650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140006b80
nop
lea rcx, [rsp + 0xb0]
call fcn.1400993d0
nop
lea rcx, [rax + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400996a6
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xb0]
call fcn.140004210
cmp byte [0x14017bbb2], dil
jne 0x14009977c
mov word [rsp + 0x40], di
mov dword [rsp + 0x48], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0xfeff
test eax, eax
je 0x140099747
cmp dword [rsp + 0x48], 2
jne 0x140099747
cmp word [rsp + 0x40], cx
sete al
mov byte [0x14017bbb2], al
jmp 0x14009974e
movzx eax, byte [0x14017bbb2]
test al, al
jne 0x140099775
mov word [rsp + 0x44], cx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
mov r8d, 2
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [0x14017bbb2], 1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x78]
add r8d, r8d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x1400997dd
cmp qword [sym.imp.KERNEL32.dll_CloseHandle], 0
je 0x1400997dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x60]
call fcn.140004210
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x128]
add rsp, 0x110
pop rdi
ret
Function at 0x1400a1618
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x130
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal], rax
mov eax, r8d
mov rbx, rcx
mov r8d, 1
cmp eax, 0xffffffff
cmovne r8d, eax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a16c2
lea rax, [0x140102478]
mov qword [rsp + 0x40], rax
lea rax, [0x1401025f8]
mov qword [rsp + 0x80], rax
lea rdx, [rbx + 0x18]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.140006eb0
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.14000fc40
lea rdx, [0x14016fd48]
lea rcx, [rsp + 0x90]
call fcn.1400b5470
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x130
pop rbx
ret

Function at 0x1400a16e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x130
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal], rax
mov eax, r8d
mov rbx, rcx
mov r8d, 1
cmp eax, 0xffffffff
cmovne r8d, eax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a178a
lea rax, [0x140102478]
mov qword [rsp + 0x40], rax
lea rax, [0x1401025f8]
mov qword [rsp + 0x80], rax
lea rdx, [rbx + 0x18]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.140006eb0
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.14000fc40
lea rdx, [0x14016fd48]
lea rcx, [rsp + 0x90]
call fcn.1400b5470
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x130
pop rbx
ret

Function at 0x1400a19dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, r9
mov rax, r8
mov rbx, rdx
test r9, r9
je 0x1400a1a96
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [r11 - 0x10], r9
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rdx
mov rdx, rax
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x1400a1a84
test rbx, rbx
je 0x1400a1a84
cmp dword [rdi], esi
jbe 0x1400a1a81
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x1400a1a77
cmp ecx, 2
jbe 0x1400a1a66
cmp ecx, 7
jne 0x1400a1a77
test byte [rdi], 1
jne 0x1400a1a77
mov eax, dword [rdi]
shr eax, 1
cmp eax, 1
jb 0x1400a1a77
mov ecx, dword [rdi]
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
jne 0x1400a1a77
cmp eax, 1
jbe 0x1400a1a84
cmp word [rbx + rcx*2 - 4], si
jmp 0x1400a1a75
test byte [rdi], 1
jne 0x1400a1a77
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1400a1a84
mov word [rbx], si
mov eax, SafeArrayGetDim
jmp 0x1400a1a86
mov word [rbx], si
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.14000b810
int3
Function at 0x1400a2db8
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
mov qword [r11 - 0x18], rcx
xor edi, edi
test dl, dl
je 0x1400a2e0e
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x1400a2e04
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x1400a2e6f
lea rbp, [0x140102478]
mov qword [rsp + 0x30], rbp
lea rsi, [0x1401025f8]
mov qword [rsp + 0x70], rsi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006eb0
mov edx, 0x80
lea rcx, [rsp + 0x30]
call fcn.1400a8404
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x70], rsi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006eb0
lea rcx, [rsp + 0x30]
call fcn.1400a2ce8
test eax, eax
setne dil
mov rcx, rbx
call fcn.1400048d0
mov al, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400a5a6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp - 8], rax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a5ab5
lea rdx, [0x1400f48b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a5ab5
call rax
jmp 0x1400a5bc5
and qword [rbp - 0x20], 0
lea rax, [rbp - 0x20]
mov ebx, 0xf003f
mov dword [rbp - 0x30], 0xa
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str..DefaultControl_PaneldesktopResourceLocale
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a5b1a
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400fc414]
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400a5b97
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x28]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str..DEFAULTControl_PanelInternational
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a5b73
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Locale
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400a5b8c
cmp qword [sym.imp.ADVAPI32.dll_RegCloseKey], 0
je 0x1400a5b8c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400a5b97
mov ebx, 0x409
jmp 0x1400a5ba9
xor edx, edx
lea rcx, [rbp - 0x18]
lea r8d, [rdx + 0x10]
call fcn.1400b982c
movzx ebx, ax
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400a5bc2
cmp qword [sym.imp.ADVAPI32.dll_RegCloseKey], 0
je 0x1400a5bc2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x1400a6d3c
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x488]
sub rsp, 0x560
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r15, rcx
lea r8, [rsp + 0x34]
mov edx, 0x400
lea rcx, [rbp + 0x50]
call sub.PSAPI.DLL_EnumProcesses
lea rcx, str.Ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
xor r12d, r12d
test rax, rax
je 0x1400a6f0e
mov esi, r12d
cmp dword [rsp + 0x34], r12d
jbe 0x1400a6f0e
mov dil, byte [rsp + 0x30]
mov eax, esi
mov r8d, dword [rbp + rax*4 + 0x50]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400a6df2
jmp 0x1400a6f02
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400b52d0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rbx
call r14
test eax, eax
js 0x1400a6ef0
cmp dword [rsp + 0x74], r12d
je 0x1400a6ef0
lea rax, [0x140102478]
mov qword [rbp - 8], rax
lea rax, [0x1401025f8]
mov qword [rbp + 0x38], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 8]
call fcn.1400047b0
nop
mov eax, dword [rsp + 0x78]
mov dword [rbp - 0x10], eax
cmp word [0x1400fc414], r12w
jne 0x1400a6e70
mov rax, r12
jmp 0x1400a6e7c
lea rcx, [0x1400fc414]
call fcn.1400bbe50
mov r8, rax
lea rdx, [0x1400fc414]
lea rcx, [rbp]
call fcn.140004400
mov eax, dword [rsp + 0x74]
mov dword [rbp - 0x70], eax
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x68], eax
lea rax, [0x140102478]
mov qword [rbp - 0x60], rax
lea rax, [0x1401025f8]
mov qword [rbp - 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x60]
call fcn.140006eb0
nop
mov byte [rsp + 0x20], dil
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r15
call fcn.1400a1438
nop
lea rcx, [rbp - 0x60]
call fcn.1400048d0
nop
lea rcx, [rbp - 8]
call fcn.1400048d0
nop
cmp qword [sym.imp.KERNEL32.dll_CloseHandle], r12
je 0x1400a6f02
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rsp + 0x34]
jb 0x1400a6dcc
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400a718c
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400a609c
xor ebx, ebx
test al, al
je 0x1400a7214
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea edx, [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400a7214
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0xffff
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0x60
pop rbx
ret

Function at 0x1400a7bf4
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
and qword [rsp + 0x20], 0
mov rdi, r8
and dword [rsp + 0x28], 0
lea r8, [rdx + 8]
and qword [rsp + 0x30], 0
mov rbp, rdx
cmp qword [r8 + 0x18], 8
jb 0x1400a7c21
mov r8, qword [r8]
mov rdx, rcx
mov r9d, 0x2001f
lea rcx, [rsp + 0x20]
call fcn.1400148a0
test eax, eax
jne 0x1400a7c51
lea rdx, [rdi + 8]
cmp qword [rdx + 0x18], 8
jb 0x1400a7c46
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov dword [0x14017a640], eax
sete sil
cmp qword [rsp + 0x20], 0
je 0x1400a7c70
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.1400048d0
mov rcx, rdi
call fcn.1400048d0
mov al, sil
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret