joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ee0
Capabilities:
Inspect load icon resource

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.StormRes.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
lea edi, [esi + 0x44]
push 0x20
push 0x10
push 0x10
mov ecx, edi
mov dword [esi + 0x54], eax
call sub.MFC42.DLL_CImageList::Create
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0xffffff
push eax
call ebx
push 1
push 1
lea ebp, [esi + 0x4c]
push 0x20
push 0xd
push 0xd
mov ecx, ebp
call sub.MFC42.DLL_CImageList::Create
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x232c
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
test eax, eax
je 0x404f4e
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x50]
push 0
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
call sub.MFC42.DLL_AfxGetModuleState
push 0x7e
push 0xe
push 0x7e
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esi + 0x48]
push eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov eax, dword [esi + 0x48]
push 0xeef3f4
push eax
call ebx
mov ecx, dword [esi + 0x50]
push 0xeef3f4
push ecx
call ebx
test edi, edi
je 0x404f9c
mov edi, dword [edi + 4]
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x1109
push edx
call edi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
test ebp, ebp
je 0x404fbd
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 0x20]
push ebp
push 2
push 0x1109
push eax
call edi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4057c0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d2ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
xor edi, edi
cmp esi, edi
mov ebp, ecx
mov dword [esp + 0x14], edi
je 0x40582c
mov dword [esp + 0x60], edi
mov eax, dword [esi]
lea ecx, [esp + 0x60]
push ecx
push esi
mov dword [esp + 0x60], edi
call dword [eax + 0x10]
test eax, eax
mov eax, dword [esp + 0x60]
jl 0x40581a
cmp eax, edi
je 0x40581a
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x60]
cmp eax, edi
mov dword [esp + 0x58], 0xffffffff
je 0x40582c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x18], edi
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x60], 1
call dword [eax + 0xc]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004ceb88
mov eax, dword [ebp + 0x48]
mov byte [esp + 0x58], 2
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov ebx, dword [esp + 0x64]
mov esi, eax
cmp ebx, 0xffff0000
push edi
lea ecx, [esp + 0x14]
jne 0x4058ea
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4058a0
push 0xffff0002
push 0xffff0000
push edi
push edi
push edi
push esi
push esi
push edx
push 0x23
mov ecx, ebp
call sub.MFC42.DLL_CTreeCtrl::InsertItem
jmp 0x40595b
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x20]
push ecx
push eax
push 0x1100
mov dword [esp + 0x28], 0xffff0000
mov dword [esp + 0x2c], 0xffff0002
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
push edx
jmp 0x405955
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x405910
push 0xffff0002
push ebx
push edi
push edi
push edi
push esi
push esi
push edx
push 0x23
mov ecx, ebp
call sub.MFC42.DLL_CTreeCtrl::InsertItem
jmp 0x40595b
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1100
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xffff0002
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x50]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x410010
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4d3e9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CCannotPlayResolveStatue.0
mov eax, dword [0x52d0e0]
mov ecx, 0x52d0e0
mov dword [esp + 0x2c], 6
mov dword [esp + 0x14], ecx
call dword [eax + 4]
mov eax, dword [0x526644]
mov bl, 7
test eax, eax
mov byte [esp + 0x2c], bl
jne 0x4100e6
mov eax, dword [0x526640]
test eax, eax
jne 0x4100e6
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x2c], 8
je 0x41008d
mov ecx, eax
call fcn.0040b950
jmp 0x41008f
xor eax, eax
mov ecx, dword [0x52b650]
mov ebp, dword [0x518818]
mov byte [esp + 0x2c], bl
xor edi, edi
lea ebx, [ecx - 1]
mov dword [0x526640], eax
test ebx, ebx
jl 0x4100c8
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, 0x52b648
call fcn.00408f40
cmp ebp, dword [esp + 0x20]
jge 0x4100c8
inc edi
cmp edi, ebx
jle 0x4100ad
push 1
mov eax, 0x4113f0
push ebp
push eax
push edi
mov ecx, 0x52b648
call fcn.00408f60
mov dword [0x526644], 1
mov eax, dword [0x52d0e0]
mov ebx, dword [0x526640]
mov ecx, 0x52d0e0
mov byte [esp + 0x2c], 6
call dword [eax + 8]
lea edi, [esi + 0x114]
mov ecx, ebx
push edi
call fcn.0040ecd0
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x41012c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1d4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esi + 0x12c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 0xa0]
mov dword [esp + 0x14], ebx
mov dword [ebx], vtable.CGdiObject.0
mov ecx, ebx
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [ebp + 0x60]
mov dword [ebx], vtable.CObject.0
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
mov ecx, ebp
mov byte [esp + 0x2c], 5
call fcn.004ceab0
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea edi, [esi + 0x10c]
mov dword [esp + 0x18], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x2c], 0xc
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x104]
mov dword [edi], vtable.CObject.0
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [esi + 0xa8]
mov byte [esp + 0x2c], 1
call fcn.004c1190
lea ecx, [esi + 0x60]
mov byte [esp + 0x2c], 0
call fcn.0040b590
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.004ceab0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4115d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3fe2
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
cmp esi, eax
je 0x41164f
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x41164f
mov dl, byte [esp + 0x34]
mov dword [esp + 8], eax
mov byte [esp + 4], dl
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x34]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
add ecx, 0x30
add esi, 0x30
push ecx
push esi
mov byte [esp + 0x34], 1
call dword [0x4e890c]
add esp, 8
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x415e37
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [eax + 8], 0xfffffffe
jne 0x415f1f
mov eax, dword [eax + 0xc]
push ebx
push ebp
push edi
lea edi, [esi + 0x120]
push eax
mov ecx, edi
call fcn.004a9860
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, eax
mov eax, dword [esi + 0x208]
cmp dword [ebx + 0x10], eax
je 0x415ea7
cmp eax, 0xffffffff
jle 0x415ea7
push eax
mov ecx, edi
call fcn.004a9860
mov eax, dword [eax + 8]
test eax, eax
je 0x415ea7
cmp dword [eax], 0
je 0x415e89
mov edi, dword [eax + 4]
jmp 0x415e97
mov eax, dword [eax + 4]
test eax, eax
jne 0x415e94
xor edi, edi
jmp 0x415e97
mov edi, dword [eax + 0x20]
push edi
call ebp
test eax, eax
je 0x415ea7
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
mov ecx, esi
push eax
call fcn.00415900
push eax
mov dword [esi + 0x228], eax
call ebp
test eax, eax
je 0x415f0f
push 0x42b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem_1
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 0x54
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x228]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x28]
pop edi
pop ebp
mov dword [esi + 0x208], ecx
pop ebx
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_CWnd::OnNotify
pop esi
add esp, 0x10
ret 0xc
Function at 0x41f200
Capabilities:
Check os version
Set global application hook

Disassembly:
sub esp, 0xac
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x7c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x7c]
mov edi, eax
xor eax, eax
inc edi
sub ecx, edi
add edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CDialog::PreModal
mov dword [ebx + 0x64], eax
call sub.MFC42.DLL_AfxUnhookWindowCreate
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x41f27d
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f27d
mov eax, dword [ebx + 0x64]
push 0
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_EnableWindow]
call sub.MFC42.DLL_AfxGetThreadState
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0x18], eax
test ecx, 0x80000
je 0x41f299
mov dword [eax + 0x18], ebx
jmp 0x41f29f
push ebx
call sub.MFC42.DLL_AfxHookWindowCreate
lea ebp, [ebx + 0x1fc]
mov ecx, 0x16
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea esi, [ebx + 0x60]
mov ecx, 0x13
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x9c
push ecx
call esi
test eax, eax
jne 0x41f2f3
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x94
push edx
call esi
test eax, eax
je 0x41f30a
mov eax, dword [esp + 0x30]
sub eax, 2
jne 0x41f30a
cmp dword [esp + 0x24], 5
jb 0x41f30a
mov dword [ebp], 0x58
mov dword [0x526698], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x41f470
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x526694], eax
mov eax, dword [ebx + 0xac]
test eax, eax
push ebp
je 0x41f342
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x41f348
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov dword [esp + 0x14], eax
mov eax, dword [0x526694]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x526698]
test eax, eax
je 0x41f369
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
lea eax, [ebx + 0x60]
mov ecx, 0x13
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x4c
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ecx + 0x18], 0
je 0x41f3a5
mov edx, dword [ebx + 0x200]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41f3bb
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, ebx
call sub.MFC42.DLL_CDialog::PostModal
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x41f3d3
mov eax, 2
add esp, 0xac
ret
Function at 0x41f5e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x41f610
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
add ecx, 4
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
Function at 0x420570
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5d94
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x120
test eax, eax
push ebp
push esi
push edi
jne 0x42059d
xor eax, eax
jmp 0x42076b
push ecx
mov dword [esp + 0x14], esp
mov ebp, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x138], 0
test esi, esi
je 0x4205f4
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004cf7d5
test eax, eax
mov dword [esi], eax
jne 0x4205f6
test edi, edi
je 0x4205f6
push 0x8007000e
call fcn.004cf728
jmp 0x4205f6
xor esi, esi
test esi, esi
mov dword [esp + 0x138], 0xffffffff
mov dword [ebp], esi
jne 0x420612
push 0x8007000e
call fcn.004cf728
mov ecx, dword [esp + 0x144]
call fcn.004219b0
cmp ax, 0xffff
je 0x420766
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x3c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x134], 1
jne 0x42068b
xor eax, eax
jmp 0x42076b
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4206ad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42076b
or edi, 0xffffffff
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
mov word [esp + 0x14], 8
push edx
call fcn.004cf7d5
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4206ea
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x4206ea
push 0x8007000e
call fcn.004cf728
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0xe]
push ecx
mov esi, dword [esp + 0x144]
sub esp, 0x10
mov byte [esp + 0x148], 2
mov ecx, esp
mov edx, dword [esi]
push esi
mov dword [ecx], ebp
mov ebp, dword [esp + 0x30]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jge 0x420733
push 0x518788
push esi
push eax
call fcn.004cf736
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x420750
push eax
call fcn.004cf728
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esp + 0xe], di
je 0x420766
xor eax, eax
jmp 0x42076b
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x12c
ret
Function at 0x420790
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5da8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x4207c7
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jge 0x4207f1
push eax
call fcn.004cf728
mov esi, dword [esp + 0x2c]
mov word [esp + 0xc], 8
push esi
call fcn.004cf7d5
test eax, eax
mov dword [esp + 0x14], eax
jne 0x420818
test esi, esi
je 0x420818
push 0x8007000e
call fcn.004cf728
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0xc]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
call dword [edx + 0x108]
mov esi, eax
test esi, esi
jge 0x420866
push 0x518788
push edi
push esi
call fcn.004cf736
test esi, esi
mov dword [esp + 0x24], 0xffffffff
je 0x420895
lea edx, [esp + 0xc]
push edx
call ebx
test eax, eax
jge 0x420881
push eax
call fcn.004cf728
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jge 0x4208a6
push eax
call fcn.004cf728
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret

Function at 0x420930
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42094f
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x420999
xor eax, eax
add esp, 0x14
ret
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x420ce0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
lea eax, [esp + 0x18]
push ecx
push edx
xor esi, esi
xor edi, edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x420d5a
push ebx
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x420d5a
mov eax, dword [esp + 0x2c]
push ebp
push ebx
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x420d51
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x518854
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x420d51
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
or esi, eax
or edi, ecx
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x420e40
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x5266f4
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x5266f4
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Storm_
push 0x5266f4
call esi
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x420e8d
push eax
push 0x5266f4
call esi
push 0x5266f4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov eax, 0x5266f4
jne 0x420f09
mov cl, byte [0x5266f4]
test cl, cl
je 0x420f04
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x518854
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x420f04
mov edx, esi
sub edx, 0x5266f4
test edx, edx
jle 0x420efa
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
inc edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push 0x5266f4
push eax
call ebx
lea ecx, [esp + 0x10]
push 0
push ecx
call ebp
mov cl, byte [esi + 1]
lea eax, [esi + 1]
test cl, cl
jne 0x420eb7
mov eax, 0x5266f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x421000
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push str.mee.db
stosw word es:[edi], ax
push ecx
push 0x5197c8
lea edx, [esp + 0x11c]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [esp + 0x110]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4210f2
mov edx, dword [esp + 0x218]
lea ecx, [esp + 8]
push 0
push ecx
push 8
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x4210ec
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret

Function at 0x421100
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push esi
push 0x104
push eax
call fcn.00420f20
add esp, 8
test eax, eax
jne 0x42117d
push eax
push 0x80
push 3
push eax
push 3
lea ecx, [esp + 0x1c]
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42117d
mov eax, dword [esp + 0x110]
lea edx, [esp + 4]
push 0
push edx
push 8
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x421177
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x108
ret