joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4950
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x57b771
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0xb8]
mov dword [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xb4]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xb0]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xac]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov dword [esi], vtable.CKMPBaseData.0
lea ecx, [esi + 0x4c]
mov dword [esp + 0x10], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4c54b0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push str.STORMSKIN_2D09F8CA_7144_4074_B115_5504F8E70C63
mov edi, eax
push 0
push 6
inc edi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x4c5519
push str.STORMSKIN_2D09F8CA_7144_4074_B115_5504F8E70C63
push edi
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
test eax, eax
je 0x4c554c
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x4c554c
mov ecx, edi
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
je 0x4c5545
mov ecx, edi
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x4faf10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x580173
push eax
mov eax, dword [esp + 0x24]
mov dword fs:[0], esp
sub esp, 8
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x4faf57
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4faf57
xor eax, eax
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18
push edi
mov edi, dword [esp + 0x30]
cmp edi, ebp
je 0x4fb093
cmp dword [edi], 0xffffffff
jne 0x4fb085
mov dword [edi], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ebp
mov edx, dword [0x5ed8c0]
mov ecx, 0x5ed8c0
mov byte [esp + 0x18], 1
mov dword [esp + 8], ecx
call dword [edx + 4]
mov eax, dword [0x5e5d30]
mov byte [esp + 0x18], 2
cmp eax, ebp
jne 0x4faff3
cmp dword [0x5e5d2c], ebp
jne 0x4faff3
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebp
mov byte [esp + 0x18], 3
je 0x4fafc8
mov ecx, eax
call fcn.00464f50
jmp 0x4fafca
xor eax, eax
mov dword [0x5e5d2c], eax
mov eax, dword [0x5cf938]
push eax
push 0x41dab0
mov ecx, 0x5eafa0
mov byte [esp + 0x20], 2
call fcn.00406600
mov dword [0x5e5d30], 1
mov edx, dword [0x5ed8c0]
push esi
mov esi, dword [0x5e5d2c]
mov ecx, 0x5ed8c0
mov byte [esp + 0x1c], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [eax + 8]
mov ecx, dword [esp + 0x34]
test eax, eax
jl 0x4fb05b
cmp ecx, ebp
je 0x4fb05b
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ebp
mov edx, dword [ecx]
push eax
push 0x5d0be0
push ecx
call dword [edx]
cmp esi, ebp
je 0x4fb045
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4fb0cb
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x98]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov byte [esp + 0x1c], 0
pop esi
je 0x4fb073
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
mov dword [esp + 0x18], 0xffffffff
je 0x4fb085
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
cmp dword [edi], 1
jne 0x4fb093
mov ecx, dword [esp + 0x20]
call fcn.00489a30
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, ebp
pop edi
je 0x4fb0aa
cmp dword [ecx], 1
jne 0x4fb0aa
mov eax, 1
mov dword [ecx], ebp
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00488f90
mov ecx, dword [esp + 0xc]
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18
mov ecx, dword [esp + 0x34]
jmp 0x4fb05f
Function at 0x50e3c0
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x582670
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
mov esi, dword [esp + 0x5c]
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x50e3fb
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov dword [esp + 0x60], ebp
lea eax, [esp + 0x60]
mov dword [esp + 0x58], ebp
push eax
push 0x5d4620
push 7
push ebp
push 0x5d4610
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jge 0x50e44f
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x50e556
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov eax, dword [esp + 0x60]
push 0xffffffffffffffff
push eax
mov edx, dword [eax]
call dword [edx + 0xa4]
cmp eax, ebp
jge 0x50e492
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x50e556
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
push ebx
push 0xffffffffffffffff
push esi
call fcn.00406d70
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
push 0x5e5830
lea ecx, [esp + 0x48]
mov word [esp + 0x48], bp
call fcn.00454e20
push 0x5e5830
lea ecx, [esp + 0x38]
mov word [esp + 0x38], bp
call fcn.00454e20
push 0x5e5830
lea ecx, [esp + 0x28]
mov word [esp + 0x28], bp
call fcn.00454e20
mov word [esp + 0x14], 3
mov dword [esp + 0x1c], 0xe
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x38]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
call dword [edx + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x14]
push edx
mov ebx, eax
call esi
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x34]
push ecx
call esi
lea edx, [esp + 0x44]
push edx
call esi
cmp ebx, ebp
pop ebx
push edi
jge 0x50e56c
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x50e556
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x50e588
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x512a10
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x208
call fcn.00558d50
test eax, eax
je 0x512aca
push ebx
push ebp
push esi
push edi
call fcn.004c4010
test eax, eax
jne 0x512a34
xor esi, esi
jmp 0x512a37
mov esi, dword [eax + 0x20]
mov ebp, dword [esp + 0x21c]
mov eax, ebp
dec eax
je 0x512a64
dec eax
je 0x512a5b
dec eax
je 0x512a52
push 0x5e5cfc
push 0
jmp 0x512a6b
push str.Pbk
push 3
jmp 0x512a6b
push 0x5d8bfc
push 2
jmp 0x512a6b
push 0x5d8c04
push 1
push esi
call fcn.00559850
mov ebx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], 0
add esp, 0xc
rep stosd dword es:[edi], eax
push ebp
push esi
stosw word es:[edi], ax
push str.XXXX___SetOverlayIcon::hWnd_X_State_d_r_n
lea eax, [esp + 0x1c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
pop edi
pop esi
pop ebp
mov eax, str.XXXX___SetOverlayIcon___Succeeded_r_n
test ebx, ebx
pop ebx
jne 0x512ac3
mov eax, str.XXXX___SetOverlayIcon___Failed_r_n
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add esp, 0x208
ret 4

Function at 0x516610
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x583616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x48c], ebx
call fcn.00441070
add esp, 4
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push ecx
push str._s_box_stline.exe
push edx
mov byte [esp + 0x494], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x488], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x490]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5166a7
push 0x5e0778
lea ecx, [esp + 0x10]
call fcn.00564d16
push esi
lea ecx, [esp + 0x10]
call fcn.00564d16
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push 0x400
lea ecx, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x48]
add esp, 0xc
rep stosd dword es:[edi], eax
mov eax, 0xc
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
push edx
push eax
push ebx
push ebx
push 0x4000000
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x9c]
push edx
mov esi, 1
push eax
push ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x90], ebx
mov word [esp + 0x94], si
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov dword [0x5eaf3c], esi
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x516764
mov ecx, dword [esp + 0x2c]
mov dword [0x5eb3a8], ecx
lea ecx, [esp]
mov dword [esp + 0x47c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
add esp, 0x480
ret
Function at 0x51bd40
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x51be3a
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x5e108c
push esi
call edi
test eax, eax
jne 0x51bda4
push str.StormBox:__
push esi
call edi
test eax, eax
jne 0x51bda4
push 0x5e1054
push esi
call edi
test eax, eax
jne 0x51bda4
push str._box
push esi
call edi
test eax, eax
jne 0x51bda4
push str._openbox
push esi
call edi
test eax, eax
jne 0x51bda4
push 0x5dffe4
push esi
call edi
test eax, eax
je 0x51bda9
mov eax, 1
mov dword [ebx + 0xfc], eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [esp + 0xc]
mov eax, 1
cmp ecx, eax
jne 0x51bddf
mov dword [ebx + 0xf8], eax
jmp 0x51be01
push str._box_desktop
push esi
call edi
test eax, eax
je 0x51bdf7
mov dword [ebx + 0xf8], 1
jmp 0x51be01
mov dword [ebx + 0xf8], 0
push str._runevent
push esi
call edi
test eax, eax
je 0x51be14
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push str._hidden
push esi
call edi
test eax, eax
je 0x51be27
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push str._nosplash
push esi
call edi
test eax, eax
je 0x51be3a
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x51c0f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x208
lea eax, [esp + 0x104]
push esi
push edi
push 0x104
push eax
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov byte [eax], 0
mov eax, str.StormSet.dll
test eax, eax
je 0x51c1c9
lea ecx, [esp + 0x10c]
push 0x104
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
lea eax, [esp + 8]
push str.StormSet.dll
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x51c17f
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x51c1c9
mov edi, 1
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x51c191
call eax
test edi, edi
je 0x51c19c
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x51c1c9
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x51c1c9
push 4
lea edx, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
pop edi
pop esi
add esp, 0x208
ret 4

Function at 0x51c2c0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.005655c0
mov al, byte [0x5e5830]
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 0x51c3a0
cmp eax, 0x1fff
ja 0x51c3a0
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x51c3a0
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5ce884
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51c3a0
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 0x51c3b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x584076
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push esi
lea ecx, [esp + 0x20]
call fcn.0055f030
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x51c4da
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 0x51c4d3
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.0051c2c0
add esp, 0xc
test eax, eax
je 0x51c4d3
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.00564d16
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.0055f8e0
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.0055f0b0
mov ecx, dword [esp + 0x2bc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c4
ret
Function at 0x51c510
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x584090
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 SysReAllocStringLen
call edi
test eax, eax
jne 0x51c6b2
push ebx
lea edx, [esp + 0x18]
push 0x5cec18
push edx
call fcn.004528d0
add esp, 0xc
push 0x5e11e8
push 0x5e11e4
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 0x51c694
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 SysReAllocStringLen
call edi
test eax, eax
jne 0x51c694
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 0x51c694
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 0x51c694
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 SysReAllocStringLen
call edi
test eax, eax
jne 0x51c694
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 0x51c6c7
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 0x51e020
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5842a8
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 0x51e121
mov ebx, dword [esp + 0x34]
test ebx, ebx
jl 0x51e121
mov ebp, dword [esp + 0x38]
test ebp, ebp
jl 0x51e121
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push ebx
call sub.MFC42.DLL_CListCtrl::GetSubItemRect
test eax, eax
je 0x51e121
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_1
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 0x51e0f8
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 0x51f9c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5845c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
mov dword [esp], vtable.CBitmap.0
mov dword [esp + 4], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 4]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp]
mov dword [edx], eax
call sub.MFC42.DLL_CGdiObject::Detach
mov dword [esp], vtable.CGdiObject.0
lea ecx, [esp]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc