joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f90
Capabilities:
Encrypt data using rc4 prga
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41609c
mov eax, dword [ebp - 4]
push esi
jmp loc.00563be0
mov eax, dword [ebp - 4]
cmp eax, edi
pop edi
je 0x4160ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x416760
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470f78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call sub.mfc100u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc100u.dll_CCmdTarget::BeginWaitCursor
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x38]
push ecx
push 0x28
push eax
mov dword [ebp - 0x38], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [ebp - 0x44]
push edx
push str.SeShutdownPrivilege
push 0x482e5c
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
push 0x10
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
push edx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31]
call fcn.0040fd00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret
Function at 0x417870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 5
push eax
mov ebx, ecx
call sub.mfc100u.dll_AfxFindResourceHandle
mov esi, eax
test esi, esi
jne 0x41788e
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebx + 0x78]
push edi
push 5
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x4178d0
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], 0x40000400
test cl, 0x40
je 0x4178e3
mov dword [eax + 0xc], 0x40000440
jmp 0x4178e3
mov ecx, dword [eax]
mov dword [eax], 0x40000400
test cl, 0x40
je 0x4178e3
mov dword [eax], 0x40000440
mov eax, dword [ebp + 0xc]
push esi
push eax
push edi
mov ecx, ebx
call sub.mfc100u.dll_CDialog::CreateIndirect
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41c710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472301
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
mov eax, dword [0x4ae44c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call dword [0x4824e8]
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 0x4848d0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push str.shdocvw.dll
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
xor bl, bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.mfc100u.dll_]
push eax
call fcn.00415ee0
add esp, 0xc
test eax, eax
je 0x41c7f9
mov eax, dword [ebp - 0x14]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x18]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea ecx, [ebp - 0x40]
call fcn.00463620
mov byte [ebp - 4], 1
push 0x4ae620
lea ecx, [ebp - 0x40]
call fcn.00463c90
test eax, eax
setne bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00463b60
test bl, bl
jne 0x41c811
push str.IE_check_failed:_Microsoft_IE_upgrade_required
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472343
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
xor ebx, ebx
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x41c8b4
mov edx, dword [0x4848d0]
mov eax, str.MSXML4.dll
mov dword [edi], edx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c8d0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x41c8e6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x228]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
call fcn.00415ee0
add esp, 0xc
test eax, eax
je 0x41ca5b
mov eax, dword [ebp - 0x228]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x224]
movzx edx, ax
push edx
shr eax, 0x10
push eax
lea ecx, [ebp - 0x250]
call fcn.00463620
mov dword [ebp - 4], ebx
push 1
push 1
push 1
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00464260
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push 0x4850a0
push ecx
push str.Installed_MSXML_Version_is__
push 0x484c3c
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 1
push 1
push 1
push 1
lea edx, [ebp - 0x220]
push edx
mov ecx, 0x4ae5f8
call fcn.00464260
mov byte [ebp - 4], 2
mov eax, dword [eax]
push 0x4850a0
push eax
push str.Required_MSXML_Version_is__
push 0x484c3c
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 0x4ae5f8
lea ecx, [ebp - 0x250]
call fcn.00463c90
test eax, eax
je 0x41ca26
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00463b60
jmp 0x41ca7c
push str.Required_version_of_MSXML_is_not_installed
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov byte [edx], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00463b60
jmp 0x41ca7c
push str.Required_version_of_MSXML_is_not_installed
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
mov eax, dword [ebp - 0x21c]
add esp, 0xc
mov byte [eax], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 4
Function at 0x41f7f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472daa
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ae44c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
mov esi, 1
call dword [0x4824e8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040ba40
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push str.Rockwell_Automation_Software_Setup.lnk
push ecx
lea edx, [ebp - 0x10]
push 0x4861f8
push edx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x30]
call fcn.0046a7f2
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x30]
mov edi, eax
call sub.mfc100u.dll_CFileFind::Close
test edi, edi
je 0x41f8b8
push 0x80
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and esi, eax
cmp esi, 1
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::CFileFind
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bcd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aab9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ae44c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.RASoftwareInstallMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xb8], eax
test eax, eax
je 0x44bd5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44bd6e
lea eax, [ebp - 0x10]
push eax
call fcn.0040ce50
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x44bd4c
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44bdd0
Capabilities:
Delete file
Set file attributes

Disassembly:
push str.Removing_setup_shortcut_from_startup_folder_r_n
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0xc
call fcn.0042def0
mov ecx, eax
jmp fcn.0041f7f0
Function at 0x451510
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x45157c
mov ecx, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
lea edi, [eax + eax + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x451574
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
push edi
mov ebx, eax
call dword [sym.imp.mfc100u.dll_]
push eax
push ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4

Function at 0x4548b0
Capabilities:
Capture webcam image

Disassembly:
push esi
push edi
push 0x41a
mov esi, ecx
call sub.mfc100u.dll_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf0
push eax
call edi
test eax, eax
jne 0x454961
push 0x418
mov ecx, esi
call sub.mfc100u.dll_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf1
push ecx
call edi
push 0x419
mov ecx, esi
call sub.mfc100u.dll_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf1
push edx
call edi
push 0x41a
mov ecx, esi
call sub.mfc100u.dll_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call edi
mov edx, dword [esi + 0x20]
push 1
lea ecx, [esi + 0x1bc]
push ecx
push edx
mov dword [esi + 0x1b0], 0x41a
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x1b4]
push 1
push 3
call fcn.00462f20
pop edi
mov ecx, esi
pop esi
jmp fcn.00453980
pop edi
pop esi
ret
Function at 0x458d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x458d5b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x458eb7
cmp esi, 0x104
jb 0x458da0
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x458eb7
mov eax, dword [ebp - 0x210]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push eax
call edx
test eax, eax
jns 0x458e12
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x458e03
movzx edx, ax
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x458ea9
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x458ea9
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
test esi, esi
jne 0x458e3f
cmp word [ebp - 0x20c], ax
je 0x458e3f
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x458e75
push edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [ebp + 0x10]
lea edi, [esi + 1]
cmp edi, eax
jbe 0x458e65
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x458e74
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x458ea9
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x459090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push esi
mov dword [ebp - 4], ecx
xor bl, bl
call edi
cmp eax, 0xffffffff
jne fcn.004590e9
nop
test bl, bl
jne 0x4590fb
push 0
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push esi
call edi
jmp loc.0055a388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], 1
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x459af0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d1ea
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4ae44c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00459960
test al, al
jne 0x459b41
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00459120
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.004591f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0046a7f2
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::FindFile
test eax, eax
je 0x459c6e
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::FindNextFileW
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x40]
push 1
lea ecx, [ebp - 0x30]
call eax
test eax, eax
jne 0x459bb8
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x40]
push 2
lea ecx, [ebp - 0x30]
call eax
test eax, eax
jne 0x459bb8
xor bl, bl
jmp 0x459bba
mov bl, 1
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::Close
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, bl
je 0x459bdd
push 0x80
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
call esi
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::FindFile
test eax, eax
je 0x459c52
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::FindNextFileW
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x40]
push 1
lea ecx, [ebp - 0x30]
call eax
test eax, eax
jne 0x459c23
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x40]
push 2
lea ecx, [ebp - 0x30]
call eax
test eax, eax
jne 0x459c23
xor bl, bl
jmp 0x459c25
mov bl, 1
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::Close
test bl, bl
je 0x459c42
push 0x80
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
call esi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call sub.mfc100u.dll_CFileFind::CFileFind
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4689d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x4689e7
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret 4
call fcn.00468890
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
je 0x468a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Flex_CheckOutLicense
push eax
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x468a22
mov ecx, esi
call fcn.00468890
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [esi + 8]
push str.Flex_CheckOutLicenseEx
push eax
call edi
mov dword [esi + 0x2c], eax
test eax, eax
je 0x468a0f
mov ecx, dword [esi + 8]
push str.Flex_CheckInLicense
push ecx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x468a0f
mov edx, dword [esi + 8]
push str.Flex_CheckOutList
push edx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x468a0f
mov eax, dword [esi + 8]
push str.Flex_CheckOutListEx
push eax
call edi
mov dword [esi + 0x30], eax
test eax, eax
je 0x468a0f
mov ecx, dword [esi + 8]
push str.Flex_CheckOutPers
push ecx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x468a0f
mov edx, dword [esi + 8]
push str.IsPersonalized
push edx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x468a0f
mov eax, dword [esi + 8]
push str.Flex_GraceRegHwnd
push eax
call edi
mov dword [esi + 0x20], eax
test eax, eax
je 0x468a0f
mov ecx, dword [esi + 8]
push str.Flex_GraceClearAllGracePeriods
push ecx
call edi
mov dword [esi + 0x24], eax
test eax, eax
je 0x468a0f
mov edx, dword [esi + 8]
push str.Flex_GraceDisplayWarningMsg
push edx
call edi
mov dword [esi + 0x28], eax
test eax, eax
je 0x468a0f
pop edi
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x46b17c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ae44c]
jne 0x46b186
repz ret
jmp fcn.0046b867