joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180072c90
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x28], rsi
lea ecx, [rsi + 1]
call fcn.18017df2c
mov qword [rsp + 0x28], rax
mov byte [rax], sil
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call fcn.180180610
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180072d10
cmp dword [rsp + 0x34], 6
setae cl
mov rax, qword [rsp + 0x28]
mov byte [rax], cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.18000e140
test al, al
je 0x180072d3b
lea rcx, [rsp + 0x28]
call fcn.18000d250
test al, al
jne 0x180072d3b
xor bl, bl
jmp 0x180072dd5
lea rbx, [rdi + 8]
mov rdx, rbx
xor ecx, ecx
call fcn.18012fd10
test al, al
jne 0x180072d5e
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180072d5b
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x28]
mov rdx, rbx
mov ecx, 0x1a
call fcn.18012fd10
test al, al
jne 0x180072d84
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180072d81
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x48]
mov rdx, rbx
mov ecx, 2
call fcn.18012fd10
test al, al
jne 0x180072daa
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180072da7
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x68]
mov rdx, rbx
mov ecx, SHCreateMemStream
call fcn.18012fd10
test al, al
jne 0x180072dd0
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x180072dcd
mov rbx, qword [rbx]
mov word [rbx], si
mov byte [rdi], 1
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.18000c9b0
movzx eax, bl
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18017df00
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180072ed0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x180072f17
mov rdx, qword [r8]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
je 0x180072f33
mov rax, rdx
cmp word [rax], 0x25
je 0x180072f6b
add rax, 2
sub rcx, 1
jne 0x180072f23
mov rdx, rdi
mov rcx, rbp
call fcn.180009740
nop
mov dword [rsp + 0x20], 1
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18017df00
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x180072f33
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x180072f33
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180009740
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x180072f97
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x180073017
mov rdx, rdi
mov rcx, rbp
call fcn.180009740
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x180072ffe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180072ff9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800730b7
call fcn.18017e41c
movdqa xmm0, xmmword [0x1801f3a80]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
jmp 0x180072f47
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18017ea5c
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x180073042
mov rdi, qword [rdi]
lea r8d, [r14 + 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x18007307c
cmp eax, r14d
ja 0x18007307c
mov eax, eax
mov word [rsi + rax*2], r15w
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x180073062
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180009930
mov rcx, rsi
call fcn.18017e41c
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x1801f3a80]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x180072ffe
call fcn.180182c3c
int3
Function at 0x180085f70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180086025
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180085ff1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180086010
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180086010
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180086010
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180270788], 0
jne 0x180086070
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180086060
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180270780], rax
mov byte [0x180270788], 1
jmp 0x180086077
mov rax, qword [0x180270780]
mov byte [0x180270788], 1
jmp 0x180086077
mov rax, qword [0x180270780]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x180085ffa
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x1800861a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r14
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.1800860a0
mov ebx, eax
test eax, eax
jne 0x1800862d9
mov dword [rsp + 0x60], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1800862b2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800861a0
mov ebx, eax
test eax, eax
jne 0x1800862d9
mov dword [rsp + 0x60], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180086261
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800862c7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov rdx, rsi
mov rcx, rdi
call fcn.180085f70
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800862ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov eax, ebx
mov dword [rsp + 0x50], r14d
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18017df00
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180086910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.180180610
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1800869b5
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1800869b5
call fcn.180085cd0
mov ebx, eax
jmp 0x180086ad7
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1800869d6
call fcn.180085cd0
jmp 0x180086ac6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800869f9
call fcn.180085cd0
jmp 0x180086ac6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180086a1b
mov ebx, 0x8007000e
jmp 0x180086ac8
mov ecx, eax
test eax, eax
je 0x180086a50
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180086b0f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180086a50
lea rcx, [rsp + 0x70]
call fcn.18008a1f0
jmp 0x180086a5a
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180086a6d
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x180086a7e
mov ebx, 0x8007000e
jmp 0x180086ac8
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180086aa3
call fcn.180085cd0
jmp 0x180086ac6
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.180087920
mov ebx, eax
test rdi, rdi
je 0x180086ad7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180086aee
lea rcx, [rsp + 0x70]
call fcn.18008a1e0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.180084510
int3
Function at 0x18008af70
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx], rax
mov rdi, r8
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
lea rcx, [rsp + 0x24]
call fcn.180180610
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18008afef
cmp dword [rsp + 0x24], 6
mov eax, 0x48
jae 0x18008aff4
mov eax, 0x40
mov rcx, rdi
mov dword [rbx], eax
mov dword [rbx + 4], 0
call qword [sym.imp.USER32.dll_GetParent]
or dword [rbx + 4], 1
mov qword [rbx + 8], rax
mov rax, rbx
mov qword [rbx + 0x10], rdi
mov rcx, qword [0x18026e010]
mov qword [rbx + 0x28], rcx
mov rcx, qword [rsp + 0x188]
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x38], 0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017df00
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret

Function at 0x18008fa30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, qword [rsp + 0x60]
mov rsi, rcx
mov ecx, 0x12
mov rbp, r9
mov r15, r8
mov dword [r14], 0
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x10
shr ebx, 5
and ebx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x11
or edi, 1
and al, 0x80
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [rsi + 8]
mov ebx, edi
or ebx, 2
and al, 0x80
mov rax, qword [rcx]
cmove ebx, edi
call qword [rax + 0x10]
test rax, rax
je 0x18008facb
mov r10, qword [rax]
mov r9d, ebx
mov r8d, ebp
mov edx, r15d
mov rcx, rax
call qword [r10 + VarUI4FromDisp]
test al, al
je 0x18008facb
mov dword [r14], 1
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18008faf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, qword [rsp + 0x60]
mov r15, rcx
mov ecx, 0x12
mov rsi, r9
mov rbp, r8
mov dword [r14], 0
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x10
shr ebx, 5
and ebx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x11
or edi, 1
and al, 0x80
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [r15 + 8]
mov ebx, edi
or ebx, 2
and al, 0x80
mov rax, qword [rcx]
cmove ebx, edi
call qword [rax + 0x10]
test rax, rax
je 0x18008fb83
mov r10, qword [rax]
mov r9d, ebx
mov r8d, esi
mov edx, ebp
mov rcx, rax
call qword [r10 + 0x108]
test al, al
jne 0x18008fb9f
cmp dword [r14], 0
jne 0x18008fba6
mov rcx, qword [r15 + 8]
mov r9d, ebx
mov r8d, esi
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
je 0x18008fba6
mov dword [r14], 1
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18009de00
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, dword [rsp + 0x90]
mov rdi, rdx
mov rsi, rcx
lea rdx, [rsp + 0x34]
mov rcx, rdi
mov r14, r9
mov rbp, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov qword [rsp + 0x28], 0
mov r8d, ebx
mov dword [rsp + 0x30], eax
mov rcx, rdi
mov rax, qword [rsp + 0x30]
cmp rax, rbp
cmovb rax, rbp
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
shr rax, 0x20
mov dword [rsp + 0x20], edx
mov r9d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x18009de86
call fcn.180085cd0
jmp 0x18009def0
mov rax, qword [rsp + 0x30]
mov r8, r14
mov edx, dword [rsp + 0x98]
sub rax, r14
test rbp, rbp
mov qword [rsp + 0x28], 0
mov r9d, r14d
cmove rbp, rax
shr r8, 0x20
mov qword [rsi + 8], rbp
mov rcx, qword [rsi + 0x10]
mov dword [rsi + 0x20], edx
mov qword [rsi + 0x18], r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rsi], rax
test rax, rax
jne 0x18009deee
call fcn.180085cd0
mov rcx, qword [rsi + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov qword [rsi + 0x10], 0
jmp 0x18009def0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18009f100
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x18009f12a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x48]
mov qword [rbx + 0x38], 0
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbx + 0x250]
cmp qword [rcx], 0
je 0x18009f141
add rsp, 0x20
pop rbx
jmp fcn.1800a05a0
add rsp, 0x20
pop rbx
ret
Function at 0x18009f700
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rcx
mov rdi, qword [rcx + 0x258]
test rdi, rdi
je 0x18009f75a
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18009f75a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
nop
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x18009f75a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdi, [rbx + 0x38]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rdi]
xor esi, esi
test rcx, rcx
je 0x18009f782
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi], rsi
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov qword [rsp + 0x48], rdi
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009f799
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi], rsi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18009f7e8
mov rax, qword [rbx + 0x28]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
cmp rdx, 0x1000
jb 0x18009f7d6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18009f84a
mov rcx, r8
call fcn.18017e41c
nop
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009f83a
mov rdx, qword [rbx + 8]
call fcn.18009c530
nop
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x18009f829
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18009f850
mov rcx, r8
call fcn.18017e41c
nop
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.180182c3c
nop
call fcn.180182c3c
nop
int3
Function at 0x18009fa30
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x40
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov qword [r11 - 0x20], rcx
lea rax, vtable.RC::RCMiniUIGifSkin.0
mov qword [rcx], rax
xor ebp, ebp
mov qword [r11 - 0x18], rbp
mov rdi, qword [rcx + 8]
mov qword [r11 - 0x18], rdi
test rdi, rdi
je 0x18009fa8e
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009fa8e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x18009faed
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.18009c530
nop
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rsi, qword [rbx + 0x20]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18009fada
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rsi + 0x38], rbp
lea rcx, [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsi + 0x250]
cmp qword [rcx], 0
je 0x18009faed
call fcn.1800a05a0
nop
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x14], 0x64
mov dword [rbx + 0x1c], ebp
test rdi, rdi
je 0x18009fb14
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009fb0f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov qword [rsp + 0x30], rbp
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x18009fb38
mov rcx, rdi
call fcn.18009f700
nop
mov edx, 0x260
mov rcx, rdi
call fcn.18017e41c
nop
mov qword [rbx + 0x20], rbp
mov rcx, rbx
call fcn.1800be1a0
nop
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017df00
nop
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18009fe40
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x18009fe94
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009fe94
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [rbx + 0x20]
test rsi, rsi
je 0x18009feef
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.18009c530
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rsi, qword [rbx + 0x20]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18009fedd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbp
lea rcx, [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsi + 0x250]
cmp qword [rcx], 0
je 0x18009feef
call fcn.1800a05a0
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x14], 0x64
mov dword [rbx + 0x1c], ebp
test rdi, rdi
je 0x18009ff15
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009ff10
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], rbp
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017df00
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1800a1a80
Capabilities:
Get file version info

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1802707a0]
test eax, eax
jne 0x1800a1b62
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x40], rdi
lea rcx, str.mshtml.dll
mov dword [rsp + 0x28], eax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x1800a1b47
mov edx, edi
mov qword [rsp + 0x50], rbx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1800a1b42
mov edx, dword [rsp + 0x28]
lea rcx, str.mshtml.dll
mov r9, rax
mov r8d, edi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1800a1b39
lea r9, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
lea rdx, [0x1801e0d10]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1800a1b39
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 0xa]
mov dword [0x1802707a0], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
mov eax, dword [0x1802707a0]
mov ecx, 6
mov rdi, qword [rsp + 0x40]
test eax, eax
cmove eax, ecx
mov dword [0x1802707a0], eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x48
ret