joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140077b74
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x160
mov dil, byte [rdx]
mov rbx, rcx
mov bpl, byte [rdx + 7]
xor r14d, r14d
movzx ecx, word [rdx + 8]
mov rsi, rdx
mov r9d, 1
cmp qword [rbx + 0x28], r14
je 0x140077c59
cmp dil, 0x14
je 0x140077c59
lea eax, [rdi + 0x70]
cmp al, r9b
jbe 0x140077c59
cmp dil, 0xff
je 0x140077cba
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140077bf7
movzx eax, dil
lea rcx, [rsp + 0x60]
xor byte [rsp + rax + 0x60], 0x80
call qword [sym.imp.USER32.dll_SetKeyboardState]
mov rcx, rsi
call fcn.140076c88
movzx r9d, al
mov eax, 0xc0000001
shl r9, 0x18
add r9, rax
movzx eax, bpl
shl rax, 0x10
or r9, rax
cmp byte [rbx + 0x1b], r14b
jne 0x140077c2c
cmp byte [rbx + 0x21], r14b
jne 0x140077c2c
cmp dil, 0x12
jne 0x140077c44
cmp byte [rbx + 0x1a], r14b
jne 0x140077c44
cmp byte [rbx + 0x20], r14b
jne 0x140077c44
bts r9, 0x1d
mov edx, 0x105
jmp 0x140077c49
mov edx, 0x101
mov rcx, qword [rbx + 0x28]
movzx r8d, dil
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140077cba
cmp dil, 0xff
je 0x140077c88
mov rcx, rsi
call fcn.140076c88
cmp al, r9b
mov r8b, bpl
mov r9d, 3
mov dl, dil
mov rcx, rbx
je 0x140077c81
mov r9d, 2
call fcn.1400782e8
jmp 0x140077cba
mov word [rsp + 0x3a], cx
lea rdx, [rsp + 0x30]
mov ecx, r9d
mov dword [rsp + 0x30], r9d
mov r8d, SafeArrayCreateEx
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x3c], 6
mov qword [rsp + 0x48], r14
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
jmp fcn.140076a20
Function at 0x140077ce0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x140077d24
cmp byte [rdx + 1], sil
jne 0x140077d24
cmp byte [rdx + 2], sil
jne 0x140077d24
cmp byte [rdx + 3], sil
jne 0x140077d24
cmp byte [rdx + 4], sil
je 0x140077ee2
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140077e68
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140077e68
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140077d9a
mov cl, 0x80
mov al, byte [rsp + 0x40]
cmp byte [rbx], sil
je 0x140077d63
or al, cl
or byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x140077d72
or al, cl
or byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x140077d7c
or byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x140077d86
or byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x140077d8f
or byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x140077da5
cmp byte [rbx + 1], sil
je 0x140077dc7
movzx r9d, byte [rdi + 0x32]
mov edx, 0x100
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recv
shl r9, 0x10
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x140077def
movzx r9d, byte [rdi + 0x30]
mov edx, 0x100
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_recvfrom
shl r9, 0x10
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 3], sil
je 0x140077e3a
cmp byte [rbx + 2], sil
jne 0x140077e18
cmp byte [rdi + 0x20], sil
jne 0x140077e18
movzx r9d, byte [rdi + 0x31]
mov edx, 0x104
shl r9, 0x10
or r9, 0x20000001
jmp 0x140077e2a
movzx r9d, byte [rdi + 0x31]
mov edx, 0x100
shl r9, 0x10
or r9, 1
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x140077eda
movzx r9d, byte [rdi + 0x35]
mov edx, 0x100
mov rcx, qword [rdi + 0x28]
mov r8d, 0x5b
shl r9, 0x10
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140077eda
cmp byte [rbx], sil
je 0x140077e7e
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 1], sil
je 0x140077e95
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, 0xa1
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 2], sil
je 0x140077eac
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 3], sil
je 0x140077ec3
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 4], sil
je 0x140077eda
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
call fcn.1400782e8
mov rcx, rdi
call fcn.140076a38
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140077efc
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x130
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x140077f44
cmp byte [rdx + 1], sil
jne 0x140077f44
cmp byte [rdx + 2], sil
jne 0x140077f44
cmp byte [rdx + 3], sil
jne 0x140077f44
cmp byte [rdx + 4], sil
je 0x140078109
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140078089
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140078089
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140077fba
mov cl, 0x80
mov al, byte [rsp + 0x40]
cmp byte [rbx], sil
je 0x140077f83
xor al, cl
xor byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x140077f92
xor al, cl
xor byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x140077f9c
xor byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x140077fa6
xor byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x140077faf
xor byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
mov r15d, 0xc0000001
mov r14d, 0x101
cmp byte [rbx], sil
jne 0x140077fd1
cmp byte [rbx + 1], sil
je 0x140077ff0
movzx r9d, byte [rdi + 0x32]
mov r8d, reloc.WSOCK32.dll_recv
mov rcx, qword [rdi + 0x28]
mov edx, r14d
shl r9, 0x10
or r9, r15
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x140078015
movzx r9d, byte [rdi + 0x30]
mov r8d, reloc.WSOCK32.dll_recvfrom
mov rcx, qword [rdi + 0x28]
mov edx, r14d
shl r9, 0x10
or r9, r15
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 3], sil
je 0x14007805e
cmp byte [rbx + 2], sil
jne 0x14007803f
cmp byte [rdi + 0x20], sil
jne 0x14007803f
movzx r9d, byte [rdi + 0x31]
mov eax, 0xe0000001
shl r9, 0x10
mov edx, 0x105
or r9, rax
jmp 0x14007804e
movzx r9d, byte [rdi + 0x31]
mov edx, r14d
shl r9, 0x10
or r9, r15
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x140078101
movzx r9d, byte [rdi + 0x35]
mov r8d, 0x5b
mov rcx, qword [rdi + 0x28]
mov edx, r14d
shl r9, 0x10
or r9, r15
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140078101
mov r14d, 2
cmp byte [rbx], sil
je 0x1400780a5
mov r8b, byte [rdi + 0x33]
mov r9d, r14d
mov dl, 0xa0
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 1], sil
je 0x1400780bc
mov r8b, byte [rdi + 0x34]
mov r9d, r14d
mov dl, 0xa1
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 2], sil
je 0x1400780d3
mov r8b, byte [rdi + 0x30]
mov r9d, r14d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 3], sil
je 0x1400780ea
mov r8b, byte [rdi + 0x31]
mov r9d, r14d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.1400782e8
cmp byte [rbx + 4], sil
je 0x140078101
mov r8b, byte [rdi + 0x35]
mov r9d, r14d
mov dl, 0x5b
mov rcx, rdi
call fcn.1400782e8
mov rcx, rdi
call fcn.140076a20
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140078128
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x1400781aa
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm7
mov ebx, ecx
test ecx, ecx
je 0x140078195
cmp ebx, 0xf
jae 0x140078193
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140078193
xorps xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x58]
xorps xmm6, xmm6
sub rax, qword [rsp + 0x60]
cvtsi2sd xmm6, rax
call fcn.140024364
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14007815d
jmp 0x14007819b
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x1400781ac
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15b, r8b
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x1400781db
cmp byte [rcx + 9], dl
je 0x1400782ce
xor r14d, r14d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r15b, r15b
je 0x14007828a
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r14 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400f2040], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r15d, eax
test rdi, rdi
je 0x140078263
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400f2040]
mov dword [0x1400f2044], eax
cmp ecx, eax
je 0x140078251
lea r8d, [r14 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14d, eax
mov eax, dword [0x1400f2044]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r15d, r15d
jne 0x1400782ce
test r14d, r14d
jne 0x1400782ce
test ebp, ebp
jne 0x1400782ce
mov eax, dword [0x1400f2040]
cmp ebx, eax
jne 0x1400782ce
cmp eax, dword [0x1400f2044]
jne 0x1400782ce
and qword [rsi + 0x28], 0
jmp 0x1400782ce
test rdi, rdi
je 0x1400782bb
mov edx, dword [0x1400f2044]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400f2040]
mov edx, dword [0x1400f2044]
cmp eax, edx
je 0x1400782c1
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400f2040]
xor r8d, r8d
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140078350
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov qword [rcx], 0xff
mov byte [rcx + 0xa], al
mov rbx, rcx
mov word [rcx + 8], dx
test dx, dx
je 0x1400783b9
movzx ecx, dx
call qword [sym.imp.USER32.dll_VkKeyScanW]
movzx edi, ax
cmp ax, 0xffff
jne 0x140078388
xor al, al
jmp 0x1400783b9
movzx ecx, dil
xor edx, edx
mov byte [rbx], cl
sar di, 8
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
test al, dil
je 0x1400783a7
mov byte [rbx + 1], al
test dil, 2
je 0x1400783b0
mov byte [rbx + 3], al
test dil, 4
je 0x1400783b9
mov byte [rbx + 4], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400783c4
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov dword [rcx + 6], eax
mov dword [rcx + 1], eax
mov byte [rcx + 5], al
mov byte [rcx + 0xa], al
mov byte [rcx], dl
cmp dl, 0xff
je 0x1400783f2
movzx ecx, dl
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14007a20c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14007a237
and dword [rcx + 0x10], 0
and dword [rcx + 0x14], 0
call fcn.14007a0e0
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
add qword [rbx + 0x18], rax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007a4c4
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.1400474f0
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.14007b8b0
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.14007b8b0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x14007a554
test dil, dil
je 0x14007a582
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.140027b40
test eax, eax
je 0x14007a550
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x14007a584
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007a582
test al, 0x10
je 0x14007a582
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007a59d
test al, 0x10
je 0x14007a59d
test dil, dil
jne 0x14007a5db
xor al, al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.1400094fc
lea rcx, [rsp + 0x58]
call fcn.14007a968
test al, al
lea rcx, [rsp + 0x58]
sete bl
call fcn.1400079ac
test bl, bl
jne 0x14007a582
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007a582
test al, 0x10
je 0x14007a582
lea rdx, [0x1400dc208]
lea rcx, [rbp + 0xff80]
call fcn.14002c310
lea rcx, [rbp + 0xff80]
call fcn.1400272dc
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.1400272dc
xorps xmm0, xmm0
mov dword [rsp + 0x44], esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
movdqu xmmword [rsp + 0x48], xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x14007a584
Function at 0x14007a930
Capabilities:
Copy file

Disassembly:
sub rsp, 0x38
mov rdx, qword [rdx]
lea rax, [rsp + 0x40]
mov rcx, qword [rcx]
xor r9d, r9d
and dword [rsp + 0x40], 0
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp eax, 1
sete al
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [rcx + 0x10]
lea rsi, [0x1400b5498]
mov r8, qword [rcx + 8]
xor edx, edx
mov rbx, qword [rcx]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [r8 - 1]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x38], rax
inc dword [rax]
test r8, r8
je 0x14007a9ea
xor r10d, r10d
mov r11d, 0x5c
xor r9d, r9d
cmp word [rbx + rcx*2], r11w
lea rax, [r9 + 1]
movzx r11d, word [rsi + r10*2 + 2]
lea r10, [r10 + 1]
cmovne rax, r9
mov r9, rax
test r11w, r11w
jne 0x14007a9ba
test rax, rax
je 0x14007aa32
dec rcx
inc rdx
cmp rdx, r8
jb 0x14007a9ae
xor edx, edx
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
call fcn.14000942c
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007aaf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14007aa3e
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14007aa47
mov bl, 1
jmp 0x14007aafa
cmp rcx, 0xffffffffffffffff
je 0x14007a9ea
lea rdx, [rcx + 1]
jmp 0x14007a9ec
cmp eax, 3
jne 0x14007aaf8
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rdi
inc dword [rax]
xor eax, eax
mov rcx, qword [rsp + 0x48]
lea rdx, [rcx - 1]
test rcx, rcx
je 0x14007aaab
mov r10, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, 0x5c
cmp word [r10 + rdx*2], r8w
je 0x14007aab9
movzx r8d, word [rsi + r9*2 + 2]
inc r9
test r8w, r8w
jne 0x14007aa8a
dec rdx
inc rax
cmp rax, rcx
jb 0x14007aa81
xor bl, bl
lea rcx, [rsp + 0x40]
call fcn.1400079ac
jmp 0x14007aafa
cmp rdx, 0xffffffffffffffff
je 0x14007aaab
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
call fcn.14000942c
lea rcx, [rsp + 0x40]
call fcn.14007a968
movzx ebx, al
test al, al
je 0x14007aaad
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
jmp 0x14007aaad
test al, 0x10
jne 0x14007aa2b
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.1400079ac
mov rsi, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14007ab18
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x30]
mov r14b, dil
call fcn.140008ce8
lea rcx, [rsp + 0x70]
call fcn.140008ce8
lea rcx, [rsp + 0x50]
call fcn.140008ce8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140023940
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007ab92
test al, 0x10
je 0x14007ab92
lea rdx, [0x1400dc208]
lea rcx, [rsp + 0x30]
call fcn.1400093ec
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140023a10
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov sil, 1
cmp rax, 0xffffffffffffffff
je 0x14007ac35
cmp sil, 1
jne 0x14007ac35
test byte [rbp - 0x70], 0x10
jne 0x14007ac14
lea rdx, [rsp + 0x70]
mov r14b, sil
lea rcx, [rsp + 0x30]
call fcn.140009694
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400091f4
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.1400093ec
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14007ac2a
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007abc9
mov sil, dil
jmp 0x14007abc9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14007ac41
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.1400079ac
lea rcx, [rsp + 0x70]
call fcn.1400079ac
lea rcx, [rsp + 0x30]
call fcn.1400079ac
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14007ac80
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov r15, rdx
mov dword [rbp - 0x70], 0x238
xor edx, edx
mov r12, rcx
mov rbx, r8
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x70]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rsi, qword [r12]
xor r13d, r13d
mov byte [rbx], r13b
mov edi, r13d
movzx ecx, word [rsi]
jmp 0x14007acf2
call fcn.140028e70
test eax, eax
je 0x14007ad07
inc edi
movzx ecx, word [rsi + rdi*2]
test cx, cx
jne 0x14007ace3
mov rcx, rsi
call fcn.140028dbc
mov rdi, rax
jmp 0x14007adce
mov edi, r13d
jmp 0x14007adce
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14007add7
lea rcx, [rsp + 0x30]
call fcn.140008ce8
lea rcx, [rsp + 0x50]
call fcn.140008ce8
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call fcn.1400094fc
lea rax, [rsp + 0x50]
xor r8d, r8d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140023a10
lea rcx, [rsp + 0x70]
call fcn.1400079ac
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400091f4
mov rax, qword [r12 + 8]
mov r9, qword [r12]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.140008f8c
test eax, eax
jne 0x14007ada9
mov eax, dword [rbp - 0x68]
jmp 0x14007adb4
test edi, edi
je 0x14007adba
mov eax, dword [rbp - 0x68]
cmp edi, eax
jne 0x14007adba
mov dword [r15], eax
mov byte [rbx], 1
lea rcx, [rsp + 0x50]
call fcn.1400079ac
lea rcx, [rsp + 0x30]
call fcn.1400079ac
cmp byte [rbx], r13b
je 0x14007ad0f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x2d0]
mov al, 1
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14007ae04
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
and qword [rax - 0x58], 0
mov rdi, rdx
and dword [rdx], 0
xor r9d, r9d
mov edx, 0x80
mov dword [rax - 0x60], edx
lea r8d, [rdx - 0x7d]
mov dword [rax - 0x68], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007ae48
xor al, al
jmp 0x14007aec1
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
and dword [rsp + 0x44], 0
xor eax, eax
xor edx, edx
mov dword [rsp + 0x48], eax
lea ebx, [rax + 0x28]
mov r8d, ebx
call fcn.140026550
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x98]
and dword [rsp + 0x98], 0
lea r9d, [rbx - 0x1c]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov edx, 0x2d1400
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007ae44
mov eax, dword [rsp + 0x6c]
mov dword [rdi], eax
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14007aed8
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
xor edi, edi
mov edx, 0x80
mov qword [rax - 0x38], rdi
xor r9d, r9d
mov dword [rax - 0x40], edx
lea r8d, [rdi + 3]
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007af17
mov eax, 0x80004005
jmp 0x14007af84
xor eax, eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x54], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov r9d, reloc.WSOCK32.dll_ioctlsocket
mov dword [rsp + 0x48], eax
mov edx, 0x2d1400
lea rax, [rsp + 0x78]
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14007af10
cmp byte [rsp + 0x48], dil
setne dil
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14007b650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007b68d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14007b680
or eax, 0xffffffff
jmp 0x14007b68d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret