joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f7e0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rbp, rcx
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
xor esi, esi
test rax, rax
je 0x14004f81e
lea r8d, [rsi + 0x64]
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextW]
jmp 0x14004f826
mov word [rsp + 0x180], si
mov rdi, qword [0x14012d108]
mov word [rsp + 0x80], si
test rdi, rdi
je 0x14004f8e4
nop
cmp byte [rdi + 0x16], sil
je 0x14004f87f
mov rcx, qword [rdi]
call fcn.1400b3870
test eax, eax
je 0x14004f85f
dec eax
je 0x14004f85f
lea r9, [0x1400fbdb8]
jmp 0x14004f866
mov rax, qword [rdi]
mov r9, qword [rax + 8]
lea r8, [0x1400fcd28]
lea rcx, [rsp + 0x80]
mov edx, 0x7d
call fcn.1400b9390
mov rdi, qword [rdi + 0x18]
test rdi, rdi
jne 0x14004f840
cmp word [rsp + 0x80], si
je 0x14004f8e4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x7b
jbe 0x14004f8d7
lea rbx, [rsp + rcx*2 + 0x80]
mov edi, 0x7f
lea rdx, [0x1400f7558]
sub rdi, rcx
mov rcx, rbx
mov r8, rdi
call fcn.1400da5c4
mov word [rbx + rdi*2], si
jmp 0x14004f8e4
cmp word [rsp + rcx*2 + 0x7e], 0x20
jne 0x14004f8e4
mov word [rsp + rcx*2 + 0x7e], si
mov rax, qword [0x1401293e0]
cmp byte [rax + 0x138], sil
je 0x14004f902
cmp byte [0x14012d175], sil
mov edi, 1
je 0x14004f904
mov edi, esi
mov eax, dword [0x14012ac54]
cmp eax, 1
jle 0x14004f912
lea esi, [rax - 1]
mov cl, 1
call fcn.1400222e0
lea rdx, [rsp + 0x250]
movzx ecx, al
call fcn.1400226e0
mov edx, dword [0x14012ac54]
mov r9d, dword [0x14012ac58]
mov qword [rsp + 0x70], rax
mov eax, dword [0x14012ac50]
sub r9d, edi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], r9d
cmp edx, 1
lea rax, [rsp + 0x80]
lea r10, [0x1400f4e70]
lea rdi, [0x1400fcd30]
lea r8, [0x1400f4e68]
lea rcx, [0x1400f1514]
cmovg rcx, rdi
cmp qword [0x14012ac10], 0
mov rdi, r8
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rax
mov eax, dword [0x14012d118]
cmove rdi, r10
cmp qword [0x14012ac08], 0
mov dword [rsp + 0x38], eax
mov eax, dword [0x14012d11c]
cmove r8, r10
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r8
mov esi, 0xfffe
lea r8, [0x1400fcdb0]
lea r9, [rsp + 0x180]
mov edx, esi
mov rcx, rbp
call fcn.1400b9320
movsxd rdx, eax
lea rbx, [rbp + rdx*2]
mov edx, esi
mov rax, rbx
mov rcx, rbx
sub rax, rbp
sar rax, 1
sub edx, eax
call fcn.140014820
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
lea r8, [0x1400fcf20]
repne scasw ax, word [rdi]
cmp qword [0x14012b640], 0
lea rax, [0x1400fc3f0]
cmovne r8, rax
not rcx
lea rdi, [rbx + rcx*2 - 2]
mov rax, rdi
mov rcx, rdi
sub rax, rbp
sar rax, 1
sub esi, eax
mov edx, esi
call fcn.1400b9320
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movsxd rcx, eax
lea rax, [rdi + rcx*2]
mov rsp, r11
pop rdi
ret
Function at 0x14005cd90
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11ce0
call fcn.1400e0af0
sub rsp, rax
xor eax, eax
mov rbx, rcx
cmp edx, 6
mov rdx, qword [0x1401255c8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1884], eax
mov qword [rsp + 0x1888], rax
mov qword [rsp + 0x1890], rax
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a0], eax
mov qword [rsp + 0x18a8], rax
mov qword [rsp + 0x18c0], rax
cmove rax, rbx
lea rcx, [0x1400f1514]
mov byte [rsp + 0x1881], 1
mov qword [rsp + 0x18b8], rax
mov rax, qword [rsp + 0x11d18]
mov qword [rsp + 0x1048], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400c0690
test eax, eax
je 0x14005ce45
lea rdx, [rsp + 0x30]
lea rcx, [0x1400bf080]
call qword [sym.imp.USER32.DLL_EnumWindows]
movsxd rdx, dword [rsp + 0x1884]
mov r8b, reloc.OLEAUT32.DLL_SafeArrayGetElement
mov rcx, rbx
call fcn.140001090
mov eax, 1
add rsp, 0x11ce0
pop rbx
ret
Function at 0x140063e70
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2e0
mov rbx, rcx
mov rcx, qword [0x14012d160]
movzx esi, dl
lea rbp, [0x1400f1514]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
setne dil
test dil, dil
jne 0x140063eea
lea rcx, [rsp + 0xd0]
call fcn.1400644b0
test eax, eax
je 0x140063ee3
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140063eea
xor al, al
jmp 0x140063f76
test sil, sil
je 0x140063f19
test dil, dil
je 0x140063f19
lea r8, [0x1400fe420]
lea rcx, [rsp + 0x50]
mov r9, rbx
mov edx, pe_nt_image_headers64
call fcn.1400b9320
mov rbx, qword [0x14012d158]
lea rbp, [rsp + 0x50]
xor eax, eax
lea rcx, [0x14012c5c0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], al
mov byte [rsp + 0x38], al
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov r8, rbp
mov rdx, rbx
mov byte [rsp + 0x20], al
call fcn.14004fa70
lea rcx, [0x1400f1514]
test eax, eax
mov rax, qword [0x140127148]
setne bl
test rax, rax
je 0x140063f6d
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
movzx eax, bl
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400644b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
xor ebp, ebp
mov rdi, rcx
mov qword [rax + 0x18], rbx
mov esi, ebp
nop
mov r9d, esi
lea rax, [rsp + 0x268]
lea rdx, [0x1400fe720]
xor r8d, r8d
mov rcx, 0xffffffff80000002
or r9d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1400645fa
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
lea rdx, [0x1400fe708]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x260], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test ebx, ebx
jne 0x1400645fa
mov ecx, dword [rsp + 0x260]
test ecx, ecx
je 0x1400645fa
shr ecx, 1
dec ecx
mov dword [rsp + 0x260], ecx
cmp word [rsp + rcx*2 + 0x30], bp
jne 0x140064599
test ecx, ecx
je 0x1400645af
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x1400645af
mov ecx, edx
mov dword [rsp + 0x260], edx
test edx, edx
jne 0x140064580
jmp 0x1400645af
inc ecx
mov dword [rsp + 0x260], ecx
cmp ecx, 0x104
jae 0x1400645fa
mov word [rsp + rcx*2 + 0x30], bp
mov eax, ecx
test ecx, ecx
je 0x140064601
mov rsi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rdi, rdi
je 0x1400645f1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rdi, rcx
nop
movzx ecx, word [rdx]
add rdx, 2
mov word [rdi + rdx - 2], cx
test cx, cx
jne 0x1400645e0
add rsp, 0x250
pop rdi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test esi, esi
jne 0x1400645b5
mov esi, 0x200
jmp 0x1400644d0
Function at 0x140071040
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400e0af0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x14007106d
lea rbx, [rsp + 0x20]
jmp 0x140071072
test rbx, rbx
je 0x140071081
lea rcx, [0x140127140]
mov rdx, rbx
call fcn.140086db0
add rsp, 0x10020
pop rbx
ret

Function at 0x140071090
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400e0af0
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
je 0x1400710c3
lea rcx, [rsp + 0x20]
call fcn.1400d8f80
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x140072120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10028
call fcn.1400e0af0
sub rsp, rax
test rcx, rcx
je 0x1400721d2
cmp word [rcx], 0
je 0x1400721d2
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, 0x8000
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x1400721dd
cmp eax, 0x8000
jae 0x1400721bd
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x10020], rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400721a0
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.DLL_SetLastError]
shr ebx, 4
and bl, 1
movzx eax, bl
mov rbx, qword [rsp + 0x10020]
add rsp, 0x10028
ret
lea rcx, [rsp + 0x20]
call fcn.1400721f0
movzx ebx, al
mov rbx, qword [rsp + 0x10020]
add rsp, 0x10028
ret
mov ecx, reloc.WSOCK32.DLL_WSAGetLastError
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor al, al
add rsp, 0x10028
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor al, al
add rsp, 0x10028
ret

Function at 0x1400721f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov edx, 0x5c
mov rbp, rcx
call fcn.1400d77cc
xor ebx, ebx
mov rsi, rax
cmp rax, rbp
jbe 0x140072278
cmp word [rax - 2], 0x3a
je 0x140072278
mov rcx, rbp
mov qword [rsp + 0x30], rdi
mov word [rax], bx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140072249
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.DLL_SetLastError]
shr edi, 4
and dil, 1
jmp 0x140072254
mov rcx, rbp
call fcn.1400721f0
movzx edi, al
mov eax, 0x5c
test dil, dil
mov rdi, qword [rsp + 0x30]
mov word [rsi], ax
jne 0x140072278
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x140072294
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x140072299
mov ebx, 1
mov rbp, qword [rsp + 0x40]
movzx eax, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140074c70
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rsi, rcx
mov rcx, qword [0x14012a950]
mov rbp, r8
mov rdi, rdx
call fcn.140024380
test rdi, rdi
je 0x140074e11
cmp word [rdi], 0
je 0x140074e11
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x80
lea r8d, [r9 + 7]
mov rcx, rdi
mov qword [rsp + 0x2b0], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x2c0], r12
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140074d0a
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
jne 0x140074d74
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140074d53
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [0x1401255c8]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rsi
call fcn.14004cf20
mov rbx, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov r11d, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl r11, 0x20
or r11, rax
mov qword [rsp + 0x2b8], r11
movzx ebx, word [rbp]
test ebx, 0xffffff80
jne 0x140074d93
mov edx, 2
mov ecx, ebx
call fcn.1400d7a04
test eax, eax
je 0x140074d93
and ebx, 0xffffffdf
movzx eax, bx
cmp eax, 0x4b
je 0x140074db9
cmp eax, 0x4d
jne 0x140074dd8
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x140074dd0
mov rax, qword [rsp + 0x2b8]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x1401255c8]
xor edx, edx
mov rcx, rsi
mov dword [rax + 0x40], 0
call fcn.14004cf20
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [0x14012a950]
mov r8b, reloc.OLEAUT32.DLL_SafeArrayGetElement
call fcn.140001090
mov eax, 1
jmp 0x140074d38
mov rax, qword [0x1401255c8]
mov dl, 1
mov rcx, rsi
mov dword [rax + 0x40], 0x57
call fcn.14004cf20
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret

Function at 0x140076ad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rbx, rcx
lea edx, [r9 + 5]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
xor r8d, r8d
test eax, eax
je 0x140076b09
mov word [rsp + 0x30], r8w
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x140076b36
cmp word [rsp + rcx*2 + 0x2e], 0x5c
jne 0x140076b33
mov word [rsp + rcx*2 + 0x2e], r8w
lea r8, [rcx - 1]
jmp 0x140076b36
mov r8, rcx
test rbx, rbx
je 0x140076b61
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x30]
sub rbx, rax
nop dword [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
mov word [rbx + rdx - 2], cx
test cx, cx
jne 0x140076b50
mov rax, r8
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x140086660
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140086675
xor al, al
add rsp, 0x20
pop rbx
ret
dec edx
je 0x1400866a0
dec edx
movzx ecx, bl
je 0x140086688
call qword [sym.imp.USER32.DLL_GetKeyState]
jmp 0x1400866c6
call qword [sym.imp.USER32.DLL_GetKeyState]
movzx r11d, ax
and r11d, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x1400866ac
cmp bl, 3
jne 0x1400866b3
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x1400866dc
cmp qword [0x14012ac10], 0
jne 0x1400866fe
movzx ecx, bl
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
movzx r11d, ax
shr r11d, 0xf
and r11b, 1
movzx eax, r11b
add rsp, 0x20
pop rbx
ret
cmp qword [0x14012ac08], 0
je 0x1400866bd
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140022540
test al, al
je 0x1400866fe
mov cl, 1
call fcn.1400222e0
lea rcx, [0x14012ab00]
movzx eax, bl
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret

Function at 0x140086be0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x230
movzx edi, r8b
mov rbx, rdx
mov esi, ecx
mov r8d, ecx
xor r13d, r13d
mov ecx, 0x410
mov word [rdx], r13w
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov r12, rax
test rax, rax
jne 0x140086c3a
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov r12, rax
test rax, rax
je 0x140086d8c
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rbx
mov rcx, r12
test dil, dil
je 0x140086c5d
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x140086c63
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x140086d79
mov rax, qword [0x140127978]
test rax, rax
je 0x140086d79
mov r8d, 0x104
mov rdx, rbx
mov rcx, r12
call rax
mov ebp, eax
test eax, eax
je 0x140086d79
test dil, dil
je 0x140086cd8
mov edx, 0x5c
mov rcx, rbx
call fcn.1400d77cc
mov rdx, rax
test rax, rax
je 0x140086d79
or rcx, 0xffffffffffffffff
mov rdi, rdx
xor eax, eax
repne scasw ax, word [rdi]
add rdx, 2
not rcx
lea r8, [rcx + rcx - 2]
mov rcx, rbx
call fcn.1400d7a40
jmp 0x140086d79
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x258]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
mov edi, eax
cmp eax, 2
jbe 0x140086d2e
add edi, 0xfffffffe
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, edi
call fcn.1400d95a8
test eax, eax
jne 0x140086d2e
cmp word [rbx + rdi*2], 0x5c
je 0x140086d49
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x140086cf0
jmp 0x140086d79
movzx eax, word [rsp + 0x258]
sub ebp, edi
lea rdx, [rbx + rdi*2]
mov word [rbx], ax
movzx eax, word [rsp + 0x25a]
lea r8d, [rbp + 1]
lea rcx, [rbx + 4]
add r8, r8
mov word [rbx + 2], ax
call fcn.1400d7a40
add ebp, 2
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebp
mov rbp, qword [rsp + 0x250]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14008d6a0
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x270
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x14008d775
cmp word [rdx], 0
je 0x14008d775
lea r9, [r11 + 0x10]
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, rax
mov qword [r11 + 8], rdi
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
xor edx, edx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14008d704
cmp word [rsp + rcx*2 + 0x5e], 0x5c
jne 0x14008d704
mov word [rsp + rcx*2 + 0x5e], dx
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x48], rdx
repne scasw ax, word [rdi]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
not rcx
mov qword [rsp + 0x30], rax
mov eax, 0x4054
mov word [rsp + rcx*2 + 0x60], dx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.DLL_SHFileOperationW]
mov rcx, rbx
test eax, eax
setne dl
call fcn.14004cf20
mov rdi, qword [rsp + 0x280]
add rsp, 0x270
pop rbx
ret
mov dl, 1
call fcn.14004cf20
add rsp, 0x270
pop rbx
ret
Function at 0x14008ded0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub rsp, 0x278
test dl, dl
jne 0x14008deee
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x278
ret
lea r9, [rsp + 0x290]
lea r8, [rsp + 0x60]
mov edx, 0x104
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x270], rdi
call qword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
xor ebx, ebx
not rcx
dec rcx
je 0x14008df3b
cmp word [rsp + rcx*2 + 0x5e], 0x5c
jne 0x14008df3b
mov word [rsp + rcx*2 + 0x5e], bx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008dfab
test al, 0x10
je 0x14008dfab
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
not rcx
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov word [rsp + rcx*2 + 0x60], bx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.DLL_SHFileOperationW]
test eax, eax
sete al
jmp 0x14008dfad
xor al, al
mov rbx, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x270]
add rsp, 0x278
ret
Function at 0x14008e5c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400d7d74
test rax, rax
jne 0x14008e603
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400d7d74
test rax, rax
jne 0x14008e603
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14008e622
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x14008e640
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
test eax, eax
jne 0x14008e66d
xor al, al
add rsp, 0x40
pop rbx
ret
lea r8, [rsp + 0x34]
lea rdx, [0x1400ff740]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x14008e665
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.DLL_ExitWindowsEx]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret

Function at 0x14008e6e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea edx, [r9 + 0x10]
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.DLL_SendMessageTimeoutW]
test rax, rax
jne 0x14008e75d
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov dword [rsp + 0x58], eax
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14008e75d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14008e75d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x40
pop rbx
ret
Function at 0x1400a5470
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, r8
cmp edx, 0x2af8
jae 0x1400a5557
test rcx, rcx
je 0x1400a5557
cmp qword [rcx + 8], 0
je 0x1400a5557
cmp edx, dword [rcx + 0x20]
jae 0x1400a5557
mov rcx, qword [rcx + 0x28]
mov eax, edx
lea r9, [rax + rax*4]
test r8, r8
je 0x1400a5515
mov rax, qword [rcx + r9*8 + 0x10]
test rax, rax
je 0x1400a54fa
mov rcx, qword [rax + 0x28]
mov rdx, r8
nop word [rax + rax]
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
mov word [rdx - 2], ax
test ax, ax
jne 0x1400a54d0
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + r9*8]
mov r8d, pe_nt_image_headers64
mov rdx, rdi
call qword [sym.imp.USER32.DLL_GetWindowTextW]
cdqe
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rcx + r9*8 + 0x10]
test rdi, rdi
je 0x1400a5539
mov rdi, qword [rdi + 0x28]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea rax, [rcx - 1]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + r9*8]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov ecx, 0x3f
cdqe
cmp rax, rcx
cmova rax, rcx
add rsp, 0x20
pop rdi
ret
test r8, r8
je 0x1400a5562
xor eax, eax
mov word [r8], ax
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400a9b60
Capabilities:
Get keyboard layout

Disassembly:
push rdi
sub rsp, 0x20
cmp word [rcx], 0
mov rdi, rcx
jne 0x1400a9b77
xor eax, eax
add rsp, 0x20
pop rdi
ret
add rcx, 2
mov qword [rsp + 0x38], rbx
xor bl, bl
cmp word [rcx], 0
je 0x1400a9bb4
movzx eax, word [rdi]
cmp eax, 0x21
je 0x1400a9ba4
cmp eax, 0x2b
je 0x1400a9b9f
cmp eax, 0x5e
jne 0x1400a9bb4
or bl, 2
jmp 0x1400a9ba7
or bl, 1
jmp 0x1400a9ba7
or bl, 4
mov rdi, rcx
add rcx, 2
cmp word [rcx], 0
jne 0x1400a9b88
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x30], 0
call qword [sym.imp.USER32.DLL_GetKeyboardLayout]
cmp word [rdi], 0
je 0x1400a9c46
lea rdx, [rsp + 0x30]
mov r9, rax
xor r8d, r8d
mov rcx, rdi
call fcn.140022f50
movzx esi, al
test al, al
je 0x1400a9c46
movzx ecx, byte [rsp + 0x30]
test cl, 0xc
je 0x1400a9bf3
or bl, 4
test cl, 3
je 0x1400a9bfb
or bl, 2
test cl, 0x30
je 0x1400a9c03
or bl, 1
xor edx, edx
mov rcx, rdi
call fcn.140022e30
test ax, ax
jne 0x1400a9c1d
xor edx, edx
movzx ecx, sil
call fcn.140023650
mov ecx, 0x100
test cx, ax
je 0x1400a9c2a
or bl, 8
movzx eax, bl
mov rbx, qword [rsp + 0x38]
movzx ecx, sil
mov rsi, qword [rsp + 0x40]
shl eax, 8
or eax, ecx
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret