joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f9800
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r8
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
mov rcx, rdx
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov r8, rax
mov r9d, 0x20019
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400ed6b0
test eax, eax
jne 0x1400f9932
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov dword [rsp + 0x38], 0x400
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rax
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f98de
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x1400f98de
cmp dword [rsp + 0x38], r15d
jne 0x1400f98de
mov word [rsp + 0x80], r15w
test rdi, rdi
je 0x1400f98f4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r15
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
nop
test rdi, rdi
je 0x1400f991a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, r14
jmp 0x1400f9962
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400f9943
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400f994f
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14010bb40
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f9990
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov dword [rsp + 0x30], 1
lea rdx, [0x140176270]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
nop
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov rbp, rax
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov esi, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdi, rax
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8d, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, r14
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010bb40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400fa130
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400fa196
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
test rax, rax
jns 0x1400fa183
addss xmm0, dword [0x14017fac0]
mulss xmm0, dword [0x14017fab8]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
cvttss2si eax, xmm0
jmp 0x1400fa19d
mov eax, 4
jmp 0x1400fa19d
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14010bb40
add rsp, 0xa8
ret
Function at 0x1400fb410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fb442
test al, 0x10
je 0x1400fb442
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400fb460
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
xor edx, edx
mov r8d, CMenuHash::CMenuHash
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], CMenuHash::CMenuHash
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400fb538
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r8d, r8d
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CDocObjectServer::XOleObject::EnumAdvise]
mov ecx, dword [rsp + 0x48]
test eax, eax
jns 0x1400fb52b
cmp ebx, 0xffffffff
je 0x1400fb511
cmp ebx, ecx
je 0x1400fb52b
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
jmp 0x1400fb4d2
mov ebp, ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebp, ebp
je 0x1400fb553
mov al, 1
jmp 0x1400fb555
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14010bb40
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400fb580
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
xor edx, edx
mov r8d, CMenuHash::CMenuHash
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], CMenuHash::CMenuHash
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400fb658
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r8d, r8d
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CDocObjectServer::XOleObject::EnumAdvise]
mov ecx, dword [rsp + 0x48]
test eax, eax
jns 0x1400fb64b
cmp ebx, 0xffffffff
je 0x1400fb631
cmp ebx, ecx
je 0x1400fb64b
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
jmp 0x1400fb5f2
mov ebp, ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebp, ebp
je 0x1400fb673
mov al, 1
jmp 0x1400fb675
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14010bb40
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400fc290
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400fc32d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rdx, [0x140144758]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov rdi, rax
lea rdx, str.OpenSCManager_failed
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.1401028d0
xor eax, eax
jmp 0x1400fc464
mov r8d, 0x80000000
lea rdx, str.HealITService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400fc3a9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rdx, [0x140144758]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov r14, rax
lea rdx, str.OpenService_failed___d__n
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r14
mov rcx, rdi
call fcn.1401028d0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rsi], 0
xor eax, eax
jmp 0x1400fc464
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400fc42b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rdx, [0x140144758]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov r14, rax
lea rdx, str.QueryServiceStatusEx_failed___d__n
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r14
mov rcx, rsi
call fcn.1401028d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400fc464
mov eax, dword [rsp + 0x6c]
dec eax
mov rcx, rdi
test eax, 0xfffffffd
je 0x1400fc451
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1400fc464
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400fc464
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14010bb40
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400fe180
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x1400fe1bb
xor eax, eax
cmp dx, si
cmove di, ax
movzx eax, di
jmp 0x1400fe2fb
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400fe1e8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rax + r8*2]
cmp rax, rdx
jae 0x1400fe1e8
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], di
movzx eax, di
jmp 0x1400fe2fb
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400fe2f0
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400fe22f
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400fe259
movzx ecx, di
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
je 0x1400fe2f0
movzx esi, di
jmp 0x1400fe2f0
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x1400fe2f0
cmp eax, 1
jle 0x1400fe2af
cmp eax, 3
jne 0x1400fe2f0
movzx ecx, word [rsp + 0x40]
jmp 0x1400fe23b
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400fe2dd
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x1400fe2f0
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, di
jne 0x1400fe2f3
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010bb40
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140100100
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x38]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1401001fe
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1401001fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140144758]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
nop
mov r8d, ebx
lea rdx, str.Your_system_will_be_restart_in__d_seconds._Please_save_your_files_and_close_programs._Note:_Solution_will_be_continue_after_restart
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 1
mov r9d, 1
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010bb40
add rsp, 0x70
pop rbx
ret
Function at 0x140101190
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
movzx ebx, r8b
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.mfc140u.dll_CFileDialog::SetTemplate]
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], WSAStartup
mov dword [rsp + 0x34], 0x40
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbp
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::HitTest]
test al, al
je 0x14010121b
mov qword [rsp + 0x50], rbp
jmp 0x140101229
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test bl, bl
je 0x14010125b
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140101289
mov rbx, qword [rsp + 0x98]
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov qword [rcx + 0x2e8], rbx
call fcn.1401022a0
mov ebx, eax
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
mov dword [rcx + 0x2d0], ebx
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140104ea0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1401d61d8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, qword [rsp + 0xe0]
mov r15, rdx
lea rdx, [rsp + 0x40]
mov rsi, r9
mov r14, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x140104eec
mov eax, 0x200
jmp 0x1401050be
mov r8d, dword [rsp + 0x40]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x88], rbx
mov eax, r8d
mov qword [rsp + 0x80], rbp
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov ebx, eax
or ebx, 0x20
and r8b, 0x20
cmove ebx, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or ebx, eax
test r9d, r9d
jne 0x140104f58
bts ebx, 0x17
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0x28
jbe 0x140105041
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x30], ax
jne 0x140105041
mov edx, dword [rsp + 0x34]
lea eax, [rdx + 0x34]
cmp ebp, eax
jbe 0x140105041
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
cmp eax, 0x5a4d
je 0x14010503d
add eax, 0xffffbab4
cmp eax, 4
ja 0x140105041
mov ecx, 0x15
bt ecx, eax
jae 0x140105041
bts ebx, 0x16
test r15, r15
je 0x140105049
mov dword [r15], ebx
test r14, r14
je 0x140105051
mov dword [r14], ebp
mov rbx, qword [rsp + 0x54]
mov rbp, qword [rsp + 0x80]
test rsi, rsi
je 0x14010508a
mov rcx, qword [rsp + 0x4c]
call fcn.1401070d0
mov rcx, rbx
mov qword [rsi], rax
call fcn.1401070d0
mov rcx, qword [rsp + 0x44]
mov qword [rsi + 8], rax
call fcn.1401070d0
mov qword [rsi + 0x10], rax
test r12, r12
je 0x1401050b4
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call fcn.140107020
movzx ecx, word [rsp + 0x30]
movzx eax, word [rsp + 0x34]
shl ecx, 0x10
or ecx, eax
mov dword [r12], ecx
mov rbx, qword [rsp + 0x88]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010bb40
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140105b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x140105b86
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x14017fc90]
not ecx
cmp r10, 8
jb 0x140105c74
mov r11, r10
shr r11, 3
imul rax, r11, 0xfffffffffffffff8
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140105bb0
test r10, r10
je 0x140105ca0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x140105c80
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret