joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463940
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0047c744]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x463a60
mov rax, qword [0x0047c748]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x46398c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x463a46
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x463970
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x463a98
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0047c748]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x0047c748]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x463a7b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x463a3f
sub eax, 0x40
and eax, 0xffffffbf
je 0x463a3f
add rbx, qword [0x0047c748]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x463a67
add dword [0x0047c744], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebx, ebx
jmp 0x463997
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x0047c748]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
nop
nop dword [rax + rax]

Function at 0x4641f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0047ca20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0047ca00]
test rbx, rbx
je 0x464244
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x46423b
test rsi, rsi
je 0x46423b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x464220
lea rcx, [0x0047ca20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x464480
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x464490
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0
Function at 0x4644a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4644e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4644d8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4644e3
add rax, 0x28
cmp rax, r9
jne 0x4644c4
xor eax, eax
repz ret

Function at 0x464580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00471530]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4645a0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x464598
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4645fd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4645f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x464598
add rdx, 0x28
cmp rdx, r9
jne 0x4645e0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x464710
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00471530]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x464730
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x464728
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x46478d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x464784
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x464794
add rax, 0x28
cmp rax, r9
jne 0x464770
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4647b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00471530]
xor r9d, r9d
mov r8d, ecx
cmp word [r11], 0x5a4d
je 0x4647d1
mov rax, r9
add rsp, 0x28
ret
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4647c9
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x4647c9
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4647c9
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x464824
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x464840
add rdx, 0x28
cmp rdx, r10
jne 0x464810
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x464858
jmp 0x46482d
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x464866
mov edx, dword [rax + 0xc]
test edx, edx
je 0x46482d
test r8d, r8d
jg 0x464850
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001484
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000150e
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rbp - 0x20], ebx
lea eax, [rbx + 1]
mov rcx, qword [rbp - 0x18]
cmovne ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140014e50
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140001530
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r9
call fcn.1400013c0
test eax, eax
jne 0x14000155a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000ef00
test eax, eax
jne 0x14000155a
mov eax, 0xb
jmp 0x140001588
call fcn.1400013c0
test eax, eax
jne 0x140001568
call fcn.140001484
mov r9, qword [rsp + 0x60]
mov r8, rbx
mov dword [rsp + 0x28], 1
xor edx, edx
and qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x30
pop rbx
ret

Function at 0x1400015c0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x140001661
xor r9d, r9d
mov rdx, rcx
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140001661
lea rdx, [0x1400191a8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.logs
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, str.zoomtest
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140001661
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x140001663
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140014e50
add rsp, 0x240
pop rbx
ret
Function at 0x14000167c
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r9d, r9d
lea rdx, [rbp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edi, edi
test eax, eax
je 0x140001738
lea r8, str.ZoomdataZoom.us.ini
mov edx, 0x104
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
test eax, eax
jne 0x140001738
lea rax, [rbp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], 8
lea rdx, str.com.zoom.test.disable_crash_handler
lea rcx, [0x140019228]
movups xmmword [rbp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140001738
lea rdx, [0x140019240]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000184d
lea rcx, [rbp + 0x240]
call fcn.1400015c0
test al, al
je 0x14000184d
mov ebx, 0xb8
lea rcx, [rsp + 0x30]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x240]
mov word [rsp + 0x30], bx
mov qword [rbp - 0x60], rax
lea r8d, [rbx + 0x58]
lea rax, str.Zoom.us
mov dword [rbp + 0x30], 0x11c
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x34]
lea rax, str.5.13.11.13434
xor edx, edx
mov qword [rsp + 0x40], rax
lea rax, str.Zoom.us_Video_Meeting_0.9.2_Error_Report
mov qword [rsp + 0x50], rax
lea rax, str.support_zoom.us
mov qword [rsp + 0x48], rax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rbp + 0x144], di
mov r8b, 3
mov dword [rbp + 0x146], eax
xor ecx, ecx
mov word [rbp + 0x14a], ax
lea ebx, [rax + 2]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx - 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 0x1e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x21]
mov qword [rbp + 0x34], 6
mov r8, rax
mov word [rbp + 0x144], bx
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
mov qword [rsp + 0x68], rdi
lea rax, str.https:__zoom.us_privacy_
sbb ecx, ecx
mov qword [rbp - 0x78], rax
or dword [rbp - 0x7c], 0x1807fff
and ecx, 0x1a20
add ecx, 5
mov dword [rbp - 0x68], ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.zCrashReport64.dll_Ordinal_7]
jmp 0x140001850
or eax, 0xffffffff
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140014e50
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140005848
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::constructor_void____ptr64]
nop
mov edx, 6
lea r8d, [rdx - 5]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CFileName::GetSpecialDirectory_enum_Cmm::CFileName::SpecialFolder__int____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rdx, rax
mov rcx, rbx
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [0x14001a14c]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, str.logs
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rdx, [0x14001a14c]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.140005a5c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CFileName::destructor_void____ptr64]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140014e50
add rsp, 0x80
pop rbx
ret

Function at 0x140008a50
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, dword [0x140027050]
mov ebx, 0x80000000
lea eax, [rcx + rbx]
test ebx, eax
jne 0x140008a95
cmp ecx, 0x80010106
je 0x140008a95
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x140027050], eax
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x140008a95
cmp eax, 0x80010106
je 0x140008a95
xor eax, eax
jmp 0x140008ae0
cmp qword [0x140029b70], 0
mov ebx, 1
jne 0x140008ade
lea rax, [0x140029b70]
mov r8d, ebx
lea r9, [0x14001c260]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x14001c2c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140008ad7
cmp qword [0x140029b70], 0
jne 0x140008ade
call fcn.140008ae8
jmp 0x140008a91
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000a348
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edi, 0x400
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
cmp dword [0x140029e00], ebx
je 0x14000a390
mov eax, dword [0x140029108]
jmp 0x14000a44e
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x14000a427
lea r8, [0x14001c370]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14001c374]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, str._appsafecheck.txt
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140027068], rax
call fcn.14000a2d8
mov edi, 1
test eax, eax
je 0x14000a440
call fcn.14000a158
test eax, eax
je 0x14000a440
mov ebx, edi
mov dword [0x140029108], ebx
mov eax, ebx
mov dword [0x140029e00], edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140014e50
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret

Function at 0x14000a470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
test rcx, rcx
je 0x14000a4d5
mov rcx, qword [0x140027068]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x14000a4d5
lea r9d, [rsi + 2]
mov dword [rsp + 0x40], esi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc rbx
cmp word [rdi + rbx*2], si
jne 0x14000a4ac
mov rcx, qword [0x140027068]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000a4d7
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a4e8
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
or r13, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov r15, r13
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov ebp, r12d
test rsi, rsi
je 0x14000a6c2
mov rax, r13
inc rax
cmp word [rsi + rax*2], r12w
jne 0x14000a547
test rax, rax
je 0x14000a6c2
test rbx, rbx
je 0x14000a6c2
mov dword [rbx], r12d
call fcn.14000a214
test eax, eax
jne 0x14000a6b5
call fcn.14000a348
test eax, eax
je 0x14000a6b5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a5b5
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x14000a5b5
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000aa10
test eax, eax
jne 0x14000a5b5
mov dword [rbx], 1
jmp 0x14000a6b5
mov r9, r13
lea r8, [0x14001c140]
mov rdx, r13
mov rcx, rsi
call fcn.14000998c
mov r14, rax
test rax, rax
jne 0x14000a5db
lea eax, [r14 + 0xe]
jmp 0x14000a6c7
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, r13
jne 0x14000a5fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14000a6a1
test byte [rsp + 0x30], 0x10
je 0x14000a676
lea rdx, [0x14001bbc0]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000a676
lea rdx, [0x14001c368]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000a676
mov r9, r13
lea r8, [rsp + 0x5c]
mov rdx, r13
mov rcx, rsi
call fcn.14000998c
mov rdi, rax
test rax, rax
je 0x14000a676
mov rdx, rbx
mov rcx, rax
call fcn.14000a4e8
mov ebp, eax
test eax, eax
jne 0x14000a662
cmp dword [rbx], r12d
jne 0x14000a68d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000a6a1
jmp 0x14000a5fe
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x14000a6c7
mov eax, 0x57
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140014e50
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000be40
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x768]
sub rsp, 0x850
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x740], rax
xor r15d, r15d
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0xc30], r15
je 0x14000be97
cmp qword [rcx + 0xc38], r15
je 0x14000be97
lea eax, [r15 + 1]
jmp 0x14000c027
test rdi, rdi
jne 0x14000bea3
xor eax, eax
jmp 0x14000c027
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x20]
mov r14d, 0x82
sub rdi, rax
lea rcx, [rsp + 0x20]
mov edx, r14d
mov ebx, 1
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x14000bef1
movzx eax, word [rcx + rdi]
test ax, ax
je 0x14000bef1
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x14000bed0
test rdx, rdx
lea rax, [rcx - 2]
mov edi, 0x104
lea r8, [0x14001a14c]
cmovne rax, rcx
mov edx, edi
lea rcx, [rsp + 0x20]
mov word [rax], r15w
call fcn.14000bb7c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x14000bf3f
lea rcx, str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
lea rcx, [rbp + 0x330]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rax, [rbp + 0x330]
sub rdx, rax
lea rcx, [rbp + 0x330]
lea rax, [r14 + 0x7fffff7c]
test rax, rax
je 0x14000bf8a
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000bf8a
mov word [rcx], ax
add rcx, 2
sub r14, rbx
jne 0x14000bf69
lea rax, [rcx - 2]
test r14, r14
lea r8, str.ucrtbase.dll
mov rdx, rdi
cmovne rax, rcx
lea rcx, [rbp + 0x330]
mov word [rax], r15w
call fcn.14000bb7c
xor edx, edx
lea rcx, [rbp + 0x330]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, str.CptShare.dll
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000bb7c
lea rcx, [rsp + 0x20]
call fcn.14000bc3c
mov qword [rsi + 0xc30], rax
lea rdi, [rsi + 0xc38]
mov qword [rdi], r15
test rax, rax
je 0x14000c014
lea rdx, str.cpt_create_helper
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c014
mov rcx, rdi
call qword [0x140018d28]
cmp qword [rsi + 0xc30], r15
je 0x14000c022
cmp qword [rdi], r15
jne 0x14000c025
mov ebx, r15d
mov eax, ebx
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.140014e50
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000c054
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rdx
test rdx, rdx
je 0x14000c122
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], di
jne 0x14000c085
test rax, rax
je 0x14000c122
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000c122
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, 0x207
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140019378]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000c111
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000c122
lea rbx, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x14000c127
mov eax, 1
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140014e50
mov rbx, qword [rsp + 0x450]
add rsp, 0x440
pop rdi
ret