joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053e1c
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp qword [0x140118318], 0
mov rbx, rcx
jne 0x1400540e1
and qword [rsp + 0x30], 0
mov edx, 2
lea rcx, [0x1400f9560]
lea r8d, [rdx + 2]
call fcn.14001a1f0
lea rdi, [0x140101708]
lea r9, [rsp + 0x30]
lea r8, [fcn.140118310]
lea rcx, [0x1401016f8]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [fcn.140118320]
lea rcx, [0x1400ffe20]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [fcn.140118328]
lea rcx, [0x1401016e8]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118330]
lea rcx, [0x1400ffe78]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [fcn.140118338]
lea rcx, [0x1401016dc]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118340]
lea rcx, [0x1400ffe14]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118348]
lea rcx, [0x1401016d0]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118350]
lea rcx, [0x1401016c4]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118358]
lea rcx, [0x1400ffe4c]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118360]
lea rcx, [0x1400ffe44]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118368]
lea rcx, [0x1400ffe3c]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118378]
lea rcx, [0x1401016b8]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118370]
lea rcx, [0x1401016a8]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118380]
lea rcx, [0x1400ffde8]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118388]
lea rcx, [0x1400ffdf8]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [fcn.140118390]
lea rcx, [0x14010169c]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [fcn.140118398]
lea rcx, [0x140101694]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x1401183a0]
lea rcx, [0x14010168c]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x1401183a8]
lea rcx, [0x140101680]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x1401183b0]
lea rcx, [0x140101670]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x1401183b8]
lea rcx, [0x140101660]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x1401183c0]
lea rcx, [0x140101650]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x1401183c8]
lea rcx, [0x140101640]
mov rdx, rdi
call fcn.1400536e0
lea r9, [rsp + 0x30]
lea r8, [0x140118318]
lea rcx, [0x140101634]
mov rdx, rdi
call fcn.1400536e0
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140054380
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
cmp word [rdx], 0
mov rax, rdx
jne 0x140054391
xor eax, eax
jmp 0x14005439d
mov rdx, r8
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140054ad4
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0xb0
and qword [rsp + 0x48], 0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x58]
mov dword [rsp + 0x40], 0x68
call fcn.1400dd9e0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [rsp + 0x7c], 1
je 0x140054b1c
movzx eax, word [rsp + 0x80]
test eax, eax
je 0x140054b68
mov edx, 5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_ShowWindow]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SetActiveWindow]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SetForegroundWindow]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_BringWindowToTop]
add rsp, 0xb0
pop rbx
ret

Function at 0x14005540c
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
mov edi, edx
xor edx, edx
mov ebx, r8d
mov rsi, rcx
lea r8d, [rdx + 0x27]
lea rcx, [rax - 0x2f]
mov byte [rax - 0x30], 0
call fcn.1400dd9e0
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x58]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], rax
call fcn.1400553dc
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebp, eax
test ebx, ebx
je 0x1400554a2
jmp 0x140055493
test edi, edi
jle 0x1400554a2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x1400554a2
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, ebp
cmp edi, eax
jbe 0x1400554a2
mov ecx, 1
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
test eax, eax
je 0x14005546d
and qword [rsp + 0x30], 0
mov r8d, 3
lea r9, [rsp + 0x40]
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400554e8
Capabilities:
Find taskbar

Disassembly:
sub rsp, 0x28
lea rcx, [0x140101860]
xor edx, edx
call qword [sym.imp.USER32.DLL_FindWindowA]
lea r8, [0x140101850]
xor r9d, r9d
mov rcx, rax
xor edx, edx
add rsp, 0x28
jmp qword [sym.imp.USER32.DLL_FindWindowExA]

Function at 0x140055cbc
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rbx, rcx
lea rax, [r9 + 1]
mov qword [rcx + 0x10], rax
mov al, byte [rdx]
mov byte [r9 + r8], al
cmp qword [rcx + 0x10], 0x1000
jl 0x140055d06
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_WriteFile]
and qword [rbx + 0x10], 0
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140055d14
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
test r9, r9
lea rdi, [rsp + 0x40]
cmovne rdi, r9
cmp qword [rcx + 0x10], rax
mov rsi, rdx
mov rbx, rcx
jl 0x140055d8c
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
and qword [rbx + 0x10], 0
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [rsp + 0x40]
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140055d82
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x140055d8c
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x140055d8c
add dword [rbx + 0x24], 0xffffffff
jns 0x140055d3f
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jge 0x140055db0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 8]
mov cl, byte [rcx + rax]
mov eax, 1
mov byte [rsi], cl
mov dword [rdi], eax
jmp 0x140055db5
and dword [rdi], 0
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140056698
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x140
movzx ebx, cx
lea rdx, [0x140101b50]
lea rcx, [rsp + 0x20]
mov r8d, 0x82
call fcn.1400de630
lea rcx, [rsp + 0xb0]
lea rdx, [0x140101ac0]
mov r8d, 0x84
call fcn.1400de630
mov word [rsp + 0x9e], bx
mov word [rsp + 0x130], bx
mov rbx, 0xffffffff80000001
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_RegDeleteKeyW]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_RegDeleteKeyW]
add rsp, 0x140
pop rbx
ret

Function at 0x1400567b0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
xor ebp, ebp
mov ebx, eax
cmp eax, ebp
mov dil, 0x41
je 0x1400567ff
test bl, 1
je 0x1400567f0
movsx ecx, dil
mov word [rsi], cx
mov rcx, rsi
call fcn.1400dcf68
cmp eax, ebp
jne 0x1400567f9
shr ebx, 1
inc dil
cmp ebx, ebp
jmp 0x1400567d6
movzx eax, dil
jmp 0x140056802
mov ax, bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140056a78
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
and qword [r11 - 0x10], 0
and dword [rsp + 0x58], 0
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x10]
mov rsi, rdx
xor r9d, r9d
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
mov edx, 0x7405c
mov dword [rsp + 0x28], 8
mov rdi, rcx
mov qword [r11 - 0x28], rax
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
and qword [rsp + 0x38], 0
and qword [rsi], 0
and qword [rsi + 0x18], 0
mov ebx, eax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x70000
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test ebx, ebx
je 0x140056b0d
mov rax, qword [rsp + 0x60]
jmp 0x140056b22
mov ecx, dword [rsi + 0x10]
mov eax, dword [rsi + 0x14]
imul rax, rcx
mov ecx, dword [rsi + 0xc]
imul rax, rcx
imul rax, qword [rsi]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140056e00
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [r8], 0
mov rdi, rdx
mov rsi, r8
mov rbx, rcx
xor edx, edx
mov r8d, 0xc0
mov rcx, rdi
call fcn.1400dd9e0
and qword [rsp + 0x38], 0
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x70050
mov rcx, rbx
mov dword [rsp + 0x28], 0x100000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x140056e6a
xor eax, eax
jmp 0x140056e72
mov eax, dword [rdi + 4]
mov dword [rsi], eax
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400572f4
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x238
xor eax, eax
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rax + 0x24]
xor ecx, ecx
mov word [rsp + 0x20], ax
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
mov ax, word [rsp + 0x20]
add rsp, 0x238
ret
Function at 0x140057378
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x350
and qword [rsp + 0x40], 0
mov rsi, rcx
mov r12, rdx
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x308
call fcn.1400dd9e0
and dword [rsp + 0x380], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ebx, 1
test eax, eax
jne 0x1400573d8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x1400573d8
mov edi, ebx
jmp 0x1400573da
xor edi, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14005741c
xor eax, eax
jmp 0x1400574ad
mov rcx, r12
mov dword [rsp + 0x40], 0xa0000003
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rsp + 0x50]
mov rdx, r12
add ax, ax
mov word [rsp + 0x4a], ax
add ax, 2
mov word [rsp + 0x4c], ax
call fcn.1400ddfb8
and qword [rsp + 0x38], 0
movzx r9d, word [rsp + 0x4a]
lea rax, [rsp + 0x380]
lea r8, [rsp + 0x40]
add r9d, 0xc
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x44], r9d
mov edx, 0x900a4
add r9d, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x1400574a2
test edi, edi
jne 0x1400574a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x140057550
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x1400575ca
call qword [sym.imp.USER32.DLL_EmptyClipboard]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, 0x2000
movsxd rdx, eax
lea rbx, [rdx + rdx + 2]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.14001b7a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.DLL_SetClipboardData]
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400576a8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
and dword [rax + 8], 0
mov rsi, r8
mov r8d, pe_nt_image_headers64
lea r13d, [r8 - 0x28]
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, rdx
lea r9, [rax + 8]
mov rdx, r13
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea r9, [rsp + 0x40]
lea r8d, [r13 + 0x28]
lea rcx, [rdi + 8]
mov rdx, r13
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdx, [0x1401012b0]
lea rcx, [rdi + 8]
mov r8, r13
call fcn.14001b7a8
mov qword [rdi + 0x15], rbx
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14005772e
lea r8, [rdi + 8]
lea edx, [r13 - 0x1c]
call qword [sym.imp.USER32.DLL_SetWindowLongPtrW]
test rsi, rsi
je 0x14005772e
mov qword [rsi], rax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret

Function at 0x140057de8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r12, r9
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov edi, r8d
mov dword [r9], ebx
mov r13d, 0x80
cmp r8d, ebx
jbe 0x140057e9a
mov ebp, dword [rsp + 0x80]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, r14
mov rcx, r15
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
cmp eax, ebx
je 0x140057e6c
mov ecx, dword [rsp + 0x70]
cmp ecx, ebx
jne 0x140057e5f
cmp r13d, ebx
jg 0x140057e5c
mov ecx, edi
jmp 0x140057e5f
dec r13d
add dword [r12], ecx
mov eax, ecx
add r14, rax
sub esi, ecx
jmp 0x140057e96
mov r13d, ebx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x140057e9a
cmp edi, ebp
jbe 0x140057e9a
cmp esi, ebp
jbe 0x140057e94
lea edi, [rdi + rbp - 1]
shr edi, 1
cmp edi, ebp
jbe 0x140057e96
and edi, 0xfffffe00
jmp 0x140057e96
mov edi, esi
cmp esi, ebx
ja 0x140057e2a
cmp dword [r12], ebx
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
seta bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140057f20
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test byte [0x1401183fd], 1
mov bl, cl
je 0x140057f81
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov r11d, dword [0x1401185e4]
mov dl, byte [0x1401183fd]
dec r11d
mov al, dl
or al, bl
mov dword [0x1401185e4], r11d
test al, 0xfe
je 0x140057f74
or dl, 0x10
mov byte [0x1401183fd], dl
test r11d, r11d
jg 0x140057f74
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x140057f88
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x128
and dword [0x1401185fc], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.DLL_GetKeyboardState]
mov eax, dword [0x1401185fc]
mov cl, 0x80
test byte [rsp + 0x31], cl
je 0x140057fb8
or eax, 2
mov dword [0x1401185fc], eax
test byte [rsp + 0x30], cl
je 0x140057fc7
or eax, 4
mov dword [0x1401185fc], eax
test byte [rsp + 0x32], cl
je 0x140057fd6
or eax, 1
mov dword [0x1401185fc], eax
test byte [rsp + 0x7b], cl
je 0x140057fe5
or eax, 8
mov dword [0x1401185fc], eax
test byte [rsp + 0x7c], cl
je 0x140057ff4
or eax, 8
mov dword [0x1401185fc], eax
add rsp, 0x128
ret

Function at 0x140058094
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rdx
lea rdx, [rsp + 0x20]
xor esi, esi
mov r8d, 0x208
mov rdi, rcx
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
cmp eax, esi
je 0x1400580e2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400592f4
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x4b0
mov rbx, r8
mov r12d, ecx
test r8, r8
jne 0x14005933b
cmp edx, 2
jb 0x140059531
cmp edx, 3
jbe 0x140059334
cmp edx, 5
jne 0x140059531
lea rbx, [0x1400fb470]
jmp 0x14005933b
lea rbx, [0x1400fb460]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x140117d80]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140059531
xor eax, eax
xor ebp, ebp
mov dword [rsp + 0x40], 0x20
and dword [rsp + 0x44], ebp
and dword [rsp + 0x4e0], eax
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 0x20
lea rax, [rsp + 0x40]
mov r8, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.DLL_SetupDiEnumDeviceInterfaces]
mov rcx, rdi
test eax, eax
je 0x14005952b
lea rax, [rsp + 0x70]
mov r9d, ebp
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.DLL_SetupDiEnumDeviceInterfaces]
and qword [rsp + 0x28], 0
and dword [rsp + 0x4e0], 0
lea rax, [rsp + 0x4e0]
lea rdx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.DLL_SetupDiGetDeviceInterfaceDetailW]
mov r11d, dword [rsp + 0x4e0]
test r11d, r11d
je 0x140059506
cmp r11d, 0x400
ja 0x140059506
xor edx, edx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0xb0], 8
lea r8d, [rdx + 0x20]
call fcn.1400dd9e0
mov r9d, dword [rsp + 0x4e0]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4e0]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov dword [rsp + 0x90], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.DLL_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x140059506
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 3]
lea rcx, [rsp + 0xb4]
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140059506
and qword [rsp + 0x38], 0
and dword [rsp + 0x4e8], 0
lea rax, [rsp + 0x4e8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x1400594fd
cmp r12d, dword [rsp + 0x64]
je 0x140059510
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
inc ebp
mov r9d, ebp
jmp 0x14005938d
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.DLL_SetupDiDestroyDeviceInfoList]
mov eax, dword [rsp + 0xa4]
jmp 0x140059533
call qword [sym.imp.SETUPAPI.DLL_SetupDiDestroyDeviceInfoList]
xor eax, eax
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140059738
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
call fcn.1400596c4
lea rcx, [rbx + 4]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]

Function at 0x140059768
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
mov rdi, rbp
call qword [sym.imp.USER32.DLL_IsRectEmpty]
cmp eax, ebp
je 0x1400597a0
xor eax, eax
jmp 0x1400598b5
mov r15d, dword [rbx]
mov r13d, dword [rbx + 4]
mov r14d, dword [rbx + 8]
mov r12d, dword [rbx + 0xc]
lea rcx, [0x140102300]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.GDI32.DLL_CreateDCA]
mov edx, 8
mov rcx, rax
mov rbp, rax
call qword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov edx, 0xa
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.GDI32.DLL_GetDeviceCaps]
xor ecx, ecx
cmp r15d, ecx
cmovl r15d, ecx
cmp r13d, ecx
cmovl r13d, ecx
cmp r14d, ebx
cmovg r14d, ebx
cmp r12d, eax
mov dword [rsp + 0x90], r13d
cmovg r12d, eax
sub r14d, r15d
sub r12d, r13d
cmp r14d, ecx
jle 0x1400598a9
cmp r12d, ecx
jle 0x1400598a9
mov rcx, rbp
call qword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov r8d, r12d
mov edx, r14d
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.GDI32.DLL_SelectObject]
mov r13, rax
test rsi, rsi
je 0x14005985e
mov qword [rsi], rbx
mov qword [rsi + 8], rax
jmp 0x1400598a9
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r14d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], r12d
call qword [sym.imp.GDI32.DLL_BitBlt]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.GDI32.DLL_SelectObject]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.GDI32.DLL_DeleteDC]
mov rcx, rbp
call qword [sym.imp.GDI32.DLL_DeleteDC]
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14005af80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x230
cmp word [rcx], 0x7a
mov rsi, r8
mov ebp, edx
mov rdi, rcx
jbe 0x14005b053
mov r13d, 0x3a
cmp word [rcx + 2], r13w
jne 0x14005b053
xor r12d, r12d
cmp word [rcx + 4], r12w
jne 0x14005b053
mov word [rsp + 0x20], r12w
cmp r9, r12
je 0x14005afda
mov qword [r9], r12
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
movzx eax, word [rsp + 0x20]
cmp word [rdi], ax
jne 0x14005b027
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ebx, [rax + 1]
cmp ebx, 4
jbe 0x14005b027
cmp ebp, ebx
jae 0x14005b00f
mov eax, ebx
jmp 0x14005b059
movsxd r8, ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
add r8, r8
call fcn.14001b7a8
lea eax, [rbx - 1]
jmp 0x14005b059
cmp ebp, 4
jae 0x14005b033
mov eax, 4
jmp 0x14005b059
movzx eax, word [rdi]
mov word [rsi + 2], r13w
mov word [rsi + 6], r12w
mov word [rsi], ax
mov eax, 0x5c
mov word [rsi + 4], ax
mov eax, 3
jmp 0x14005b059
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret