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

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftTerminal_Server_Client
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c48ff
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x88], 4
mov dword [rsp + 0x80], CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
lea rdx, [0x1401720f8]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.AuthenticationLevelOverride
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rdx, [0x1401497d8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
test ebx, ebx
jne 0x1400c48a3
cmp dword [rsp + 0x78], ebx
jne 0x1400c48a3
lea rdx, str.Not_Prompt
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x4b3
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
mov rdx, rbx
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
mov edx, 0x444
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
xor edx, edx
call sub.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable
jmp 0x1400c48dc
lea rdx, str.Prompt
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x4b3
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
mov rdx, rbx
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400c4920
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_NTTerminal_Services
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c4a13
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x78], 4
mov dword [rsp + 0x70], 0x3ff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.KeepAliveEnable
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rdx, [0x1401497d8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
test ebx, ebx
jne 0x1400c49cf
cmp dword [rsp + 0x68], 1
lea rdx, str.Enabled
je 0x1400c49d6
lea rdx, [0x140172210]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x4ae
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rdx, rbx
mov rcx, rax
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c4a30
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c4b6c
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x78], 4
mov dword [rsp + 0x70], 0x3ff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.UserAuthentication
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rdx, [0x1401497d8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
test ebx, ebx
jne 0x1400c4b11
cmp dword [rsp + 0x68], ebx
jne 0x1400c4b11
lea rdx, str.Less_Secure
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x4a9
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
mov rdx, rbx
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
jmp 0x1400c4b61
lea rdx, str.Secure
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x4a9
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
mov rdx, rbx
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
mov edx, CMFCRibbonInfo::XImage::XImage
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
xor edx, edx
call sub.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c4b90
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlTerminal_Server
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c4ccc
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x78], 4
mov dword [rsp + 0x70], 0x3ff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.fDenyTSConnections
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rdx, [0x1401497d8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
test ebx, ebx
jne 0x1400c4c88
cmp dword [rsp + 0x68], ebx
jne 0x1400c4c88
lea rdx, str.Allowed
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x514
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
mov rdx, rbx
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
mov edx, CMFCRibbonInfo::XImage::XImage
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
xor edx, edx
call sub.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable
jmp 0x1400c4cc1
lea rdx, str.Not_Allowed
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rbx, rax
mov edx, 0x514
mov rcx, rdi
call sub.mfc140u.dll_CMFCRibbonGallery::GetCompactSize
mov rcx, rax
mov rdx, rbx
call sub.mfc140u.dll_CMFCToolBar::SetOrigButtons
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c8dd0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rsi, rdx
mov r14, rcx
cmp qword [rdx], 0
je 0x1400c8e0e
mov eax, 0x80070057
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0xc8], 0
call fcn.1400c92e0
test eax, eax
js 0x1400c8f60
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
mov qword [rsp + 0x58], rax
mov r12d, dword [r14 + 4]
mov r15d, dword [r14 + 0xc]
sub r15d, r12d
mov r13d, dword [r14]
mov r14d, dword [r14 + 8]
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsi], rax
test rax, rax
jne 0x1400c8e8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xc0], 1
mov eax, 1
jmp 0x1400c8f60
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x40], 0x40cc0020
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r15d
mov r9d, r14d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_BitBlt]
xor r14d, r14d
mov dword [rsp + 0xc0], r14d
jmp 0x1400c8f1c
test rsi, rsi
je 0x1400c8f36
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
test rdi, rdi
je 0x1400c8f44
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
test rbx, rbx
je 0x1400c8f5d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
mov eax, r14d
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c9060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401dd1d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xb0]
mov rsi, rdx
mov edx, dword [r8 + 0x14]
xor ecx, ecx
mov rdi, r9
mov r14, r8
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
movzx r9d, word [r14 + 8]
xor r15d, r15d
mov dword [rsp + 0x30], r15d
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rbp, rax
call qword [sym.imp.GDI32.dll_GetDIBits]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [r14 + 0x20]
lea r9, [rsp + 0x40]
mov edx, dword [r14]
mov rbx, rax
mov eax, 0x4d42
mov dword [rsp + 0x4e], r15d
mov word [rsp + 0x48], ax
lea r8d, [rcx*4]
mov qword [rsp + 0x20], r15
mov ecx, dword [r14 + 0x14]
lea eax, [rdx + 0xe]
add ecx, 0xe
add eax, r8d
add ecx, edx
mov dword [rsp + 0x52], eax
add ecx, r8d
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x4a], ecx
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [r14 + 0x20]
lea r9, [rsp + 0x40]
mov rdx, r14
mov qword [rsp + 0x20], r15
mov rcx, rbx
lea r8d, [r8*4 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [r14 + 0x14]
lea r9, [rsp + 0x40]
mov rdx, rbp
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010f260
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400cfe50
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x1400cfe8b
mov qword [rcx + 0x18], 0
lea rdx, [rcx + 0x10]
lea rcx, [0x1400cedb0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400cfebd
cmp qword [rbx + 0x18], 0
jne 0x1400cfeca
mov rcx, qword [rbx + 0x10]
lea r8, [rbx + 0x18]
lea rdx, [0x1400ced70]
call qword [sym.imp.USER32.dll_EnumChildWindows]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1400cfeca
mov qword [rbx + 0x18], 0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400d1f80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x1401dd1d8]
xor rax, rsp
mov qword [rsp + reloc.mfc140u.dll_CD2DRadialGradientBrush::CD2DRadialGradientBrush], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400d1fbd
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400d1fbd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x1400d20ce
mov qword [rsp + CGlobalUtils::~CGlobalUtils], rbp
mov rdx, rdi
mov rcx, rdi
cmp ax, 0x2f
je 0x1400d1fe3
cmp ax, 0x5c
jne 0x1400d1fe6
mov rdx, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400d1fd7
xor ebp, ebp
mov qword [rsp + CDialog::~CDialog], rsi
cmp rdx, rdi
je 0x1400d2044
sub rdx, rdi
lea rcx, [rsp + 0x230]
sar rdx, 1
lea rsi, [rdx + rdx]
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
cmp rsi, 0x208
jae 0x1400d20e8
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.1400d1f80
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x1400d2070
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400d2060
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x1400d2080
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400d2090
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400d20be
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rsi, qword [rsp + 0x450]
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + reloc.mfc140u.dll_CD2DRadialGradientBrush::CD2DRadialGradientBrush]
xor rcx, rsp
call fcn.14010f260
add rsp, 0x458
pop rdi
pop rbx
ret
call fcn.14010fb2c
int3
Function at 0x1400d2b10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
jne 0x1400d2c1c
cmp dword [rcx + 8], 0xffffffff
jne 0x1400d2c1c
mov qword [rsp + 0x48], rbx
lea rbx, [rcx + 0x250]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400d2b60
movzx ecx, word [rdi + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x1400d2b97
cmp cx, 0x2f
je 0x1400d2b97
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x1400d2b84
mov eax, dword [0x14015a1b0]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x48]
cmp esi, 1
jne 0x1400d2bca
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400d2bca
mov eax, 0x2000000
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r14d
mov rcx, rbp
call fcn.1400d5a40
test rax, rax
jne 0x1400d2bf4
mov eax, dword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rcx, rax
call fcn.1400d65d0
xor ecx, ecx
mov qword [rdi], rax
test rax, rax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rbp, qword [rsp + 0x50]
mov eax, 0x1000000
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400d3350
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx]
mov r10, rcx
movsx rax, dl
mov r8d, r9d
xor r8, rax
shr r9d, 8
movzx eax, r8b
lea r8, [0x140177d30]
mov edx, dword [r8 + rax*4]
xor edx, r9d
mov dword [rcx], edx
movzx eax, dl
add eax, dword [rcx + 4]
imul edx, eax, 0x8088405
inc edx
mov dword [rcx + 4], edx
mov ecx, dword [rcx + 8]
movzx eax, cl
shr rdx, 0x18
xor rdx, rax
shr ecx, 8
mov eax, dword [r8 + rdx*4]
xor eax, ecx
mov dword [r10 + 8], eax
ret
Function at 0x1400d5b90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x1400d5bea
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400d5bd6
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call sub.VCRUNTIME140.dll_memcpy
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x1400d5df6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x140177d30]
not ecx
cmp r10d, 8
jb 0x1400d5ee8
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
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 0x1400d5e20
test r10d, r10d
je 0x1400d5f10
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
add r10d, 0xffffffff
jne 0x1400d5ef0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1400e02f0
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rcx
lea r8, [0x14014c630]
mov rdx, rcx
lea rcx, [rsp + 0x80]
call fcn.140079660
nop
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CEnumFormatEtc::CEnumFormatEtc
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r8d, r8d
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CResetPropExchange::ExchangePersistentProp
test eax, eax
je 0x1400e03d7
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_Ordinal_4578
mov ebx, eax
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CDC::HIMETRICtoDP
test eax, eax
jne 0x1400e03cf
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_Ordinal_5385
nop
mov edx, 0x10
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
call qword [r8 + 0x80]
lea rcx, [rsp + 0x78]
test eax, eax
je 0x1400e03b4
call fcn.1400e02f0
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400e03c4
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebx, ebx
jne 0x1400e0350
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CMFCVisualManagerOffice2007::CleanStyle
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea rcx, [rsp + 0x28]
call sub.mfc140u.dll_CDockSite::CDockSite
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400e0e50
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rcx
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400f91c0
mov qword [rsp + 0x58], rax
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400e0ed4
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400e1470
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401dd1d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdx, str.SoftwareMicrosoftInternet_ExplorerTypedURLs
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
lea r8, [rsp + 0x20]
mov rcx, 0xffffffff80000001
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, 1
lea rdx, str.url_d
mov r8d, ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400e151b
nop word [rax + rax]
inc ebx
lea rdx, str.url_d
mov r8d, ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1400e14f0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010f260
add rsp, 0x50
pop rbx
ret