joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039b34
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov esi, 1
mov edx, dword [rbp + 0x1b8]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14000c4dc
nop
mov r9, qword [rsp + 0x28]
mov r8d, dword [rbp + 0x1b8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x140039c11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140060914
mov r9d, esi
mov r8, qword [rax]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x60]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
mov rcx, rbx
call fcn.140015a24
mov edx, edi
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 8]
call fcn.14000c350
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 8], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
jmp 0x140039cdb
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [0x1400e5f90]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140039c60
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + 0xa]
mov word [r15], ax
movzx eax, word [rcx + 8]
mov word [r14], ax
movzx eax, word [rcx + 0xe]
mov word [rdi], ax
movzx ecx, word [rcx + 0xc]
mov rax, qword [rbp + 0x1b0]
mov word [rax], cx
jmp 0x140039ce3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140060914
mov r9d, esi
mov r8, qword [rax]
mov edx, 2
lea rcx, [rbp + 0x68]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetBasicFileVersion::VerQueryValue_failedError_code_
mov rcx, rbx
call fcn.140015a24
mov edx, edi
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x110]
call fcn.14000c350
lea rax, [rbp + 0x110]
mov qword [rsp + 0x50], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x110], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.140067b68
xor sil, sil
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140039d2f
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140039d1b
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039d4f
call fcn.1400696d0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
mov al, sil
lea r11, [rsp + 0x270]
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
call fcn.14008b8bc
int3
Function at 0x140049664
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1400496bf
mov rax, qword [rcx + 8]
mov r10, qword [rcx]
mov r8, qword [rcx + 0x18]
mov r9, qword [rcx + 0x10]
mov r11d, edx
add r10, rax
add r9, r8
rol rax, 0xd
xor rax, r10
rol r8, 0x10
xor r8, r9
rol r10, 0x20
add r9, rax
add r10, r8
rol rax, 0x11
rol r8, 0x15
xor rax, r9
xor r8, r10
rol r9, 0x20
sub r11, 1
jne 0x14004967a
mov qword [rcx + 8], rax
mov qword [rcx], r10
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x10], r9
ret

Function at 0x140049880
Capabilities:
Generate random numbers via rtlgenrandom
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
xor ebx, ebx
lea rcx, str.kernel32
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x140049a0c
lea rdx, str.LoadLibraryExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r14, str.ADVAPI32.DLL
mov rbp, rax
mov rcx, r14
lea rdx, [0x1400fc018]
call fcn.1400c30bc
lea r13d, [rbx + 1]
test rax, rax
je 0x140049904
mov rcx, r14
test rbp, rbp
je 0x1400498fc
lea r8d, [rbx + 8]
jmp 0x140049927
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140049932
test rbp, rbp
je 0x14004993a
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004993a
mov r8d, 0x800
mov rcx, r14
xor edx, edx
mov rax, rbp
call qword [case.0x140050ed0.0]
mov rdi, rax
jmp 0x1400499d4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140049a0c
lea ecx, [rax + 1]
add rcx, 0xc
call fcn.14009b160
mov rsi, rax
test rax, rax
je 0x1400499cc
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400499cc
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp byte [rsi + rax], bl
jne 0x14004997a
mov edx, 0x5c
mov word [rax + rsi], dx
inc rcx
cmp byte [rsi + rcx], bl
jne 0x14004998b
mov rdx, rsi
sub rdx, r14
add rdx, rcx
mov al, byte [r14]
mov byte [rdx + r14], al
add r14, r13
test al, al
jne 0x14004999c
mov rcx, rsi
test rbp, rbp
je 0x1400499c3
xor edx, edx
mov rax, rbp
lea r8d, [rdx + 8]
call qword [case.0x140050ed0.0]
jmp 0x1400499c9
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
mov rcx, rsi
call fcn.14008c510
test rdi, rdi
je 0x140049a0c
lea rdx, str.SystemFunction036
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140049a03
mov edx, 4
mov rcx, r12
call qword [case.0x140050ed0.0]
cmp al, r13b
cmove ebx, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140063310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140063335
xor eax, eax
jmp 0x140063445
cmp qword [rcx + 0x68], 0
je 0x140063349
lfence
call fcn.14000ded0
jmp 0x140063445
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140063365
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140063367
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x1400633a1
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140087bd0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x60], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14006343a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400633dc
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x140063416
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140092424
sub rbp, rax
add r14, rax
mov qword [rsp + 0x60], rbp
mov rbx, rbp
cmp rax, r15
jne 0x14006343a
cmp rbp, r15
ja 0x1400633e7
test rbx, rbx
je 0x14006343a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140092424
sub rbx, rax
mov qword [rsp + 0x60], rbx
lfence
sub rdi, qword [rsp + 0x60]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140063840
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.140087fe0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [rsp + 0x20]
cmp ecx, 5
ja 0x1400638b9
je 0x1400638b0
test ecx, ecx
je 0x1400638a7
sub ecx, 1
je 0x14006389e
sub ecx, 1
je 0x140063895
sub ecx, 1
je 0x14006388c
cmp ecx, 1
jne 0x1400638d2
lea rax, [0x1400cf350]
jmp 0x140063906
lea rax, [0x1400cf348]
jmp 0x140063906
lea rax, str.ALPHA
jmp 0x140063906
lea rax, str.MIPS
jmp 0x140063906
lea rax, [0x1400cf320]
jmp 0x140063906
lea rax, [0x1400cf358]
jmp 0x140063906
sub ecx, 6
je 0x1400638ff
sub ecx, 1
je 0x1400638f6
sub ecx, 1
je 0x1400638ed
sub ecx, 1
je 0x1400638e4
cmp ecx, 1
je 0x1400638db
lea rax, str.UNKNOWN
jmp 0x140063906
lea rax, str.IA32_ON_WIN64
jmp 0x140063906
lea rax, str.AMD64
jmp 0x140063906
lea rax, str.MSIL
jmp 0x140063906
lea rax, str.ALPHA64
jmp 0x140063906
lea rax, str.IA64
add rsp, 0x58
ret
Function at 0x14006415c
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140123108]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], 0
mov rcx, rbx
call fcn.140068288
test eax, eax
jne 0x1400643cd
mov byte [rsp + 0x38], 1
mov rax, qword [rdi + 8]
cmp qword [rax + 0x50], 0
je 0x1400641d7
mov rcx, rbx
call fcn.1400682ac
test eax, eax
jne 0x1400643d5
jmp 0x1400643a6
add rax, 0x64
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x140064400]
xor edx, edx
xor ecx, ecx
call fcn.1400931ac
mov rcx, qword [rdi + 8]
mov qword [rcx + 0x50], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x14006439a
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1400642bf
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000c3c0
nop
lea rsi, [rax + 0x10]
lea rdx, str.SetThreadPriority_failed:
mov rcx, rsi
call fcn.140015a24
lea rcx, [rsp + 0x158]
call fcn.14006381c
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14006426e
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call fcn.140017564
nop
lea rcx, [rsp + 0x158]
call fcn.140001a14
nop
lea rcx, [rsp + 0xf8]
call fcn.14000c350
nop
lea rsi, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.140067b68
nop
jmp 0x1400642c6
lea rsi, vtable.std::ios_base.0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x14006437a
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000c3c0
nop
lea rdi, [rax + 0x10]
lea rdx, str.ResumeThread_failed:
mov rcx, rdi
call fcn.140015a24
lea rcx, [rsp + 0x158]
call fcn.14006381c
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140064327
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140017564
nop
lea rcx, [rsp + 0x158]
call fcn.140001a14
nop
lea rcx, [rsp + 0xf8]
call fcn.14000c350
nop
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.140067b68
nop
jmp 0x14006436c
mov rcx, rbx
call fcn.1400682ac
test eax, eax
jne 0x1400643dd
jmp 0x1400643a6
mov rax, qword [rdi + 8]
mov byte [rax + 0x60], 1
mov rax, qword [rdi + 8]
mov byte [rax + 0x61], 0
mov rcx, rbx
call fcn.1400682ac
test eax, eax
jne 0x1400643e5
mov al, 1
jmp 0x1400643a8
mov rcx, rbx
call fcn.1400682ac
test eax, eax
jne 0x1400643ed
xor al, al
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400697f0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.1400683bc
nop
mov ecx, eax
call fcn.1400683bc
nop
mov ecx, eax
call fcn.1400683bc
nop
mov ecx, eax
call fcn.1400683bc
nop
mov ecx, eax
call fcn.1400683bc
int3
Function at 0x140064954
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140064962
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x14006d30c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006d31f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14006d938
lea rdx, [0x140120830]
lea rcx, [rsp + 0x20]
call fcn.140088238
int3

Function at 0x140077d5c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140128670]
xor edx, edx
jmp fcn.14006d30c

Function at 0x14007872c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140128670]
jmp fcn.14006d30c

Function at 0x140084680
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140084740]
mov r9, qword [r9 + 8]
jmp fcn.1400756c4

Function at 0x140084714
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140084750]
mov r9, qword [r9 + 8]
jmp fcn.1400756c4
Function at 0x1400bb880
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x1400bb943
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x1400bb8b4
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400bb946
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x1400bb8ff
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1400bb903
test rax, rax
je 0x1400bb943
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400bb934
cmp rdx, rax
jb 0x1400bb920
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc1e0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x14012d8d8]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x1400bc229
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.1400bce40
mov qword [0x14012d8d8], rax
test rax, rax
je 0x1400bc306
cmp qword [0x14012d8e0], rsi
jne 0x1400bc259
lea rdx, [0x1400e4a40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d8e0], rax
test rax, rax
je 0x1400bc306
mov rax, qword [0x14012d8d8]
cmp qword [0x14012d8e8], rsi
jne 0x1400bc289
lea rdx, [0x1400e4a58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d8e8], rax
test rax, rax
je 0x1400bc306
mov rax, qword [0x14012d8d8]
cmp qword [0x14012d8f8], rsi
jne 0x1400bc2b5
lea rdx, [0x1400e4910]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d8f8], rax
test rax, rax
je 0x1400bc306
mov rax, qword [0x14012d8d8]
cmp qword [0x14012d8f0], rsi
jne 0x1400bc2e1
lea rdx, [0x1400e4a70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d8f0], rax
test rax, rax
je 0x1400bc306
mov rax, qword [0x14012d8d8]
cmp qword [0x14012d658], rsi
jne 0x1400bc30d
lea rdx, [0x1400e4938]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d658], rax
test rax, rax
jne 0x1400bc30d
xor eax, eax
jmp 0x1400bc3ad
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x14012d8e0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400bc3a6
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x14012d8e8]
test eax, eax
je 0x1400bc39d
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.1400bc780
cmp eax, 1
je 0x1400bc3c3
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x14012d8e8]
test eax, eax
jne 0x1400bc360
mov rcx, rdi
call qword [0x14012d658]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x1400bc3a8
Function at 0x1400bd9f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400bdc15
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x1400bda16
test rax, rax
je 0x1400bda54
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x1400bdc15
cmp r8w, 0x2f
je 0x1400bdc15
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x1400bda30
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.1400bdc30
mov rsi, rax
test rax, rax
je 0x1400bdb45
mov qword [rsp + 0x50], r14
call fcn.1400be490
mov r14, rax
test rax, rax
je 0x1400bdb32
mov rcx, rsi
call fcn.1400bb6e0
test eax, eax
je 0x1400bdb1b
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x1400bdac7
mov r8, rbx
mov rcx, rsi
call fcn.140093290
test eax, eax
je 0x1400bdaef
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x1400bdac0
jmp 0x1400bdafe
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.1400bd090
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x1400bdb29
mov rcx, rsi
call fcn.1400bb680
test eax, eax
je 0x1400bdb29
mov rbp, rsi
xor esi, esi
jmp 0x1400bdb29
mov rdx, rsi
mov rcx, r14
call fcn.1400bd090
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x1400bdbe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400bdbea
mov rcx, rbx
call fcn.1400bb560
mov rdi, rax
test rax, rax
je 0x1400bdbea
mov ecx, 0x37e4
call fcn.1400bcc20
test eax, eax
je 0x1400bdb7f
xor ecx, ecx
call fcn.1400be130
jmp 0x1400bdb84
call fcn.1400be490
mov rbx, rax
test rax, rax
je 0x1400bdbd8
mov rdx, rdi
mov rcx, rax
call fcn.1400bd090
mov rbp, rax
test rax, rax
je 0x1400bdbcf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400bdbb1
test al, 0x50
je 0x1400bdbcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400bdbc4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1400bdbea
xor ecx, ecx
jmp 0x1400bdbf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400bdbfd
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400be490
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400be4f2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400be4e7
cmp edi, eax
jb 0x1400be4e7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c0474
Capabilities:
Hash data via wincrypt

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400c04a0
mov eax, 0xffffffff
cmp r8, rax
ja 0x1400c04a0
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x1400c06f0
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [rcx + 8]
mov rbx, rcx
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c0713
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c0727
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
mov rcx, rbx
call fcn.1400c05cc
mov r9d, eax
mov dword [rsp + 0x20], 0xf0000060
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400c076e
mov rcx, rbx
call fcn.1400c04a8
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400c0798
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c0780
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c0794
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
xor al, al
jmp 0x1400c079a
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret