joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518140
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56e26b
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
mov esi, dword [esp + 0x138]
push edi
push ebp
push esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x5182b3
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x5182a6
cmp dword [esp + 0x14], ebx
jbe 0x5182a6
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push ebx
push edi
mov byte [esp + 0x1f], bl
call esi
test eax, eax
je 0x5181ce
push 0x400
push ebx
push edi
call esi
test eax, eax
jne 0x5181c1
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, ebx
jbe 0x518296
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x1c]
push edx
push esi
mov ecx, dword [eax]
push eax
mov dword [esp + 0x28], ebx
call dword [ecx + 0x10]
test eax, eax
jl 0x51827c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x51827c
lea ecx, [esp + 0x24]
push 0x104
push ecx
push 2
push eax
mov byte [esp + 0x34], bl
call ebp
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x5c6d00
push 0x5c5738
lea ecx, [esp + 0x20]
mov dword [esp + 0x138], ebx
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x18]
xor edx, edx
push eax
mov eax, dword [esp + 0x24]
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 + 0x18]
mov byte [esp + 0x13], 1
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x5181e2
cmp byte [esp + 0x13], bl
jne 0x5182b3
mov ebp, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
push 0x403
push ebp
push eax
jmp 0x5182ad
push 0x403
push ebp
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x5182d0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56e28b
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 0x51846d
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 0x518460
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x518460
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push 2
push edi
call esi
test eax, eax
je 0x518360
push 0x400
push 2
push edi
call esi
test eax, eax
jne 0x518352
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, 0x5c6dc4
jne 0x518372
mov eax, 0x5c6db8
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 0x518449
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 0x51843b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51843b
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 0x5c6d00
push 0x5c5738
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 0x5183a1
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 0x51846d
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 0x51b570
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x5c6e88]
sub esp, 8
cmp eax, 0xffffffff
jne 0x51b596
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x5c6e88], eax
jne 0x51b596
mov eax, 0x80004005
add esp, 8
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x51b64d
mov dword [esp], eax
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x584254
push 0x5808b0
call fcn.0051b810
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ole32.dll_CoRegisterClassObject]
lea ecx, [esp + 0xc]
push ecx
push 1
push 1
push edx
push 0x5808b0
call esi
mov edi, dword [sym.imp.ole32.dll_CoRegisterPSClsid]
push 0x5808b0
push 0x5808b0
call edi
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 1
push 1
push ecx
push 0x5808c0
call esi
push 0x5808c0
push 0x5808c0
call edi
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 1
push 1
push eax
push 0x5808d0
call esi
push 0x5808d0
push 0x5808d0
call edi
mov ecx, dword [0x5c6e88]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x51b64d
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
add esp, 8
ret

Function at 0x51b660
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
call fcn.0051b570
test eax, eax
jl 0x51b6a8
push str.STORMBOX_C6688147_58EF_4FDF_A15A_CD51D8CDC4C5
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x51b6af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x108]
push eax
push 0x5808b0
push 4
push 0
push 0x5808f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
add esp, 0x104
ret
push esi
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov esi, dword [sym.imp.SHLWAPI.dll_StrNCatA]
push 0x104
lea eax, [esp + 8]
push str.boxStline.exe
push eax
call esi
push 0x104
lea ecx, [esp + 8]
push str.__Embedding
push ecx
call esi
lea edx, [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop esi
ja 0x51b68c
mov eax, 0x80004005
add esp, 0x104
ret

Function at 0x51c680
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.0051bb90
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 0x51c980
Capabilities:
Hide graphical window

Disassembly:
call fcn.0051bb90
test eax, eax
je 0x51c9a6
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x51c99d
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 0x51ddd0
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 0x51de50
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 0x51de50
test esi, esi
je 0x51de50
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 0x51de50
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x51de3e
mov edx, esi
cmp edi, ebx
jb 0x51de48
add edx, ebx
cmp edi, edx
jbe 0x51de5a
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x51de30
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 0x51de80
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 [0x5d0744]
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 0x51ded0
Capabilities:
Delete file

Disassembly:
sub esp, 0x224
lea eax, [esp + 0xc]
push esi
push edi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str...Crash__02d__02d__02d__02d__02d__02d.dmp
lea ecx, [esp + 0x144]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea edx, [esp + 0x24]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x128]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push edi
push 1
push edi
push edi
lea eax, [esp + 0x38]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x51e01b
push ebp
push str.DbgHelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, edi
je 0x51e008
push ebx
push str.MiniDumpWriteDump
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x51e000
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0x238]
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push edi
push eax
push 2
push esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov edi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebp
pop edi
pop esi
add esp, 0x224
ret
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
Function at 0x51e030
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.00550140
mov al, byte [0x5cabc0]
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 0x51e063
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 0x51e113
cmp eax, 0x1fff
ja 0x51e113
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x51e113
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5b4864
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51e113
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 0x5233f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x523407
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ebx, dword [eax + 4]
push 0x12c
push 0x190
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebx
mov dword [esp + 0x14], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x52346f
mov eax, dword [edi + 0x50]
lea ecx, [esp + 0x38]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
push 1
push esi
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0x32
mov dword [esp + 0x38], 0x12c
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 0x54]
push edx
push esi
call ebp
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push 0
push eax
push 0xffffffffffffffff
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
push 0xcc0020
push 0
push 0
push esi
push 0x12c
push 0x190
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
lea edx, [esp + 0x38]
push eax
push edx
push ebx
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00428640
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
push edx
mov dword [edi + 0x58], ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x14]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x18]
push ecx
push esi
call ebp
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x10]
push ebx
push eax
mov dword [edi + 0x44], edx
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [edi + 0x44]
lea ecx, [esp + 0x1c]
call fcn.00428690
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
Function at 0x52b6b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edx, dword [esp + 0x110]
lea ecx, [esp + 4]
push str.storm_skinMat
push ecx
push 0x5b5428
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
pop edi
add esp, 0x108
ret

Function at 0x52b710
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edx, dword [esp + 0x110]
lea ecx, [esp + 4]
push str.storm_temp
push ecx
push str._s_s_
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
pop edi
add esp, 0x108
ret

Function at 0x52b770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x570368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
mov byte [esp + 0x2c], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
and ecx, 0xffff
push ecx
push 0x5b4724
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x22]
add esp, 0xc
and eax, 0xffff
lea ecx, [esp + 4]
push eax
push 0x5b4724
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x26]
add esp, 0xc
and edx, 0xffff
lea eax, [esp]
push edx
push 0x5b4724
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 4]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_operator_3
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x52b8b0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x52b923
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x52b923
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5b4864
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x52b923
mov edx, esi
sub edx, ebx
test edx, edx
jle 0x52b919
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 ebx
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + 1]
lea eax, [esi + 1]
test cl, cl
jne 0x52b8da
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x52c8c0
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 0x52c935
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 0x52c935
mov ebx, dword [sym.imp.MSVCRT.dll__mbstok]
lea edx, [esp + 0x16]
push 0x5b4568
push edx
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x52c935
mov ecx, esi
inc esi
cmp ecx, 1
je 0x52c942
push 0x5b4568
push 0
call ebx
add esp, 8
test eax, eax
jne 0x52c91d
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 0x52c935
lea eax, [esp + 0x16]
push 0x5b4568
push eax
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x52c935
mov ecx, esi
inc esi
cmp ecx, 2
je 0x52c9cd
push 0x5b4568
push 0
call ebx
add esp, 8
test eax, eax
jne 0x52c9aa
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
call fcn.0052c6d0
mov ecx, eax
call fcn.0052c790
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x52c935
push esi
call fcn.0052c6d0
mov ecx, eax
call fcn.0052c790
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x52c935
push esi
call fcn.0052c6d0
mov ecx, eax
call fcn.0052c790
push eax
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
Function at 0x52d600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57052f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x52d643
mov eax, dword [esi]
jmp 0x52d645
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x6c]
test eax, eax
jge 0x52d661
push 0x5be450
push edi
push eax
call fcn.00550608
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x52d6ce
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x52d6ce
mov eax, dword [esi]
test eax, eax
je 0x52d6b5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x52d6c5
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x52ddd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5705ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x52de13
mov eax, dword [esi]
jmp 0x52de15
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x52de36
push 0x5be450
push edi
push eax
call fcn.00550608
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x52dea3
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x52dea3
mov eax, dword [esi]
test eax, eax
je 0x52de8a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x52de9a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc