joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b11c
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.140033330
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 0x14002b18e
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002b185
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.1400333e0
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 0x14002b310
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14002b383
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 0x14002b36f
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14002b362
cmp al, 0x5c
je 0x14002b362
cmp al, 0x2f
jne 0x14002b36f
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14002b350
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14002b385
xor eax, eax
add rsp, 0x138
ret

Function at 0x14002b390
Capabilities:
Set current directory

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

Function at 0x14002b3ac
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002b3d7
test dl, 2
je 0x14002b3ca
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 0x14002b3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002b3ac

Function at 0x14002b3e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002b3d7
test dl, 2
je 0x14002b3ca
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 0x14002b3d9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14002b3ac

Function at 0x14002b3e8
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14002b403
test rdx, rdx
je 0x14002b403
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
cdqe
jmp 0x14002b405
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002b428
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 0x14002b561
cmp byte [rcx], 0
je 0x14002b561
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 0x14002b48a
cmp r11d, 3
jne 0x14002b4be
cmp byte [rsp + 0x21], 0x3a
jne 0x14002b4be
cmp r11d, 2
jne 0x14002b4a8
lea rdx, [0x140082c7c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x14002b561
jmp 0x14002b539
cmp byte [rcx], 0x5c
je 0x14002b4c8
cmp byte [rcx], 0x2f
jne 0x14002b4d0
mov byte [rcx], 0
dec rcx
jmp 0x14002b4be
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x14002b50b
test byte [rbp + 0x30], 0x10
je 0x14002b4f6
mov rbx, 0xfffffffffffffffe
jmp 0x14002b503
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14002b561
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x14002b51a
cmp al, 0x5c
je 0x14002b525
cmp byte [rsp + 0x20], 0x2e
jne 0x14002b561
cmp al, 0x2e
jne 0x14002b561
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002b542
test al, 0x10
je 0x14002b561
mov rbx, 0xfffffffffffffffe
jmp 0x14002b561
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 0x14002b580
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 0x14002b5c6
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 0x14002bce0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400d8060]
call fcn.14003259c
mov rbx, rax
test rax, rax
je 0x14002bd34
cmp qword [rax + 8], 0
je 0x14002bd12
cmp dword [rax + 0x1c], 0
jne 0x14002bd12
mov rcx, rax
call fcn.14002b580
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 0x14002bd40
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400d8060]
mov byte [rsp + 0x48], 0
call fcn.14003259c
test rax, rax
je 0x14002bd9e
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002bd81
mov r8d, 1
mov rcx, rax
call fcn.14002c250
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 0x14002bdb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400d8060]
mov dword [rsp + 0x48], 0
call fcn.14003259c
test rax, rax
je 0x14002be11
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002bdf4
mov r8d, 4
mov rcx, rax
call fcn.14002c250
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 0x14002be20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400d8060]
mov byte [rsp + 0x48], 0
call fcn.14003259c
test rax, rax
je 0x14002be7f
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14002be62
mov r8d, 1
mov rcx, rax
call fcn.14002c250
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 0x14002be90
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 0x14002bf08
test r8d, r8d
je 0x14002bf08
mov rdx, rcx
mov rcx, qword [0x1400d8060]
call fcn.14003259c
test rax, rax
je 0x14002bf04
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14002bef1
mov rcx, rax
call fcn.14002c380
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 0x14002bf20
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.140033330
mov rcx, qword [0x1400d8060]
mov rdx, rbx
mov rsi, rax
mov rdi, rax
call fcn.14003259c
mov rbx, rax
test rax, rax
je 0x14002c06f
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 0x14002bf94
mov r8d, 1
mov rcx, rbx
call fcn.14002c250
mov dword [rsp + 0x78], eax
jmp 0x14002bfad
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 0x14002bfc0
mov byte [rdi], dl
movzx edx, byte [rsp + 0x70]
inc rdi
mov rcx, rdi
movsxd rax, ebp
sub rcx, rsi
cmp rcx, rax
jl 0x14002bfee
add ebp, 0x1000
mov edx, r12d
sub edi, esi
mov ecx, ebp
call fcn.140033330
movzx edx, byte [rsp + 0x70]
movsxd rdi, edi
mov rsi, rax
add rdi, rax
test dl, dl
je 0x14002c06a
cmp dword [rsp + 0x78], r13d
je 0x14002c007
cmp dl, 0xd
je 0x14002c007
cmp dl, 0xa
jne 0x14002bf70
dec rdi
cmp dl, 0xd
jne 0x14002c06a
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14002c02a
mov r8d, 1
mov rcx, rbx
call fcn.14002c250
jmp 0x14002c043
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 0x14002c06a
cmp qword [rbx + 8], r13
je 0x14002c055
inc dword [rbx + 0x14]
jmp 0x14002c06a
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.1400333e0
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002c090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400d8060]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.14003259c
mov rdi, rax
test rax, rax
je 0x14002c134
cmp qword [rax + 8], rbx
je 0x14002c0f7
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14002c250
test rax, rax
je 0x14002c0e4
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 0x14002c146
cmp dword [rsp + 0x58], ebx
je 0x14002c146
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 0x14002c160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x1400d8060]
xor ebp, ebp
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x68], ebp
call fcn.14003259c
mov rbx, rax
test rax, rax
je 0x14002c240
test rsi, rsi
je 0x14002c1eb
cmp byte [rsi], bpl
je 0x14002c1eb
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdx, rsi
mov rdi, rsi
cmp qword [rax + 8], rbp
je 0x14002c1c8
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.14002c380
mov dword [rsp + 0x60], eax
jmp 0x14002c1e6
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, [0x140082c80]
cmp qword [rbx + 8], rbp
je 0x14002c219
mov rcx, rbx
call fcn.14002c380
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 0x14002c250
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 0x14002c284
call fcn.14002b580
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 0x14002c2e9
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14002c2df
dec rax
je 0x14002c2d1
cmp rax, 2
je 0x14002c2c5
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x14002c364
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x14002c364
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x14002c364
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x14002c364
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 0x14002c331
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 0x14002c367
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 0x14002c380
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 0x14002c3ca
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 0x14002c406
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14002c3ff
dec edx
je 0x14002c3f7
cmp edx, 2
je 0x14002c3f1
mov rdx, rsi
jmp 0x14002c454
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14002c45c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14002c45c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14002c45c
mov rcx, rbx
call fcn.14002b580
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14002c449
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 0x14002d558
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 0x14002d57a
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 0x14002d584
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 0x14002d61a
lea rsi, [0x140082363]
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 0x14002d614
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14002d614
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 0x14002da88
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d80c0], eax
add rsp, 0x28
ret
Function at 0x14002daec
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 0x14002db61
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 0x14002db61
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14002db39
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400d5f50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400d80c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400d80d0], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002dc70
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400d80d0]
test rbx, rbx
je 0x14002dcca
mov rcx, rbx
call qword [rbx + 0xb8]
mov r11, qword [rbx + 0xe0]
test r11, r11
je 0x14002dca2
mov edx, 1
mov rcx, rbx
call r11
mov rcx, qword [0x1400d5f50]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400d80c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400d80d0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14002f534
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1400d5f50]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400d80c0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400d80d0], 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, [0x14002df14]
mov qword [rbx], rax
lea rax, [0x14002dffc]
mov dword [rbx + 0xec], 7
mov qword [rbx + 8], rax
lea rax, [0x14002e0ac]
mov qword [rbx + 0x10], rax
lea rax, [0x14002e270]
mov qword [rbx + 0x18], rax
lea rax, [0x14002e378]
mov qword [rbx + 0x20], rax
lea rax, [0x14002e3ec]
mov qword [rbx + 0x28], rax
lea rax, [0x14002e434]
mov qword [rbx + 0x30], rax
lea rax, [0x14002e448]
mov qword [rbx + 0x38], rax
lea rax, [fcn.14002e45c]
mov qword [rbx + 0x40], rax
lea rax, [0x14002e890]
mov qword [rbx + 0x48], rax
lea rax, [fcn.14002e634]
mov qword [rbx + 0x50], rax
lea rax, [0x14002e8a8]
mov qword [rbx + 0x58], rax
lea rax, [0x14002ea0c]
mov qword [rbx + 0x60], rax
lea rax, [0x14002eb88]
mov qword [rbx + 0x68], rax
lea rax, [0x14002e128]
mov qword [rbx + 0x70], rax
lea rax, [0x14002ec6c]
mov qword [rbx + 0x78], rax
lea rax, [0x14002df44]
mov qword [rbx + 0x80], rax
lea rax, [0x14002ed5c]
mov qword [rbx + 0x88], rax
lea rax, [0x14002eeb0]
mov qword [rbx + 0x90], rax
lea rax, [0x14002ef30]
mov qword [rbx + 0x98], rax
lea rax, [0x14002f024]
mov qword [rbx + 0xa0], rax
lea rax, [0x14002f210]
mov qword [rbx + 0xa8], rax
lea rax, [0x14002f3b0]
mov qword [rbx + 0xb0], rax
lea rax, [0x14002f498]
mov qword [rbx + 0xb8], rax
lea rax, [0x14002f35c]
mov qword [rbx + 0xc0], rax
lea rax, [0x14002f300]
mov qword [rbx + 0xc8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140055160
Capabilities:
Encode data using xor

Disassembly:
mov rdx, rcx
test rcx, rcx
je 0x14005521e
mov rax, qword [rcx]
xor r8d, r8d
lea r11, [0x140083000]
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 0x1400551c3
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 0x1400551a0
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x1400551f4
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 0x1400551d1
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
Function at 0x14006a168
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400d5f50]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400d80c0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400d80d0], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140073358
mov rbx, qword [rsp + 0x30]
lea rax, [0x14006a11c]
lea r11, [0x14006a0b8]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140068d7c]
mov qword [rdi + 0xb0], r11
mov qword [rdi + 0x20], rax
lea rax, [0x140068f58]
mov qword [rdi + 0x60], rax
lea rax, [0x1400690b0]
mov qword [rdi + 0xc8], rax
lea rax, [0x140069110]
mov qword [rdi + 0xc0], rax
lea rax, [0x140069b40]
mov qword [rdi + 0x68], rax
lea rax, [0x140069978]
mov qword [rdi + 0x48], rax
lea rax, [0x1400699a4]
mov qword [rdi + 0x50], rax
lea rax, [0x1400699d4]
mov qword [rdi + 0x58], rax
lea rax, [0x140069ed4]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14006b9c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r10d, dword [rsp + 0x68]
movsxd rbp, dword [rcx + 0x160]
mov ebx, r8d
mov r14, rdx
mov r11, rcx
test r10d, r10d
je 0x14006ba8a
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov r12d, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r15, eax
mov eax, ebp
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg r12d
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r15
add r8, r14
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x14006ba6e
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
add r8, 4
xor byte [rdx], al
add rdx, rbp
dec rdi
jne 0x14006ba4a
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x14006ba83
add ecx, r12d
jmp 0x14006ba85
add ecx, ebx
test r10d, r10d
jne 0x14006ba1e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret