joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006f30
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140006f65
lea rdx, str._tCAppSettingConverter::PrepareITSettingsFile_______Method_started_
call fcn.140025be0
lea rdi, [rbx + 0x530]
mov qword [rsp + 0x108], rsi
mov rcx, rdi
xor edx, edx
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbx + 0x634]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14000712b
lea rdx, str.IntelWirelessSettings
mov qword [rsp + 0x110], r14
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov r8, rdi
lea rcx, [rbx + 0x634]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, [0x140065348]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.ItSttngs.ini.bak
lea rcx, [rbx + 0x634]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, 0x104
lea rcx, [rbx + 0x120]
xor esi, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
test rax, rax
je 0x14000707f
lea rcx, [rsp + 0x30]
call fcn.14004bedc
mov edx, 0x4000
lea rcx, [rsp + 0x30]
call fcn.14004bf98
test eax, eax
jne 0x14000707f
lea rdx, [rbx + 0x120]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
test rax, rax
jne 0x14000707f
mov r14, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0xe0
pop rdi
pop rbp
pop rbx
ret
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
cmp rax, 1
jae 0x14000709a
mov esi, 7
jmp 0x14000710f
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14000710f
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400070bf
mov r8, rdi
lea rdx, str._tCAppSettingConverter::PrepareSettingsFile_______Back_up_the_following_template_ITSttngs.ini_file:
call fcn.140025ad0
xor r8d, r8d
lea rdx, [rbx + 0x634]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rcx, qword [rbx + 8]
test eax, eax
jne 0x1400070fe
test rcx, rcx
je 0x1400070f4
lea rdx, str._t_FAILED_CAppSettingConverter::PrepareITSettingsFile_______Back_up_template_ITSttngs.ini_file_failed_
call fcn.140025be0
mov rcx, qword [rbx + 8]
call fcn.140025dc0
mov eax, 5
jmp 0x140007054
test rcx, rcx
je 0x14000710f
lea rdx, str._tCAppSettingConverter::PrepareITSettingsFile_______Successfully_made_a_back_up_ITSttngs.ini_file_
call fcn.140025be0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140007124
lea rdx, str._tCAppSettingConverter::PrepareITSettingsFile_______Method_ended_
call fcn.140025be0
mov eax, esi
jmp 0x140007054
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140007149
lea rdx, str._tCAppSettingConverter::PrepareSettingsFile_______Unable_to_get_the_name_of_the_All_Users_folder_using_SHGetFolderPath___function_
call fcn.140025be0
mov rcx, qword [rbx + 8]
call fcn.140025dc0
mov eax, 7
jmp 0x14000705c
Function at 0x1400080e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x3a0
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rdi, rdx
mov qword [rsp + 0x20], rdx
mov rsi, rcx
lea r9, str._s.
mov edx, 0x104
lea rcx, [rsp + 0x170]
or r8, 0xffffffffffffffff
call fcn.140008c50
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140008160
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400081ea
call fcn.140025dc0
jmp 0x1400081ea
lea rdx, [0x140065298]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x1400081c6
lea rdx, [0x140065c90]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x1400081c6
lea rax, [rsp + 0x5c]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
lea r9, [0x140065c94]
mov edx, 0x104
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x280]
call fcn.140008c50
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140008160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140008210
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, qword [rsp + 0x290]
lea rcx, [rsp + 0x38]
mov rdi, qword [rsp + 0x298]
mov r10, r8
mov rax, rdx
mov qword [rsp + 0x20], rcx
mov rbp, r9
mov qword [rsp + 0x38], 0
mov rcx, rax
mov dword [rsp + 0x30], 0x1ff
mov r9d, 1
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000831b
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14000831b
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
cmp dword [rdi], eax
mov r8d, 0x200
cmovb eax, dword [rdi]
xor edx, edx
mov dword [rsp + 0x30], eax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
test rcx, rcx
je 0x1400082f1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400082fc
mov eax, 3
jmp 0x140008320
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, dword [rdi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
xor eax, eax
jmp 0x140008320
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008350
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, r8
mov qword [rsp + 0x38], 0
mov r10, rdx
mov dword [rsp + 0x30], 4
lea rcx, [rsp + 0x38]
mov rbx, r9
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov rcx, r10
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400083e9
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400083e9
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
test rcx, rcx
je 0x1400083dc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
sbb eax, eax
and eax, 2
add rsp, 0x40
pop rbx
ret
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x1400084b0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x60
mov r10, rdx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor edx, edx
mov rax, r8
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0x58]
mov rdi, r9
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rsp + 0x30], rdx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, r10
mov dword [rsp + 0x20], edx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140008568
cmp qword [rsp + 0x58], 0
je 0x140008568
mov qword [rsp + 0x70], rbx
mov edx, 0x1000
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, qword [rsp + 0x58]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140008556
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
mov rbx, qword [rsp + 0x70]
sbb eax, eax
and eax, 2
add rsp, 0x60
pop rdi
ret
mov eax, 1
add rsp, 0x60
pop rdi
ret

Function at 0x140008580
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov r10, rdx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor edx, edx
mov rax, r8
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0x58]
mov rbx, r9
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov qword [rsp + 0x30], rdx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, r10
mov dword [rsp + 0x20], edx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140008621
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140008621
lea rax, [rsp + 0x90]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140008614
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg ebx
sbb eax, eax
and eax, 2
add rsp, 0x60
pop rbx
ret
mov eax, 1
add rsp, 0x60
pop rbx
ret
Function at 0x1400088b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x310
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rbx, rcx
lea rcx, str.INTEL_WLAN_APP_FRAMEWORK_MSG_ID
call qword [sym.imp.USER32.dll_RegisterWindowMessageA]
test eax, eax
je 0x1400088f5
mov r9d, 0x8111
xor r8d, r8d
mov edx, eax
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageA]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x58], rax
lea r9, str.BinDir
mov qword [rsp + 0x60], rax
lea r8, str.SOFTWAREIntelWireless
mov qword [rsp + 0x68], rax
mov rdx, 0xffffffff80000002
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], Ordinal_266
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
call fcn.140008210
test eax, eax
jne 0x140008a04
lea r8, [rsp + 0xe0]
mov edx, 0x104
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, str.ZCfgSvc.exe_STOP
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140008a04
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x310
pop rbx
ret
Function at 0x14000948c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov r15d, r8d
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov r13, qword [rsp + 0x4f0]
xor esi, esi
mov dword [rsp + 0x30], esi
cmp qword [rcx + 0x10], rsi
je 0x1400095f6
cmp qword [rcx + 8], rsi
je 0x140009612
lea eax, [r8 + 0x7d1]
mov edi, eax
mov ecx, eax
call sub.mfc140.dll_Ordinal_265
mov rbx, rax
test rax, rax
je 0x14000962e
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov ecx, r15d
sub ecx, esi
mov eax, 0x3e8
cmp ecx, eax
cmovb eax, ecx
mov dword [rsp + 0x30], eax
xor edx, edx
mov r8d, 0x3f0
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov edx, esi
mov r8d, dword [rsp + 0x30]
add rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memmove
mov eax, 1
cmp dword [rsp + 0x30], 0x3e8
cmovne edi, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, edi
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140009649
mov r8d, dword [rsp + 0x30]
mov ecx, esi
add rcx, rbx
lea rdx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memmove
add esi, dword [rsp + 0x30]
test edi, edi
je 0x140009515
lea rdi, [rsp + 0x90]
xor eax, eax
mov ecx, 0x3f0
rep stosb byte [rdi], al
mov qword [r12], rbx
mov dword [r13], esi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x48]
call fcn.140008e8c
lea rdx, [0x14008d788]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x58]
call fcn.140008de4
lea rdx, [0x14008d810]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x68]
call fcn.140008dac
lea rdx, [0x14008d930]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0x78]
call fcn.140008e54
lea rdx, [0x14008dab0]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140009668
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r12, r9
mov esi, r8d
mov qword [rsp + 0x38], rdx
mov rbx, rcx
mov r14, qword [rsp + 0x4e0]
xor r13d, r13d
mov dword [rsp + 0x30], r13d
cmp qword [rcx + 0x10], r13
je 0x1400097c2
cmp qword [rcx + 8], r13
je 0x1400097de
mov r8d, esi
xor edx, edx
mov rcx, r9
call sub.VCRUNTIME140.dll_memset
mov edi, r13d
mov r15d, r13d
mov dword [r14], r13d
mov ecx, esi
sub ecx, edi
mov eax, 0x3e8
cmp ecx, eax
cmovb eax, ecx
mov dword [rsp + 0x30], eax
xor edx, edx
mov r8d, 0x3f0
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov r13d, edi
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rdx, r13
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memmove
mov eax, 1
cmp dword [rsp + 0x30], 0x3e8
cmovne r15d, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, r15d
xor edx, edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400097fa
mov r8d, dword [rsp + 0x30]
lea rcx, [r12 + r13]
lea rdx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memmove
add edi, dword [rsp + 0x30]
cmp edi, esi
jae 0x14000978b
test r15d, r15d
je 0x1400096de
mov dword [r14], edi
lea rdi, [rsp + 0x80]
xor eax, eax
mov ecx, 0x3f0
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x48]
call fcn.140008e8c
lea rdx, [0x14008d788]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x58]
call fcn.140008de4
lea rdx, [0x14008d810]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x68]
call fcn.140008e54
lea rdx, [0x14008dab0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140009af8
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x4e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, r8
mov rax, rdx
mov r14, rcx
or qword [rsp + 0x50], 0xffffffffffffffff
and dword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
cmp qword [rcx + 0x10], 0
je 0x140009cb4
cmp qword [rcx + 8], 0
je 0x140009cd0
and qword [rsp + 0x30], 0
mov edi, 0x80
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi - 0x7f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140009cec
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140009d0d
xor ebx, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x3e8
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140009d2e
mov eax, dword [rsp + 0x40]
cmp eax, 0x3e8
mov ecx, 1
cmovne ebx, ecx
mov dword [rsp + 0x44], eax
test eax, eax
je 0x140009c69
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140009d4f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009d70
test ebx, ebx
je 0x140009bcc
cmp rsi, 0xffffffffffffffff
je 0x140009c80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x140009c90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x518]
add rsp, 0x4e0
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x68]
call fcn.140008e8c
lea rdx, [0x14008d788]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x78]
call fcn.140008de4
lea rdx, [0x14008d810]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x88]
call fcn.140008f6c
lea rdx, [0x14008d8d0]
lea rcx, [rsp + 0x88]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0x98]
call fcn.140008fa4
lea rdx, [0x14008d870]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xa8]
call fcn.140008fdc
lea rdx, [0x14008db10]
lea rcx, [rsp + 0xa8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xb8]
call fcn.140008e54
lea rdx, [0x14008dab0]
lea rcx, [rsp + 0xb8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xc8]
call fcn.140009084
lea rdx, [0x14008dcf0]
lea rcx, [rsp + 0xc8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000a05c
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
sub rsp, 0x4e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, r8
mov rax, rdx
mov r14, rcx
or qword [rsp + 0x50], 0xffffffffffffffff
and dword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
cmp qword [rcx + 0x10], 0
je 0x14000a20b
cmp qword [rcx + 8], 0
je 0x14000a227
and qword [rsp + 0x30], 0
mov edi, 0x80
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r13d, [rdi - 0x7f]
mov r8d, r13d
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14000a243
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x14000a264
xor ebx, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x3e8
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a285
mov eax, dword [rsp + 0x40]
cmp eax, 0x3e8
cmovne ebx, r13d
mov dword [rsp + 0x44], eax
test eax, eax
je 0x14000a1d1
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14000a2a6
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000a2c7
test ebx, ebx
je 0x14000a130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x4e0
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x68]
call fcn.140008e8c
lea rdx, [0x14008d788]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x78]
call fcn.140008de4
lea rdx, [0x14008d810]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x88]
call fcn.140008fa4
lea rdx, [0x14008d870]
lea rcx, [rsp + 0x88]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0x98]
call fcn.140008f6c
lea rdx, [0x14008d8d0]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xa8]
call fcn.140009014
lea rdx, [0x14008d990]
lea rcx, [rsp + 0xa8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xb8]
call fcn.140008ec4
lea rdx, [0x14008d9f0]
lea rcx, [rsp + 0xb8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xc8]
call fcn.14000904c
lea rdx, [0x14008dc90]
lea rcx, [rsp + 0xc8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000a2ec
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r12d, r8d
mov dword [rsp + 0x44], r8d
mov r13, rdx
mov rbx, rcx
mov rsi, qword [rsp + 0x4e8]
xor r14d, r14d
mov dword [rsp + 0x40], r14d
cmp qword [rcx + 0x10], r14
je 0x14000a456
cmp qword [rcx + 8], r14
je 0x14000a472
mov r8d, dword [rsp + 0x4e0]
xor edx, edx
mov rcx, r9
call sub.VCRUNTIME140.dll_memset
mov edi, r14d
and dword [rsi], r14d
mov ecx, r12d
sub ecx, edi
mov eax, 0x3e8
cmp ecx, eax
cmovb eax, ecx
mov dword [rsp + 0x40], eax
xor edx, edx
mov r8d, 0x3f0
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov r12d, edi
mov r8d, dword [rsp + 0x40]
lea rdx, [r12 + r13]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memmove
mov eax, 1
mov ecx, 0x3e8
cmp dword [rsp + 0x40], ecx
cmovne r14d, eax
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, r14d
xor edx, edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14000a48e
mov r8d, dword [rsp + 0x40]
lea rcx, [r12 + r15]
lea rdx, [rsp + 0x80]
call sub.VCRUNTIME140.dll_memmove
add edi, dword [rsp + 0x40]
cmp edi, dword [rsp + 0x4e0]
jae 0x14000a420
test r14d, r14d
mov r12d, dword [rsp + 0x44]
je 0x14000a367
mov dword [rsi], edi
lea rdi, [rsp + 0x80]
xor eax, eax
mov ecx, 0x3f0
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x50]
call fcn.140008e8c
lea rdx, [0x14008d788]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x60]
call fcn.140008de4
lea rdx, [0x14008d810]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x70]
call fcn.140008ec4
lea rdx, [0x14008d9f0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3