joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400787d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140078801
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140078818
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140078840
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140078842
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140078874
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140078911
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400788b2
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
cmp rdi, 0xfff
jbe 0x1400788f1
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140078932
cmp rdi, rax
ja 0x1400788c0
test rbx, rbx
je 0x140078911
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140078914
sal cl, cl
push rdx
rcr ebx, 1
sub bl, ah
invalid
Function at 0x140078940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140078970
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140078998
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14007899a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400789f3
test ecx, ecx
jle 0x1400789d3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400789f3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400789f3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
invalid
Function at 0x30004220
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov r11, rsp
sub rsp, 0x40
xor r14d, r14d
mov r13, rdx
mov rdi, rcx
cmp rcx, r14
mov qword [r11 - 8], r14
mov rsi, r14
mov dword [r11 + 0x50], r14d
mov r12, r14
mov dword [r11 + 0x40], r14d
mov dword [r11 + 0x58], r14d
je 0x300044d3
cmp word [rcx], r14w
je 0x300044d3
cmp rdx, r14
je 0x300044d3
cmp qword [rdx], r14
jne 0x300044d3
mov rdx, qword [str.SOFTWAREMicrosoftSharedXMLProgIDs]
lea rax, [r11 - 8]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, 0x80070000
movzx ebx, ax
or ebx, ebp
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x30004379
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, ebp
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x30004379
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 1
mov ebp, eax
lea rdx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, r14
mov rsi, rax
je 0x3000445b
cmp rbp, r14
mov ebx, r14d
je 0x30004324
cmp rbp, 0x7fffffff
jbe 0x30004329
mov ebx, 0x80070057
cmp ebx, r14d
jl 0x300044d8
cmp ebx, 0x80070002
jne 0x300044d8
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.30003fec
cmp eax, r14d
mov ebx, eax
jl 0x300044d8
cmp dword [rsp + 0x90], r14d
je 0x300044d8
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call fcn.300066cc
cmp eax, r14d
jl 0x30004402
mov edx, dword [rsp + 0x80]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, r14
mov r12, rax
je 0x30004402
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.300066cc
cmp eax, r14d
jge 0x30004402
mov rcx, r12
call fcn.300034e4
mov r12, r14
mov rdx, rdi
cmp r12, r14
lea r8, [rsp + 0x98]
cmovne rdx, r12
mov rcx, 0xffffffff80000000
call fcn.30004ce8
cmp eax, r14d
mov ebx, eax
jl 0x300044d8
cmp dword [rsp + 0x98], r14d
je 0x300044d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 1
mov ebp, eax
lea rdx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, r14
mov rsi, rax
jne 0x30004462
mov ebx, 0x8007000e
jmp 0x300044d8
cmp rbp, r14
mov ebx, r14d
je 0x30004473
cmp rbp, 0x7fffffff
jbe 0x30004478
mov ebx, 0x80070057
cmp ebx, r14d
jl 0x300044d8
cmp rbp, r14
mov rcx, rax
mov ebx, r14d
je 0x300044b8
mov edx, 0x7ffffffe
sub rdx, rbp
sub rdi, rax
lea rax, [rdx + rbp]
cmp rax, r14
je 0x300044b3
movzx eax, word [rdi + rcx]
cmp ax, r14w
je 0x300044b3
mov word [rcx], ax
add rcx, 2
sub rbp, 1
jne 0x30004493
mov ebx, 0x80070057
Function at 0x140004024
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x10
lea r10, [0x14007bb40]
xor ebx, ebx
mov r8, r10
mov edx, ebx
mov r9d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9, 1
jne 0x14000403e
mov dword [r8], edx
inc ebx
add r8, 4
cmp ebx, 0x100
jb 0x140004036
lea rbx, [0x14007bf40]
mov r8d, 0x700
mov edx, dword [rbx - 0x400]
movzx ecx, dl
shr edx, 8
xor edx, dword [r10 + rcx*4]
mov dword [rbx], edx
lea rbx, [rbx + 4]
sub r8, 1
jne 0x140004077
xor ecx, ecx
lea rax, [0x140004170]
mov qword [0x14007bb38], rax
mov r11d, 0xf00
xor eax, eax
cpuid
mov r8d, ebx
mov r9d, ecx
mov r10d, edx
xor ecx, ecx
mov eax, 1
cpuid
mov ebx, eax
mov ecx, eax
shr ebx, 8
and eax, 0xf0
mov edx, ebx
and ecx, r11d
and edx, 0xff000
and ebx, r11d
or ebx, eax
or edx, ecx
shr edx, 8
lea rax, [0x140046150]
shr ebx, 4
xor ecx, ecx
cmp dword [rax - 8], r8d
jne 0x1400040fd
cmp dword [rax - 4], r10d
jne 0x1400040fd
cmp dword [rax], r9d
je 0x14000410a
inc ecx
add rax, 0xc
cmp ecx, 3
jae 0x140004161
jmp 0x1400040ec
test ecx, ecx
je 0x140004137
sub ecx, 1
je 0x140004124
cmp ecx, 1
jne 0x140004161
cmp edx, 6
jb 0x140004161
jne 0x140004153
cmp ebx, 0xf
jmp 0x140004151
cmp edx, 5
jb 0x140004161
jne 0x140004153
cmp ebx, 6
jb 0x140004161
cmp ebx, 0xa
je 0x140004161
jmp 0x140004153
cmp edx, 6
jb 0x140004161
jne 0x140004153
cmp ebx, 0x36
ja 0x140004153
movabs rcx, 0x6000c010000000
bt rcx, rbx
jb 0x140004161
lea rax, [0x140004240]
mov qword [0x14007bb38], rax
add rsp, 0x10
pop rbx
ret

Function at 0x140005324
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x140005392
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x1400053a8
test edx, edx
je 0x140005392
test rbx, rbx
jne 0x140005352
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005394
Function at 0x1400053b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x14000541e
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140005434
test edx, edx
je 0x14000541e
test rbx, rbx
jne 0x1400053de
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005420
Function at 0x140009dac
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov rax, qword [0x14006d010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140009e21
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140009e21
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140009dff
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x140049830]
lea rcx, [rsp + 0x40]
call fcn.14000833c
lea r8, [rsp + 0x40]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
setne r12b
test rax, rax
jne 0x140009e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009f83
mov rcx, qword [rbp + 0x188]
mov edx, 0xc9
call fcn.140009bf4
mov esi, eax
jmp 0x140009f86
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.140009c6c
mov esi, eax
test eax, eax
jns 0x140009ec6
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xcf
call fcn.140009bd4
jmp 0x140009f86
lea r8, [0x140049838]
lea rcx, [rsp + 0x40]
call fcn.14000833c
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
setne r14b
test rax, rax
jne 0x140009f0f
mov rcx, qword [rbp + 0x188]
mov edx, 0xd5
call fcn.140009bf4
mov esi, eax
jmp 0x140009f37
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009c6c
mov esi, eax
test eax, eax
jns 0x140009f56
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd7
call fcn.140009bd4
nop
test r14b, r14b
je 0x140009f86
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009fdc
jmp 0x140009f86
test r14b, r14b
je 0x140009f6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009fe7
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x140009f9f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009fd1
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14003e1d0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, 0x93e
call fcn.140009c10
nop
mov edx, 0x93e
call fcn.140009c10
nop
mov edx, 0x93e
call fcn.140009c10
int3
Function at 0x1400174f0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14006d010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
mov r15d, 1
xor r9d, r9d
mov edx, r15d
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
xor ebx, ebx
test rax, rax
jne 0x140017548
or eax, 0xffffffff
jmp 0x1400175dc
cmp dword [rsi + 0x50], ebx
jne 0x1400175d1
lea rcx, [rsi + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x1388
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400176bd
mov qword [rbp - 0x29], r14
lea rdx, [rbp - 0x41]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400175c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140017604
cmp eax, 0x3e5
je 0x140017626
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14003e1d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400175c5
jmp 0x140017626
mov edx, 0x32
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001762f
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x140017614
jmp 0x14001769d
mov eax, r15d
inc r15d
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_7f68b6e091607ea3bcac2b399d286e91___void___.0
mov qword [rbp - 0x19], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x11], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rbp - 1], xmm1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x1f], rax
lea rcx, [rsi + 0x58]
lea r8, [rbp - 0x19]
xor edx, edx
call qword [sym.imp.zUnifyWebView.dll_public:_void___cdecl_TaskSyncWindow::HandTask_int__class_std::function_void____cdecl___void___const____ptr64____ptr64]
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140017696
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140017c25.0]
or rdi, 0xffffffffffffffff
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x140017551
cmp rdi, 0xffffffffffffffff
je 0x1400175d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400175d1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017540
Function at 0x14001ec50
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14006d010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memset
or rbx, 0xffffffffffffffff
xor r15d, r15d
mov rdi, rbx
test rbp, rbp
je 0x14001eddb
mov rax, rbx
inc rax
cmp word [rbp + rax*2], r15w
jne 0x14001eca3
test rax, rax
je 0x14001eddb
lea r8, [0x140049b80]
mov rcx, rbp
call fcn.14001ea4c
mov rsi, rax
test rax, rax
jne 0x14001ecdc
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001edcb
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rbx
je 0x14001edb7
test byte [rsp + 0x20], 0x10
je 0x14001ed2d
lea rdx, [0x14004b1e8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001eda1
lea rdx, [0x14004b200]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001eda1
lea r8, [rsp + 0x4c]
mov rcx, rbp
call fcn.14001ea4c
mov rbx, rax
test rax, rax
je 0x14001eda1
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x14001ed7c
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ed63
and eax, 0x410
cmp eax, 0x410
je 0x14001ed71
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.14001ec50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001ed8d
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rax, r14
call qword [case.0x140017c25.0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001ecf6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x14001ede8
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003e1d0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ee10
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
jne 0x14001ee31
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001ee7b
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001ee42
mov eax, 1
jmp 0x14001ee7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ee5b
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x14001ee6a
lea rdx, [0x14001eb60]
mov rcx, rbx
call fcn.14001ec50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400258b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 8], 0
je 0x1400258d8
mov eax, 1
jmp 0x140025a4f
call qword [sym.imp.zUnifyWebView.dll_public:_static_class_UnifyWebView::WebView2Runtime____ptr64___cdecl_UnifyWebView::WebView2Runtime::GetInstance_void_]
mov rcx, rax
call qword [sym.imp.zUnifyWebView.dll_public:_int___cdecl_UnifyWebView::WebView2Runtime::LoadWebView2LoaderDll_void____ptr64]
test eax, eax
je 0x140025a4d
mov dword [rbx + 0x54], edi
mov dword [rbx + 0x50], 0x10000
lea rcx, [rbx + 0x28]
mov rdx, rsi
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
nop
lea rdx, [0x140046029]
mov esi, 0x18
mov ecx, esi
call fcn.14003eacc
mov rdi, rax
test rax, rax
je 0x14002593d
and qword [rax + 0x10], 0
lea rax, vtable.Webview::EdgeBrowserHandler.0
mov qword [rdi], rax
and qword [rdi + 8], 0
and qword [rdi + 0x10], 0
jmp 0x14002593f
xor edi, edi
mov rcx, rsi
call fcn.14003e9b8
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov esi, 1
mov dword [rax + 8], esi
mov dword [rax + 0xc], esi
lea rcx, vtable.std::_Ref_count_class_Webview::EdgeBrowserHandler_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rdi
mov qword [rbx + 0x58], rdi
mov rdi, qword [rbx + 0x60]
mov qword [rbx + 0x60], rax
test rdi, rdi
je 0x1400259b3
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, esi
jne 0x1400259b3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140017c25.0]
or eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, esi
jne 0x1400259b3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140017c25.0]
cmp qword [rbx + 0x58], 0
je 0x140025a4d
call fcn.140032c48
mov rdi, rax
mov cl, byte [rax + 1]
test cl, cl
je 0x140025a20
xor ecx, ecx
xchg byte [rax + 1], cl
mov edx, esi
xchg byte [rax], dl
mov rcx, rsi
call fcn.14003e9b8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140032d00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140025a3c
cmp dword [rdi + 0x10], 0
jne 0x140025a35
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi + 8], xmm0
mov dword [rbx + 8], esi
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rbx + 0xe0], rax
mov al, sil
jmp 0x140025a4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
and dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14002f1e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14002f211
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14002f284
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14002f228
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002f22a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002f27e
test ecx, ecx
jle 0x14002f25e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x14002f27e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002f27e
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret