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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140050155
mov eax, edi
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x1400501c0
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.AppsUseLightTheme
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400501c0
cmp dword [rsp + 0x68], 4
jne 0x1400501c0
mov eax, dword [rsp + 0x58]
neg eax
sbb edi, edi
test rbx, rbx
je 0x1400501b2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [rdi + 2]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x1400501ce
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140053810
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x1400b2b98]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rax, vtable.vmsWinOsVersion.0
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x58], 0x11c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x58]
test rax, rax
je 0x14005388d
call rax
test eax, eax
sete al
jmp 0x140053898
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
setne al
test al, al
je 0x1400538b7
cmp dword [rsp + 0x5c], 0xa
jne 0x1400538bf
cmp dword [rsp + 0x64], 0x55f0
jb 0x1400538bf
mov dword [rsp + 0x5c], 0xb
jmp 0x1400538bf
mov dword [rsp + 0x5c], 0
mov edx, 5
lea rcx, str._1._2
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x38], rax
mov dl, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx eax, word [rax]
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_unsigned_int__int__int__class_QChar____ptr64]
mov rbx, rax
mov dl, 0x20
lea rcx, [rsp + 0x32]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx ecx, word [rax]
mov word [rsp + 0x28], cx
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_unsigned_int__int__int__class_QChar____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140075c20
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rdi
ret
Function at 0x1400602e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0x48], r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rax - 0x48], 1
mov ebp, r15d
mov qword [rax - 0x40], r15
mov dword [rax - 0x38], r15d
mov qword [rax - 0x30], r15
mov qword [rax + 0x18], r15
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006036f
mov eax, r15d
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], r15d
test eax, eax
jne 0x14006049a
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140060384
mov rdx, qword [rdi]
mov dword [rsp + 0x90], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006049a
mov eax, dword [rsp + 0x98]
dec eax
cmp eax, 1
ja 0x14006049a
mov r14d, dword [rsp + 0x90]
shr r14d, 1
mov edx, r14d
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1400603fb
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400603f0
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + r14*2], r15w
jmp 0x140060409
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14005eeb0
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x140060416
mov rsi, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140060420
mov rdi, qword [rdi]
lea eax, [r14 + r14]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140060485
mov eax, dword [rsp + 0x90]
dec eax
cmp eax, 1
ja 0x140060485
test rsi, rsi
je 0x14006049a
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400604bf
test al, 1
jne 0x140060485
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x14006049a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140060492
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov word [rax], r15w
test rbp, rbp
je 0x1400604a8
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rsi], r15w
jmp 0x14006049a
Function at 0x1400604d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rax - 0x48], r15d
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov dword [rax - 0x48], 1
mov ebp, r15d
mov qword [rax - 0x40], r15
mov dword [rax - 0x38], r15d
mov qword [rax - 0x30], r15
mov qword [rax + 0x18], r15
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Environment
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006055f
mov eax, r15d
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], r15d
test eax, eax
jne 0x14006068a
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140060574
mov rdx, qword [rdi]
mov dword [rsp + 0x90], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006068a
mov eax, dword [rsp + 0x98]
dec eax
cmp eax, 1
ja 0x14006068a
mov r14d, dword [rsp + 0x90]
shr r14d, 1
mov edx, r14d
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1400605eb
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400605e0
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + r14*2], r15w
jmp 0x1400605f9
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.14005eeb0
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x140060606
mov rsi, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140060610
mov rdi, qword [rdi]
lea eax, [r14 + r14]
mov dword [rsp + 0x80], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140060675
mov eax, dword [rsp + 0x90]
dec eax
cmp eax, 1
ja 0x140060675
test rsi, rsi
je 0x14006068a
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1400606af
test al, 1
jne 0x140060675
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x14006068a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140060682
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov word [rax], r15w
test rbp, rbp
je 0x140060698
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rsi], r15w
jmp 0x14006068a
Function at 0x140060e60
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140061043
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140041a80
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140061008
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x14]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x15]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x16]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x17]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140060f7c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140060ff7
mov rax, qword [r11 + 8]
mov r9, qword [rcx + 0x10]
cmp r9, qword [rax + 0x10]
jne 0x140060fb9
mov r10, qword [rax]
cmp r10, rcx
je 0x140060fb3
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140060ff7
mov r8, rax
cmp r10, rax
je 0x140060fd3
mov rax, qword [rax + 8]
mov r8, rax
cmp r9, qword [rax + 0x10]
je 0x14006101d
cmp r10, rax
jne 0x140060fc1
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140060f00
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140060ff7
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x140074fa0
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
cmp qword [rcx + 0x40], 0
mov rdi, rcx
je 0x140074fcf
mov al, 1
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
mov qword [rsp + 0x150], rsi
call fcn.140074eb0
mov rsi, rax
test rax, rax
je 0x140075132
mov qword [rsp + 0x148], rbx
mov ebx, dword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
lea r8d, [rbx + 0x50]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov rcx, rsi
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x14007511e
cmp dword [rsp + 0x40], 2
jne 0x14007511e
cmp dword [rsp + 0x44], ebx
je 0x14007511e
cmp qword [rsp + 0x78], rbx
je 0x14007511e
cmp qword [rbp - 0x80], rbx
je 0x14007511e
cmp qword [rbp - 0x78], rbx
je 0x14007511e
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
xor eax, eax
movaps xmmword [rbp], xmm1
lea r9, [rbp + 0x40]
mov qword [rbp + 0x10], rax
lea r8d, [rbx + 0x50]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14007511e
mov rax, qword [rsp + 0x78]
mov bl, 1
mov qword [rdi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rdi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x58], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
Function at 0x14003ca00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003ca0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003ca1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003ca05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003ca35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003ca22
sub eax, 3
jb 0x14003ca4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003ca86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003ca76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003ca74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003ca63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003c9c2
jmp 0x14003ca0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003cad2
cmp rsi, rcx
jae 0x14003cada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003cab9
cmp al, 0x8f
ja 0x14003cab9
cmp byte [rsi - 2], 0xf
je 0x14003cabf
sub al, 0xe8
cmp al, 1
ja 0x14003caa3
cmp rsi, rcx
jae 0x14003cada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003caa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003cada
lodsb al, byte [rsi]
jmp 0x14003cab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39000]
mov eax, dword [rdi]
or eax, eax
je 0x14003cb43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x40ee4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003cae7
jns 0x14003cb1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003cb26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003cb3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003cb07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003cb9b
sub rsp, 0xffffffffffffff80
jmp 0x1400242ac
Function at 0x140004220
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x150
mov rax, qword [0x14005d020]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, r9
mov rsi, rcx
test dl, dl
jne 0x1400042c6
lea r8, str._failed:_LateBindingNotFound
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005cb0
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
lea rcx, [rsi + 0x18]
mov edx, 0xc8
cmovae r8, qword [rsp + 0x20]
call fcn.1400083a0
mov rdx, qword [rsp + 0x38]
mov ebx, 5
cmp rdx, 0x10
jb 0x1400043ba
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043ae
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004415
jmp 0x1400043ae
test r8d, r8d
jne 0x1400043b5
mov qword [rsp + 0x168], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str._failed__lu
mov edx, 0x100
mov r9d, eax
lea rcx, [rsp + 0x40]
mov edi, eax
call fcn.140001bd0
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005cb0
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
lea rcx, [rsi + 0x18]
mov edx, 0xc8
cmovae r8, qword [rsp + 0x20]
call fcn.1400083a0
cmp edi, 2
je 0x14000436d
cmp edi, 5
je 0x140004366
cmp edi, 0xbb9
je 0x14000435f
cmp edi, 0x800b0110
je 0x140004358
cmp edi, 0xe000020b
mov ebx, 3
mov eax, 7
cmovne ebx, eax
jmp 0x140004372
mov ebx, 6
jmp 0x140004372
mov ebx, 8
jmp 0x140004372
mov ebx, 2
jmp 0x140004372
mov ebx, 4
mov rdx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x168]
cmp rdx, 0x10
jb 0x1400043ba
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043ae
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000440f
call fcn.14001f834
jmp 0x1400043ba
mov ebx, 1
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400043ec
cmp ebx, 1
jne 0x1400043d9
mov rax, qword [rax]
mov rax, qword [rax + 0x48]
call qword [case.0x140013bae.0]
test eax, eax
jne 0x1400043ec
mov rcx, qword [rsi + 8]
mov rdx, qword [rcx]
mov ecx, ebx
mov rax, qword [rdx + 0x40]
call qword [case.0x140013bae.0]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001f810
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rsi
ret
call fcn.1400293c8
int3
call fcn.1400293c8
int3
Function at 0x1400047c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14005d020]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
call fcn.140006610
mov rax, qword [rdi]
mov qword [rdi + 8], rax
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r15w
lea r8d, [r15 + 6]
lea rdx, str.Owners
lea rcx, [rsp + 0x50]
call fcn.140005900
nop
lea rdx, [0x14005dbe0]
cmp qword [0x14005dbf8], 8
cmovae rdx, qword [0x14005dbe0]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400049a3
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400049a3
cmp dword [rsp + 0x48], 7
jne 0x1400049a3
mov ecx, dword [rsp + 0x38]
mov eax, 2
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.14001fb98
mov rsi, rax
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000499b
mov ebp, r15d
mov rbx, r14
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], bp
jne 0x140004910
test rbx, rbx
je 0x14000498f
mov rax, rsi
mov qword [rsp + 0x30], rax
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi + 0x10]
je 0x14000495d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov r8, r14
inc r8
cmp word [rax + r8*2], 0
jne 0x140004943
mov rdx, rax
call fcn.140005900
add qword [rdi + 8], 0x20
jmp 0x14000496d
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, rdi
call fcn.140005e10
inc rbx
add rbp, rbx
lea rax, [rsi + rbp*2]
mov rbx, r14
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140004980
test rbx, rbx
jne 0x140004921
mov rcx, rsi
call fcn.14001f834
mov bl, 1
jmp 0x1400049a5
mov rcx, rsi
call fcn.14001f834
xor bl, bl
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400049e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004a10
call fcn.14001f834
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001f810
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400293c8
int3
Function at 0x140008140
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x14005d020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
test rdx, rdx
je 0x140008181
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400081b3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x1400081c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x58
pop r14
pop rdi
pop rsi
pop rbx
ret