joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b710
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5926fb
push eax
mov dword fs:[0], esp
sub esp, 0x724
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3b9c]
lea edi, [esi + 0x3b9c]
push eax
lea eax, [esp + 0x334]
push 0x400
push eax
call fcn.004455f0
mov eax, dword [edi]
push 0x5fe2d0
push eax
push 1
call fcn.004a6d70
add esp, 0x18
test eax, eax
je 0x52b77c
lea ecx, [esp + 0x330]
mov byte [esp + eax + 0x32f], 0
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [esi]
push str.Compressing_database..._Please_wait....
push 0x10c4
mov ecx, esi
call dword [edx + 0x160]
call fcn.004f1410
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x740]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x1ac]
test eax, eax
jge 0x52b7be
or eax, 0xffffffff
jmp 0x52b8f5
push ebp
push 0x5fc52c
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ebp, [esi + 0x3cec]
push 5
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
lea ebx, [esi + 0x3cac]
push 5
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ShowWindow
call fcn.004bc0b0
xor eax, eax
push 0x4aadb0
mov dword [0x668934], eax
mov dword [0x668930], eax
mov dword [0x63e530], esi
mov dword [0x6650a4], ebp
mov dword [0x6650a0], ebx
call dword [sym.imp.LSPZIPX.DLL_Ordinal_13]
test eax, eax
pop ebp
jne 0x52b83b
push eax
push str.Callback_installation_error_
call fcn.004c31a0
add esp, 8
or eax, 0xffffffff
jmp 0x52b8f5
mov ebx, dword [esp + 0x740]
lea edx, [esp + 0x10]
push ebx
push 0x320
push edx
call fcn.004455f0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.LSPZIPX.DLL_Ordinal_3]
mov edi, dword [edi]
lea ecx, [esp + 0x10]
push edi
push 0x320
push ecx
call fcn.004455f0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 0x10
lea eax, [esp + 0x10]
push 0x81
push 9
push 2
push eax
call dword [sym.imp.LSPZIPX.DLL_Ordinal_1]
mov esi, eax
xor edi, edi
cmp esi, edi
jge 0x52b8e0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [esp + 0x10]
push str.RETURN__ERROR__CODE:__i
push ecx
mov dword [esp + 0x744], edi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
push edi
push edx
call fcn.004c31a0
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x738], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x52b8e7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x6650a0], edi
mov dword [0x6650a4], edi
mov eax, esi
mov ecx, dword [esp + 0x730]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x730
ret 4
Function at 0x52c830
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
push ebx
push esi
push edi
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, ecx
lea ecx, [esp + 0xc]
mov eax, dword [edi + 0x6c]
push eax
push str.c:_s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x10c]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52c87f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
add esp, 0x240
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x10]
push ecx
push 0x5fc410
push edx
call ebx
mov ecx, dword [edi + 0xa4]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x110]
push edx
push esi
call ebp
test eax, eax
jne 0x52c886
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x240
ret
Function at 0x52c930
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x592a3b
push eax
mov dword fs:[0], esp
sub esp, 0x144
push esi
push edi
mov esi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
mov eax, dword [0x64b2e0]
lea edi, [esi + 0x74]
mov ecx, dword [eax + 0xadc]
mov edx, dword [eax + 0xad0]
push ecx
push edx
push str.Server:_s_Folder:_s
push edi
call sub.MFC42.DLL_CString::Format
mov edi, dword [edi]
add esp, 0x10
mov ecx, esi
push edi
push 0x10c4
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0
push 0
push 0
push 1
push str.FTPGET
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x7c], eax
je 0x52c9e1
mov ecx, dword [0x64b2e0]
push 0
push 0
push 1
mov edx, dword [ecx + 0xad8]
mov edi, dword [ecx + 0xad4]
mov ecx, dword [ecx + 0xad0]
push edx
push edi
push 0x15
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x80], eax
jne 0x52c9fa
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
add esp, 0x150
ret
mov ecx, dword [0x64b2e0]
mov ecx, dword [ecx + 0xadc]
push ecx
push eax
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
test eax, eax
jne 0x52ca3c
push 0x10
push str.Error_Message
push str.Invalid_directory
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esi + 0x7c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
mov eax, dword [esi + 0x80]
push eax
call edi
jmp 0x52c9e1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x80]
push 0
lea ecx, [esp + 0x10]
push 0x4000000
push ecx
push eax
push edx
mov dword [esp + 0x168], 0
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
mov edi, eax
test edi, edi
je 0x52cadf
push ebx
lea eax, [esp + 0x3c]
push ebp
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xe4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push edx
push 0
push 0x180
push eax
call ebx
mov ebp, dword [sym.imp.WININET.dll_InternetFindNextFileA]
lea ecx, [esp + 0x14]
push ecx
push edi
call ebp
test eax, eax
je 0x52cadd
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xe4]
add esp, 8
push ecx
push 0
push 0x180
push edx
call ebx
jmp 0x52caa8
pop ebp
pop ebx
mov eax, dword [esi + 0x7c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x80]
push ecx
call edi
lea ecx, [esp + 8]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x150
ret
Function at 0x52cb30
Capabilities:
Connect to http server
Create http request

Disassembly:
push esi
push edi
push 0
push 0
push 0
push 1
mov esi, ecx
push str.FTPGET
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x7c], eax
je 0x52cc01
mov ecx, dword [0x64b2e0]
push 0
push 0
push 1
mov edx, dword [ecx + 0xad8]
mov edi, dword [ecx + 0xad4]
mov ecx, dword [ecx + 0xad0]
push edx
push edi
push 0x15
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x80], eax
jne 0x52cb95
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
ret 4
mov ecx, dword [0x64b2e0]
mov ecx, dword [ecx + 0xadc]
push ecx
push eax
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
test eax, eax
jne 0x52cbda
push 0x10
push str.Error_Message
push str.Invalid_user_Top_legion_directory
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esi + 0x7c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call edi
mov eax, dword [esi + 0x80]
push eax
call edi
pop edi
pop esi
ret 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x80]
push ecx
push edx
call dword [sym.imp.WININET.dll_FtpDeleteFileA]
mov eax, dword [esi + 0x7c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x80]
push ecx
call edi
pop edi
pop esi
ret 4
Function at 0x52dea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x592c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
push 0
push 0x611954
push 0x64b350
mov dword [esp + 0x34], 0
call fcn.0044db80
add esp, 0xc
test eax, eax
je 0x52defd
mov ecx, dword [0x64b478]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 4]
push edx
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 4]
push ebx
push esi
mov ecx, dword [eax - 8]
test ecx, ecx
jg 0x52df2e
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov ebx, 1
mov byte [esp + 0x34], bl
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [esp + 0x10]
inc eax
push 0
push eax
push 0x619640
push 0x4be
push ecx
lea edx, [esp + 0x28]
push str._s_c_4.4ip_sr_ii_ld
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0051a4b0
add esp, 0x24
mov edi, dword [esp + 0xc]
or esi, 0xffffffff
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x34], 2
cmp ecx, 0x11
pop edi
jl 0x52dfb8
cmp ecx, 0x19
jg 0x52dfb8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 8
test eax, eax
jne 0x52dff3
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 8]
push ecx
call fcn.004bb900
mov edx, dword [esp + 0xc]
mov word [esp + 0x1c], ax
push edx
call fcn.004bb940
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x10]
push eax
call fcn.004bb990
mov ecx, dword [esp + 0x14]
mov word [esp + 0x2a], ax
push ecx
call fcn.004bb9e0
mov edx, dword [esp + 0x18]
mov word [esp + 0x30], ax
push edx
call fcn.004bba30
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004bba80
add esp, 0x18
lea ecx, [esp + 0x18]
mov word [esp + 0x24], ax
push ecx
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x52e210
Capabilities:
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x592cae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x10], ebx
lea eax, [esi + 0x8c]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x52e3c0
lea edx, [esp + 0x1c]
lea eax, [esi + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x38]
push 0x601f08
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x1c]
add esp, 0x14
mov ecx, esi
push edx
push 0x10c4
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov eax, dword [0x6658d4]
push eax
call fcn.0044c8e0
mov ecx, dword [0x6658d4]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0050adf0
mov ecx, dword [esi + 0x1ac]
add esp, 0xc
cmp eax, ecx
jl 0x52e3c0
mov ecx, dword [esi + 0x1a4]
lea eax, [esi + 0x1a4]
mov ecx, dword [ecx - 8]
test ecx, ecx
je 0x52e32d
push 0x5fc40c
lea edx, [esp + 0x1c]
push eax
push edx
call sub.MFC42.DLL_operator_2
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_operator_3
mov ebx, 3
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], 2
jmp 0x52e331
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
test bl, 2
mov dword [esp + 0x48], 5
je 0x52e358
and ebx, 0xfffffffd
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString
test bl, 1
mov dword [esp + 0x48], 4
je 0x52e36e
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0xc]
push str.run.txt
push eax
push 1
call fcn.004a6d70
add esp, 0xc
test eax, eax
jne 0x52e3b2
mov ecx, dword [esp + 0xc]
push str.menu.txt
push ecx
push 1
call fcn.004a6d70
add esp, 0xc
test eax, eax
jne 0x52e3b2
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x53ed30
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59471b
push eax
mov dword fs:[0], esp
sub esp, 0x798
push ebx
push esi
push edi
push str.MIRORDISK
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
je 0x53ee56
mov edi, dword [esp + 0x7b4]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0xc]
mov eax, dword [edi + 0x2c]
push eax
push esi
push str._s_s.dat
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call fcn.004924b0
add esp, 0x14
test eax, eax
jne 0x53edbb
mov eax, dword [edi + 0x2c]
lea ecx, [esp + 0xc]
push eax
push esi
push str._s_s.dbf
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call fcn.004924b0
add esp, 0x14
test eax, eax
je 0x53ee56
push 0
push 0xc80
push 2
push 0x2710
lea ecx, [esp + 0x21c]
call fcn.004016d0
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x210]
push eax
push ecx
mov dword [esp + 0x7b8], 0
call fcn.00456f90
lea edx, [esp + 0x218]
push edx
call fcn.004ec960
mov esi, eax
lea eax, [esp + 0x21c]
push eax
push esi
call fcn.00470cc0
lea ecx, [esp + 0x224]
push edi
push ecx
call fcn.004a7850
lea edx, [esp + 0x22c]
push edx
push esi
call fcn.00470cc0
lea eax, [esp + 0x234]
push 0
push eax
call fcn.0044ff40
add esp, 0x30
lea ecx, [esp + 0x20c]
mov dword [esp + 0x7ac], 0xffffffff
call fcn.0045b900
mov ecx, dword [esp + 0x7a4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x7a4
ret

Function at 0x53fa90
Capabilities:
Get file size

Disassembly:
sub esp, 0x208
lea eax, [esp + 4]
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 0x1090]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x53fad8
push 0x619640
push 0x6174f8
call fcn.004f1490
mov edx, dword [esi]
add esp, 8
mov ecx, esi
call dword [edx + 0xd0]
pop edi
pop esi
add esp, 0x208
ret
mov eax, dword [esi + 0x1090]
push ebx
push ebp
push eax
call fcn.004f1d40
mov ecx, dword [esi + 0x135c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
push edi
push 0
push 0x406
push ecx
call ebp
lea ecx, [esi + 0x133c]
push 5
mov dword [esp + 0x14], ecx
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [esi + 0xcc]
xor ebx, ebx
cmp eax, 0x3e8
jge 0x53fbbe
mov eax, dword [esi + 0x1090]
lea edx, [esp + 0x18]
push 0x200
push edx
push eax
call fcn.004f1a80
mov edi, eax
add esp, 0xc
test edi, edi
je 0x53fba0
push edi
lea ecx, [esp + 0x1c]
push 0xc
push ecx
call dword [sym.imp.MSVCRT.dll_memchr]
add esp, 0xc
test eax, eax
jne 0x53fb6a
mov edx, dword [esi + 0x135c]
push eax
push ebx
push 0x402
push edx
call ebp
jmp 0x53fb8f
lea ecx, [esp + 0x18]
sub eax, ecx
cmp edi, 0x200
lea edx, [eax + ebx + 1]
mov eax, dword [esi + 0xcc]
mov dword [esi + eax*4 + 0xe0], edx
jb 0x53fbbe
inc dword [esi + 0xcc]
mov eax, dword [esi + 0xcc]
add ebx, edi
cmp eax, 0x3e8
jl 0x53fb24
jmp 0x53fbbe
mov ecx, dword [esi + 0xcc]
push 0
push ebx
push 0x402
mov dword [esi + ecx*4 + 0xe0], ebx
mov edx, dword [esi + 0x135c]
push edx
call ebp
mov ecx, dword [esp + 0x10]
push 0
call sub.MFC42.DLL_CWnd::ShowWindow
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x208
ret
Function at 0x540e30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
push esi
push eax
mov dword [esp + 0x18], edi
call fcn.00540f80
xor eax, eax
mov dword [edi + 0xc8], eax
mov ecx, dword [esi]
cmp ecx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
je 0x540f03
push ebx
push ebp
mov ebp, esi
lea ecx, [edi + 8]
mov edx, dword [ebp]
mov dword [ecx + 0x80], edx
mov eax, dword [ebp]
test eax, eax
jge 0x540e83
mov dword [esp + 0x14], 1
mov ebx, 1
mov dword [ecx], ebx
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x540ec3
mov ebp, esi
mov edi, 0x20
mov eax, dword [esp + 0x20]
add edi, 0x20
mov edx, dword [eax + 0x28]
xor eax, eax
mov al, byte [edx + edi - 0x10]
mov edx, dword [ecx]
add edx, eax
inc ebx
mov dword [ecx], edx
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jl 0x540e9d
mov edi, dword [esp + 0x18]
mov eax, dword [ebp]
mov ebp, dword [esp + 0x10]
cdq
xor eax, edx
xor ebx, ebx
sub eax, edx
mov edx, dword [esp + 0x20]
shl eax, 5
mov edx, dword [edx + 0x28]
add esi, 4
inc ebp
add ecx, 4
mov bl, byte [eax + edx + 0x10]
mov dword [esp + 0x10], ebp
mov dword [ecx + 0x3c], ebx
mov eax, dword [esi]
test eax, eax
mov ebp, esi
jne 0x540e6b
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
pop ebp
pop ebx
mov ecx, 1
mov dword [edi], eax
cmp eax, ecx
jne 0x540f2e
cmp dword [esi], 0
jle 0x540f2e
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x48]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 0xc8], ecx
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8
cmp dword [esp + 0xc], ecx
jne 0x540f48
mov dword [edi + 0xc8], 9
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8
cmp eax, 2
jne 0x540f5d
mov dword [edi + 0xc8], eax
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8
xor ecx, ecx
cmp eax, 3
setne cl
add ecx, 3
mov eax, edi
mov dword [edi + 0xc8], ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x5474d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5954ea
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [eax + 0x7d]
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x7ae8]
lea ebx, [esi + 0x7ac8]
mov dword [esi + 0x7acc], edx
mov dword [ebx], ecx
mov eax, dword [eax + 0x28]
mov al, byte [eax + 0x50]
cmp al, 0x14
jbe 0x54751a
and eax, 0xff
jmp 0x54751f
mov eax, 0x14
lea ecx, [ecx + eax*8]
add edx, 0x14
push 0x40
mov dword [esi + 0x7ad0], ecx
mov dword [esi + 0x7ad4], edx
mov dword [esi + 0x7ad8], 0x50020000
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x14], 0
je 0x547568
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x59ef50
mov ecx, edi
jmp 0x54756a
xor ecx, ecx
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [eax + 0x1c84]
mov dword [esi + eax*4 + 0x7cfc], ecx
push edx
mov edx, dword [esi + 0x7ad8]
push esi
push ebx
push edx
mov edx, dword [esi + 0xee0]
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [edx + 0x3c]
mov eax, dword [edx + eax*4]
push eax
push 0x59f010
call sub.MFC42.DLL_CWnd::CreateControl
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x54cbe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x595db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0xa8]
push 0
push 0x1b5a
mov dword [esp + 0x18], 0
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
test eax, eax
mov dword [esi + 0xa0], eax
je 0x54cc52
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push str.osql__S__s__d__s__E__i__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x54cc85
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push edx
mov edx, dword [esi + 0xb0]
push eax
mov eax, dword [esi + 0xb4]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
push str.osql__S__s__d__s__U__s__P__s__i__s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
mov edx, dword [esp + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x54cccf
mov eax, dword [esp + 4]
push 0x10
push str.Error_update
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push eax
lea ecx, [esi + 0x144]
push str.Exit_code_:__i
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x54f5d0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x596250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
mov ebx, ecx
push ebp
mov ecx, dword [eax + 0x470]
push esi
push edi
lea ebp, [ebx + 0x60]
push ecx
push str.SELECT_sysobjects.name_FROM_sysforeignkeys_INNER_JOIN_sysobjects_ON_sysobjects.id__sysforeignkeys.fkeyid_WHERE__sysforeignkeys.rkeyid__OBJECT_ID_N_dbo_.__s___
push ebp
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], 0
lea esi, [ebx + 0x1fb0]
mov ecx, ebp
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x14], esi
call fcn.004016c0
push eax
push 0
push 0x619640
push esi
call fcn.00451fc0
add esp, 0x14
test eax, eax
je 0x54f722
mov edx, dword [ebx + 0x1fd4]
mov edi, 1
mov eax, dword [edx + 4]
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x54f70f
lea esi, [ebx + 0x68]
jmp 0x54f66f
mov ebx, dword [esp + 0x18]
cmp edi, 0x3e8
jge 0x54f70f
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.004a74e0
mov ecx, dword [ebx + 0x20d8]
add esp, 8
mov edx, dword [ecx + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_3
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
lea ebx, [esi + 0xfa0]
mov ecx, dword [eax + 0x470]
push ecx
push edx
push str.FK__s__s
push ebx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebx]
mov ecx, dword [esi]
add esp, 0x10
push eax
push ecx
push str.ALTER_TABLE__dbo_.__s__DROP_CONSTRAINT__s
push ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0
push 0
push 0
mov ecx, ebp
mov dword [esp + 0x34], 0xffffffff
call fcn.004016c0
push eax
call fcn.0045ecc0
mov eax, dword [esp + 0x24]
add esp, 0x10
inc edi
add esi, 4
cmp edi, eax
jle 0x54f66b
mov edx, dword [esp + 0x10]
push 0
push edx
call fcn.0044ff40
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 4