joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e440
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10050
call fcn.1400c8fe0
sub rsp, rax
mov rbp, rcx
mov rdi, r9
mov rcx, r9
mov rsi, r8
mov rbx, rdx
call fcn.140012eb0
mov rcx, rdi
test al, al
je 0x14005e486
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
jmp 0x14005e48c
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, 1
je 0x14005e4e8
mov rcx, rsi
call fcn.14007a1a0
test al, al
je 0x14005e4e8
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x14005e4d1
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
jmp 0x14005e697
lea r9, [0x1400cb664]
xor r8d, r8d
mov rcx, rbp
call fcn.1400465b0
jmp 0x14005e697
mov qword [rsp + 0x10060], r14
xor r9d, r9d
xor r14d, r14d
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005e56c
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x14005e555
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
call fcn.1400afca0
jmp 0x14005e68f
lea r9, [0x1400cb664]
xor r8d, r8d
mov rcx, rbp
call fcn.1400465b0
jmp 0x14005e68f
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r14w
jne 0x14005e573
cmp r8, 0x8000
lea rcx, [rsp + 0x50]
mov eax, 0x7fff
mov rdx, rbx
cmovae r8, rax
lea r8, [r8*2 + 2]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr]
mov r8d, 0xa
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14005e679
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005e679
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14005e679
cmp dword [rax], 0x4034b50
jne 0x14005e64e
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor r9d, r9d
lea rdx, [rsp + 0x48]
mov r8d, eax
mov rcx, rbx
call fcn.1400aef50
test eax, eax
je 0x14005e64e
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8d, eax
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
sete bl
jmp 0x14005e67b
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
sete bl
jmp 0x14005e67b
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, bl
mov rcx, rbp
call fcn.140046680
mov r14, qword [rsp + 0x10060]
lea r11, [rsp + 0x10050]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14005e6b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x140103f30]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400afca0
test rbx, rbx
je 0x14005e75a
cmp word [rbx], 0
je 0x14005e75a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14005e70a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dword [rcx + 0x40], eax
jmp 0x14005e768
mov rax, qword [0x1400fe060]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140046680
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400ac5e0
mov rcx, qword [0x140103f30]
xor r9d, r9d
mov rdx, rax
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
mov rax, qword [0x1400fe060]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, rdi
call fcn.140046680
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret

Function at 0x14005e790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
xor esi, esi
xor edx, edx
mov r10d, 0xffffffff
mov ebp, r9d
mov dword [rsp + 0x68], r10d
mov r14, r8
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi]
mov r15, rcx
test ax, ax
je 0x14005e8ad
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, [0x140000000]
nop dword [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
je 0x14005e7ef
xor eax, eax
jmp 0x14005e805
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
mov ecx, ebx
and ecx, 0xffffffdf
test eax, eax
cmove ecx, ebx
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x14005e82e.51
movsxd rax, ecx
movzx eax, byte [r12 + rax + 0x5e90c]
mov ecx, dword [r12 + rax*4 + 0x5e8e8]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x14005e82e.51
mov ecx, 1
jmp 0x14005e864
mov ecx, SafeArrayAllocDescriptor
jmp 0x14005e864
mov ecx, 4
jmp 0x14005e864
mov ecx, 2
jmp 0x14005e864
mov ecx, 0x80
jmp 0x14005e864
mov ecx, 0x1000
jmp 0x14005e864
mov ecx, 0x100
cmp esi, 0x2b
je 0x14005e880
cmp esi, 0x2d
je 0x14005e877
cmp esi, 0x5e
jne case.0x14005e82e.51
xor edx, ecx
jmp 0x14005e88e
not ecx
and r10d, ecx
and edx, ecx
jmp 0x14005e889
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x14005e7e0
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r8d, ebp
lea rax, [0x14005e940]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14005e980
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f240
Capabilities:
Get file size

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x290
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r14, r8
mov rdi, rdx
mov rbp, rcx
xor edx, edx
mov rcx, qword [0x140103f30]
lea r8, [r9 - 1]
call fcn.1400afca0
test rdi, rdi
je 0x14005f3fd
cmp word [rdi], 0
je 0x14005f3fd
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x2b0], rbx
mov edx, 0x80
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x2c0], rsi
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14005f2f3
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14005f2f3
mov rcx, qword [rsp + 0x2b8]
jmp 0x14005f35d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14005f33d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.140046680
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl rcx, 0x20
or rcx, rax
mov qword [rsp + 0x2b8], rcx
movzx ebx, word [r14]
test ebx, 0xffffff80
je 0x14005f36d
xor eax, eax
jmp 0x14005f382
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov rcx, qword [rsp + 0x2b8]
mov edx, ebx
and edx, 0xffffffdf
test eax, eax
cmove edx, ebx
cmp edx, 0x4b
je 0x14005f3aa
cmp edx, 0x4d
jne 0x14005f3c4
mov rax, rcx
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x14005f3bc
mov rax, rcx
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x1400fe060]
xor edx, edx
mov rcx, rbp
mov dword [rax + 0x40], 0
call fcn.140046680
mov rdx, qword [rsp + 0x2b8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, qword [0x140103f30]
call fcn.1400014c0
mov eax, 1
jmp 0x14005f321
mov rax, qword [0x1400fe060]
mov dl, 1
mov rcx, rbp
mov dword [rax + 0x40], 0x57
call fcn.140046680
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
Function at 0x140074d70
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140074d85
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140074db1
movzx ecx, bl
cmp edx, 1
je 0x140074da3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x140074dbd
cmp bl, 3
jne 0x140074dc4
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x140074de2
cmp qword [0x140101c78], 0
jne 0x140074e04
movzx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140101c80], 0
je 0x140074dce
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140018330
test al, al
je 0x140074e04
mov cl, 1
call fcn.1400180d0
movzx eax, bl
lea rcx, [0x140102aa0]
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret

Function at 0x140075260
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rdi, rdx
mov esi, ecx
mov r8d, ecx
xor r15d, r15d
mov word [rdx], r15w
mov ecx, 0x410
xor edx, edx
movzx ebx, r9b
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x1400752ba
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14007540d
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rdi
mov rcx, r14
test bl, bl
je 0x1400752dc
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x1400752e2
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x1400753fa
mov rax, qword [0x1400e9ca8]
test rax, rax
je 0x1400753fa
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call rax
mov ebp, eax
test eax, eax
je 0x1400753fa
test bl, bl
je 0x140075354
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400753fa
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140075336
add r8, r8
lea rdx, [rax + 2]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
jmp 0x1400753fa
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
nop dword [rax]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x258]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ebx, eax
cmp eax, 2
jbe 0x1400753b3
add ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x1400753b3
cmp word [rdi + rbx*2], 0x5c
lea rdx, [rdi + rbx*2]
je 0x1400753ce
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x140075370
jmp 0x1400753fa
movzx eax, word [rsp + 0x258]
lea rcx, [rdi + 4]
mov word [rdi], ax
sub ebp, ebx
movzx eax, word [rsp + 0x25a]
mov word [rdi + 2], ax
lea r8d, [rbp + 1]
add r8, r8
call sub.VCRUNTIME140.dll_memmove
add ebp, 2
mov rcx, r14
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 r15
pop r14
pop rdi
ret
Function at 0x140079490
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140079569
cmp word [rdx], 0
je 0x140079569
lea r9, [rsp + 0x298]
mov edx, 0x104
lea r8, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, r8
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400794e0
xor ecx, ecx
test rax, rax
je 0x1400794fe
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x1400794fe
mov word [rsp + rax*2 + 0x6e], cx
lea rax, [rsp + 0x70]
cmp word [rax + r8*2 + 2], cx
lea r8, [r8 + 1]
jne 0x140079503
lea rax, [rsp + 0x70]
mov word [rsp + r8*2 + 0x72], cx
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
mov eax, 0x4054
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x30]
mov word [rsp + 0x50], ax
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x38], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov rcx, rbx
setne dl
call fcn.140046680
add rsp, 0x280
pop rbx
ret
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x1400795a1
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
add rsp, 0x280
pop rbx
ret
lea r9, [0x1400cb664]
xor r8d, r8d
call fcn.1400465b0
add rsp, 0x280
pop rbx
ret
Function at 0x1400795c0
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x140103f30]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400afca0
test rbx, rbx
je 0x14007978d
cmp word [rbx], 0
je 0x14007978d
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140079648
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140046680
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
xor edx, edx
mov r9, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140079734
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400e1c80]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140079734
mov rax, qword [rsp + 0x178]
lea r8, str._u._u._u._u
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.1400ab290
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400fe060]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140046680
mov rcx, qword [0x140103f30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400fe060]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400fe060]
lea rdx, [0x1400e0c2c]
test byte [rax + 0x140], 1
jne 0x140079779
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
jmp 0x140079715
lea r9, [0x1400cb664]
xor r8d, r8d
mov rcx, rdi
call fcn.1400465b0
jmp 0x14007971a
mov rax, qword [0x1400fe060]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140046680
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x140079a80
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
test dl, dl
jne 0x140079ab2
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140079b84
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea r9, [rsp + 0x290]
mov edx, 0x104
lea r8, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140079ae0
xor edi, edi
test rax, rax
je 0x140079afe
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x140079afe
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140079b84
test al, 0x10
je 0x140079b84
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x140079b20
lea rax, [rsp + 0x60]
mov word [rsp + rbx*2 + 0x62], di
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov eax, 0x614
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rbx, qword [rsp + 0x280]
xor al, al
add rsp, 0x270
pop rdi
ret
Function at 0x14007a1a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
jne 0x14007a1e6
lea edx, [rax + 0x3f]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
jne 0x14007a1e6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007a1fa
mov al, 1
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14007a205
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 0x14007a220
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14007a2aa
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14007a2aa
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x14007a2aa
mov al, 1
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x14007a2c0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14007a333
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14007a333
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14007a333
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 0x140093c40
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movzx eax, word [rcx]
xor bl, bl
mov rdi, rcx
test ax, ax
je 0x140093c8a
nop dword [rax]
cmp ax, 0x21
je 0x140093c7a
cmp ax, 0x2b
je 0x140093c76
cmp ax, 0x5e
jne 0x140093c8a
mov al, 2
jmp 0x140093c7c
mov al, 1
jmp 0x140093c7c
mov al, 4
add rdi, 2
or bl, al
movzx eax, word [rdi]
test ax, ax
jne 0x140093c60
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140018d40
movzx esi, al
test al, al
jne 0x140093cbd
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140018c30
movzx edx, ax
test ax, ax
jne 0x140093cdb
xor edx, edx
movzx ecx, sil
call fcn.140019a60
movzx edx, ax
mov eax, 0x100
and dx, ax
movzx eax, bl
or al, 8
movzx ecx, al
test dx, dx
movzx eax, bl
mov rbx, qword [rsp + 0x40]
cmove ecx, eax
movzx eax, cl
movzx ecx, sil
mov rsi, qword [rsp + 0x48]
shl ax, 8
or ax, cx
add rsp, 0x30
pop rdi
ret
Function at 0x140095d00
Capabilities:
Get keyboard layout

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov r14, rdx
mov rbx, rcx
nop
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140095d1f
cmp ax, 9
jne 0x140095d25
add rbx, 2
jmp 0x140095d10
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rdi
test ax, ax
je 0x140095ec7
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x140095d56
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x140095ec9
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
mov byte [rsp + 0x50], sil
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rbp, rax
test rax, rax
je 0x140095e4c
nop dword [rax + rax]
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x140095da8
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x140095d9f
cmp ax, 9
jne 0x140095da8
sub rdi, 2
cmp rdi, rbx
ja 0x140095d90
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140095dce
or sil, 1
jmp 0x140095e0a
mov r8, rdi
lea rdx, [0x1400cd778]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140095deb
or sil, 4
jmp 0x140095e0a
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140095ec7
or sil, 0x10
mov byte [rsp + 0x50], sil
lea rbx, [rbp + 2]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140095e22
cmp ax, 9
jne 0x140095e28
add rbx, 2
jmp 0x140095e13
test ax, ax
je 0x140095ec7
mov edx, 0x2b
lea rcx, [rbx + 2]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rbp, rax
test rax, rax
jne 0x140095d80
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x140095e80
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov r9b, 1
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8, rdi
call fcn.140018e70
movzx esi, byte [rsp + 0x50]
jmp 0x140095e98
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140018d40
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x140095eaa
or byte [r14], 8
test sil, 4
je 0x140095eb4
or byte [r14], 0x10
test sil, 0x10
je 0x140095ebe
or byte [r14], 4
cmp ax, 0
setne al
jmp 0x140095ec9
xor al, al
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop r14
pop rbx
ret