joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180085ec0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x180085f05
mov ebx, 1
jmp 0x180085f56
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x180085f4c
test ecx, ecx
je 0x180085f51
add rsi, rcx
sub edi, ecx
jne 0x180085f10
jmp 0x180085f51
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x180085f6f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x1800868e0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18008691b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x18008691b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.18007ca60
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1800882c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.18007ebe0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180005de4
test rbx, rbx
je 0x180088529
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x180088529
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.18007ebe0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.180005de4
test rbx, rbx
je 0x180088523
lea rdx, str.GetFileVersionInfoExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r15, r15
je 0x180088435
test rax, rax
je 0x180088435
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.18000618c
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x180088523
mov edx, edi
mov ecx, 1
call fcn.1800b5d60
mov rbx, rax
mov rcx, r14
call fcn.18000618c
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rsp + 0x70]
xor ecx, ecx
call r15
test eax, eax
jne 0x1800884af
mov rcx, rbx
call fcn.1800adc4c
movzx eax, sil
jmp 0x18008852b
lea rdx, str.GetFileVersionInfoW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x180088523
test rax, rax
je 0x180088523
mov rcx, r14
call fcn.18000618c
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x180088523
mov edx, edi
mov ecx, 1
call fcn.1800b5d60
mov rbx, rax
mov rcx, r14
call fcn.18000618c
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x18008851b
test rbx, rbx
je 0x180088523
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x1800fa730]
mov rcx, rbx
call rbp
test eax, eax
je 0x18008851b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18008851b
cmp dword [rsp + 0x74], 0
jbe 0x18008851b
cmp dword [rcx], 0xfeef04bd
jne 0x18008851b
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r13], eax
movzx eax, word [rcx + 0xe]
mov rdx, qword [rsp + 0x30]
mov dword [rdx], eax
movzx eax, word [rcx + 0xc]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov sil, 1
mov rcx, rbx
call fcn.1800adc4c
movzx eax, sil
jmp 0x18008852b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800887a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.1800a7878
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.1800aaeb0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180088807
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x150
pop rbx
ret
Function at 0x18008aeb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18008af28
lea rcx, [rsp + 0x28]
call fcn.180005e80
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18008af40
test al, al
je 0x18008af1c
lea rcx, [rsp + 0x28]
call fcn.18000618c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.180005de4
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x18008bd40
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14d, r8d
mov r12, rdx
mov r15, rcx
xor edi, edi
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x48]
call fcn.18000e6f0
nop
cmp r8d, 0x3fe
jbe 0x18008be0f
lea ecx, [r14 + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800a7c24
mov r12, rax
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18000e700
mov rdx, r12
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18008bde7
cmp eax, r14d
ja 0x18008bde7
mov ecx, eax
mov word [r12 + rcx*2], di
lea ecx, [rax + 1]
mov word [r12 + rcx*2], di
mov r14d, eax
jmp 0x18008be3f
lea rcx, [rsp + 0x48]
call fcn.18000e6e0
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, r14
add rax, rax
cmp rax, 0x800
jae 0x18008bf23
mov word [rax + rdx], di
lea eax, [r14 + 1]
mov ecx, eax
add rcx, rcx
cmp rcx, 0x800
jae 0x18008bf1d
mov word [rcx + rdx], di
mov ebx, edi
test r14d, r14d
je 0x18008bf0c
mov rbp, r12
nop dword [rax]
cmp word [rbp], 0
jne 0x18008befd
cmp edi, ebx
je 0x18008befd
mov eax, edi
lea rdx, [r12 + rax*2]
lea rcx, [rsp + 0x28]
call fcn.180005e38
nop
lea rcx, [rsp + 0x28]
call fcn.180005ea0
mov rdx, rax
mov rcx, r15
call fcn.1800069ac
mov rcx, rdx
test al, al
je 0x18008bed7
call fcn.180005ea0
mov rdx, rax
mov rcx, r15
call fcn.1800068e0
mov rsi, rax
mov rcx, rdx
call fcn.180005ea0
mov rdi, rax
mov rdx, qword [rsi]
mov ecx, 0x20
call fcn.180005ca4
mov r8, rax
mov rcx, rdi
call fcn.180005ea0
mov rdx, rax
mov rcx, r8
call fcn.180005dec
add qword [rsi], 0x20
jmp 0x18008bef0
call fcn.180005ea0
mov r8, rax
mov rcx, r15
call fcn.1800068e0
mov rdx, qword [rax]
call fcn.180007cf4
nop
lea rcx, [rsp + 0x28]
call fcn.180005de4
lea edi, [rbx + 1]
inc ebx
add rbp, 2
cmp ebx, r14d
jb 0x18008be50
lea rcx, [rsp + 0x48]
call fcn.18000e6e0
mov al, 1
jmp 0x18008bdf3
call fcn.1800a71dc
int3
call fcn.1800a71dc
int3
Function at 0x180092ac0
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, r9
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
xor edi, edi
test rax, rax
je 0x180092b0e
mov dword [rax], edi
mov dword [r9], edi
cmp qword [rcx], 0xffffffffffffffff
je 0x180092c6c
mov eax, 0x100000
mov ebp, r12d
cmp r12d, eax
cmova ebp, eax
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
cmp qword [rsi + 0x28], 0
je 0x180092c39
test edx, edx
je 0x180092c39
mov ecx, dword [rsp + 0x68]
cmp ecx, ebp
jae 0x180092c3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rbx, rdi
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x180092b89
xor dil, dil
jmp 0x180092bbc
mov dword [rsp + 0x6c], edi
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180092bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180092bae
xor dil, dil
jmp 0x180092bbc
mov ebx, dword [rsp + 0x6c]
shl rbx, 0x20
add rbx, rdi
mov dil, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x48]
call fcn.180007554
nop
mov rcx, qword [rsi + 0x28]
mov r10, qword [rcx]
mov r9, r14
xor r8d, r8d
test dil, dil
cmovne r8, rbx
mov rdx, rax
call qword [r10 + 0x30]
mov edx, eax
xor edi, edi
test eax, eax
jne 0x180092c39
mov dword [rsp + 0x70], edi
mov edx, dword [rsp + 0x68]
add rdx, r15
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
mov ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x70]
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x180092b67
jmp 0x180092c3d
mov ecx, dword [rsp + 0x68]
add dword [r13], ecx
test edx, edx
jne 0x180092c60
test ecx, ecx
je 0x180092c5c
mov eax, ecx
add r15, rax
sub r12d, ecx
mov eax, 0x100000
jne 0x180092b20
mov al, 1
jmp 0x180092c6e
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180092c6c
mov dword [rax], edx
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800985a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, VarUI4FromDisp
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.1800aaeb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180098620
cmp dword [rsp + 0x24], 6
jb 0x180098620
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x150
pop rbx
ret

Function at 0x180098640
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.18007ebe0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.180005de4
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.18007ebe0
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.180005de4
test rbx, rbx
je 0x180098796
test rdi, rdi
je 0x180098796
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800c3228
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800c30c8
call fcn.1800adc2c
mov dword [rax], 0x16
call fcn.1800adadc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800c30b0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800c30b0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800c30fa
lock or dword [rax + 0x14], 0x10
jmp 0x1800c30b0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800c3117
mov rcx, qword [rbp + 0x10]
call fcn.1800c61bc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800c190c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800c1e64
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800c316e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800c30b0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800c31da
mov rcx, qword [rbp + 0x10]
call fcn.1800c190c
cmp eax, 0xffffffff
je 0x1800c31c1
mov rcx, qword [rbp + 0x10]
call fcn.1800c190c
cmp eax, 0xfffffffe
je 0x1800c31c1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800c190c
movsxd rdi, eax
lea rsi, [0x180137280]
mov rcx, rbx
sar rdi, 6
call fcn.1800c190c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800c31c8
lea rax, [0x180134520]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800c31da
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800c3210
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800c320c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800c320c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800c30b3
jmp 0x1800c3080
Function at 0x1800d18e0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1800d195e
and dword [rsp + 0x2c], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
and dword [rsp + 0x28], 0
mov r9d, 2
and qword [rsp + 0x30], 0
mov rdx, 0xffffffff80000002
call fcn.180002900
mov rbx, qword [rsp + 0x20]
test eax, eax
jne 0x1800d1950
lea rdx, str.6B3BA4A8_EC7E_4714_9ECF_EB33995B3384
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x1800d195e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x180137a48]
test rbx, rbx
je 0x1800d1994
jmp 0x1800d198e
call qword [rbx + 0x38]
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rax
call fcn.180004cd8
test eax, eax
js 0x1800d19ee
xor ecx, ecx
call qword [rbx + 8]
test eax, eax
js 0x1800d19ee
add rbx, 0x48
cmp qword [rbx], 0
jne 0x1800d196c
mov rax, qword [0x1801379d8]
test rax, rax
je 0x1800d19a6
call rax
test eax, eax
js 0x1800d19ee
mov rbx, qword [0x180137f30]
xor eax, eax
mov rcx, qword [0x180137f38]
jmp 0x1800d19e9
mov rdi, qword [rbx]
test rdi, rdi
je 0x1800d19e5
call qword [rdi + 0x30]
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rax
call fcn.180004cd8
test eax, eax
js 0x1800d19ee
xor ecx, ecx
call qword [rdi + 8]
test eax, eax
js 0x1800d19ee
mov rcx, qword [0x180137f38]
add rbx, 8
cmp rbx, rcx
jb 0x1800d19b8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800d1a0c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rbp - 8], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov r14d, 1
test eax, eax
js 0x1800d1b49
and dword [rbp - 0x14], 0
lea rdi, str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
and qword [rbp - 0x20], 0
lea r9d, [r14 + 1]
and dword [rbp - 0x18], 0
lea rcx, [rbp - 0x20]
and qword [rbp - 0x10], 0
mov rbx, 0xffffffff80000002
mov r8, rdi
mov rdx, rbx
call fcn.180002900
test eax, eax
je 0x1800d1af5
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionShell_Extensions
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.180002848
test eax, eax
jne 0x1800d1aab
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1800d1aa7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
mov r8, rdi
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180002848
test eax, eax
jne 0x1800d1ad6
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1800d1ad2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
mov r9d, 2
lea rcx, [rbp - 0x20]
mov r8, rdi
mov rdx, rbx
call fcn.180002900
test eax, eax
je 0x1800d1af5
mov rcx, qword [rbp - 0x20]
jmp 0x1800d1b3e
lea rbx, str.2345SoftMgr_Shell_Extension
mov rcx, rbx
call fcn.1800adc54
mov r9d, r14d
lea rdx, str.6B3BA4A8_EC7E_4714_9ECF_EB33995B3384
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x1800d1b49
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test rcx, rcx
je 0x1800d1b49
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x180137a48]
test rbx, rbx
je 0x1800d1b84
jmp 0x1800d1b7e
mov ecx, r14d
call qword [rbx + 8]
test eax, eax
js 0x1800d1be6
call qword [rbx + 0x38]
mov rcx, qword [rbx]
mov r8d, r14d
mov rdx, rax
call fcn.180004cd8
test eax, eax
js 0x1800d1be6
add rbx, 0x48
cmp qword [rbx], 0
jne 0x1800d1b57
mov rbx, qword [0x180137f30]
xor eax, eax
mov rdx, qword [0x180137f38]
jmp 0x1800d1bc8
mov rdi, qword [rbx]
test rdi, rdi
je 0x1800d1bc4
mov ecx, r14d
call qword [rdi + 8]
test eax, eax
js 0x1800d1be6
call qword [rdi + 0x30]
mov rcx, qword [rdi]
mov r8d, r14d
mov rdx, rax
call fcn.180004cd8
test eax, eax
js 0x1800d1be6
mov rdx, qword [0x180137f38]
add rbx, 8
cmp rbx, rdx
jb 0x1800d1b96
test eax, eax
js 0x1800d1be6
mov rdx, qword [0x1801379d0]
test rdx, rdx
je 0x1800d1be6
mov rcx, qword [0x180136118]
call rdx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800a70a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800d2818
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x60
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rbx + 0x18]
call fcn.1800aaeb0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x76
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
lea r8, str.LastLoadedDPI
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800d289e
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18006d830
mov ebx, eax
mov edx, 0x64
mov ecx, ebx
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, 0x51eb851f
shl ecx, 4
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0xd0
pop rbx
ret

Function at 0x1800d28e4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp + 0x27]
call fcn.1800d31cc
nop
xor edi, edi
cmp qword [rbp + 0x37], rdi
je 0x1800d29e1
movdqa xmm0, xmmword [0x180100790]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], di
mov r8, qword [rbx + 0x50]
cmp r8, qword [rbx + 0x58]
jne 0x1800d2957
lea rdx, [0x1800fa7c0]
lea rcx, [rbp + 7]
call fcn.18006e130
jmp 0x1800d2971
cmp qword [r8 + 0x18], 8
jb 0x1800d2961
mov r8, qword [r8]
lea rdx, [0x1800fa810]
lea rcx, [rbp + 7]
call fcn.18006e130
mov dword [rbp - 0x69], 0x70
mov dword [rbp - 0x65], 0x540
mov qword [rbp - 0x61], rdi
lea rax, str.Open
mov qword [rbp - 0x59], rax
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov qword [rbp - 0x51], rax
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], 1
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rbp - 0x31]
call fcn.1800aaeb0
lea rcx, [rbp - 0x69]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lea rcx, [rbp + 7]
call fcn.180005ea4
nop
lea rcx, [rbp + 0x27]
call fcn.180005ea4
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a70a0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800d43b4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x60
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rbx + 0x18]
call fcn.1800aaeb0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x76
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
lea r8, str.LastLoadedDPI
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800d443a
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18006d830
mov ebx, eax
mov edx, 0x64
mov ecx, ebx
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, 0x51eb851f
shl ecx, 4
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0xd0
pop rbx
ret