joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.140002da0
test al, al
je 0x14000d9b9
xor al, al
jmp 0x14000db19
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002e64
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.140003660
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000db0a
lea rcx, [rsp + 0x48]
call fcn.140001fec
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14001b370
test al, al
je 0x14000da27
lea rcx, [rsp + 0x48]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140001c70
cmp ebx, 0xffffffff
jne 0x14000db0a
lea rcx, [rsp + 0x28]
call fcn.140002db0
cmp rax, 2
jbe 0x14000db06
lea rcx, [rsp + 0x28]
call fcn.140002db0
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.140001ca0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14000da75
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x14000da9b
lea rcx, [rsp + 0x28]
call fcn.140002db0
dec rax
cmp qword [rbx + 0x18], 8
jb 0x14000da94
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x14000db06
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.140003660
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000db0a
lea rcx, [rsp + 0x48]
call fcn.140001fec
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14001b370
test al, al
je 0x14000daf7
lea rcx, [rsp + 0x48]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140001c70
cmp ebx, 0xffffffff
jne 0x14000db0a
xor bl, bl
jmp 0x14000db0c
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.140001c70
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a08a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14000db40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.140002da0
test al, al
je 0x14000db79
xor al, al
jmp 0x14000dcdf
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002e64
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.140003660
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000dbf2
lea rcx, [rsp + 0x48]
call fcn.140001fec
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14001b370
test al, al
je 0x14000dbe3
lea rcx, [rsp + 0x48]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140001c70
cmp ebx, 0xffffffff
je 0x14000dbfb
test bl, 0x10
je 0x14000dcd0
lea rcx, [rsp + 0x28]
call fcn.140002db0
cmp rax, 2
jbe 0x14000dccc
lea rcx, [rsp + 0x28]
call fcn.140002db0
mov rdi, rax
lea rcx, [rsp + 0x28]
call fcn.140001ca0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14000dc36
mov rcx, qword [rax]
cmp word [rcx + rdi*2 - 2], 0x5c
je 0x14000dc5c
lea rcx, [rsp + 0x28]
call fcn.140002db0
dec rax
cmp qword [rbx + 0x18], 8
jb 0x14000dc55
mov rbx, qword [rbx]
cmp word [rbx + rax*2], 0x2f
jne 0x14000dccc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.140003660
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000dcc7
lea rcx, [rsp + 0x48]
call fcn.140001fec
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14001b370
test al, al
je 0x14000dcb8
lea rcx, [rsp + 0x48]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140001c70
cmp ebx, 0xffffffff
je 0x14000dccc
test bl, 0x10
je 0x14000dcd0
xor bl, bl
jmp 0x14000dcd2
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.140001c70
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a08a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14000dd00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
call fcn.140002da0
test al, al
je 0x14000dd3f
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a08a0
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002e64
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.140003660
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000ddb8
lea rcx, [rsp + 0x48]
call fcn.140001fec
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14001b370
test al, al
je 0x14000dda9
lea rcx, [rsp + 0x48]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140001c70
cmp ebx, 0xffffffff
je 0x14000ddc1
test bl, 0x10
je 0x14000ddc1
mov bl, 1
jmp 0x14000ddc3
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140001c70
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a08a0
add rsp, 0x70
pop rbx
ret
Function at 0x14000e9d0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
xor ebx, ebx
call fcn.140002da0
test al, al
je 0x14000ea18
xor al, al
jmp 0x14000ebd5
mov rcx, rsi
call fcn.14000dd00
test al, al
je 0x14000ea2b
mov al, 1
jmp 0x14000ebd5
mov rcx, rsi
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ea7a
lea rcx, [rbp - 0x50]
call fcn.140001fec
nop
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14001b370
test al, al
je 0x14000ea71
lea rcx, [rbp - 0x50]
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x50]
call fcn.140001c70
mov rcx, rsi
call fcn.14000dd00
test al, al
jne 0x14000ea24
mov rcx, rsi
call fcn.140002db0
mov r14, rax
test rax, rax
je 0x14000eb72
mov rcx, rsi
call fcn.140001ca0
mov rdi, rax
mov r12d, 0x2f
lea r15d, [r12 + 0x2d]
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14000eac0
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x14000eade
mov rax, rdi
cmp rdx, 8
jb 0x14000ead3
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x14000eb66
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.140003d80
nop
lea rcx, [rbp - 0x50]
call fcn.140002da0
test al, al
jne 0x14000eb5d
lea rcx, [rbp - 0x50]
call fcn.14000d980
test al, al
jne 0x14000eb5d
lea rcx, [rbp - 0x50]
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000eb5d
lea rcx, [rbp - 0x30]
call fcn.140001fec
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14001b370
test al, al
je 0x14000eb53
lea rcx, [rbp - 0x30]
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x30]
call fcn.140001c70
nop
lea rcx, [rbp - 0x50]
call fcn.140001c70
inc rbx
cmp rbx, r14
jb 0x14000eab0
mov rcx, rsi
call fcn.14000d980
test al, al
jne 0x14000ebcd
mov rcx, rsi
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ebcd
lea rcx, [rbp - 0x30]
call fcn.140001fec
nop
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.14001b370
test al, al
je 0x14000ebc4
lea rcx, [rbp - 0x30]
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x30]
call fcn.140001c70
mov rcx, rsi
call fcn.14000dd00
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400a08a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000f240
Capabilities:
Get common file path

Disassembly:
jmp 0x14001b0c0
push rbp
sub rsp, 0x480
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, rcx
call fcn.140002db8
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x412
call fcn.1400a2390
lea rdx, [rsp + 0x40]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x206
jbe 0x14001b115
xor al, al
jmp 0x14001b33d
mov qword [rsp + 0x498], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x4a0], rsi
mov qword [rsp + 0x4a8], rdi
mov qword [rsp + 0x478], r14
mov qword [rsp + 0x470], r15
xor r15d, r15d
mov word [rsp + 0x450], r15w
call fcn.140001de4
mov rcx, rbp
mov rsi, rax
call fcn.140001ca0
mov rdi, rax
mov r14, qword [rax + 0x18]
cmp rsi, r14
ja 0x14001b1a3
mov rbx, rax
cmp r14, 8
jb 0x14001b176
mov rbx, qword [rax]
mov r8, rsi
mov qword [rax + 0x10], rsi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001ddc
lea rcx, [rbx + rsi*2]
mov word [rsp + 0x20], r15w
lea rdx, [rsp + 0x20]
call fcn.140001dd4
jmp 0x14001b313
mov rcx, rbp
call fcn.140001f74
cmp rsi, rax
ja 0x14001b356
mov rcx, rbp
call fcn.140001f74
mov rcx, rsi
mov rbx, rax
or rcx, 7
mov qword [rsp + 0x38], rcx
cmp rcx, rax
ja 0x14001b208
mov rcx, rbp
call fcn.140001ca0
mov rdx, qword [rax + 0x18]
mov rax, rbx
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
ja 0x14001b208
lea rax, [rcx + rdx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.140001d84
mov rbx, qword [rax]
lea rax, [rbx + 1]
movabs rcx, 0x7fffffffffffffff
lea rdx, [rax + rax]
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x14001b22b
mov rdx, r8
jmp 0x14001b234
cmp rdx, 0x1000
jb 0x14001b25e
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.1400a08c4
mov rcx, rax
test rax, rax
je 0x14001b35c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14001b270
test rdx, rdx
je 0x14001b26d
mov rcx, rdx
call fcn.1400a08c4
jmp 0x14001b270
mov rax, r15
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x10], rsi
mov r8, rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140001ddc
lea rcx, [rbx + rsi*2]
mov word [rsp + 0x20], r15w
lea rdx, [rsp + 0x20]
call fcn.140001dd4
cmp r14, 8
jb 0x14001b2eb
mov rcx, qword [rdi]
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
jb 0x14001b2dc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b35c
mov rcx, r8
call fcn.1400a0900
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x14001b313
lea rcx, [rsp + 0x28]
call fcn.140001ca0
mov rcx, rdi
mov rbx, rax
call fcn.140001ca0
mov rdx, rax
mov ecx, 8
call fcn.140001bf0
mov rcx, qword [rbx]
mov qword [rax], rcx
mov r14, qword [rsp + 0x478]
mov al, 1
mov rdi, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4a0]
mov rbx, qword [rsp + 0x498]
mov r15, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400a08a0
add rsp, 0x480
pop rbp
ret
call fcn.140001f60
int3
call fcn.1400a4d80
int3
Function at 0x14000f250
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rsi, r8
mov rbp, rdx
mov rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.140002e64
nop
lea rcx, [rsp + 0x78]
call fcn.140002da0
test al, al
je 0x14000f2b8
lea rcx, [rsp + 0x78]
call fcn.14001aa50
test al, al
jne 0x14000f2b8
lea rcx, [rsp + 0x78]
call fcn.140002db8
mov eax, dword [0x14011f630]
test al, 1
jne 0x14000f2e1
or eax, 1
mov dword [0x14011f630], eax
xor ecx, ecx
call fcn.1400a7fa4
mov rcx, rax
call fcn.1400a7ef4
nop
mov eax, dword [0x14011f630]
test al, 2
jne 0x14000f31e
or eax, 2
mov dword [0x14011f630], eax
call fcn.1400a7ec8
mov r8d, eax
mov eax, 0x10624dd3
imul r8d
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x3e8
sub r8d, ecx
mov dword [0x14011f628], r8d
mov eax, dword [0x14011f630]
test al, 4
jne 0x14000f353
or eax, 4
mov dword [0x14011f630], eax
call fcn.1400a7ec8
mov ebx, eax
mov eax, 0x68db8bad
imul ebx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x1388
sub ebx, ecx
mov dword [0x14011f62c], ebx
jmp 0x14000f359
mov ebx, dword [0x14011f62c]
lea rcx, [rsp + 0x58]
call fcn.140001fec
nop
inc ebx
mov dword [0x14011f62c], ebx
mov rcx, rbp
call fcn.140001c60
mov r9d, dword [0x14011f628]
mov dword [rsp + 0x20], ebx
mov r8, rax
lea rdx, str._sD._.03d._.03d
lea rcx, [rsp + 0x58]
call fcn.1400069c0
lea rcx, [rsp + 0x58]
call fcn.140002da0
test al, al
jne 0x14000f48d
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140003b40
nop
mov rdx, rax
mov rcx, rsi
call fcn.140002dcc
nop
lea rcx, [rsp + 0x38]
call fcn.140001c70
mov rcx, rsi
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f47c
lea rcx, [rsp + 0x98]
call fcn.140001fec
nop
lea rdx, [rsp + 0x98]
mov rcx, rsi
call fcn.14001b370
test al, al
je 0x14000f429
lea rcx, [rsp + 0x98]
call fcn.140001c60
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f46f
lea rcx, [rsp + 0x98]
call fcn.140001c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000f48d
mov edi, dword [0x14011f628]
inc edi
mov dword [0x14011f628], edi
mov ebx, dword [0x14011f62c]
inc ebx
mov dword [0x14011f62c], ebx
mov rcx, rbp
call fcn.140001c60
mov r9d, edi
jmp 0x14000f37b
lea rcx, [rsp + 0x98]
call fcn.140001c70
mov edx, 0x10
mov rcx, rsi
call fcn.140003660
mov bl, 1
jmp 0x14000f48f
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.140001c70
nop
lea rcx, [rsp + 0x78]
call fcn.140001c70
movzx eax, bl
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400a08a0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400156d0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, 0x110
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.1400a2390
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x140015750
cmp dword [rsp + 0x24], 6
jb 0x140015750
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a08a0
add rsp, 0x150
pop rbx
ret

Function at 0x140015770
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.140001c78
nop
call fcn.1400161e0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.140016280
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140001c70
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.140001c78
nop
call fcn.1400161e0
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.140016280
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.140001c70
test rbx, rbx
je 0x1400158c6
test rdi, rdi
je 0x1400158c6
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140016d80
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.140001c78
nop
call fcn.1400161e0
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140016280
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140001c70
test rbx, rbx
je 0x140016fe9
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140016fe9
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.140001c78
nop
call fcn.1400161e0
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140016280
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140001c70
test rbx, rbx
je 0x140016fe3
lea rdx, str.GetFileVersionInfoExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r15, r15
je 0x140016ef5
test rax, rax
je 0x140016ef5
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.140001c60
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x140016fe3
mov edx, edi
mov ecx, 1
call fcn.1400a815c
mov rbx, rax
mov rcx, r14
call fcn.140001c60
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rsp + 0x70]
xor ecx, ecx
call r15
test eax, eax
jne 0x140016f6f
mov rcx, rbx
call fcn.1400a7bbc
movzx eax, sil
jmp 0x140016feb
lea rdx, str.GetFileVersionInfoW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x140016fe3
test rax, rax
je 0x140016fe3
mov rcx, r14
call fcn.140001c60
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x140016fe3
mov edx, edi
mov ecx, 1
call fcn.1400a815c
mov rbx, rax
mov rcx, r14
call fcn.140001c60
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x140016fdb
test rbx, rbx
je 0x140016fe3
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x1400e5508]
mov rcx, rbx
call rbp
test eax, eax
je 0x140016fdb
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140016fdb
cmp dword [rsp + 0x74], 0
jbe 0x140016fdb
cmp dword [rcx], 0xfeef04bd
jne 0x140016fdb
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r13], eax
movzx eax, word [rcx + 0xe]
mov rdx, qword [rsp + 0x30]
mov dword [rdx], eax
movzx eax, word [rcx + 0xc]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov sil, 1
mov rcx, rbx
call fcn.1400a7bbc
movzx eax, sil
jmp 0x140016feb
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a08a0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001a710
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rdi, rcx
and ebx, 0xffffb1af
call fcn.140001c60
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14001a756
mov al, 1
jmp 0x14001a79e
lea rcx, [rsp + 0x28]
call fcn.140001fec
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001b370
test al, al
je 0x14001a78f
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14001a78f
mov bl, 1
jmp 0x14001a791
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.140001c70
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a08a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x14011c018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14001a838
lea rcx, [rsp + 0x28]
call fcn.140001fec
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001b370
test al, al
je 0x14001a82c
lea rcx, [rsp + 0x28]
call fcn.140001c60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.140001c70
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a08a0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret