joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a410
Capabilities:
Find process by pid

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0xc0000001
cmp qword [rsp + 0x30], 0
jne 0x14000a47a
mov eax, dword [rsp + 0xb0]
lea rdx, [rsp + 0x30]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x14000a47a
xor al, al
jmp 0x14000a664
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, qword [rsp + 0xc0]
call fcn.140009b00
movzx eax, al
test eax, eax
je 0x14000a61e
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
lea rax, [rcx + rax - 1]
mov rcx, rax
call fcn.140009b00
movzx eax, al
test eax, eax
je 0x14000a61e
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rax
cmp dword [0x140020cfc], 0
jne 0x14000a50a
cmp dword [0x140020cbc], 0
je 0x14000a541
call fcn.1400024f0
cmp dword [0x140020cfc], 0
je 0x14000a51e
call fcn.14000ff00
nop
cmp dword [0x140020cbc], 0
je 0x14000a541
call fcn.140002a90
btr rax, 0x10
mov rcx, rax
call fcn.140002b90
mov dword [rsp + 0x24], 1
cmp dword [0x140020cfc], 0
jne 0x14000a5a0
cmp dword [0x140020cbc], 0
jne 0x14000a564
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x40], rax
jb 0x14000a5a0
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14000ae60
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0x38], eax
je 0x14000a596
mov dword [rsp + 0x20], 0xc0000001
jmp 0x14000a59e
mov dword [rsp + 0x20], 0
jmp 0x14000a5bd
mov eax, dword [rsp + 0xc8]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
cmp dword [0x140020cfc], 0
jne 0x14000a5cd
cmp dword [rsp + 0x24], 0
je 0x14000a61e
mov qword [rsp + 0x50], 0
cmp dword [rsp + 0x24], 0
je 0x14000a5f0
call fcn.140002a90
bts rax, 0x10
mov rcx, rax
call fcn.140002b90
nop
cmp dword [0x140020cfc], 0
je 0x14000a609
call fcn.14000ffc0
mov qword [rsp + 0x50], rax
call fcn.14000ff60
nop
call fcn.140002500
cmp qword [rsp + 0x50], 0
je 0x14000a61e
mov dword [rsp + 0x20], 0xc0000001
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
nop
jmp 0x14000a62f
cmp qword [rsp + 0xb8], 0
jne 0x14000a646
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
nop
cmp dword [rsp + 0x20], 0
jl 0x14000a657
mov dword [rsp + 0x28], 1
jmp 0x14000a65f
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140012d80
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14000a870
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [0x1400161b8], 0
jne 0x14000a955
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
je 0x14000a8b5
xor eax, eax
jmp 0x14000a95c
cmp dword [rsp + 0x34], 0xa
jb 0x14000a944
cmp dword [rsp + 0x3c], 0x3839
jb 0x14000a944
call fcn.140002ab0
and rax, 0xfffffffffffff000
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetVirtualForPhysical]
mov qword [rsp + 0x28], rax
movabs rax, 0xffffff8000000000
mov rcx, qword [rsp + 0x28]
and rcx, rax
mov rax, rcx
mov qword [0x1400161b8], rax
movabs rax, 0x7ffffffff8
mov rcx, qword [0x1400161b8]
add rcx, rax
mov rax, rcx
mov qword [0x140020ce0], rax
movabs rax, 0x7b7ffffff8
mov rcx, qword [0x1400161b8]
add rcx, rax
mov rax, rcx
mov qword [0x140020ce8], rax
jmp 0x14000a955
movabs rax, 0xfffff68000000000
mov qword [0x1400161b8], rax
mov rax, qword [0x1400161b8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140012d80
add rsp, 0x168
ret
Function at 0x14000e6e0
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x268
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd rax, dword [rsp + 0x270]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x270]
mov dword [rsp + 0x20], eax
lea r9, [0x140017220]
lea r8, [0x140013400]
mov edx, 0xc8
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_swprintf_s
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x110], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rax, qword [rsp + 0x60]
add rax, 0x110
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x24
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x70]
mov edx, 0x10100005
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140012d80
add rsp, 0x268
ret
Function at 0x1000011e0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000f6188]
jne 0x100030424
rol rcx, 0x10
test cx, 0xffff
jne 0x100030420
ret 0
ror rcx, 0x10
jmp 0x1000862f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000f6750]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000f6848]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100086375
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000f6750]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100086397
mov rax, qword [rsp + 0x88]
mov qword [0x1000f6848], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000f67e8], rax
mov rax, qword [0x1000f6848]
mov qword [0x1000f66c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000f67d0], rax
mov dword [0x1000f66b0], 0xc0000409
mov dword [0x1000f66b4], 1
mov rax, qword [0x1000f6188]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000f6190]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000d5c60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x100006118
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
xor ebx, ebx
cmp dword [rcx - 8], ebx
je 0x100006170
mov qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x100006170
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x10000a41c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov esi, 0x80004005
xor edi, edi
and qword [r11 - 0x30], rdi
and qword [r11 - 0x28], rdi
and qword [r11 - 0x50], rdi
lea rcx, [r11 - 0x50]
mov qword [r11 - 0x68], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1000b2e98]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000a558
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rdi
mov eax, dword [rsp + 0xa0]
add eax, eax
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [rsp + 0xa0], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10000a4e7
cmp dword [rsp + 0xa8], 1
jne 0x1000310eb
mov esi, dword [rsp + 0x30]
shr esi, 1
mov dword [rsp + 0xa0], esi
xor eax, eax
test eax, eax
jne 0x10000a546
mov ecx, esi
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.10000640c
mov rsi, rax
test rax, rax
je 0x10000a546
lea r9, [rsp + 0xa0]
mov r8, rax
lea rdx, str.QatItems
lea rcx, [rsp + 0x50]
call fcn.10000b6f8
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.10000b580
mov rcx, rsi
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x40]
test rdi, rdi
je 0x10000a556
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
xor esi, esi
test rdi, rdi
jne 0x1000310fe
test esi, esi
js 0x10000a5a6
test rbx, rbx
je 0x10000a5a6
and dword [rsp + 0xa0], 0
and dword [rsp + 0xa4], 0
mov rax, qword [rbx]
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [rax + 0x28]
mov r11, qword [rbp]
mov rdx, rbx
mov rcx, rbp
call qword [r11 + 0x20]
mov esi, eax
test rbx, rbx
je 0x10000a5b4
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0xa8], 2
je 0x10000a4d8
jmp 0x10000a546
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x10000a561
Function at 0x10000b6f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov eax, dword [r9]
mov rbx, r8
mov rdi, r9
add eax, eax
xor esi, esi
lea rdx, str.QatItems
mov dword [r9], esi
mov rcx, qword [rcx]
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x18]
lea r9, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x10000b77f
cmp dword [rsp + 0x68], 1
jne 0x10003140b
mov ecx, dword [rsp + 0x30]
cmp rbx, rsi
je 0x10000b779
cmp ecx, esi
je 0x100031422
test cl, 1
jne 0x100031416
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x100031420
shr ecx, 1
xor eax, eax
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x68], 2
je 0x10000b74e
mov eax, SafeArrayGetDim
jmp 0x10000b77f
jmp 0x100031416
mov word [rbx], si
jmp 0x10000b779
Function at 0x10001234c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rax + 0x18], 4
mov dword [rax + 0x10], ebx
mov qword [rax + 0x20], rbx
mov dword [rax + 8], ebx
cmp rcx, rbx
je 0x1000123e5
cmp word [rcx], bx
je 0x1000123e5
lea rax, [rax + 0x20]
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000123e5
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, str.ComCheckOn
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000123da
cmp dword [rsp + 0x40], 4
jne 0x1000123da
lea eax, [rbx + 1]
cmp dword [rsp + 0x48], eax
cmove ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x100012f18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100012f5f
cmp rcx, 0xffffffffffffffff
je 0x100012f5f
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100012f5d
cmp dword [rcx + 0x3c], edx
jl 0x100012f5d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100012f5d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100012f5f
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10001477c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [rax + 0x20], rbx
lea rcx, [0x10009df50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0xe0], rax
mov edi, 0x80004005
test rsi, rsi
je 0x1000148c1
movdqu xmm0, xmmword [0x1000b2f48]
movdqu xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x60]
call fcn.1000149a4
test eax, eax
js 0x1000310cf
and dword [rsp + 0xd8], ebx
and dword [rsp + 0xdc], ebx
mov rax, qword [rsi]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, rsi
call qword [rax + 0x28]
lea r11d, [rbx + 0xd]
mov word [rsp + 0x70], r11w
mov qword [rsp + 0x78], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x70]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov rbx, qword [rsp + 0xe8]
mov rax, qword [rbx]
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [rax + COleVariant::COleVariant]
test eax, eax
jne 0x1000148a4
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rsp + 0xe0], 0
mov rax, qword [rbx]
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call qword [rax + 0x110]
nop
mov eax, 0xfff
cmp word [rsp + 0x70], ax
je 0x1000310c0
lea rcx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x1000148c1
and qword [rsp + 0xe8], 0
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1000b2e98]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10001496b
mov rsi, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x100014960
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor edi, edi
test rsi, rsi
jne 0x1000310dc
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
test rbx, rbx
je 0x100014988
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
mov eax, 8
mov word [rsp + 0x70], ax
jmp 0x1000148b4
mov rbx, qword [rsp + 0xe8]
jmp 0x1000148c1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x10001496b
Function at 0x100024f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x280], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov rsi, rdx
lea rax, [rsp + 0x50]
mov rbp, r8
mov rbx, rcx
lea rdx, str.SoftwareMicrosoftInternet_ExplorerActiveX_Compatibility
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100024fcc
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
mov rdx, rbx
call fcn.100027a48
test eax, eax
js 0x100024fcc
bt dword [rsp + 0x40], 0xa
jb 0x10003d71c
xor edi, edi
jmp 0x100024fcc
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x100024fdc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x10003d876
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000011e0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x100024fcc
xor ebx, ebx
lea rcx, [rsp + 0x70]
lea rdx, str.SoftwareMicrosoftInternet_ExplorerActiveX_Compatibility
mov r8d, 0x76
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0xe6]
xor edx, edx
mov r8d, 0x192
call sub.msvcrt.dll_memset
lea r8, [0x1000cc908]
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x58], 0x4e
call fcn.1000159d0
test eax, eax
js 0x100024fcc
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1000159d0
test eax, eax
js 0x100024fcc
lea rax, [rsp + 0x58]
lea r8, str.AlternateCLSID
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov r9d, 0x20000002
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100024fcc
movdqu xmm0, xmmword [0x1000cc8a8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x100024fcc
test rbp, rbp
je 0x10003d837
lea rcx, [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
call fcn.1000278e0
test eax, eax
jne 0x100024fcc
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.100024e00
test eax, eax
jne 0x10003d867
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.100027a48
test eax, eax
js 0x10003d857
bt dword [rsp + 0x40], 0xa
jae 0x10003d867
add ebx, edi
cmp ebx, 0xa
jge 0x100024fcc
jmp 0x10003d734
movdqu xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rsi], xmm0
jmp 0x100024fcc
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
jmp 0x100024fea
Function at 0x1000275e8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x230], rax
and qword [rdx], 0
mov rbx, rcx
mov ecx, CSocketFile::CSocketFile
mov rsi, rdx
call fcn.10000640c
mov rdi, rax
test rax, rax
je 0x10003b723
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10003b762
cmp eax, 0x104
ja 0x10003b762
lea rcx, [rsp + 0x20]
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10003b74d
mov qword [rsi], rdi
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000011e0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea r9, [0x10009df50]
lea rdx, str.GetTempDirFile
lea rcx, str.Error:_Func__s_Line__d:_Out_of_memory_for_temp_file_name
mov r8d, 0x319
call fcn.10002025c
mov eax, 0x8007000e
jmp 0x100027670
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x326
lea rcx, str.Error:_Func__s_Line__d:_GetTempFileName_failed
jmp 0x10003b775
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x321
lea rcx, str.Error:_Func__s_Line__d:_GetTempPath_failed
lea r9, [0x10009df50]
lea rdx, str.GetTempDirFile
mov ebx, eax
call fcn.10002025c
test ebx, ebx
je 0x10002766b
mov rcx, rdi
call sub.msvcrt.dll_free
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x100027670
Function at 0x100027a48
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
and dword [r8], 0
mov rax, rdx
mov rsi, rcx
lea rdx, [r11 - 0x18]
mov rcx, rax
mov rdi, r8
call qword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test eax, eax
js 0x100027ab2
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10003d520
mov ebx, 1
jmp 0x100027ab2
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x10003d57e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100027ad0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x38]
and dword [rsp + 0x70], 0
and dword [rsp + 0x78], 0
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x70]
lea rdx, str.Compatibility_Flags
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100027ab2
cmp dword [rsp + 0x70], 4
jne 0x100027ab2
mov eax, dword [rsp + 0x78]
mov dword [rdi], eax
jmp 0x100027ab2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x100027ac0

Function at 0x10002e720
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
cmp dword [0x1000f613c], esi
jne 0x10002e77b
mov edi, esi
lea rbx, [0x1000f7068]
cmp dword [rbx - 8], esi
jne 0x10002e761
cmp qword [rbx], rsi
jne 0x10002e7a0
lea rax, [0x1000f7518]
add rbx, 0x50
cmp rbx, rax
jl 0x10002e757
mov dword [0x1000f613c], 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000011e0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x10002e7f3
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp rax, rsi
je 0x10002e7f3
mov word [rax], si
mov r8, qword [rbx]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1000159d0
movzx edi, ax
cmp edi, esi
jne 0x10002e7fb
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
and edi, 0x10
cmp edi, esi
je 0x1000383b7
mov qword [rbx], rsi
jmp 0x10002e761
movsxd rdx, dword [rbx + 8]
mov rcx, qword [rbx]
lea r8, [rsp + 0x20]
call fcn.1000107d4
movzx edi, ax
cmp edi, esi
jne 0x10002e7fb
jmp 0x10002e761
Function at 0x10002f150
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, rcx
cmp rax, qword [rcx + 0x1f8]
je 0x10002f187
cmp rax, qword [rcx + 0x278]
je 0x10002f187
cmp rax, qword [rcx + 0x358]
jne 0x10002f22a
call fcn.10002f110
mov rcx, qword [rbx + 0xc0]
mov r9, rdi
xor r8d, r8d
mov edx, COleControlSite::XOleClientSite::AddRef
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x100
xor esi, esi
cmp dword [rdi + 8], eax
je 0x100032e00
call sub.MFC42u.dll_Ordinal_1471
cmp rax, rsi
je 0x100032e60
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + pe_nt_image_headers64]
mov rcx, rax
jmp 0x10002f1d3
cmp rcx, rsi
je 0x10002f1e8
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x130]
cmp eax, esi
jne 0x10002f1f3
mov rdx, rdi
mov rcx, rbx
call sub.MFC42u.dll_RFX_Long_Bulk
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp rax, qword [rcx + 0x438]
je 0x10002f187
jmp 0x10002f1a4
cmp qword [rdi + 0x10], 9
jne 0x100032e27
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r8d, esi
lea edx, [rsi + 9]
cmp ax, si
mov rcx, rbx
setl r8b
call fcn.100041dd0
jmp 0x100032e4d
cmp dword [rdi + 8], eax
jne 0x10002f1b4
cmp qword [rdi + 0x10], 0x1b
jne 0x10002f1b4
mov rcx, qword [rbx + 0x488]
mov edx, 2
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp al, sil
je 0x10002f1b4
mov eax, 1
jmp 0x10002f1f3
mov rcx, rsi
jmp 0x10002f1d3