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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400137ea
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001378b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140014590
mov rsi, rax
test rax, rax
je 0x1400137e1
mov rcx, qword [0x1400ca740]
mov rdx, r13
call fcn.14001fff4
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.140014534
mov rcx, rsi
mov rbx, rax
call fcn.14001450c
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.140014014
mov qword [rbp], rax
test rax, rax
je 0x140013781
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x1400137e1
mov rcx, rsi
call fcn.140014548
jmp 0x1400137e1
mov rcx, qword [0x1400c9abc]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400137e1
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001400c
mov rcx, qword [0x1400c9abc]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x1400136ac
Function at 0x140013808
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov ebp, r8d
mov qword [rax - 0x28], rdi
mov r13, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400137ea
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test bpl, 1
je 0x14001378b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140014590
mov rsi, rax
test rax, rax
je 0x1400137e1
mov rcx, qword [0x1400ca740]
mov rdx, r13
call fcn.14001fff4
mov r13d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r13d
mov rbp, rax
call fcn.140014534
mov rcx, rsi
mov rbx, rax
call fcn.14001450c
mov r8d, r13d
mov edx, ebx
mov rcx, rax
call fcn.140014014
mov qword [rbp], rax
test rax, rax
je 0x140013781
mov qword [rbp + 0x20], rsi
mov rdi, rbp
jmp 0x1400137e1
mov rcx, rsi
call fcn.140014548
jmp 0x1400137e1
mov rcx, qword [0x1400c9abc]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400137e1
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r13
call fcn.14001400c
mov rcx, qword [0x1400c9abc]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
jmp 0x1400136ac
Function at 0x140013ba0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14d, edx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [0x1400ca740]
mov edi, r8d
xor r12d, r12d
call fcn.140020094
mov rbx, rax
test rax, rax
je 0x140013b84
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r12
je 0x140013a82
mov rcx, r13
call fcn.14001419c
jmp 0x140013a00
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r12b
jne 0x1400139f5
mov rcx, qword [rbx + 0x20]
call fcn.14001456c
mov esi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r14d
mov byte [rbx + 0x2c], sil
call fcn.140013810
lea r11, [rsp + 0x88]
lea r8, [0x1400138bc]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], r12d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140013a5d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x140013a6c
mov edx, edi
mov rcx, r13
call fcn.1400142b0
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, esi
jmp 0x140013b30
mov esi, 1
mov ebp, r12d
test sil, r14b
cmovne ebp, esi
test r14b, 2
je 0x140013b3d
mov rcx, rax
call fcn.140013bac
lea rcx, [rbx + 8]
lea edx, [rsi + 0x1f]
call fcn.140020990
mov rcx, qword [0x1400ca760]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r12, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x140013b84
mov rcx, qword [rsp + 0x30]
mov byte [r12 + 9], bpl
mov byte [r12 + 8], sil
mov qword [r12], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp edi, 0xffffffff
je 0x140013b1a
mov r8, r12
mov edx, edi
mov rcx, r13
call fcn.1400141cc
jmp 0x140013b28
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x140013b84
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp edi, 0xffffffff
je 0x140013b62
mov edx, edi
mov rcx, r13
call fcn.1400142b0
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x140013b84
mov r12, rsi
mov byte [rbx + 0x2c], sil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
or r8d, 0xffffffff
xor edx, edx
jmp 0x14001399c
Function at 0x140014e3c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140014eb3
movsxd rdx, ecx
lea rcx, [0x140014d98]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400ca7e8]
test rbx, rbx
je 0x140014f26
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140014ea9
cmp byte [rbx + 0x20], 0
je 0x140014ea9
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140014e6f
jmp 0x140014f26
mov rbx, qword [0x1400ca7e8]
test rbx, rbx
je 0x140014f26
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140014f1e
cmp byte [rbx + 0x21], 0
je 0x140014ee2
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140014f0e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400ca7e8]
call fcn.1400209d4
mov rbx, rdi
test rdi, rdi
jne 0x140014ebf
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001ac38
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rdi, rax
test rax, rax
je 0x14001ace1
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14001ace1
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14001ace1
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14001ace1
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14001ace1
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14001ace1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14001ad8b
test rbx, rbx
je 0x14001ad20
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14001ad13
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14001ad13
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14001ad20
mov edx, 1
mov rcx, rbx
call fcn.14001abe4
test rdi, rdi
je 0x14001ad3a
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14001ad8b
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14001ad8b
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14001ad8b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14001ad8b
mov rcx, qword [0x1400cb2d0]
lea rdx, [rdi - 1]
call fcn.140020094
test rax, rax
je 0x14001ad8b
mov rax, qword [rax + 0x10]
jmp 0x14001ad8d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001bc84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140020e60
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x14001bcf6
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001bced
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.140020fe0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bdc4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001bdd7
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14001bdd9
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001bde0
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001bdfb
test rdx, rdx
je 0x14001bdfb
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cdqe
jmp 0x14001bdfd
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001be20
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
or rbx, 0xffffffffffffffff
test rcx, rcx
je 0x14001bf52
cmp byte [rcx], 0
je 0x14001bf52
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rbp + 0x24], 0
call sub.msvcrt.dll_strlen
mov r11, rax
cdqe
lea rcx, [rsp + rax + 0x1f]
cmp r11d, 2
je 0x14001be82
cmp r11d, 3
jne 0x14001bebc
cmp byte [rsp + 0x21], 0x3a
jne 0x14001bebc
cmp r11d, 2
jne 0x14001bea0
lea rdx, [0x14006ef08]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x14001bf52
jmp 0x14001bf2a
mov byte [rcx], 0
dec rcx
cmp byte [rcx], 0x5c
je 0x14001beb6
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x14001befc
test byte [rbp + 0x30], 0x10
je 0x14001bee7
mov rbx, 0xfffffffffffffffe
jmp 0x14001bef4
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001bf52
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x14001bf0b
cmp al, 0x5c
je 0x14001bf16
cmp byte [rsp + 0x20], 0x2e
jne 0x14001bf52
cmp al, 0x2e
jne 0x14001bf52
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14001bf33
test al, 0x10
je 0x14001bf52
mov rbx, 0xfffffffffffffffe
jmp 0x14001bf52
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rbp
ret
Function at 0x14001bf70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14001bfb6
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14001c6c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14001c738
test r8d, r8d
je 0x14001c738
mov rdx, rcx
mov rcx, qword [0x1400cb360]
call fcn.140020094
test rax, rax
je 0x14001c734
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14001c721
mov rcx, rax
call fcn.14001cb40
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001c750
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
mov ebp, 0x1000
mov r12d, edx
mov ecx, ebp
call fcn.140020e60
mov rcx, qword [0x1400cb360]
mov rdx, rbx
mov rsi, rax
mov rdi, rax
call fcn.140020094
mov rbx, rax
test rax, rax
je 0x14001c89f
mov qword [rsp + 0x60], r13
xor r13d, r13d
nop word [rax + rax]
mov byte [rsp + 0x70], r13b
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14001c7c4
mov r8d, 1
mov rcx, rbx
call fcn.14001cc40
mov dword [rsp + 0x78], eax
jmp 0x14001c7dd
mov rcx, qword [rbx]
lea r9, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx edx, byte [rsp + 0x70]
test dl, dl
je 0x14001c7f0
mov byte [rdi], dl
movzx edx, byte [rsp + 0x70]
inc rdi
mov rcx, rdi
movsxd rax, ebp
sub rcx, rsi
cmp rcx, rax
jl 0x14001c81e
add ebp, 0x1000
mov edx, r12d
sub edi, esi
mov ecx, ebp
call fcn.140020e60
movzx edx, byte [rsp + 0x70]
movsxd rdi, edi
mov rsi, rax
add rdi, rax
test dl, dl
je 0x14001c89a
cmp dword [rsp + 0x78], r13d
je 0x14001c837
cmp dl, 0xd
je 0x14001c837
cmp dl, 0xa
jne 0x14001c7a0
dec rdi
cmp dl, 0xd
jne 0x14001c89a
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14001c85a
mov r8d, 1
mov rcx, rbx
call fcn.14001cc40
jmp 0x14001c873
mov rcx, qword [rbx]
lea r9, [rsp + 0x78]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x70], 0xa
je 0x14001c89a
cmp qword [rbx + 8], r13
je 0x14001c885
inc dword [rbx + 0x14]
jmp 0x14001c89a
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13, qword [rsp + 0x60]
sub esi, edi
mov byte [rdi], 0
lea ecx, [rbp + rsi]
call fcn.140020fe0
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001c8c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400cb360]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.140020094
mov rdi, rax
test rax, rax
je 0x14001c964
cmp qword [rax + 8], rbx
je 0x14001c927
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14001cc40
test rax, rax
je 0x14001c914
inc dword [rdi + 0x14]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c976
cmp dword [rsp + 0x58], ebx
je 0x14001c976
mov rcx, qword [rdi]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 0xffffffff
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001c990
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400cb360]
call fcn.140020094
mov rbx, rax
test rax, rax
je 0x14001c9e4
cmp qword [rax + 8], 0
je 0x14001c9c2
cmp dword [rax + 0x1c], 0
jne 0x14001c9c2
mov rcx, rax
call fcn.14001bf70
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, r11
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x14001c9f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400cb360]
mov byte [rsp + 0x48], 0
call fcn.140020094
test rax, rax
je 0x14001ca4e
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14001ca31
mov r8d, 1
mov rcx, rax
call fcn.14001cc40
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14001ca60
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400cb360]
mov dword [rsp + 0x48], 0
call fcn.140020094
test rax, rax
je 0x14001cac1
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14001caa4
mov r8d, 4
mov rcx, rax
call fcn.14001cc40
movsxd rax, dword [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14001cad0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400cb360]
mov byte [rsp + 0x48], 0
call fcn.140020094
test rax, rax
je 0x14001cb2f
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14001cb12
mov r8d, 1
mov rcx, rax
call fcn.14001cc40
movsx rax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsx rax, byte [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14001cb40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x14001cb8a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x14001cbc6
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14001cbbf
dec edx
je 0x14001cbb7
cmp edx, 2
je 0x14001cbb1
mov rdx, rsi
jmp 0x14001cc14
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14001cc1c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14001cc1c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14001cc1c
mov rcx, rbx
call fcn.14001bf70
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14001cc09
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14001cc40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r12d
jne 0x14001cc74
call fcn.14001bf70
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r12d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x14001ccd9
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14001cccf
dec rax
je 0x14001ccc1
cmp rax, 2
je 0x14001ccb5
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x14001cd54
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x14001cd54
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x14001cd54
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x14001cd54
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x14001cd21
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r12d
add eax, ebp
cdqe
jmp 0x14001cd57
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd r11, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, r11
mov rcx, rsi
mov dword [rbx + 0x14], r11d
cmovg rdi, r11
mov dword [rbx + 0x18], r11d
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbp + rdi]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x14001cd6c
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x14001cd8e
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov ebx, eax
call qword [sym.imp.USER32.DLL_CloseClipboard]
movsxd rax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14001cd98
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x14001ce2e
lea rsi, [0x14006eb78]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001ce28
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001ce28
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret