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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov dil, byte [rdx]
mov sil, byte [rdx + 7]
movzx ebp, word [rdx + 8]
xor r15d, r15d
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x28], r15
je 0x14004c586
cmp dil, 0x14
je 0x14004c586
lea eax, [rdi + 0x70]
cmp al, 1
jbe 0x14004c586
mov rcx, rdx
call fcn.14004b5cc
test al, al
je 0x14004c5f0
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004c521
movzx eax, dil
lea rcx, [rsp + 0x60]
xor byte [rsp + rax + 0x60], 0x80
call qword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, sil
mov rcx, r14
shl eax, 0x10
movsxd rsi, eax
mov eax, 0xc0000001
or rsi, rax
call fcn.14004b578
cmp al, 1
jne 0x14004c544
bts rsi, 0x18
cmp byte [rbx + 0x1b], r15b
jne 0x14004c556
cmp byte [rbx + 0x21], r15b
jne 0x14004c556
cmp dil, 0x12
jne 0x14004c56e
cmp byte [rbx + 0x1a], r15b
jne 0x14004c56e
cmp byte [rbx + 0x20], r15b
jne 0x14004c56e
bts rsi, 0x1d
mov edx, 0x105
jmp 0x14004c573
mov edx, 0x101
mov rcx, qword [rbx + 0x28]
mov r9, rsi
movzx r8d, dil
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14004c5f0
mov rcx, rdx
call fcn.14004b5cc
test al, al
je 0x14004c5ba
mov rcx, r14
call fcn.14004b578
mov r8b, sil
mov dl, dil
mov rcx, rbx
mov r9d, 3
cmp al, 1
je 0x14004c5b3
mov r9d, 2
call fcn.14004cc68
jmp 0x14004c5f0
mov r8d, SafeArrayCreateEx
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 1
lea ecx, [r8 - 0x27]
mov word [rsp + 0x38], r15w
mov word [rsp + 0x3a], bp
mov qword [rsp + 0x3c], 6
mov qword [rsp + 0x48], r15
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rbx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp fcn.14004b2f4

Function at 0x14004c614
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14004c310
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14004c4a0
Function at 0x14004c640
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 0x14004c684
cmp byte [rdx + 1], sil
jne 0x14004c684
cmp byte [rdx + 2], sil
jne 0x14004c684
cmp byte [rdx + 3], sil
jne 0x14004c684
cmp byte [rdx + 4], sil
je 0x14004c84c
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14004c7d2
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x14004c7d2
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004c6fa
mov al, byte [rsp + 0x40]
mov cl, 0x80
cmp byte [rbx], sil
je 0x14004c6c3
or al, cl
or byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x14004c6d2
or al, cl
or byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x14004c6dc
or byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x14004c6e6
or byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x14004c6ef
or byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x14004c705
cmp byte [rbx + 1], sil
je 0x14004c728
movzx eax, byte [rdi + 0x32]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recv
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x14004c751
movzx eax, byte [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recvfrom
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [rbx + 3]
test al, al
je 0x14004c7a3
cmp byte [rbx + 2], sil
jne 0x14004c77c
cmp byte [rdi + 0x20], sil
jne 0x14004c77c
movzx eax, byte [rdi + 0x31]
mov edx, 0x104
shl eax, 0x10
movsxd r9, eax
or r9, 0x20000001
jmp 0x14004c793
test al, al
je 0x14004c7a3
movzx eax, byte [rdi + 0x31]
mov edx, 0x100
shl eax, 0x10
movsxd r9, eax
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 0x14004c844
movzx eax, byte [rdi + 0x35]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, 0x5b
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14004c844
cmp byte [rbx], sil
je 0x14004c7e8
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 1], sil
je 0x14004c7ff
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, 0xa1
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 2], sil
je 0x14004c816
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 3], sil
je 0x14004c82d
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.14004cc68
cmp byte [rbx + 4], sil
je 0x14004c844
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
call fcn.14004cc68
mov rcx, rdi
call fcn.14004b310
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 0x14004ca9c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test edx, edx
js 0x14004cb2b
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, edx
movaps xmmword [rsp + 0x20], xmm7
test edx, edx
jne 0x14004cac2
xor ecx, ecx
jmp 0x14004cb16
cmp ebx, 0xf
jae 0x14004cb14
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004cb14
xorps xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm6, xmm6
sub rax, qword [rsp + 0x60]
cvtsi2sd xmm6, rax
call fcn.14002402c
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14004cade
jmp 0x14004cb1c
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 0x14004cb2c
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 0x14004cb5b
cmp byte [rcx + 9], dl
je 0x14004cc4e
xor r14d, r14d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r15b, r15b
je 0x14004cc0a
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r14 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400ddc64], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r15d, eax
test rdi, rdi
je 0x14004cbe3
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400ddc64]
mov dword [0x1400ddc68], eax
cmp ecx, eax
je 0x14004cbd1
lea r8d, [r14 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14d, eax
mov eax, dword [0x1400ddc68]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r15d, r15d
jne 0x14004cc4e
test r14d, r14d
jne 0x14004cc4e
test ebp, ebp
jne 0x14004cc4e
mov eax, dword [0x1400ddc64]
cmp ebx, eax
jne 0x14004cc4e
cmp eax, dword [0x1400ddc68]
jne 0x14004cc4e
and qword [rsi + 0x28], 0
jmp 0x14004cc4e
test rdi, rdi
je 0x14004cc3b
mov edx, dword [0x1400ddc68]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400ddc64]
mov edx, dword [0x1400ddc68]
cmp eax, edx
je 0x14004cc41
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400ddc64]
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 0x14004ccd0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, dx
mov rbx, rcx
mov qword [rcx], 0xff
mov byte [rcx + 0xa], 0
mov word [rcx + 8], dx
call fcn.14004b56c
test al, al
jne 0x14004ccfc
xor al, al
jmp 0x14004cd3e
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanW]
cmp ax, 0xffff
je 0x14004ccf8
movzx edi, ax
movzx ecx, al
xor edx, edx
sar di, 8
mov byte [rbx], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
test al, dil
je 0x14004cd2c
mov byte [rbx + 1], al
test dil, 2
je 0x14004cd35
mov byte [rbx + 3], al
test dil, 4
je 0x14004cd3e
mov byte [rbx + 4], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004cd4c
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov dil, dl
mov rbx, rcx
mov dword [rcx + 6], esi
mov dword [rcx + 1], esi
mov byte [rcx + 5], sil
mov byte [rcx + 0xa], sil
mov byte [rcx], dl
call fcn.14004b5cc
test al, al
je 0x14004cd8d
movzx ecx, dil
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 7], al
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004f128
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14004ee04
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004f340
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14004f372
call fcn.140050b04
test al, al
jne 0x14004f38f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14004f385
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x14004f398
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rbx, rdx
lea rdx, [rbp + 0x170]
mov dil, r8b
call fcn.14001787c
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14001787c
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
jne 0x14004f423
test dil, dil
je 0x14004f41c
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call fcn.140026678
test eax, eax
je 0x14004f415
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x14004f4cb
xor al, al
jmp 0x14004f4cb
lea rcx, [rbp + 0x170]
call fcn.140050ae4
test al, al
je 0x14004f41c
lea rcx, [rsp + 0x60]
call fcn.140050ae4
test al, al
je 0x14004f4e0
test dil, dil
je 0x14004f41c
lea rdx, str..
lea rcx, [rbp + 0x170]
call fcn.140025bb4
lea rcx, [rbp + 0x170]
call fcn.140025b98
lea rcx, [rsp + 0x60]
mov word [rbp + rax*2 + 0x172], bx
call fcn.140025b98
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
lea rax, [rbp + 0x170]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 2
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x60]
call fcn.14004f774
test al, al
je 0x14004f41c
lea rcx, [rsp + 0x60]
call fcn.140050ae4
test al, al
jmp 0x14004f448
Function at 0x14004f504
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

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 - 0x1028]
mov eax, 0x1100
call fcn.140036710
sub rsp, rax
mov rbx, rdx
lea rdx, [rbp + 0x360]
xor edi, edi
mov r15b, r9b
mov r12b, r8b
mov sil, dil
call fcn.14001787c
lea rdx, [rbp + 0x570]
mov rcx, rbx
call fcn.14001787c
lea rdx, [rbp + 0x570]
lea rcx, [rbp + 0x360]
call fcn.140050a4c
lea rcx, [rbp + 0x360]
mov r13b, al
call fcn.140050ae4
test al, al
je 0x14004f592
lea rdx, str..
lea rcx, [rbp + 0x360]
call fcn.140025bb4
lea rcx, [rbp + 0x570]
call fcn.140050ae4
test al, al
je 0x14004f5b5
lea rdx, str..
lea rcx, [rbp + 0x570]
call fcn.140025bb4
lea rax, [rbp + 0xdf0]
lea r9, [rbp + 0x9d0]
lea r8, [rbp + 0xbe0]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x360]
mov qword [rsp + 0x20], rax
call fcn.140026db8
lea rdx, [rbp + 0x780]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14b, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f743
cmp r14b, 1
jne 0x14004f743
test byte [rbp + 0x780], 0x10
jne 0x14004f716
lea rax, [rbp + 0x150]
lea r9, [rbp + 0x570]
lea r8, [rbp + 0xdf0]
lea rdx, [rbp + 0x9d0]
lea rcx, [rbp + 0x7ac]
mov qword [rsp + 0x20], rax
call fcn.14004ff08
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140025be0
lea rdx, [rbp + 0xbe0]
lea rcx, [rsp + 0x40]
call fcn.140025bb4
lea rdx, [rbp + 0x7ac]
lea rcx, [rsp + 0x40]
call fcn.140025bb4
lea rcx, [rbp + 0x150]
call fcn.140017fa0
test al, al
je 0x14004f6b5
test r12b, r12b
je 0x14004f736
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004f6d4
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
cmp r15b, 1
jne 0x14004f706
test r13b, r13b
jne 0x14004f6ec
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14004f70f
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14004f746
jmp 0x14004f713
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004f736
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14004f70f
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14004f736
mov sil, 1
lea rdx, [rbp + 0x780]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004f604
mov r14b, dil
jmp 0x14004f604
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004f752
mov dil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, dil
lea r11, [rsp + 0x1100]
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 0x14004f774
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, 0x230
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140015d8c
lea rcx, [rsp + 0x20]
call fcn.140025b98
xor esi, esi
mov edi, 0x5c
test rax, rax
je 0x14004f7bb
cmp word [rsp + rax*2 + 0x1e], di
jne 0x14004f7bb
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004f846
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14004f7eb
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14004f7f0
mov al, 1
jmp 0x14004f84c
cmp eax, 3
jne 0x14004f84a
lea rcx, [rsp + 0x20]
call fcn.140017ab4
mov edx, edi
mov rcx, rax
mov rbx, rax
call fcn.140027724
mov rcx, rbx
test rax, rax
jne 0x14004f816
call fcn.140025ab0
jmp 0x14004f84a
mov word [rax], si
call fcn.14004f774
mov rcx, rbx
mov dil, al
call fcn.140025ab0
test dil, dil
je 0x14004f841
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne dil
mov al, dil
jmp 0x14004f84c
test al, 0x10
jne 0x14004f7e7
xor al, al
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14004f864
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov r14b, bl
call fcn.14001787c
lea rcx, [rsp + 0x30]
call fcn.140050ae4
test al, al
je 0x14004f8af
lea rdx, str..
lea rcx, [rsp + 0x30]
call fcn.140025bb4
lea r8, [rbp + 0x390]
lea rdx, [rbp + 0x5c8]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call fcn.140026db8
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov sil, 1
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f95b
cmp sil, 1
jne 0x14004f95b
test byte [rbp + 0x140], 0x10
jne 0x14004f942
lea rdx, [rbp + 0x5c8]
lea rcx, [rsp + 0x30]
mov r14b, sil
call fcn.140025be0
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x30]
call fcn.140025bb4
lea rdx, [rbp + 0x16c]
lea rcx, [rsp + 0x30]
call fcn.140025bb4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14004f95e
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004f8ed
mov sil, bl
jmp 0x14004f8ed
mov bl, r14b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x6a0]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004f99c
Capabilities:
Enumerate processes

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, 0x690
mov r14, rdx
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rbp
mov byte [rbx], 0
call fcn.14005073c
mov esi, eax
jmp 0x14004fa6f
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x14004fa74
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea rcx, [rsp + 0x5c]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140026db8
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.140025bb4
lea rcx, [rsp + 0x270]
mov rdx, rbp
call fcn.140025f34
test eax, eax
jne 0x14004fa5d
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
jmp 0x14004fa6c
test esi, esi
je 0x14004fa6f
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x14004fa6f
mov dword [r14], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x14004f9f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x690]
mov al, 1
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
ret

Function at 0x14004faa0
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
and dword [rdx], 0
mov rdi, rdx
mov edx, 0x80
xor r9d, r9d
lea r8d, [rdx - 0x7d]
mov dword [rax - 0x60], edx
mov dword [rax - 0x68], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004fae4
xor al, al
jmp 0x14004fb5d
and dword [rsp + 0x40], 0
and dword [rsp + 0x44], 0
xor eax, eax
lea ebx, [rax + 0x28]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x48], eax
call fcn.140025c10
and qword [rsp + 0x38], 0
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
lea r9d, [rbx - 0x1c]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004fae0
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 0x14004fb74
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400dbff8]
xor edi, edi
cmp byte [rax + 0x39], dil
jne 0x14004fb9c
mov eax, 0x80004005
jmp 0x14004fc36
mov edx, 0x80
mov qword [rsp + 0x30], rdi
xor r9d, r9d
lea r8d, [rdx - 0x7d]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004fb92
xor eax, eax
mov qword [rsp + 0x38], rdi
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov rcx, rsi
mov qword [rsp + 0x50], 7
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004fb92
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 0x1400503d8
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbp, rdx
lea rdx, [rax - 0x38]
mov rsi, r8
mov r15, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ebx, ebx
mov edi, eax
test eax, eax
je 0x1400505d6
mov rcx, rdi
call fcn.140025a08
mov r8d, edi
xor edx, edx
mov r9, rax
mov rcx, r15
mov r14, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rsi
call fcn.140025b98
lea rcx, [rax + 0x1a]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140025a08
lea r15, [0x1400afb94]
mov rdx, r15
mov rcx, rax
mov rdi, rax
call fcn.140025be0
mov rdx, r15
mov rcx, rsi
call fcn.140026678
test eax, eax
je 0x14005050b
lea rdx, str.StringFileInfo_
mov rcx, rdi
call fcn.140025bb4
mov rdx, r15
mov rcx, rsi
call fcn.140026b00
test rax, rax
jne 0x140050500
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400504e6
mov rax, qword [rsp + 0x40]
lea rdx, [rdi + 0x20]
mov r8d, 4
mov r11d, dword [rax]
mov ecx, r11d
call fcn.14000dcb0
shr r11, 0x10
lea rdx, [rdi + 0x28]
mov rcx, r11
call fcn.14000dcb0
jmp 0x1400504f5
lea rdx, str.04090000
mov rcx, rdi
call fcn.140025bb4
mov rdx, r15
mov rcx, rdi
call fcn.140025bb4
mov rdx, rsi
mov rcx, rdi
call fcn.140025bb4
lea rdx, str.DefaultLangCodepage
mov rcx, rsi
call fcn.140025f34
test eax, eax
jne 0x140050549
lea rdx, [rdi + 0x20]
lea r8d, [rax + 8]
mov rcx, rbp
call fcn.140027138
mov rcx, r14
mov word [rbp + 0x10], bx
call fcn.140025ab0
mov rcx, rdi
call fcn.140025ab0
mov al, 1
jmp 0x1400505d6
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400505c4
mov rdx, r15
mov rcx, rsi
call fcn.140026678
test eax, eax
jne 0x1400505a8
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, rbp
shr r8d, 0x10
call fcn.1400267c4
jmp 0x1400505c2
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, rbp
call fcn.140027138
mov word [rbp + 0x400], bx
mov bl, 1
mov rcx, r14
call fcn.140025ab0
mov rcx, rdi
call fcn.140025ab0
mov al, bl
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret