joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097b68
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x108]
sub rsp, 0x1f0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140097bca
lea r9, str.pNLM_is_null_in_CNetListManager::Initialize____returning...
mov edx, 0x353
mov ecx, 0x65d25d
lea r8d, [rdi + 0x64]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1254]
jmp 0x140097d51
mov ecx, 0x203
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov byte [rbx + 0xd8], 1
mov rsi, qword [rbx + 0x20]
cmp rsi, rdi
je 0x140097c23
nop word [rax + rax]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140089b1f.8]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140097c1c
and qword [rbx + 0x20], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140089b1f.8]
nop
mov qword [rbx + 0x20], rdi
mov rsi, rdi
lea rdi, [rbx + 0x28]
test rsi, rsi
je 0x140097c63
mov rax, qword [rsi]
mov r14, qword [rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140097c4c
and qword [rdi], 0
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x140089b1f.8]
nop
mov r8, rdi
lea rdx, [0x140166fd8]
mov rcx, rsi
mov rax, r14
call qword [case.0x140089b1f.8]
nop
or edi, 0xffffffff
mov word [rsp + 0x20], di
lea rcx, [rbx + 0xb0]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x30], 0
and dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [rdi + 2]
lock xadd dword [rsp + 0x30], eax
test eax, eax
jne 0x140097cb2
cmp dword [rsp + 0x34], eax
je 0x140097ca8
xor edx, edx
mov ecx, 0x131f4c4
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
nop
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [rsp + 0x34], eax
mov rcx, qword [rbx + 0x20]
test rcx, rcx
jne 0x140097cc9
xor edx, edx
mov ecx, 0x152139a
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
nop
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
mov rax, qword [rax + 0x60]
call qword [case.0x140089b1f.8]
test eax, eax
js 0x140097ced
cmp word [rsp + 0x20], di
sete al
mov byte [rbx + 0xa8], al
mov word [rsp + 0x24], di
mov rcx, qword [rbx + 0x20]
test rcx, rcx
jne 0x140097d09
xor edx, edx
mov ecx, 0x152139a
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
nop
mov rax, qword [rcx]
lea rdx, [rsp + 0x24]
mov rax, qword [rax + 0x58]
call qword [case.0x140089b1f.8]
test eax, eax
js 0x140097d2d
cmp word [rsp + 0x24], di
sete al
mov byte [rbx + 0xa9], al
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0xe0], rax
lea rcx, [rsp + 0x28]
call fcn.140017110
nop
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140107ad0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400d34a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor edi, edi
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], rdi
jne 0x1400d34db
xor al, al
jmp 0x1400d356d
lea rcx, [rsp + 0x48]
call fcn.1400dad5c
cmp byte [rsp + 0x48], dil
lea r9, [rsp + 0x50]
cmove r9, rdi
cmp qword [rbx + 0x18], 8
jb 0x1400d34fd
mov rbx, qword [rbx]
mov dword [rsp + 0x38], 1
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov edx, 0x40000000
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d356a
mov r8d, dword [rsi + 0x10]
add r8d, r8d
mov dword [rsp + 0x40], edi
cmp qword [rsi + 0x18], 8
jb 0x1400d3545
mov rsi, qword [rsi]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov rcx, rbx
setne dil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140107ad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400de2b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r14, rcx
xor r15d, r15d
mov rcx, qword [rcx + 0x30]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x1400de47c
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r15d
jb 0x1400de314
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
cmp eax, 2
je 0x1400de427
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400de427
test r8d, r8d
jne 0x1400de49b
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400de362
mov rcx, qword [rbx]
lea rsi, [rbx + 0x10]
mov qword [rsi], r15
mov word [rcx], r15w
cmp dword [rsp + 0x30], 2
ja 0x1400de37b
mov al, 1
jmp 0x1400de429
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rsi]
ja 0x1400de3a1
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400de397
mov rax, qword [rbx]
mov qword [rsi], rdx
mov word [rax + rdx*2], r15w
jmp 0x1400de3af
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000c9e4
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400de3bc
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400de3c9
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, qword [r14 + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400de44f
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rsi]
ja 0x1400de414
cmp qword [rbx + 0x18], 8
jb 0x1400de407
mov rbx, qword [rbx]
mov qword [rsi], rdx
mov word [rbx + rdx*2], r15w
jmp 0x1400de374
sub rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
call fcn.14000c9e4
jmp 0x1400de374
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0x428]
add rsp, 0x3e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400df128
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r9, rdi
lea rcx, [rsp + 0x40]
call fcn.1400df230
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [r14 + 0x10]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400df128
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e0914
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
sub rsp, 0x880
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x870], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x800
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x1400e09b6
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov word [rsp + 0x60], bx
mov qword [rsp + 0x48], rax
lea r8d, [rbx + 0xa]
lea rax, str.Information
mov edx, 0x75d
mov qword [rsp + 0x50], rax
mov ecx, 0x229b158
lea rax, str.CryptStringToBinaryW_failed
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, str.SignatureValidator::CreateCertificate
mov qword [rsp + 0x20], rax
call fcn.14000ed84
xor eax, eax
jmp 0x1400e09cb
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x880
pop rbx
ret
Function at 0x1400e1340
Capabilities:
Hash data via wincrypt

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rsi, rcx
sub r8d, 1
je 0x1400e146b
cmp r8d, 1
je 0x1400e13c1
cmp qword [rdx + 0x18], 8
jb 0x1400e138b
mov rbx, qword [rdx]
xor edi, edi
test rbx, rbx
je 0x1400e13a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1400e1396
jmp 0x1400e13a4
mov rax, rdi
lea r8d, [rax + rax]
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
jmp 0x1400e1511
lea rcx, [rbp - 0x49]
call fcn.1400e1534
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400e13d7
mov r8, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x49]
call fcn.1400c53ec
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 0x10
cmovae rdx, qword [rbp - 0x71]
xor r9d, r9d
mov r8d, dword [rbp - 0x61]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
xor edi, edi
test eax, eax
setne bl
mov rax, qword [rbp - 0x59]
cmp rax, 0x10
jb 0x1400e144c
mov rcx, qword [rbp - 0x71]
mov rdx, rcx
inc rax
cmp rax, 0x1000
jb 0x1400e1445
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400e1445
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
movdqa xmm0, xmmword [0x140195c00]
movdqu xmmword [rbp - 0x61], xmm0
mov byte [rbp - 0x71], dil
lea rcx, [rbp - 0x49]
call fcn.1400c4d70
jmp 0x1400e1511
lea rcx, [rbp - 0x49]
call fcn.1400c4e70
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400e1481
mov r8, qword [rbx]
mov rax, qword [rbx + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x49]
call fcn.1400c53ec
lea rdx, [rbp - 0x71]
cmp qword [rbp - 0x59], 0x10
cmovae rdx, qword [rbp - 0x71]
xor r9d, r9d
mov r8d, dword [rbp - 0x61]
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
xor edi, edi
test eax, eax
setne bl
mov rax, qword [rbp - 0x59]
cmp rax, 0x10
jb 0x1400e14f6
mov rcx, qword [rbp - 0x71]
mov rdx, rcx
inc rax
cmp rax, 0x1000
jb 0x1400e14ef
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400e14ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
movdqa xmm0, xmmword [0x140195c00]
movdqu xmmword [rbp - 0x61], xmm0
mov byte [rbp - 0x71], dil
lea rcx, [rbp - 0x49]
call fcn.1400c4d70
nop
mov al, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0x110]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e1b10
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x400
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x1400e1b3f
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400e1b5e
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400e1b5e
test byte [rsp + 0x30], 0x10
jne 0x1400e1b7e
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400e1b6b
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400e1b7e
test dil, dil
jne 0x1400e1ba1
jmp 0x1400e1b80
mov al, 1
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0x418]
add rsp, 0x400
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov r8d, eax
call fcn.1400e23ac
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400e1bd0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x3d0
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400e1bf8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e1c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400e1c3b
cmp eax, 5
jne 0x1400e1c37
mov rcx, rbx
call fcn.1400e1c84
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400e1c27
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e1c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e1c56
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x3d0
pop rbx
ret
lea r9, str.failed_to_delete_file__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14008fbfc
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400e1c84
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x3e0
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
cmp qword [rcx + 0x18], 8
mov edx, 0x80
mov dword [rsp + 0x30], edx
mov rbx, rcx
jb 0x1400e1cb5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400e1cd8
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x3e0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.1400e24a8
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e2824
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x328]
sub rsp, 0x410
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x1400e29c3
xor r14d, r14d
mov qword [rsp + 0x58], r14
lea esi, [r14 + 7]
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x48], r14w
jmp 0x1400e2901
cmp dword [rsp + 0x38], 2
jne 0x1400e2938
movzx r9d, word [rsp + 0x30]
cmp r9w, 0xa
je 0x1400e2938
cmp r9w, 0xd
je 0x1400e2973
mov eax, 0xfeff
cmp r9w, ax
je 0x1400e28fd
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
jae 0x1400e28ee
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rsi, 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x1400e28f8
lea rcx, [rsp + 0x48]
call fcn.140017a54
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x38], r14d
lea r9, [rsp + 0x38]
mov r8d, 2
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e288d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x1400e2a1c
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140107ad0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e29a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x1400e29eb
jmp 0x1400e2938
cmp word [rsp + 0x30], 0xa
je 0x1400e2938
mov rdx, 0xfffffffffffffffe
lea r8d, [rdx + 3]
mov rcx, rdi
call fcn.14008f284
jmp 0x1400e2938
lea r8, str.trying_to_read_from_a_file_thats_not_open
mov edx, Ordinal_25
lea rcx, [rsp + 0x70]
call fcn.14001d43c
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.read_from_file_failed
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.1400e2b20
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.read_from_file_failed
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.1400e2b20
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e3248
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x103d0
call fcn.140109ab0
sub rsp, rax
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
jb 0x1400e327e
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x1400e32db
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
lea rdx, [rsp + 0x3c0]
mov rcx, rbx
mov word [rbx], ax
call fcn.14000c968
mov rax, rbx
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x103d0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1400e34a8
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400e3300
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x318]
sub rsp, 0x410
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x400
lea rcx, [0x140117fc8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400e3366
mov rdx, qword [rsp + 0x20]
test rdx, rdx
jne 0x1400e338e
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0xc400
lea rcx, [0x140117fc8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400e339b
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x1400e339b
mov rcx, rbx
call fcn.14000c968
jmp 0x1400e346f
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
lea rdx, str._ALLUSERSPROFILE_
lea rcx, [rsp + 0x30]
call fcn.14000c968
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400e3248
mov rdx, rax
mov rcx, rbx
call fcn.14000cba0
mov ebx, 0x1000
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x1400e341d
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
cmp rax, rbx
jb 0x1400e3417
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400e3417
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], di
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x1400e346f
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rdx, rcx
cmp rax, rbx
jb 0x1400e3468
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400e3468
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400e3484
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140107ad0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400f9588
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov r10, qword [rcx + 0x30]
cmp r10, 0xffffffffffffffff
je 0x1400f9627
and dword [rsp + 0x30], 0
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400f95bd
mov rax, qword [rdx]
mov rcx, qword [rdx + 0x10]
mov edx, 0xffffffff
cmp rcx, rdx
ja 0x1400f9643
and qword [rsp + 0x20], 0
lea r8d, [rcx + rcx]
mov rcx, r10
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400f9602
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x3e8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400e2a50
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x40]
call fcn.1400e3648
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140007678
int3

Function at 0x1400f964c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x3d0
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
je 0x1400f96a0
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140107ad0
add rsp, 0x3d0
pop rbx
ret
lea rcx, [rsp + 0x30]
call fcn.1400e2be8
lea rdx, [0x140196ae8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140100924
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
lea rax, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov rdi, rcx
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x17]
lea rax, str.FilePath
mov rbx, rdx
mov qword [rbp + 0xf], rax
call fcn.14000cc2c
xor r14d, r14d
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x39], rax
mov edx, 0x75b
lea rax, str.Information
mov word [rbp + 0x37], r14w
mov qword [rbp - 0x31], rax
mov ecx, 0x1259498
lea rax, str.Entering_SCAUtils::MarkFileAsInvalid
mov word [rbp - 0x21], r14w
mov qword [rbp - 0x29], rax
lea r8d, [r14 + 0x32]
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
lea rax, str.SCAUtils::MarkFileAsInvalid
mov qword [rsp + 0x20], rax
call fcn.140012d4c
mov rax, qword [rbp + 0x2f]
cmp rax, 8
jb 0x140100a0a
mov rcx, qword [rbp + 0x17]
lea rax, [rax*2 + 2]
mov rdx, rcx
cmp rax, 0x1000
jb 0x140100a04
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140100a04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, [rdi + 0x28]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.1400339a4
cmp qword [rbp - 1], 8
lea rdx, [rbp - 0x19]
cmovae rdx, qword [rbp - 0x19]
cmp qword [rbx + 0x18], 8
jb 0x140100a32
mov rbx, qword [rbx]
mov r8d, 9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov rax, qword [rbp - 1]
setne bl
cmp rax, 8
jb 0x140100a85
mov rcx, qword [rbp - 0x19]
lea rax, [rax*2 + 2]
mov rdx, rcx
cmp rax, 0x1000
jb 0x140100a7f
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140100a7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r14
pop rdi
pop rbp
ret