joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070d50
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 0x140070d94
cmp byte [rdx + 1], sil
jne 0x140070d94
cmp byte [rdx + 2], sil
jne 0x140070d94
cmp byte [rdx + 3], sil
jne 0x140070d94
cmp byte [rdx + 4], sil
je 0x140070f5c
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140070ee2
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140070ee2
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140070e0a
mov al, byte [rsp + 0x40]
mov cl, 0x80
cmp byte [rbx], sil
je 0x140070dd3
or al, cl
or byte [rbp - 0x30], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 1], sil
je 0x140070de2
or al, cl
or byte [rbp - 0x2f], cl
mov byte [rsp + 0x40], al
cmp byte [rbx + 2], sil
je 0x140070dec
or byte [rsp + 0x41], cl
cmp byte [rbx + 3], sil
je 0x140070df6
or byte [rsp + 0x42], cl
cmp byte [rbx + 4], sil
je 0x140070dff
or byte [rbp - 0x75], cl
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x140070e15
cmp byte [rbx + 1], sil
je 0x140070e38
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 0x140070e61
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 0x140070eb3
cmp byte [rbx + 2], sil
jne 0x140070e8c
cmp byte [rdi + 0x20], sil
jne 0x140070e8c
movzx eax, byte [rdi + 0x31]
mov edx, 0x104
shl eax, 0x10
movsxd r9, eax
or r9, 0x20000001
jmp 0x140070ea3
test al, al
je 0x140070eb3
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 0x140070f54
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 0x140070f54
cmp byte [rbx], sil
je 0x140070ef8
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
call fcn.140071378
cmp byte [rbx + 1], sil
je 0x140070f0f
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, 0xa1
mov rcx, rdi
call fcn.140071378
cmp byte [rbx + 2], sil
je 0x140070f26
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.140071378
cmp byte [rbx + 3], sil
je 0x140070f3d
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.140071378
cmp byte [rbx + 4], sil
je 0x140070f54
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
call fcn.140071378
mov rcx, rdi
call fcn.14006fa74
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 0x1400711ac
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx]
cmp edx, eax
jge 0x14006fa6c
mov edx, eax
jmp 0x1400711ac
test edx, edx
js 0x14007123b
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 0x1400711d2
xor ecx, ecx
jmp 0x140071226
cmp ebx, 0xf
jae 0x140071224
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140071224
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.140025fc4
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x1400711ee
jmp 0x14007122c
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 0x14007123c
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 0x14007126b
cmp byte [rcx + 9], dl
je 0x14007135e
xor r14d, r14d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r15b, r15b
je 0x14007131a
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 [0x1400e6198], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r15d, eax
test rdi, rdi
je 0x1400712f3
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400e6198]
mov dword [0x1400e619c], eax
cmp ecx, eax
je 0x1400712e1
lea r8d, [r14 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r14d, eax
mov eax, dword [0x1400e619c]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r15d, r15d
jne 0x14007135e
test r14d, r14d
jne 0x14007135e
test ebp, ebp
jne 0x14007135e
mov eax, dword [0x1400e6198]
cmp ebx, eax
jne 0x14007135e
cmp eax, dword [0x1400e619c]
jne 0x14007135e
and qword [rsi + 0x28], 0
jmp 0x14007135e
test rdi, rdi
je 0x14007134b
mov edx, dword [0x1400e619c]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400e6198]
mov edx, dword [0x1400e619c]
cmp eax, edx
je 0x140071351
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400e6198]
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 0x1400713e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx], 0xff
mov word [rcx + 8], dx
mov byte [rcx + 0xa], al
test dx, dx
je 0x140071448
movzx ecx, dx
call qword [sym.imp.USER32.dll_VkKeyScanW]
cmp ax, 0xffff
jne 0x140071415
xor al, al
jmp 0x140071448
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 0x140071436
mov byte [rbx + 1], al
test dil, 2
je 0x14007143f
mov byte [rbx + 3], al
test dil, 4
je 0x140071448
mov byte [rbx + 4], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140071454
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 0x140071482
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 0x14007377c
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.1400735f4
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 0x140073a04
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x140073a36
call fcn.1400754e0
test al, al
jne 0x140073a53
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 0x140073a49
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 0x140073a5c
Capabilities:
Copy file
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.140038f70
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.140074f74
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.140074f74
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x140073af6
test dil, dil
je 0x140073aef
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.140027bd4
test eax, eax
je 0x140073ae8
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x140073b9a
xor al, al
jmp 0x140073b9a
lea rcx, [rbp + 0xff80]
call fcn.140075484
test al, al
je 0x140073aef
lea rcx, [rbp - 0x80]
call fcn.140075484
test al, al
je 0x140073bb3
test dil, dil
je 0x140073aef
lea rdx, str..
lea rcx, [rbp + 0xff80]
call fcn.14002713c
lea rcx, [rbp + 0xff80]
call fcn.140026f78
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.140026f78
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete 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.14001f29c
lea rcx, [rsp + 0x58]
call fcn.140073ec8
lea rcx, [rsp + 0x58]
test al, al
sete bl
call fcn.14001c5f8
test bl, bl
jne 0x140073aef
lea rcx, [rbp - 0x80]
call fcn.140075484
test al, al
jmp 0x140073b1a
Function at 0x140073e8c
Capabilities:
Copy file

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

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [rcx]
lea rdx, [0x1400ac49c]
mov edi, 1
mov qword [rbp - 0x40], rax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x38], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx + 0x18]
lea rcx, [rbp - 0x40]
add dword [rax], edi
mov qword [rbp - 0x28], rax
call fcn.14001f520
mov rsi, qword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140073fbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x140073f4c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140073f51
jmp 0x140073fcc
cmp eax, 3
jne 0x140073fc7
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x20], rsi
lea rdx, [0x1400ac49c]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
add dword [rax], edi
call fcn.14001f140
or r8, 0xffffffffffffffff
cmp rax, r8
je 0x140073fb3
lea rcx, [rbp - 0x20]
mov rdx, rax
call fcn.14001f1a4
lea rcx, [rbp - 0x20]
call fcn.140073ec8
test al, al
je 0x140073fb1
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea rcx, [rbp - 0x20]
call fcn.14001c5f8
jmp 0x140073fc9
test al, 0x10
je 0x140073fc7
mov bl, dil
jmp 0x140073fc9
xor ebx, ebx
mov dil, bl
lea rcx, [rbp - 0x40]
call fcn.14001c5f8
lea r11, [rsp + 0x60]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140073ff0
Capabilities:
Delete file
Enumerate files on windows

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
lea rcx, [rsp + 0x30]
xor edi, edi
mov r14b, dil
call fcn.14001e7d0
lea rcx, [rsp + 0x70]
call fcn.14001e7d0
lea rcx, [rsp + 0x50]
call fcn.14001e7d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140025758
mov rcx, qword [rsp + 0x30]
call fcn.140075484
test al, al
je 0x140074064
lea rdx, str..
lea rcx, [rsp + 0x30]
call fcn.14001f100
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.14002555c
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov sil, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140074107
cmp sil, 1
jne 0x140074107
test byte [rbp - 0x70], 0x10
jne 0x1400740e6
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r14b, sil
call fcn.14001f504
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001ee40
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.14001f100
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x1400740fc
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007409b
mov sil, dil
jmp 0x14007409b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140074113
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.14001c5f8
lea rcx, [rsp + 0x70]
call fcn.14001c5f8
lea rcx, [rsp + 0x30]
call fcn.14001c5f8
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 0x140074180
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
xor edx, edx
mov r12, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rbp - 0x70], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rbp - 0x70]
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rdi, qword [r12]
xor r13d, r13d
mov byte [rbx], r13b
mov esi, r13d
cmp word [rdi], r13w
je 0x1400741ff
mov rcx, rdi
movzx ecx, word [rcx]
call fcn.140027cd0
test eax, eax
je 0x14007420f
inc esi
lea rcx, [rdi + rsi*2]
cmp word [rcx], r13w
jne 0x1400741e7
mov rcx, rdi
call fcn.140027c1c
mov rdi, rax
jmp 0x1400742c4
mov edi, r13d
jmp 0x1400742c4
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400742cd
lea rcx, [rsp + 0x30]
call fcn.14001e7d0
lea rcx, [rsp + 0x50]
call fcn.14001e7d0
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call fcn.14001f29c
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14002555c
lea rcx, [rsp + 0x70]
call fcn.14001c5f8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001ee40
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
call fcn.14001ec94
test eax, eax
jne 0x14007429f
mov eax, dword [rbp - 0x68]
jmp 0x1400742aa
test edi, edi
je 0x1400742b0
mov eax, dword [rbp - 0x68]
cmp edi, eax
jne 0x1400742b0
mov dword [r15], eax
mov byte [rbx], 1
lea rcx, [rsp + 0x50]
call fcn.14001c5f8
lea rcx, [rsp + 0x30]
call fcn.14001c5f8
cmp byte [rbx], r13b
je 0x140074217
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 0x1400742fc
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 0x140074340
xor al, al
jmp 0x1400743b9
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.1400271a0
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 0x14007433c
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 0x1400743d0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e5630]
xor edi, edi
cmp byte [rax + 0x39], dil
jne 0x1400743f8
mov eax, 0x80004005
jmp 0x140074492
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 0x1400743ee
xor eax, eax
mov qword [rsp + 0x38], rdi
mov r9d, reloc.WSOCK32.dll_ioctlsocket
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x40]
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
mov rcx, rsi
mov qword [rsp + 0x40], 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 0x1400743ee
cmp byte [rsp + 0x58], 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 0x140074c90
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 0x140074ccd
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140074cc0
or eax, 0xffffffff
jmp 0x140074ccd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x140074cd8
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 0x140074ed6
mov rcx, rdi
call fcn.14002686c
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.140026f78
lea rcx, [rax + 0x1a]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002686c
lea r15, [0x1400ac49c]
mov rdx, r15
mov rcx, rax
mov rdi, rax
call fcn.140027168
mov rdx, r15
mov rcx, rsi
call fcn.140027bd4
test eax, eax
je 0x140074e0b
lea rdx, str.StringFileInfo_
mov rcx, rdi
call fcn.14002713c
mov rdx, r15
mov rcx, rsi
call fcn.140028060
test rax, rax
jne 0x140074e00
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 0x140074de6
mov rax, qword [rsp + 0x40]
lea rdx, [rdi + 0x20]
mov r8d, 4
mov r11d, dword [rax]
mov ecx, r11d
call fcn.140024eac
shr r11, 0x10
lea rdx, [rdi + 0x28]
mov rcx, r11
call fcn.140024eac
jmp 0x140074df5
lea rdx, str.04090000
mov rcx, rdi
call fcn.14002713c
mov rdx, r15
mov rcx, rdi
call fcn.14002713c
mov rdx, rsi
mov rcx, rdi
call fcn.14002713c
lea rdx, str.DefaultLangCodepage
mov rcx, rsi
call fcn.14002747c
test eax, eax
jne 0x140074e49
lea rdx, [rdi + 0x20]
lea r8d, [rax + 8]
mov rcx, rbp
call fcn.1400287b8
mov rcx, r14
mov word [rbp + 0x10], bx
call fcn.140026914
mov rcx, rdi
call fcn.140026914
mov al, 1
jmp 0x140074ed6
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 0x140074ec4
mov rdx, r15
mov rcx, rsi
call fcn.140027bd4
test eax, eax
jne 0x140074ea8
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.140027d20
jmp 0x140074ec2
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, rbp
call fcn.1400287b8
mov word [rbp + 0x400], bx
mov bl, 1
mov rcx, r14
call fcn.140026914
mov rcx, rdi
call fcn.140026914
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