joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc1e0
Capabilities:
Accept command line arguments
Delete registry key

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [0x5432dc]
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x11c]
push 0x104
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x220]
push 0x104
push ecx
lea edx, [esp + 0x124]
push 0xffffffffffffffff
push edx
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jl 0x4bc270
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push 0
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4bc27e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dx, word [0x53a5fc]
mov cl, byte [0x53a5fe]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], cl
mov cl, byte [eax]
mov esi, eax
test cl, cl
je 0x4bc2cb
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov cl, dl
test cl, cl
lea eax, [esp + 0x10]
je 0x4bc2c3
cmp byte [esi], cl
je 0x4bc2d8
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x4bc2b2
mov cl, byte [esp + 0x10]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4bc2aa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
push esi
call edi
mov esi, eax
test esi, esi
je 0x4bc2cb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnRegister
push esi
call ebx
test eax, eax
je 0x4bc343
push str.Register
push esi
call ebx
test eax, eax
je 0x4bc3d0
cmp byte [esi], 0
je 0x4bc2cb
mov cl, byte [esp + 0x10]
test cl, cl
lea eax, [esp + 0x10]
je 0x4bc325
cmp byte [esi], cl
je 0x4bc32f
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x4bc314
mov cl, byte [esp + 0x10]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4bc2cb
jmp 0x4bc30c
push esi
call edi
mov esi, eax
test esi, esi
jne 0x4bc2e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x543348], 0x53a400
push eax
push 0x53a380
push 0x5432d8
mov dword [0x543380], 0x5432d8
mov dword [0x5432d8], 0x84
mov dword [0x54333c], 0x300
call fcn.004bcb40
push 0
push 0
push 0
push 0x67
push 0x5432d8
call fcn.004bcd90
push 0
mov ecx, ebp
call fcn.004ba6b0
mov edx, dword [ebp + 0x6c]
mov ecx, ebp
push edx
call fcn.004bc450
push str.StormBox
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, ebp
call fcn.004bc710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x543348], 0x53a400
push eax
push 0x53a380
push 0x5432d8
mov dword [0x543380], 0x5432d8
mov dword [0x5432d8], 0x84
mov dword [0x54333c], 0x300
call fcn.004bcb40
push 0
push 0
push 1
push 0x67
push 0x5432d8
call fcn.004bcd90
push 1
mov ecx, ebp
call fcn.004ba6b0
call fcn.004bc940
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret
Function at 0x4bc450
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x234
push ebx
mov eax, str.DllUnregisterServer
push ebp
mov ecx, 1
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x248]
lea eax, [esp + 0x140]
push 0x104
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x20], str.media2.dll
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.StormSet.dll
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [eax], bl
lea esi, [esp + 0x14]
mov dword [esp + 0x10], 2
mov edi, dword [esi]
cmp edi, ebx
je 0x4bc575
lea eax, [esp + 0x140]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebp
lea edx, [esp + 0x3c]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4bc523
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x4bc575
mov dword [esi + 0xc], 1
mov edx, dword [esi + 4]
mov edi, dword [esi + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4bc537
call eax
cmp dword [esi + 0xc], ebx
je 0x4bc543
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esi + 8], ebx
je 0x4bc575
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bc575
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4bc575
push 4
lea edx, [esp + 0x40]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp + 0x10]
add esi, 0x14
dec eax
mov dword [esp + 0x10], eax
jne 0x4bc4d3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4
Function at 0x4bc620
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004e2cf0
mov al, byte [0x53d5d0]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x2018]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
push esi
stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4bc700
cmp eax, 0x1fff
ja 0x4bc700
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4bc700
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x52f86c
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4bc700
mov edx, dword [esp + 0x2020]
mov esi, dword [esp + 0x201c]
mov ecx, edx
push ebx
mov ebx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret

Function at 0x4bc710
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4fa1f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push esi
lea ecx, [esp + 0x20]
call fcn.004e4010
lea eax, [esp + 0xb4]
mov dword [esp + 0x2c4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xb4]
lea edx, [esp + 0xb4]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 3
push 0
push 0
lea eax, [esp + 0xc8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4bc839
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4bc832
lea ecx, [esp + 0x1b8]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
push 0x64
lea eax, [esp + 0x1bc]
push edx
push eax
call fcn.004bc620
add esp, 0xc
test eax, eax
je 0x4bc832
push str.http:__log.moviebox.baofeng.com_uninstall.html_ver
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x50]
mov byte [esp + 0x2c4], 1
push ecx
lea ecx, [esp + 8]
call fcn.004e22e8
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
lea eax, [esp + 0xb4]
push edx
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004e40e0
lea ecx, [esp + 4]
mov byte [esp + 0x2c4], 0
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c4], 0xffffffff
call fcn.004e4090
mov ecx, dword [esp + 0x2bc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c4
ret
Function at 0x4bc940
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa210
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.StormBox_shellopencommand
push SysReAllocString
call edi
test eax, eax
jne 0x4bcae2
push ebx
lea edx, [esp + 0x18]
push 0x52eae0
push edx
call fcn.00422130
add esp, 0xc
push 0x53a6a0
push 0x53a69c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push str.__s___play____1_
push ecx
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push ebx
push ebx
push edx
call esi
test eax, eax
jne 0x4bcac4
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.StormBox
push SysReAllocString
call edi
test eax, eax
jne 0x4bcac4
push str.URL:_StormBox_Protocol
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 1
push ebx
push ebx
push eax
call esi
test eax, eax
jne 0x4bcac4
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push 1
push ebx
push str.URL_Protocol
push ecx
call esi
test eax, eax
jne 0x4bcac4
mov edx, dword [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.StormBoxDefaultIcon
push SysReAllocString
call edi
test eax, eax
jne 0x4bcac4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push str._s__1
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push 1
push ebx
push ebx
push ecx
call esi
test eax, eax
je 0x4bcaf7
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
push edx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4be570
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa388
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
test esi, esi
je 0x4be671
mov ebx, dword [esp + 0x34]
test ebx, ebx
jl 0x4be671
mov ebp, dword [esp + 0x38]
test ebp, ebp
jl 0x4be671
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push ebx
call sub.MFC42.DLL_CListCtrl::GetSubItemRect
test eax, eax
je 0x4be671
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, 0x64
mov dword [esp + 0x1c], eax
sub eax, ecx
push 0x40
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
push ebp
lea eax, [esp + 0x34]
push ebx
push eax
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::GetItemText
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
mov edx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0xd
push 0xffffffffffffffff
push 0x153
push edx
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x158
push ecx
call ebx
test eax, eax
jge 0x4be648
xor eax, eax
mov edx, dword [esi + 0x20]
push 0
push eax
push 0x14e
push edx
call ebx
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ebp
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x4c0770
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa64b
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [esp + 0x138]
push edi
push esi
push ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4c08bf
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4c08b2
cmp dword [esp + 0x14], ebx
jbe 0x4c08b2
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push ebx
push edi
call esi
test eax, eax
je 0x4c07fa
push 0x400
push ebx
push edi
call esi
test eax, eax
jne 0x4c07ed
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebx
jbe 0x4c08bf
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x18]
push edx
push esi
mov ecx, dword [eax]
push eax
mov dword [esp + 0x24], ebx
call dword [ecx + 0x10]
test eax, eax
jl 0x4c08a3
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4c08a3
lea ecx, [esp + 0x20]
push 0x104
push ecx
push 2
push eax
mov byte [esp + 0x30], bl
call ebp
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x53a9b0
push 0x53a9a8
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x10]
xor edx, edx
push eax
mov eax, dword [esp + 0x20]
cmp esi, eax
lea ecx, [esi + 0x17d4]
setne dl
dec edx
push ecx
and edx, 8
push edx
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x4c080e
jmp 0x4c08bf
push 0x403
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x4c08e0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa66b
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x130]
push esi
mov esi, dword [esp + 0x138]
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
je 0x4c0a7d
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4c0a70
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4c0a70
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 2
push edi
call esi
test eax, eax
je 0x4c0970
push 0x400
push 2
push edi
call esi
test eax, eax
jne 0x4c0962
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, 0x53a9fc
jne 0x4c0982
mov eax, 0x53a9f0
push eax
push 0x47e
push 0x400
push 0
push edi
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jbe 0x4c0a59
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x18]
push edx
push esi
mov ecx, dword [eax]
push eax
mov dword [esp + 0x24], 0
call dword [ecx + 0x18]
test eax, eax
jl 0x4c0a4b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c0a4b
lea ecx, [esp + 0x24]
push 0x104
push ecx
push 2
push eax
mov byte [esp + 0x34], 0
call ebp
lea edx, [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x53a9b0
push 0x53a9a8
lea ecx, [esp + 0x18]
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x10]
xor edx, edx
push eax
mov eax, dword [esp + 0x24]
cmp esi, eax
lea ecx, [esi + 0x17dd]
setne dl
dec edx
push ecx
and edx, 8
push edx
push edi
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x4c09b1
pop ebp
mov esi, dword [esp + 0x18]
xor eax, eax
test esi, esi
sete al
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x4c0a7d
push 0x403
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x4c44c0
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.004c3b60
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_SetParent]
pop esi
ret

Function at 0x4c48c0
Capabilities:
Hide graphical window

Disassembly:
call fcn.004c3b60
test eax, eax
je 0x4c48e6
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4c48dd
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
Function at 0x4c52b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4c532c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
push eax
push esi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4c532c
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x4c532c
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x4c531a
mov edx, esi
cmp edi, ebx
jb 0x4c5324
add edx, ebx
cmp edi, edx
jbe 0x4c5336
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x4c530c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x4c5360
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x404
lea eax, [esp + 0x40c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov edx, dword [0x5434a0]
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x404
ret

Function at 0x4c53b0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004e2cf0
mov al, byte [0x53d5d0]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x201c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x4c53e3
mov byte [esi], 0
mov edi, dword [esp + 0x2018]
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4c5493
cmp eax, 0x1fff
ja 0x4c5493
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4c5493
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x52f86c
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4c5493
mov edx, dword [esp + 0x2020]
push ebx
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret
Function at 0x4c5807
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fad86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.COptShellCtrl::CFolder.0
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x4c7420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x30c
push ebx
push ebp
mov ebp, dword [esp + 0x318]
push esi
test ebp, ebp
push edi
je 0x4c7495
push 0x104
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push 6
lea ecx, [esp + 0x20]
push str.res:__
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0x18
test eax, eax
jne 0x4c7495
mov ebx, dword [sym.imp.MSVCRT.dll__mbstok]
lea edx, [esp + 0x16]
push 0x535c88
push edx
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x4c7495
mov ecx, esi
inc esi
cmp ecx, 1
je 0x4c74a2
push 0x535c88
push 0
call ebx
add esp, 8
test eax, eax
jne 0x4c747d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push 6
lea edx, [esp + 0x20]
push str.res:__
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0x18
test eax, eax
jne 0x4c7495
lea eax, [esp + 0x16]
push 0x535c88
push eax
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x4c7495
mov ecx, esi
inc esi
cmp ecx, 2
je 0x4c752d
push 0x535c88
push 0
call ebx
add esp, 8
test eax, eax
jne 0x4c750a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4c7495
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c7495
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x324]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret