joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af390
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f2416
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.0041b750
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 0x4af427
push 0x530fb8
lea ecx, [esp + 0x10]
call fcn.004dcf0e
push esi
lea ecx, [esp + 0x10]
call fcn.004dcf0e
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, 1
lea edx, [esp + 0x2c]
mov word [esp + 0x6c], ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
push edx
mov ecx, 0xc
push eax
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
push ebx
push 0x4000000
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x9c]
push edx
push eax
push ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x90], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x4af4db
mov ecx, dword [esp + 0x2c]
mov dword [0x539160], 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 0x4b2c40
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Read file via mapping
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4f2a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.StormPlayer_Mutex_Lock_DKJWDSKDJIEWDEW
push ebx
mov dword [esp + 0x1c], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.StormPlayer_Mutex_IsClosing_DHWDW24adhsDWEE987sdfdf
push ebx
push 0x1f0001
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, ebx
je 0x4b2d09
push esi
call ebp
mov eax, dword [str.StormPlayer_PrcoShareIDName_gbhgferereeEE98721eha]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
je 0x4b2d09
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4b2cce
mov ebx, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebp
test ebx, ebx
je 0x4b2d09
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4b2d09
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4b2e67
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebp
push esi
call ebp
push str.StormPlayer_Mutex_238724adhsDWEE987sdfdf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [esp + 0x14]
mov dword [edx + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x4b2ead
push edi
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4b2f20
Capabilities:
Accept command line arguments
Delete registry key

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [0x5390dc]
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 0x4b2fb0
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 0x4b2fbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dx, word [0x5311b4]
mov cl, byte [0x5311b6]
mov word [esp + 0x10], dx
mov byte [esp + 0x12], cl
mov cl, byte [eax]
mov esi, eax
test cl, cl
je 0x4b300b
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov cl, dl
test cl, cl
lea eax, [esp + 0x10]
je 0x4b3003
cmp byte [esi], cl
je 0x4b3018
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x4b2ff2
mov cl, byte [esp + 0x10]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b2fea
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 0x4b300b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnRegister
push esi
call ebx
test eax, eax
je 0x4b3083
push str.Register
push esi
call ebx
test eax, eax
je 0x4b3110
cmp byte [esi], 0
je 0x4b300b
mov cl, byte [esp + 0x10]
test cl, cl
lea eax, [esp + 0x10]
je 0x4b3065
cmp byte [esi], cl
je 0x4b306f
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x4b3054
mov cl, byte [esp + 0x10]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4b300b
jmp 0x4b304c
push esi
call edi
mov esi, eax
test esi, esi
jne 0x4b3027
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov dword [0x539148], 0x530fa8
push eax
push 0x539170
push 0x5390d8
mov dword [0x5391a8], 0x5390d8
mov dword [0x5390d8], 0x84
mov dword [0x53913c], 0x300
call fcn.004b37a0
push 0
push 0
push 0
push 0x67
push 0x5390d8
call fcn.004b38d0
push 0
mov ecx, ebp
call fcn.004afdc0
mov edx, dword [ebp + 0x6c]
mov ecx, ebp
push edx
call fcn.004b3190
push str.StormBox
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, ebp
call fcn.004b3440
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 [0x539148], 0x530fa8
push eax
push 0x539170
push 0x5390d8
mov dword [0x5391a8], 0x5390d8
mov dword [0x5390d8], 0x84
mov dword [0x53913c], 0x300
call fcn.004b37a0
push 0
push 0
push 1
push 0x67
push 0x5390d8
call fcn.004b38d0
push 1
mov ecx, ebp
call fcn.004afdc0
call fcn.004b35a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret
Function at 0x4b3190
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 0x4b3264
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
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 0x4b321a
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4b3264
mov edi, 1
push 0x531068
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b322c
call eax
test edi, edi
je 0x4b3237
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 0x4b3264
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4b3264
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 0x4b3350
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004dd860
mov al, byte [0x533fe0]
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 0x4b3430
cmp eax, 0x1fff
ja 0x4b3430
lea edx, [esp + 0x14]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4b3430
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5268d0
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4b3430
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 0x4b3440
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f2a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push esi
lea ecx, [esp + 0x20]
call fcn.004daec0
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 closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b356a
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 0x4b3563
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.004b3350
add esp, 0xc
test eax, eax
je 0x4b3563
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.004dcf0e
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.004db600
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.004daf40
mov ecx, dword [esp + 0x2bc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c4
ret
Function at 0x4b35a0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f2a90
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 closesocket
call edi
test eax, eax
jne 0x4b3742
push ebx
lea edx, [esp + 0x18]
push 0x525bc0
push edx
call fcn.00426640
add esp, 0xc
push 0x531450
push 0x53144c
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 0x4b3724
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 closesocket
call edi
test eax, eax
jne 0x4b3724
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 0x4b3724
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 0x4b3724
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 closesocket
call edi
test eax, eax
jne 0x4b3724
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 0x4b3757
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 0x4b48c0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f2be8
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 0x4b49c1
mov ebx, dword [esp + 0x34]
test ebx, ebx
jl 0x4b49c1
mov ebp, dword [esp + 0x38]
test ebp, ebp
jl 0x4b49c1
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push ebx
call sub.MFC42.DLL_CListCtrl::GetSubItemRect
test eax, eax
je 0x4b49c1
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 0x4b4998
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 0x4b6b80
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f2ecb
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 0x4b6ccf
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 0x4b6cc2
cmp dword [esp + 0x14], ebx
jbe 0x4b6cc2
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push ebx
push edi
call esi
test eax, eax
je 0x4b6c0a
push 0x400
push ebx
push edi
call esi
test eax, eax
jne 0x4b6bfd
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebx
jbe 0x4b6ccf
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 0x4b6cb3
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b6cb3
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 0x53153c
push 0x531534
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 0x4b6c1e
jmp 0x4b6ccf
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 0x4b6cf0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f2eeb
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 0x4b6e8d
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 0x4b6e80
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4b6e80
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push 2
push edi
call esi
test eax, eax
je 0x4b6d80
push 0x400
push 2
push edi
call esi
test eax, eax
jne 0x4b6d72
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, 0x531594
jne 0x4b6d92
mov eax, 0x531588
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 0x4b6e69
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 0x4b6e5b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b6e5b
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 0x53153c
push 0x531534
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 0x4b6dc1
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 0x4b6e8d
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 0x4ba890
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.004ba0d0
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 0x4babd0
Capabilities:
Hide graphical window

Disassembly:
call fcn.004ba0d0
test eax, eax
je 0x4babf6
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4babed
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 0x4bb5c0
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 0x4bb63c
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 0x4bb63c
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 0x4bb63c
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x4bb62a
mov edx, esi
cmp edi, ebx
jb 0x4bb634
add edx, ebx
cmp edi, edx
jbe 0x4bb646
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x4bb61c
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 0x4bb670
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 [0x539308]
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