joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029c6c
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 0x140029d15
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140029d15
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140029d15
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140029d15
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140029d15
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 0x140029d15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x140029dbf
test rbx, rbx
je 0x140029d54
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140029d47
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140029d47
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140029d54
mov edx, 1
mov rcx, rbx
call fcn.140029c18
test rdi, rdi
je 0x140029d6e
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x140029dbf
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x140029dbf
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x140029dbf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x140029dbf
mov rcx, qword [0x1400ce800]
lea rdx, [rdi - 1]
call fcn.1400315ac
test rax, rax
je 0x140029dbf
mov rax, qword [rax + 0x10]
jmp 0x140029dc1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140029fdc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.140032340
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14002a01b
cmp byte [rbx + rdi - 1], 0x5c
je 0x14002a01b
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1400323f0
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14002a11c
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.140032340
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 0x14002a18e
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a185
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.1400323f0
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 0x14002a310
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14002a383
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14002a36f
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14002a362
cmp al, 0x5c
je 0x14002a362
cmp al, 0x2f
jne 0x14002a36f
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14002a350
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14002a385
xor eax, eax
add rsp, 0x138
ret

Function at 0x14002a390
Capabilities:
Set current directory

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

Function at 0x14002a3ac
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002a3d7
test dl, 2
je 0x14002a3ca
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14002a3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002a3ac

Function at 0x14002a3e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002a3d7
test dl, 2
je 0x14002a3ca
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x14002a3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002a3ac

Function at 0x14002a3e8
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14002a403
test rdx, rdx
je 0x14002a403
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cdqe
jmp 0x14002a405
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002a428
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 0x14002a561
cmp byte [rcx], 0
je 0x14002a561
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 0x14002a48a
cmp r11d, 3
jne 0x14002a4be
cmp byte [rsp + 0x21], 0x3a
jne 0x14002a4be
cmp r11d, 2
jne 0x14002a4a8
lea rdx, [0x140081c7c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x14002a561
jmp 0x14002a539
cmp byte [rcx], 0x5c
je 0x14002a4c8
cmp byte [rcx], 0x2f
jne 0x14002a4d0
mov byte [rcx], 0
dec rcx
jmp 0x14002a4be
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x14002a50b
test byte [rbp + 0x30], 0x10
je 0x14002a4f6
mov rbx, 0xfffffffffffffffe
jmp 0x14002a503
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14002a561
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x14002a51a
cmp al, 0x5c
je 0x14002a525
cmp byte [rsp + 0x20], 0x2e
jne 0x14002a561
cmp al, 0x2e
jne 0x14002a561
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002a542
test al, 0x10
je 0x14002a561
mov rbx, 0xfffffffffffffffe
jmp 0x14002a561
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 0x14002a580
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 0x14002a5c6
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 0x14002ace0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400ce860]
call fcn.1400315ac
mov rbx, rax
test rax, rax
je 0x14002ad34
cmp qword [rax + 8], 0
je 0x14002ad12
cmp dword [rax + 0x1c], 0
jne 0x14002ad12
mov rcx, rax
call fcn.14002a580
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 0x14002ad40
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400ce860]
mov byte [rsp + 0x48], 0
call fcn.1400315ac
test rax, rax
je 0x14002ad9e
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002ad81
mov r8d, 1
mov rcx, rax
call fcn.14002b250
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 0x14002adb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400ce860]
mov dword [rsp + 0x48], 0
call fcn.1400315ac
test rax, rax
je 0x14002ae11
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002adf4
mov r8d, 4
mov rcx, rax
call fcn.14002b250
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 0x14002ae20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400ce860]
mov byte [rsp + 0x48], 0
call fcn.1400315ac
test rax, rax
je 0x14002ae7f
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002ae62
mov r8d, 1
mov rcx, rax
call fcn.14002b250
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 0x14002ae90
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 0x14002af08
test r8d, r8d
je 0x14002af08
mov rdx, rcx
mov rcx, qword [0x1400ce860]
call fcn.1400315ac
test rax, rax
je 0x14002af04
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14002aef1
mov rcx, rax
call fcn.14002b380
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 0x14002af20
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.140032340
mov rcx, qword [0x1400ce860]
mov rdx, rbx
mov rsi, rax
mov rdi, rax
call fcn.1400315ac
mov rbx, rax
test rax, rax
je 0x14002b06f
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 0x14002af94
mov r8d, 1
mov rcx, rbx
call fcn.14002b250
mov dword [rsp + 0x78], eax
jmp 0x14002afad
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 0x14002afc0
mov byte [rdi], dl
movzx edx, byte [rsp + 0x70]
inc rdi
mov rcx, rdi
movsxd rax, ebp
sub rcx, rsi
cmp rcx, rax
jl 0x14002afee
add ebp, 0x1000
mov edx, r12d
sub edi, esi
mov ecx, ebp
call fcn.140032340
movzx edx, byte [rsp + 0x70]
movsxd rdi, edi
mov rsi, rax
add rdi, rax
test dl, dl
je 0x14002b06a
cmp dword [rsp + 0x78], r13d
je 0x14002b007
cmp dl, 0xd
je 0x14002b007
cmp dl, 0xa
jne 0x14002af70
dec rdi
cmp dl, 0xd
jne 0x14002b06a
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14002b02a
mov r8d, 1
mov rcx, rbx
call fcn.14002b250
jmp 0x14002b043
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 0x14002b06a
cmp qword [rbx + 8], r13
je 0x14002b055
inc dword [rbx + 0x14]
jmp 0x14002b06a
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.1400323f0
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002b090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400ce860]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.1400315ac
mov rdi, rax
test rax, rax
je 0x14002b134
cmp qword [rax + 8], rbx
je 0x14002b0f7
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14002b250
test rax, rax
je 0x14002b0e4
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 0x14002b146
cmp dword [rsp + 0x58], ebx
je 0x14002b146
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 0x14002b160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400ce860]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.1400315ac
mov rbx, rax
test rax, rax
je 0x14002b240
test rsi, rsi
je 0x14002b1eb
cmp byte [rsi], bpl
je 0x14002b1eb
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14002b1c8
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14002b380
mov dword [rsp + 0x60], eax
jmp 0x14002b1e6
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x50]
mov r8d, 2
lea rdx, [0x140081c80]
cmp qword [rbx + 8], rbp
je 0x14002b219
mov rcx, rbx
call fcn.14002b380
mov rdx, rax
mov eax, dword [rsp + 0x60]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x68]
add eax, edx
cdqe
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
movsxd rax, dword [rsp + 0x60]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002b250
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 0x14002b284
call fcn.14002a580
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 0x14002b2e9
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14002b2df
dec rax
je 0x14002b2d1
cmp rax, 2
je 0x14002b2c5
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x14002b364
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x14002b364
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x14002b364
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x14002b364
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 0x14002b331
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 0x14002b367
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 0x14002b380
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 0x14002b3ca
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 0x14002b406
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14002b3ff
dec edx
je 0x14002b3f7
cmp edx, 2
je 0x14002b3f1
mov rdx, rsi
jmp 0x14002b454
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14002b45c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14002b45c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14002b45c
mov rcx, rbx
call fcn.14002a580
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14002b449
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 0x14002c558
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 0x14002c57a
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 0x14002c584
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 0x14002c61a
lea rsi, [0x140081363]
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 0x14002c614
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14002c614
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

Function at 0x14002ca88
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ce8c0], eax
add rsp, 0x28
ret
Function at 0x14002caec
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14002cb61
mov eax, dword [rcx + 0xf4]
mov dword [rcx + 0x108], eax
mov eax, dword [rcx + 0xf8]
mov dword [rcx + 0x10c], eax
call qword [rbx + 0xb0]
mov rdi, rax
test rax, rax
jne 0x14002cb61
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14002cb39
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400cc720]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400ce8c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400ce8d0], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002cc70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400ce8d0]
test rbx, rbx
je 0x14002ccca
mov rcx, rbx
call qword [rbx + 0xb8]
mov r11, qword [rbx + 0xe0]
test r11, r11
je 0x14002cca2
mov edx, 1
mov rcx, rbx
call r11
mov rcx, qword [0x1400cc720]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400ce8c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400ce8d0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14002e534
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400cc720]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400ce8c0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400ce8d0], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x14002cf14]
mov qword [rbx], rax
lea rax, [0x14002cffc]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x14002d0ac]
mov qword [rbx + 0x10], rax
lea rax, [0x14002d270]
mov qword [rbx + 0x18], rax
lea rax, [0x14002d378]
mov qword [rbx + 0x20], rax
lea rax, [0x14002d3ec]
mov qword [rbx + 0x28], rax
lea rax, [0x14002d434]
mov qword [rbx + 0x30], rax
lea rax, [0x14002d448]
mov qword [rbx + 0x38], rax
lea rax, [fcn.14002d45c]
mov qword [rbx + 0x40], rax
lea rax, [0x14002d890]
mov qword [rbx + 0x48], rax
lea rax, [fcn.14002d634]
mov qword [rbx + 0x50], rax
lea rax, [0x14002d8a8]
mov qword [rbx + 0x58], rax
lea rax, [0x14002da0c]
mov qword [rbx + 0x60], rax
lea rax, [0x14002db88]
mov qword [rbx + 0x68], rax
lea rax, [0x14002d128]
mov qword [rbx + 0x70], rax
lea rax, [0x14002dc6c]
mov qword [rbx + 0x78], rax
lea rax, [0x14002cf44]
mov qword [rbx + 0x80], rax
lea rax, [0x14002dd5c]
mov qword [rbx + 0x88], rax
lea rax, [0x14002deb0]
mov qword [rbx + 0x90], rax
lea rax, [0x14002df30]
mov qword [rbx + 0x98], rax
lea rax, [0x14002e024]
mov qword [rbx + 0xa0], rax
lea rax, [0x14002e210]
mov qword [rbx + 0xa8], rax
lea rax, [0x14002e3b0]
mov qword [rbx + 0xb0], rax
lea rax, [0x14002e498]
mov qword [rbx + 0xb8], rax
lea rax, [0x14002e35c]
mov qword [rbx + 0xc0], rax
lea rax, [0x14002e300]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140054170
Capabilities:
Encode data using xor

Disassembly:
mov rdx, rcx
test rcx, rcx
je 0x14005422e
mov rax, qword [rcx]
xor r8d, r8d
lea r11, [0x140082000]
mov byte [rax + 0x16], r8b
mov rax, qword [rcx]
mov byte [rax + 0x17], r8b
mov rax, qword [rcx]
mov byte [rax + 0x18], r8b
mov rax, qword [rcx]
mov byte [rax + 0x19], r8b
mov eax, dword [rcx + 8]
test eax, eax
jle 0x1400541d3
mov r9, qword [rcx]
mov r10d, eax
nop
movzx eax, byte [r9]
mov ecx, r8d
inc r9
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [r11 + rcx*4]
shl eax, 8
xor r8d, eax
dec r10
jne 0x1400541b0
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x140054204
mov r9, qword [rdx + 0x10]
mov r10d, eax
movzx eax, byte [r9]
mov ecx, r8d
inc r9
shr rcx, 0x18
xor rcx, rax
mov eax, r8d
mov r8d, dword [r11 + rcx*4]
shl eax, 8
xor r8d, eax
dec r10
jne 0x1400541e1
mov rax, qword [rdx]
mov ecx, r8d
mov byte [rax + 0x16], r8b
mov rax, qword [rdx]
shr ecx, 8
mov byte [rax + 0x17], cl
mov rax, qword [rdx]
mov ecx, r8d
shr ecx, 0x10
shr r8d, 0x18
mov byte [rax + 0x18], cl
mov rax, qword [rdx]
mov byte [rax + 0x19], r8b
repz ret