joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026b00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
cmp dword [rcx + 8], 0
je 0x140026b25
mov al, 1
jmp 0x140026cad
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 0x140026cab
mov dword [rdi + 0x54], ebx
mov dword [rdi + 0x50], 0x10000
lea rcx, [rdi + 0x28]
mov rdx, rsi
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
nop
lea rdx, [0x140059530]
mov ecx, 0x10
call fcn.14005027c
mov rsi, rax
test rax, rax
je 0x140026b78
and qword [rax], 0
and qword [rax + 8], 0
jmp 0x140026b7a
xor esi, esi
mov ecx, 0x18
call fcn.14004fee8
mov rbx, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_class_Webview::EdgeBrowserHandler_.0
mov qword [rbx], rax
mov qword [rbx + 0x10], rsi
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call fcn.140029f40
nop
mov qword [rdi + 0x58], rsi
mov rsi, qword [rdi + 0x60]
mov qword [rdi + 0x60], rbx
test rsi, rsi
je 0x140026c08
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
add eax, ebx
jne 0x140026c08
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x14000ba18.0]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
add eax, ebx
jne 0x140026c08
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x14000ba18.0]
cmp qword [rdi + 0x58], 0
je 0x140026cab
call fcn.140039168
mov rbx, rax
mov cl, byte [rax + 1]
test cl, cl
je 0x140026c7a
xor ecx, ecx
xchg byte [rax + 1], cl
mov edx, 1
xchg byte [rax], dl
mov ecx, 1
call fcn.14004fee8
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140039220]
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 0x140026c9a
cmp dword [rbx + 0x10], 0
jne 0x140026c93
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx + 8], xmm0
mov dword [rdi + 8], 1
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rdi + 0xf8], rax
jmp 0x140026b1e
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 0x140034210
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 0x140034241
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 0x1400342b4
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140034258
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003425a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400342ae
test ecx, ecx
jle 0x14003428e
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 0x1400342ae
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400342ae
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
Function at 0x1400342d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400342fd
xor eax, eax
jmp 0x1400343ec
cmp qword [rcx + 0x68], 0
je 0x14003430f
call 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]
jmp 0x1400343ec
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140034326
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140034328
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140034355
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
mov rbx, rbp
je 0x1400343e6
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140034393
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
jmp 0x1400343c1
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140034405
cmp rbp, r15
ja 0x14003439b
test rbx, rbx
je 0x1400343e6
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x1400343e9
Function at 0x1400347d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140034809
xor eax, eax
jmp 0x14003491c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140034832
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x140034832
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14003491c
cmp qword [rcx + 0x80], 0
je 0x14003491a
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003486d
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140034891
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14003491a
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400348df
sub eax, 1
je 0x1400348df
cmp eax, 2
jne 0x14003491a
movsx ecx, byte [rbp - 0x40]
jmp 0x14003487a
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14003490a
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14003491a
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x14003491c
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14004fc30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140035268
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400352de
cmp byte [rcx + 0x71], 0
je 0x1400352de
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [case.0x14000ba18.0]
cmp eax, 0xffffffff
je 0x140035333
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400352f8
sub eax, 1
je 0x1400352fc
cmp eax, 2
jne 0x140035333
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004fc30
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003532a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140035333
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400352e0
xor al, al
jmp 0x1400352e0
Function at 0x14003bf10
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x4e70
call fcn.140050f70
sub rsp, rax
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14003c026
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x14003c01f
nop
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14003bfe0
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x140089170]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.14003c050
test eax, eax
je 0x14003c026
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x14003bfa0
mov eax, 1
jmp 0x14003c028
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.14004fc30
mov rbx, qword [rsp + 0x4e80]
add rsp, 0x4e70
pop rdi
ret
Function at 0x14003ce40
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x14003d09c
push rdi
sub rsp, 0x90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x14003d094
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x14003d08c
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x14003d08c
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x14003d084
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x14003cef5
xor r14d, r14d
jmp 0x14003cf27
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x14003cf19
mov ecx, 0x8664
cmp cx, ax
je 0x14003cf19
cmp r8w, ax
jne 0x14003d074
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x14003d06c
cmp rbx, rdi
jbe 0x14003d06c
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x14003d06c
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003d06c
test dword [rsp + 0x68], 0x1000
je 0x14003d06c
test dword [rsp + 0x70], 0x1000000
je 0x14003d06c
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
test al, 0x10
jne 0x14003cfb2
test al, 0x20
jne 0x14003cfb2
test al, 0x40
jne 0x14003cfb2
test al, al
jns 0x14003cfb7
mov ecx, 1
test ecx, ecx
je 0x14003d06c
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.14003d560
mov edx, 0x14
mov dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14003d06c
test r14d, r14d
jne 0x14003d016
mov eax, dword [0x140089060]
mov dword [rbx], eax
movzx eax, byte [0x140089064]
mov byte [rbx + 4], al
jmp 0x14003d03a
test esi, esi
je 0x14003d026
mov rax, qword [0x140089058]
mov qword [rbx], rax
jmp 0x14003d03a
movzx eax, word [0x140089054]
mov word [rbx], ax
movzx eax, byte [0x140089056]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, 0x14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x14003f4d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
lea r14, [rdx + 0x10]
mov rdx, qword [r14]
mov rdi, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
cmp rdi, rdx
ja 0x14003f545
cmp r8, rdx
jae 0x14003f545
sub rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400414f0
mov qword [rbp - 0x20], rdi
mov r8, qword [rbp - 0x18]
cmp qword [rsi + 0x18], 8
jb 0x14003f557
mov rbx, qword [rsi]
mov rcx, rbx
mov rsi, rbx
jmp 0x14003f55d
mov rbx, rsi
mov rcx, rsi
mov rax, qword [r14]
lea r14, [rcx + rax*2]
cmp rsi, r14
je 0x14003f5fc
nop dword [rax]
movzx r9d, word [rbx]
cmp rdi, r8
jae 0x14003f59b
lea rax, [rdi + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r8, 8
cmovae rax, qword [rbp - 0x30]
mov word [rax + rdi*2], r9w
mov word [rax + rdi*2 + 2], r12w
jmp 0x14003f5a4
lea rcx, [rbp - 0x30]
call fcn.1400071d4
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x14003f5b3
cmp ax, 0x2f
jne 0x14003f5e6
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003f5e6
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14003f631
add rbx, 2
mov r8, qword [rbp - 0x18]
cmp rbx, r14
je 0x14003f5fc
mov rdi, qword [rbp - 0x20]
jmp 0x14003f570
mov ebx, r12d
lea rcx, [rbp - 0x30]
cmp r8, 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003f658
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003f658
lea rbx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rbx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
mov rcx, r15
call fcn.140040bc0
mov ebx, 7
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14003f69b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f696
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003f696
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050244
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004fc30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140042440
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14009ddbc], eax
jle 0x140042598
lea rcx, [0x14009ddbc]
call fcn.14004fdd8
cmp dword [0x14009ddbc], 0xffffffff
jne 0x140042598
xor edi, edi
mov qword [0x14009dde8], rdi
mov qword [0x14009ddf8], rdi
mov qword [0x14009de00], rdi
mov qword [0x14009ddf8], rdi
mov qword [0x14009de00], 7
mov word [0x14009dde8], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140059510]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14009dde8]
test eax, eax
js 0x1400424fb
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140042510
mov rcx, rbx
call fcn.140006958
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140042510
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14009ddf8]
test rcx, rcx
je 0x14004257b
mov rax, rbx
mov r9, qword [0x14009dde8]
mov rdx, qword [0x14009de00]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x14004257b
cmp r8w, 0x2f
je 0x14004257b
cmp rcx, rdx
jae 0x14004256d
lea rax, [rcx + 1]
mov qword [0x14009ddf8], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x14004257b
mov r9d, 0x5c
mov rcx, rbx
call fcn.1400071d4
lea rcx, [0x140056340]
call fcn.14005022c
lea rcx, [0x14009ddbc]
call fcn.14004fd78
mov rax, rbx
jmp 0x14004259f
lea rax, [0x14009dde8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14004fc30
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400425c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140089010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14009ddb8], eax
jle 0x140042718
lea rcx, [0x14009ddb8]
call fcn.14004fdd8
cmp dword [0x14009ddb8], 0xffffffff
jne 0x140042718
xor edi, edi
mov qword [0x14009dd98], rdi
mov qword [0x14009dda8], rdi
mov qword [0x14009ddb0], rdi
mov qword [0x14009dda8], rdi
mov qword [0x14009ddb0], 7
mov word [0x14009dd98], di
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140059520]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rbx, [0x14009dd98]
test eax, eax
js 0x14004267b
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140042690
mov rcx, rbx
call fcn.140006958
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140042690
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x14009dda8]
test rcx, rcx
je 0x1400426fb
mov rax, rbx
mov r9, qword [0x14009dd98]
mov rdx, qword [0x14009ddb0]
cmp rdx, 8
cmovae rax, r9
movzx r8d, word [rax + rcx*2 - 2]
cmp r8w, 0x5c
je 0x1400426fb
cmp r8w, 0x2f
je 0x1400426fb
cmp rcx, rdx
jae 0x1400426ed
lea rax, [rcx + 1]
mov qword [0x14009dda8], rax
mov rax, rbx
cmp rdx, 8
cmovae rax, r9
mov dword [rax + rcx*2], 0x5c
jmp 0x1400426fb
mov r9d, 0x5c
mov rcx, rbx
call fcn.1400071d4
lea rcx, [0x1400563b0]
call fcn.14005022c
lea rcx, [0x14009ddb8]
call fcn.14004fd78
mov rax, rbx
jmp 0x14004271f
lea rax, [0x14009dd98]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14004fc30
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140046120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r10, [0x14009a8c0]
xor edx, edx
mov r8, r10
nop dword [rax]
mov ecx, edx
lea r8, [r8 + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x140046130
lea rax, [0x14009a8c4]
mov r9d, 0x2c0
nop dword [rax]
mov r8d, dword [rax - 4]
lea rax, [rax + 0x10]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
mov dword [rax + 0x3ec], r8d
mov r8d, dword [rax - 0x10]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
mov dword [rax + 0x3f0], r8d
mov r8d, dword [rax - 0xc]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
mov dword [rax + 0x3f4], r8d
mov r8d, dword [rax - 8]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
mov dword [rax + 0x3f8], r8d
sub r9, 1
jne 0x1400461e0
ret