joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9450
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400d9519
mov r8, rdx
mov ecx, 0x1f0001
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x1400d94ab
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400d951b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400d94bd
mov eax, 2
jmp 0x1400d951b
cmp edi, 1
jne 0x1400d9519
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1401e7e40
lea rdx, str.Global_
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [rsi]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rsi
mov rax, qword [rax + 0x338]
call qword [case.0x1400136d6.0]
test eax, eax
je 0x1400d951b
bts eax, 0x1f
jmp 0x1400d951b
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400d9540
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x1400d95b1
mov r8, rdx
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x1400d9579
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400d9588
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
cmp eax, 5
jne 0x1400d95a5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x20]
mov eax, 2
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400d95c0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400d9614
mov rdi, qword [rcx + 0x1a8]
test rdi, rdi
je 0x1400d9607
call fcn.1401ce6e4
mov qword [rax + 0x18], rdi
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x1400d9607
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x1b0], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400d96ae
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x1400d9642
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x1b0], 0
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbx + 0x1b0], rax
test rax, rax
je 0x1400d9694
cmp qword [rbx + 0x1a8], 0
jne 0x1400d9677
call fcn.1401ce6e4
mov rcx, qword [rax + 0x10]
mov qword [rbx + 0x1a8], rcx
mov rbx, qword [rbx + 0x1b0]
call fcn.1401ce6e4
mov qword [rax + 0x18], rbx
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [0x1402bbd98], 0x47
mov eax, 0x80010047
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 0x80010060
mov dword [0x1402bbd98], 0x60
add rsp, 0x20
pop rdi
ret
Function at 0x1400d9a20
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, r8
mov esi, r9d
mov rbp, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1401e7e40
test rbp, rbp
je 0x1400d9b96
mov ecx, dword [rsp + 0x4b0]
test ecx, ecx
je 0x1400d9a97
cmp ecx, 1
jne 0x1400d9b96
lea rdx, str.MISC
jmp 0x1400d9a9e
lea rdx, [0x140251dfc]
mov rax, qword [rbx]
lea r8, [rsp + 0x240]
mov r9d, 0x104
mov rcx, rbx
mov rax, qword [rax + 0x250]
call qword [case.0x1400136d6.0]
test eax, eax
jne 0x1400d9bb7
call fcn.14018d2c0
lea rdx, [rsp + 0x30]
call fcn.14018d3d0
mov ebx, eax
test eax, eax
jne 0x1400d9bb7
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400d9b65
mov r8, rbp
lea rcx, [rsp + 0x240]
mov edx, 0x104
call fcn.1401ec614
mov r8, rbp
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1401ec614
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400d9b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1400d9b65
mov dword [0x1402bbd98], 0xc
mov eax, 0x8001000c
jmp 0x1400d9bb7
mov edx, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test rdi, rdi
je 0x1400d9bb5
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.1401e7e40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
jbe 0x1400d9ba7
mov dword [0x1402bbd98], 1
mov eax, 0x80010001
jmp 0x1400d9bb7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d9c70
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call fcn.1401e7e40
mov rdx, rsi
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x480]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [rsp + 0x480]
lea rdx, str._s.
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400d9df8
test byte [rsp + 0x20], 0x10
je 0x1400d9da9
lea rdx, [0x140252314]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400d9da2
lea rdx, [0x140255880]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400d9da2
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x480]
lea rdx, [0x1402528f8]
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [rbx]
lea rdx, [rsp + 0x270]
mov rcx, rbx
mov rax, qword [rax + 0x358]
call qword [case.0x1400136d6.0]
test byte [rsp + 0x20], 0x10
jne 0x1400d9dd9
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x480]
lea rdx, [0x1402528f8]
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400d9d32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400db4f0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400db5a7
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400db5a7
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400db5a7
xor edx, edx
lea ecx, [rax + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x58
ret
Function at 0x1400db5c0
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x78], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400db61d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
sete bl
jmp 0x1400db767
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400db65d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400db65d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400db769
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400db754
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400db74b
lea rax, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r8d, 0x20
mov dword [rsp + 0x40], ebx
mov dl, 2
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400db74b
mov qword [rsp + 0xa8], rsi
mov esi, ebx
cmp dword [rdi], ebx
jbe 0x1400db738
mov qword [rsp + 0xa0], rbp
mov ebp, 1
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x70]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rdi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
cmovne ebx, ebp
inc esi
cmp esi, dword [rdi]
jb 0x1400db710
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rsi, qword [rsp + 0xa8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0xb0]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0x90
pop rbx
ret
Function at 0x1400db790
Capabilities:
Delete directory
Get common file path
Get program files directory

Disassembly:
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x990], rax
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1401e7e40
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.1401e7e40
call fcn.14018d2c0
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov edx, 0x26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x1400db880
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1400db880
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400136d6.0]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400136d6.0]
lea rax, str.Canon_
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x140252608]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.140051530
lea rax, str.InstTemp_
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x1402528f8]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x360]
mov qword [rsp + 0x20], rax
call fcn.140051530
lea rax, str.InstRestore
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x140254b50]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x20], rax
call fcn.140051530
lea rax, str.PrinterDriver_
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x1402528f8]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x780]
mov qword [rsp + 0x20], rax
call fcn.140051530
lea rax, str.color_
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [0x1402528f8]
lea rax, [rbp + 0x150]
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x570]
mov qword [rsp + 0x20], rax
call fcn.140051530
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rbp + 0x570]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rbp + 0x780]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.1401e2900
add rsp, 0xaa0
pop rbp
ret
Function at 0x1400f1560
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
mov rbx, rcx
lea rdx, str.CBaseDlgMgr::DestroyUSBWait
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea r14, [0x1402a8360]
lea rbp, [0x1402bbdb0]
mov rax, qword [0x1402a8360]
cmp rax, r14
je 0x1400f15ee
test byte [rax + 0x1c], 1
je 0x1400f15ee
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x31
lea r8, [0x14025f1b8]
mov rcx, qword [rax + 0x10]
call fcn.140001ad0
mov rax, qword [0x1402a8360]
xor edi, edi
test rsi, rsi
je 0x1400f16af
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0xc0]
call qword [case.0x1400136d6.0]
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x1400f1628
mov rax, qword [rcx]
lea edx, [rdi + 1]
mov rax, qword [rax + 8]
call qword [case.0x1400136d6.0]
mov qword [rbx + 0x90], rdi
mov rcx, qword [rbx + 0x88]
cmp dword [rcx - 0x10], edi
je 0x1400f16a6
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [0x1402a8360]
cmp rax, r14
je 0x1400f16be
test byte [rax + 0x1c], 2
je 0x1400f16be
mov rbx, rbp
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x30]
call fcn.14001b0b0
mov edx, 0x32
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x14025f1b8]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rax, qword [0x1402a8360]
jmp 0x1400f16be
mov edi, 0x80010001
mov dword [0x1402bbd98], 1
mov cl, 1
mov byte [rsp + 0x38], cl
cmp rax, r14
je 0x1400f1706
test byte [rax + 0x1c], cl
je 0x1400f1706
mov r9, rbp
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x33
mov dword [rsp + 0x20], edi
lea r8, [0x14025f1b8]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
movzx ecx, byte [rsp + 0x38]
mov rax, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test cl, cl
jne 0x1400f175f
cmp rax, r14
je 0x1400f175f
test byte [rax + 0x1c], 1
je 0x1400f175f
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rbp, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbp
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400f80c0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rdi, rcx
mov ebx, r8d
xor ecx, ecx
mov dword [rsp + 0x20], send
mov rsi, rdx
mov dword [rsp + 0x28], ecx
lea rax, [0x140251dfc]
mov dword [rsp + 0x44], ecx
mov rcx, qword [rdi + 0x368]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, 0x1004
mov dword [rsp + 0x30], 0xf000
mov dword [rsp + 0x2c], 0x1000
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x368]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x24], eax
mov edx, 0x104d
mov qword [rsp + 0x48], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x368]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rdi + 0x328]
mov r9, rsi
xor r8d, r8d
lea edx, [rax - 1]
call fcn.1401c88b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140100b30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rdx
mov rdi, rcx
mov edx, 1
call fcn.1401c326c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x438]
call qword [case.0x1400136d6.0]
cmp dword [rsi + 8], 0xf
mov ebx, eax
jne 0x140100c4c
mov rax, qword [rsi]
cmp rax, qword [rdi + 0x40]
je 0x140100be9
cmp rax, qword [rdi + 0x518]
je 0x140100be9
lea rcx, [rdi + 0x130]
call fcn.1401cb968
mov rax, qword [rax + 0x40]
cmp qword [rsi], rax
je 0x140100be9
lea rcx, [rdi + 0x218]
call fcn.1401cb968
mov rax, qword [rax + 0x40]
cmp qword [rsi], rax
je 0x140100be9
lea rcx, [rdi + 0x300]
call fcn.1401cb968
mov rax, qword [rax + 0x40]
cmp qword [rsi], rax
je 0x140100be9
lea rcx, [rdi + 0x3e8]
call fcn.1401cb968
mov rax, qword [rax + 0x40]
cmp qword [rsi], rax
jne 0x140100c4c
mov dword [rsp + 0x40], 0x2c
test ebx, ebx
jne 0x140100bfe
lea rcx, [rdi + 0x130]
jmp 0x140100c26
cmp ebx, 1
jne 0x140100c0c
lea rcx, [rdi + 0x218]
jmp 0x140100c26
cmp ebx, 2
jne 0x140100c1a
lea rcx, [rdi + 0x300]
jmp 0x140100c26
cmp ebx, 3
jne 0x140100c30
lea rcx, [rdi + 0x3e8]
lea rdx, [rsp + 0x40]
call fcn.1401c0244
mov rcx, qword [rdi + 0x40]
lea rdx, [rsp + 0x5c]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebp, ebp
mov rcx, rdi
movzx ebx, ax
mov dword [rsp + 0x3c], ebp
mov rax, qword [rdi]
mov qword [rsp + 0x20], rbp
mov rax, qword [rax + 0x438]
call qword [case.0x1400136d6.0]
mov r14d, eax
bt ebx, 0xf
jae 0x140100d41
cmp dword [rsi + 8], 0x100
jne 0x140100d41
cmp qword [rsi + 0x10], 9
jne 0x140100d41
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rcx, qword [rdi + 0x518]
and eax, 0x8000
test r14d, r14d
jne 0x140100cc3
test eax, eax
setne bpl
lea r8, [rbp + 1]
jmp 0x140100ce0
cmp r14d, 1
jne 0x140100cd7
test eax, eax
mov r8d, 2
cmovne r8, rbp
jmp 0x140100ce0
test eax, eax
setne bpl
mov r8, rbp
xor r9d, r9d
mov edx, 0x130c
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [rsp + 0x20]
mov edx, 0xbc4
mov rcx, rdi
call fcn.1401c5898
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140100d3a
mov rcx, qword [rdi + 0x40]
lea r9, [rsp + 0x28]
mov qword [rsp + 0x28], rdx
mov r8d, 0xbc4
mov edx, 0x4e
mov dword [rsp + 0x38], 0xfffffdd9
mov qword [rsp + 0x30], 0xbc4
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x140100d4c
mov rdx, rsi
mov rcx, rdi
call fcn.1401c6d80
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14010e410
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x130]
mov rbx, rcx
mov edx, 2
mov rcx, rdi
call fcn.1401ba5c0
lea r8, [rbx + 0x218]
mov edx, 0x3e8
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1401d2e58
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.1401d2f04
xor ebp, ebp
mov dword [rbx + 0x14], 1
mov rsi, rax
mov rcx, rax
cmp dword [rbx], ebp
je 0x1401d2edb
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, eax
mov rcx, rdi
lea ebx, [rax + 1]
call fcn.1401bb71c
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1401d2eb8
mov eax, ebp
jmp 0x1401d2ec5
movsxd rdx, dword [rcx - 0xc]
call fcn.1401eca00
test eax, eax
js 0x1401d2ef8
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1401d2ef8
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bp
jmp 0x1401d2ee3
mov rdx, qword [rdi]
call fcn.1401d82dc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001470
int3
Function at 0x140110490
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rdx, str.CBaseInfoAddIn::DeleteRestoreFile
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea rbp, [0x1402a8360]
lea rsi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rbp
je 0x140110516
test byte [rcx + 0x1c], 1
je 0x140110516
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
lea r8, [0x1402608d8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0xb0]
call qword [case.0x1400136d6.0]
lea rcx, [rdi + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140110550
mov edx, 0x20
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x228]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140110580
mov edx, 0x20
lea rcx, [rdi + 0x228]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x228]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x430]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401105b0
mov edx, 0x20
lea rcx, [rdi + 0x430]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rdi + 0x430]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov byte [rsp + 0x38], al
mov rcx, qword [0x1402a8360]
cmp rcx, rbp
je 0x140110603
test byte [rcx + 0x1c], al
je 0x140110603
mov r9, rsi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, socket
mov dword [rsp + 0x20], 0
lea r8, [0x1402608d8]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x38]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test al, al
jne 0x14011065c
cmp rcx, rbp
je 0x14011065c
test byte [rcx + 0x1c], 1
je 0x14011065c
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rsi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret