joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cc9a0
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 [0x1401e61d8]
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.140113c40
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d3790
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x1400d37cb
mov qword [rcx + 0x18], 0
lea rdx, [rcx + 0x10]
lea rcx, [0x1400d26f0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400d37fd
cmp qword [rbx + 0x18], 0
jne 0x1400d380a
mov rcx, qword [rbx + 0x10]
lea r8, [rbx + 0x18]
lea rdx, [0x1400d26b0]
call qword [sym.imp.USER32.dll_EnumChildWindows]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1400d380a
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 0x1400d58c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x458
mov rax, qword [0x1401e61d8]
xor rax, rsp
mov qword [rsp + reloc.mfc140u.dll_CD2DRadialGradientBrush::CD2DRadialGradientBrush], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400d58fd
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400d58fd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rdi]
test ax, ax
je 0x1400d5a0e
mov qword [rsp + CGopherConnection::~CGopherConnection], rbp
mov rdx, rdi
mov rcx, rdi
cmp ax, 0x2f
je 0x1400d5923
cmp ax, 0x5c
jne 0x1400d5926
mov rdx, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400d5917
xor ebp, ebp
mov qword [rsp + CDialog::~CDialog], rsi
cmp rdx, rdi
je 0x1400d5984
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 0x1400d5a28
lea rdx, [rsp + 0x230]
mov word [rsp + rsi + 0x230], bp
mov rcx, rbx
call fcn.1400d58c0
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x1400d59b0
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 0x1400d59a0
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x1400d59c0
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 0x1400d59d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400d59fe
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.140113c40
add rsp, 0x458
pop rdi
pop rbx
ret
call fcn.14011450c
int3
Function at 0x1400d6450
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 0x1400d655c
cmp dword [rcx + 8], 0xffffffff
jne 0x1400d655c
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 0x1400d64a0
movzx ecx, word [rdi + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x1400d64d7
cmp cx, 0x2f
je 0x1400d64d7
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x1400d64c4
mov eax, dword [0x140160db8]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x48]
cmp esi, 1
jne 0x1400d650a
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400d650a
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.1400d9380
test rax, rax
jne 0x1400d6534
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.1400d9f10
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 0x1400d6c90
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, [0x14017f130]
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 0x1400d94d0
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 0x1400d952a
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 0x1400d9516
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 0x1400d9720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x1400d9736
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x14017f130]
not ecx
cmp r10d, 8
jb 0x1400d9828
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 0x1400d9760
test r10d, r10d
je 0x1400d9850
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 0x1400d9830
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1400e3cd0
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, [0x140152900]
mov rdx, rcx
lea rcx, [rsp + 0x80]
call fcn.14007b460
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 0x1400e3db7
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 0x1400e3daf
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 0x1400e3d94
call fcn.1400e3cd0
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400e3da4
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 0x1400e3d30
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 0x1400e4830
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.1400fd010
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 0x1400e48b4
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 0x1400e4e50
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401e61d8]
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 0x1400e4efb
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 0x1400e4ed0
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.140113c40
add rsp, 0x50
pop rbx
ret
Function at 0x1400e54d0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, reloc.mfc140u.dll_CPaneDivider::CPaneDivider
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401e61d8]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov ebx, edx
lea rdx, str._userprofile_
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
lea rdx, str.Local_SettingsHistoryHistory.IE5index.dat
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
test ebx, ebx
je 0x1400e555e
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rcx, rax
mov r8d, 0x190
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r9, qword [rsp + 0x38]
lea r8, [rsp + 0x50]
lea rdx, str._s_s
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140199b28]
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, str._J7_
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1400e55b1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
lea rcx, [rsp + 0x38]
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]
mov eax, ebx
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140113c40
add rsp, reloc.mfc140u.dll_CPaneDivider::CPaneDivider
pop rbx
ret
Function at 0x1400ef530
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub rsp, 0x2e8
mov rax, qword [0x1401e61d8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400ef5f8
mov edx, 0xff
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x1400ef5f8
lea rcx, [rsp + 0x1d0]
mov qword [rsp + 0x2e0], rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x1400ef5f1
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400ef5f1
mov qword [rsp + 0x2f0], rbx
xor ebx, ebx
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, qword [rdi + 0x18]
lea rbx, [rbx + 1]
mov rdx, qword [rcx + rbx*8]
test rdx, rdx
jne 0x1400ef5b0
mov rbx, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140113c40
add rsp, 0x2e8
ret
mov rax, qword [rsp + 0x20]
jmp 0x1400ef5d1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140113c40
add rsp, 0x2e8
ret
Function at 0x1400f0030
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x518], rbx
mov rax, qword [0x1401e61d8]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x60], r8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], operator
xor r15d, r15d
mov dword [rsp + 0x60], r15d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x1b0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [rsp + 0x60]
test edx, edx
je 0x1400f01c1
lea rcx, str._nNumber_of_subkeys:__d_n
call fcn.14010bca0
mov ebx, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x1400f01c1
nop word [rax + rax]
mov dword [rsp + 0x74], 0xff
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x50]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400f01b5
lea edx, [rbx + 1]
lea r8, [rbp - 0x50]
lea rcx, str.__d___s_n
call fcn.14010be80
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
xor r8d, r8d
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CDocObjectServer::XOleObject::EnumAdvise]
test eax, eax
jg 0x1400f0204
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400f0130
lea rdx, [0x14014f8c8]
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, rsi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140113c40
mov rbx, qword [rsp + 0x518]
add rsp, 0x4d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x1400f01d2
Function at 0x1400f0420
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x870
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x890], rbx
mov rax, qword [0x1401e61d8]
xor rax, rsp
mov qword [rsp + AFX_WM_ON_MOVETABCOMPLETE], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x40], 0
lea rdx, str.Lync
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
nop
lea rcx, [rsp + 0x50]
call fcn.140101620
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006490
nop
lea rcx, [rsp + 0x50]
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]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400f0544
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f053e
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, rbx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140113c40
mov rbx, qword [rsp + 0x890]
add rsp, 0x870
pop rdi
ret
call fcn.14004fc10
nop
call fcn.14004fc10
int3
Function at 0x1400f1420
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x580
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x5b0], rbx
mov rax, qword [0x1401e61d8]
xor rax, rsp
mov qword [rsp + 0x570], rax
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400fd010
mov qword [rsp + 0x38], rax
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400f159c
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___1]
mov rdi, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
test rdi, rdi
jne 0x1400f14d7
xor edx, edx
mov qword [rsp + 0x60], rdx
jmp 0x1400f1546
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400f14e0
inc ebx
mov r9d, 0x80
lea r8, [rsp + 0x68]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1400dd200
movsxd rdx, ebx
add rdx, rdx
mov r9, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.14010bb20
test eax, eax
je 0x1400f1541
cmp eax, 0xc
je 0x1400f15e6
cmp eax, 0x16
je 0x1400f15f2
cmp eax, 0x22
je 0x1400f15f2
cmp eax, 0x50
jne 0x1400f15ec
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400f1585
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebx, ebx
jne 0x1400f15a0
lea rdx, [rsp + 0x170]
mov rcx, rbp
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
jmp 0x1400f15a0
mov ebx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
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 eax, ebx
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.140113c40
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x580
pop rdi
pop rsi
pop rbp
ret
call sub.mfc140u.dll_AfxRegisterMFCCtrlClasses
nop
call sub.mfc140u.dll_AfxRegDeleteKey
int3
call sub.mfc140u.dll_AfxRegDeleteKey
int3