joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007c394
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1060
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor ebx, ebx
cmp dword [0x140174f58], ebx
je 0x14007c579
lea rdi, [0x140164e50]
lea rdx, [0x140173f2a]
xor r9d, r9d
mov rcx, rdi
mov r8b, 1
call fcn.140079aac
cmp eax, 1
jne 0x14007c579
cmp dword [0x14016cb10], 3
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rbx
mov r9b, al
lea r8, [rsp + 0x30]
mov rcx, rdi
jne 0x14007c41b
lea rdx, [rsp + 0x40]
call fcn.140078e70
jmp 0x14007c425
lea rdx, [rsp + 0x38]
call fcn.140078d58
cmp qword [rsp + 0x30], rbx
je 0x14007c579
mov edi, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x140174f30]
mov r8, rdi
call fcn.140066384
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007c499
lea rdx, [rsp + 0x50]
lea rcx, [0x140168af0]
movabs r9, 0x7fffffff7fffffff
mov r8, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call fcn.1400679a8
cmp eax, 6
je 0x14007c48f
cmp eax, 1
je 0x14007c48f
cmp eax, 3
jne 0x14007c499
mov rcx, qword [rsp + 0x38]
jmp 0x14007c574
lea rdx, [0x14010ee70]
lea rcx, [rsp + 0x50]
call fcn.1400423b4
mov rdi, rax
cmp rax, rbx
jne 0x14007c4d2
mov ecx, 0x1f6
call fcn.14005fad0
lea r8, [rsp + 0x50]
lea rcx, [0x140173f2a]
mov rdx, rax
call fcn.1400c5d9c
jmp 0x14007c48f
mov eax, dword [0x14016cb10]
cmp eax, 3
jne 0x14007c52e
mov rdx, rdi
mov ecx, 0xff
call fcn.1400ef0f8
mov rdx, rdi
mov ecx, 0xfe
call fcn.1400ef0f8
cmp qword [rsp + 0x30], rbx
jbe 0x14007c55d
mov rax, qword [rsp + 0x40]
mov rdx, rdi
movzx ecx, word [rax + rbx*2]
call fcn.1400ef0f8
mov r11, qword [rsp + 0x40]
mov rdx, rdi
movzx ecx, byte [r11 + rbx*2 + 1]
call fcn.1400ef0f8
inc rbx
cmp rbx, qword [rsp + 0x30]
jb 0x14007c4fe
jmp 0x14007c55d
cmp eax, 2
jne 0x14007c546
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov rdx, rcx
call qword [sym.imp.USER32.dll_CharToOemBuffA]
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r9, rdi
mov edx, 1
call fcn.1400ef054
mov rcx, rdi
call fcn.1400eee40
mov rcx, qword [rsp + 0x38]
call fcn.1400ea9fc
mov rcx, qword [rsp + 0x40]
call fcn.1400ea9fc
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1060
pop rdi
ret
Function at 0x1400821a8
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
cmp dword [0x140157254], 0
jne 0x14008235d
lea r8, str.WinRAR_DragDrop
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140082211
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x5b9
call fcn.14005fad0
mov rcx, rax
call fcn.1400c5808
jmp 0x14008235d
mov ebx, 0x10
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
mov byte [0x140155171], r11b
jne 0x140082241
cmp byte [0x1401561a5], 0
jne 0x140082241
xor sil, sil
jmp 0x140082244
mov sil, 1
mov rcx, rbx
call fcn.1400eade0
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14008226c
lea rax, [0x14010fbf0]
mov qword [rbx], rax
mov dword [rbx + 8], 1
jmp 0x14008226e
xor ebx, ebx
mov ecx, 0xd7f8
call fcn.1400eade0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140082295
xor r8d, r8d
mov dl, sil
mov rcx, rax
call fcn.140081ec8
mov rbp, rax
jmp 0x140082297
xor ebp, ebp
mov byte [0x140155172], 0
mov byte [0x140155173], 1
mov byte [0x140155170], 0
neg sil
sbb r8d, r8d
and r8d, 2
inc r8d
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ole32.dll_DoDragDrop]
mov esi, eax
mov byte [0x140155173], 0
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x10]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x10]
mov ebx, 0x40100
cmp byte [0x140155171], 0
je 0x140082313
cmp byte [0x1401561a5], 0
je 0x140082313
cmp esi, ebx
jne 0x140082313
call fcn.1400bf948
lea rcx, [0x140162bc0]
call fcn.140095078
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x14008235d
cmp byte [0x140155170], 0
jne 0x14008235d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x14008235d
mov ecx, 0x53c
call fcn.14005fad0
mov rcx, rax
call fcn.1400c5808
lea rcx, [0x140149f00]
call fcn.14003c5cc
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140082d9c
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140082e46
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e9d00
add rsp, 0x88
ret
Function at 0x140082f74
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x3060
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x3050], rax
mov sil, dl
mov rdi, rcx
call fcn.140044e3c
cmp eax, 0x600
jb 0x14008313b
mov rcx, rdi
call fcn.1400b5ea0
xor ebx, ebx
cmp al, bl
jne 0x14008313b
mov r12d, 0x800
lea r8, [rsp + 0x50]
lea rcx, [0x140162bc0]
mov r9, r12
mov rdx, rdi
call fcn.14008eb24
lea rdx, [rsp + 0x1050]
lea rcx, [rsp + 0x50]
mov r8, r12
call fcn.140051654
lea rcx, [rsp + 0x1050]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14008313b
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x1050]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
je 0x14008305e
bt dword [rsp + 0x40], 0x13
jb 0x14008313b
test byte [rsp + 0x40], 8
je 0x14008313b
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008309e
test al, 0x10
jne 0x14008309e
lea rcx, [rsp + 0x50]
call fcn.140082bd0
mov ecx, eax
shr ecx, 1
test cl, 1
je 0x140083137
shr eax, 2
test al, 1
je 0x140083137
lea rcx, [rsp + 0x50]
call fcn.140050fc0
lea rcx, [rsp + 0x50]
mov dil, bl
call fcn.140042584
cmp al, bl
jne 0x140083108
mov dil, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2050]
mov r8, r12
call fcn.1400edd2c
lea rcx, [rsp + 0x50]
call fcn.140050fc0
lea r11, [rsp + 0x50]
lea rdx, [rsp + 0x2050]
sub rdx, r11
movzx eax, word [r11]
movzx ecx, word [r11 + rdx]
sub eax, ecx
jne 0x1400830f6
add r11, 2
test ecx, ecx
jne 0x1400830e1
cmp eax, ebx
je 0x140083108
lea rcx, [rsp + 0x50]
call fcn.140042584
cmp al, bl
je 0x1400830b2
lea rcx, [rsp + 0x50]
call fcn.140082bd0
mov ecx, eax
shr eax, 2
shr ecx, 1
and cl, 1
test al, 1
je 0x14008312e
cmp dil, bl
je 0x14008312a
cmp sil, bl
je 0x140083133
cmp cl, bl
jne 0x140083133
mov ebx, 1
mov al, bl
jmp 0x14008313d
mov al, 1
jmp 0x14008313d
xor al, al
mov rcx, qword [rsp + 0x3050]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x3060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1400837fc
Capabilities:
Get file system object information

Disassembly:
push rbx
mov eax, 0x1300
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x12f0], rax
mov qword [rcx], rdx
mov rbx, rcx
lea r8, [rsp + 0x30]
lea rcx, [0x1401098d8]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
jne 0x140083882
lea rcx, [rsp + 0x2f0]
xor r8d, r8d
mov edx, 0x800
call fcn.1400b51e8
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x2f0]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rbx]
mov r9, rax
xor r8d, r8d
mov edx, 0x1109
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x12f0]
xor rcx, rsp
call fcn.1400e9d00
add rsp, 0x1300
pop rbx
ret

Function at 0x140083ce4
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rdx
mov rdi, r8
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x4009
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11d, dword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
xor edx, edx
mov rcx, rbx
mov dword [rdi + 0x24], r11d
mov dword [rsp + 0x20], 0x400b
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11d, dword [rsp + 0x38]
mov dword [rdi + 0x28], r11d
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400e9d00
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret
Function at 0x140085194
Capabilities:
Delete file
Log keystrokes via polling
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x20b0
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x20a0], rax
xor r9d, r9d
mov rsi, rcx
mov rcx, qword [rcx]
lea r8d, [r9 + 9]
mov edx, 0x110a
call qword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
cmp rax, rbp
je 0x1400852d0
mov rcx, qword [rsi]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x113e
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebp
je 0x1400852d0
mov rcx, qword [rsp + 0x88]
cmp rcx, rbp
je 0x1400852d0
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebp
je 0x1400852d0
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x1090]
mov bx, ax
mov r8d, 0x800
shr ebx, 0xf
not bl
and bl, 1
call fcn.140065d2c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1090]
lea r8d, [rbp + 0x38]
repne scasw ax, word [rdi]
xor edx, edx
not rcx
mov word [rsp + rcx*2 + 0x1090], bp
lea rcx, [rsp + 0x20]
call fcn.1400ea880
neg bl
lea rcx, [rsp + 0x20]
sbb ax, ax
mov dword [rsp + 0x28], 3
and ax, 0x40
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x1090]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dl, byte [rsi + 0x10]
mov rcx, rsi
call fcn.1400850a0
mov rcx, qword [rsp + 0x20a0]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x20b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140088424
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r12d, edx
lea rdx, [0x140110140]
call fcn.1400423b4
mov rbp, rax
xor eax, eax
cmp rbp, rax
jne 0x140088478
mov eax, 0x32
jmp 0x1400885cd
mov r13d, 0x1000
cmp r12d, 0x8000
jbe 0x140088585
mov edx, r12d
xor r8d, r8d
mov rcx, rbp
shr edx, 3
add edx, r13d
call fcn.1400ef620
mov r14d, 1
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r9, rbp
mov r8, r13
call fcn.1400ef54c
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140087d70
mov edx, r12d
xor r8d, r8d
shr edx, 2
mov rcx, rbp
mov esi, eax
add edx, r13d
call fcn.1400ef620
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, r14
call fcn.1400ef54c
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140087d70
lea edx, [r12 + r12]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
mov edi, eax
add edx, r13d
call fcn.1400ef620
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, r14
call fcn.1400ef54c
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140087d70
lea edx, [r12 + r12*2]
xor r8d, r8d
shr edx, 2
mov rcx, rbp
mov ebx, eax
add edx, r13d
call fcn.1400ef620
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov rdx, r14
call fcn.1400ef54c
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140087d70
mov rcx, rbp
add eax, ebx
add eax, edi
add eax, esi
cdq
and edx, 3
lea ebx, [rdx + rax]
sar ebx, 2
call fcn.1400eee40
mov eax, ebx
jmp 0x1400885cd
cmp r12d, r13d
jbe 0x140088593
mov rax, r12
sub rax, r13
shr rax, 1
xor r8d, r8d
mov edx, eax
mov rcx, rbp
call fcn.1400ef620
lea rcx, [rsp + 0x20]
mov r9, rbp
mov r8, r13
mov edx, 1
call fcn.1400ef54c
mov rcx, rbp
mov rbx, rax
call fcn.1400eee40
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140087d70
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14008b950
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
mov rbx, rcx
lea rdi, [0x1401106e0]
lea rcx, str.Setup.rar
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.ace
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0xe]
lea rcx, str.Setup.xz
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0xf]
lea rcx, str.Setup.001
mov rdx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
lea rdx, [0x140110538]
mov rcx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0x17]
lea rdx, str.ShellExt
lea rdi, [0x14010eb80]
mov rcx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.14009b808
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14009b808

Function at 0x14008c2d4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [rsp + 0x58]
mov ebx, edx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r11, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
cmp eax, ecx
sete bl
cmp bl, cl
je 0x14008c339
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
cmp eax, 1
mov rax, qword [rcx]
sete bl
call qword [rax + 0x28]
jmp 0x14008c33c
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14008c34c
Capabilities:
Get common file path

Disassembly:
mov edx, 0x10
jmp fcn.14008c2d4
Function at 0x14008c358
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14008c38b
xor al, al
jmp 0x14008c3f0
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov rdx, rdi
call fcn.140065d2c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
lea r8d, [rax + 0x38]
xor edx, edx
repne scasw ax, word [rdi]
xor edi, edi
not rcx
mov word [rsp + rcx*2 + 0x60], di
lea rcx, [rsp + 0x20]
call fcn.1400ea880
lea eax, [rdi + 0x14]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, edi
sete al
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1400e9d00
add rsp, 0x1080
pop rdi
ret
Function at 0x14008f2a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x1012
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 1
mov si, ax
lea ecx, [rbx + 0x11]
shr esi, 0xf
and esi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
lea ecx, [rbx + 0x10]
mov di, ax
shr edi, 0xf
and edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11d, ebx
test byte [rsp + 0x28], bl
jne 0x14008f333
test esi, esi
jne 0x14008f333
test edi, edi
jne 0x14008f333
test r11d, r11d
je 0x14008f335
xor ebx, ebx
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14008f3f4
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2350
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x2340], rax
mov rsi, rcx
mov ebx, 1
xor ebp, ebp
mov ecx, 0x3d4
call fcn.14005fad0
lea rdx, [rsp + 0x340]
movzx ecx, word [rax]
add rax, 2
mov word [rdx], cx
add rdx, 2
cmp cx, bp
jne 0x14008f43f
cmp ebx, 1
jle 0x14008f487
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x340]
repne scasw ax, word [rdi]
lea r8, [0x1401117e0]
mov r9d, ebx
not rcx
mov edx, 0x800
lea rcx, [rsp + rcx*2 + 0x33e]
call fcn.140057264
cmp ebx, 0x3e8
jg 0x14008f4a8
lea rdx, [rsp + 0x340]
mov rcx, rsi
call fcn.14008f348
cmp al, bpl
je 0x14008f4a8
inc ebx
jmp 0x14008f42d
mov rcx, qword [rsi + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x1340]
xor r8d, r8d
mov edx, 0x800
mov rdi, rax
call fcn.1400b51e8
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x1340]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x48]
call fcn.1400ea880
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsi + 0x50]
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x340]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x38], ebp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsi + 0x50]
movsxd r8, edi
xor r9d, r9d
mov edx, 0x1076
mov byte [rsi + 0x78], 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x2340]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x2350]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008f7c4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2040
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbp, rcx
lea rdx, str.RestoreFolder
lea rcx, [0x14010ed68]
mov r8d, 1
call fcn.14009b870
xor edi, edi
mov dword [rsp + 0x20], 0x800
lea r9, [0x1401096a0]
cmp eax, edi
je 0x14008f84d
lea r8, [rsp + 0x30]
lea rdx, str.LastFolder
lea rcx, [0x14010ed68]
call fcn.14009b844
cmp word [rsp + 0x30], di
je 0x14008f8bd
lea rcx, [rsp + 0x30]
call fcn.140042584
cmp al, dil
jmp 0x14008f8a4
lea r8, [rsp + 0x1030]
lea rdx, str.StartFolder
lea rcx, [0x14010ea48]
call fcn.14009b844
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1030]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov word [rsp + 0x102e], di
cmp word [rsp + 0x30], di
je 0x14008f8bd
lea rsi, [rsp + 0x30]
lea rdi, [0x1401098d8]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x14008f8bd
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x107c]
mov r8d, 0x800
call fcn.140065d2c
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1400e9d00
lea r11, [rsp + 0x2040]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140096384
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov rbx, rcx
cmp rcx, r13
je 0x1400964e0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r12, rcx
je 0x1400964e0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, r13d
jne 0x1400963db
xor eax, eax
jmp 0x1400964e5
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rsi, [r12 + r12 + 2]
mov ecx, 0x2002
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r13
je 0x140096431
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, r13
je 0x140096431
lea r8, [r12 + 1]
mov rdx, rax
mov rcx, rbx
call fcn.14006885c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, rsi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r13
je 0x14009648b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
cmp rax, r13
je 0x14009648b
lea r8, [r12 + 1]
mov rdx, rax
mov rcx, rbx
call fcn.14006885c
mov rdx, rbp
mov rcx, rbp
call qword [sym.imp.USER32.dll_CharToOemA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 7
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, rsi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r13
je 0x1400964da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, r13
je 0x1400964da
sub rax, rbx
movzx ecx, word [rbx]
mov word [rax + rbx], cx
add rbx, 2
cmp cx, r13w
jne 0x1400964b2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret