joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c870
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4909b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CWnd::CWnd
xor edi, edi
push 0x7080
mov dword [esp + 0x18], edi
mov dword [esi + 0x40], edi
mov dword [esi], 0x49b690
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x5c], eax
mov dword [esi + 0x48], 4
mov dword [esi + 0x4c], edi
push str.C:Secure1000Inspector.ini
push 0xffbb77
push str.COLOR
push str.MASK
mov dword [esi + 0x50], 7
mov dword [esi + 0x44], edi
mov dword [esi + 0x54], 1
mov dword [esi + 0x60], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x7c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41d060
Capabilities:
Read .ini file

Disassembly:
push esi
push str.C:Secure1000Inspector.ini
push 0
push str.TYPE
mov esi, ecx
push str.ZOOM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x41d08c
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41d0be
mov al, byte [esp + 8]
test al, al
mov eax, dword [esi + 0x60]
je 0x41d0a3
cmp eax, 4
jne 0x41d0a0
pop esi
ret 4
inc eax
jmp 0x41d0ad
cmp eax, 2
jne 0x41d0ac
pop esi
ret 4
dec eax
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x60]
pop esi
ret 4
Function at 0x41d34a
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x490acb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFrameWnd::CFrameWnd
xor ebx, ebx
lea ecx, [esi + 0xc4]
mov dword [esp + 0x20], ebx
call fcn.0043fb60
lea ecx, [esi + 0x184]
mov byte [esp + 0x20], 1
call fcn.0041aed0
lea ecx, [esi + 0x26c]
mov byte [esp + 0x20], 2
call fcn.0043e720
push fcn.0040cef0
push 0x40ce40
push 6
lea eax, [esi + 0x3a4]
push 0xbc
push eax
mov byte [esp + 0x34], 3
call fcn.0048ce14
push ebx
lea ecx, [esi + 0x80c]
mov byte [esp + 0x24], 4
call fcn.0044c280
push ebx
lea ecx, [esi + 0x888]
mov byte [esp + 0x24], 5
call fcn.00423510
or ebp, 0xffffffff
mov dword [esi], 0x49bc40
mov ecx, ebp
mov dword [esi + 0x1b4c], ebp
mov dword [esi + 0x1b60], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0x398], ebx
mov byte [esi + 0x86c], bl
mov dword [esi + 0x1b64], ebx
mov dword [esi + 0x1b68], ebx
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x870], ecx
mov dword [esi + 0x874], ecx
lea edx, [esp + 0x10]
mov dword [esi + 0x878], ecx
lea eax, [esi + 0x900]
push edx
mov dword [esi + 0x87c], ecx
push eax
mov dword [esi + 0x884], ebx
mov byte [esi + 0x8f0], bl
mov byte [esi + 0x8f1], bl
mov byte [esi + 0x8f2], 1
mov byte [esi + 0x8f8], bl
mov dword [esi + 0x8fc], ebp
mov dword [esp + 0x18], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, 8
xor eax, eax
mov edi, 0x4f1a60
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xb46]
mov byte [esi + eax + 0xafc], bl
mov word [ecx], bx
inc eax
add ecx, 0x40
cmp eax, 0x40
jl 0x41d47e
mov ecx, 0x39
xor eax, eax
lea edi, [esi + 0xa04]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x8f4], ebp
mov dword [esi + 0xb40], ebx
mov dword [esi + 0x25c], ebx
mov byte [esi + 0x1b46], bl
mov byte [esi + 0x1b47], bl
mov dword [esi + 0x258], ebx
mov dword [esi + 0x254], ebp
mov dword [esi + 0x250], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x421f20
Capabilities:
Print debug messages
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x491081
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
mov ebp, ecx
xor bl, bl
mov eax, dword [ebp + 0x260]
test eax, eax
je 0x4220db
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x11c]
push edx
push 0
push eax
call dword [ecx + 0x4c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
push 0x4f11f4
push ecx
mov dword [esp + 0x228], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4220c7
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
push 0
push 0x4ae930
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 1
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x421ff2
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], 2
call fcn.0048bec2
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 1
call sub.MFC42.DLL_CString::CString
jmp 0x422000
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0048bec2
push esi
push edi
push str._Master
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push str.SELECT_STATION_ID_FROM_Scanner_Settings_WHERE_MACHINE_NAME_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x20]
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0
call ebx
mov esi, eax
dec esi
push esi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x42206b
push esi
push edi
lea edx, [esp + 0x28]
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
mov eax, dword [ebp + 0x264]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe0]
pop edi
pop esi
test eax, eax
jne 0x4220b4
mov eax, dword [ebp + 0x264]
lea ecx, [ebp + 0x250]
push ecx
push 0
mov edx, dword [eax]
push eax
call dword [edx + 0xf0]
mov ebp, dword [ebp + 0x264]
push ebp
mov edx, dword [ebp]
call dword [edx + 0xe4]
push str.found_scanner_id
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 8]
mov bl, 1
mov byte [esp + 0x220], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x218]
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x424c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49139b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
lea ebp, [esi + 0x50]
test eax, eax
mov dword [esp + 0x30], 0
je 0x424ccb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp], 0
push edi
push 0xc8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x34], 1
je 0x424cf1
mov ecx, eax
call fcn.00451580
mov edi, eax
jmp 0x424cf3
xor edi, edi
push str.RAPWBIIMAGEKEY
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.00426a50
lea edx, [esp + 0x10]
mov ecx, edi
mov dword [edi], edx
mov eax, dword [esp + 0x3c]
push eax
mov byte [esp + 0x38], 2
call fcn.00452470
mov ecx, edi
call fcn.00451980
test edi, edi
mov dword [esi + 0x58], eax
je 0x424d3b
mov ecx, edi
call fcn.00451700
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 0x58]
pop edi
test eax, eax
je 0x424d6a
push 1
push 0
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
mov ecx, ebp
call sub.MFC42.DLL_CPictureHolder::CreateFromBitmap
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esi + 0x54], 1
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00426b10
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x424eb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [esp + 0xf], 1
cmp byte [esi + 4], bl
je 0x424f6e
mov edi, dword [esp + 0x3c]
push edi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x424ee3
push edi
call sub.WS2_32.dll_gethostbyname
jmp 0x424ef1
push 2
lea eax, [esp + 0x14]
push 4
push eax
call sub.WS2_32.dll_gethostbyaddr
cmp eax, ebx
jne 0x424f00
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x2c
ret 4
mov ecx, dword [eax + 0xc]
push ebp
mov ebp, dword [ecx]
call dword [esi + 0xc]
mov edi, eax
mov dword [esp + 0x40], ebx
push 0x3e8
lea edx, [esp + 0x24]
push 0x1c
lea eax, [esp + 0x20]
push edx
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov dword [esp + 0x28], ebx
mov ecx, dword [ebp]
push eax
push ebx
push ebx
push ecx
push edi
call dword [esi + 0x14]
cmp dword [esp + 0x24], ebx
jne 0x424f65
mov eax, dword [esp + 0x40]
inc eax
cmp eax, 2
mov dword [esp + 0x40], eax
jl 0x424f0f
push edi
call dword [esi + 0x10]
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
push edi
mov byte [esp + 0x17], bl
call dword [esi + 0x10]
pop ebp
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x426c40
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x110
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov dword [esp + 0x2c], ecx
push edi
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x426c89
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x110
ret 0x10
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebp
push 2
push 0
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call edi
push 0
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call edi
mov al, byte [esp + 0x12c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
je 0x426ce9
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push 0x100
push ecx
push esi
call ebp
sub dword [esp + 0x14], 0x100
mov edx, dword [esp + 0x14]
push edx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
je 0x426e70
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push edi
push esi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, 3
mov esi, 2
cmp word [esp + 0xec], ax
jne 0x426d4f
cmp word [esp + 0xee], si
jne 0x426d4f
cmp word [esp + 0xf0], ax
jne 0x426d4f
cmp word [esp + 0xf2], si
jne 0x426d4f
mov ebp, edi
jmp 0x426d89
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edi
push edx
mov word [esp + 0xf4], ax
mov word [esp + 0xf6], si
mov word [esp + 0xf8], ax
mov word [esp + 0xfa], si
call fcn.00426b40
push edi
mov ebp, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebp, ebp
je 0x426e77
mov al, byte [esp + 0x130]
mov ecx, dword [esp + 0x128]
push 0
push 0
push esi
push 0
mov byte [esp + 0x11c], al
push 0
mov eax, 0x45
push 0x40000000
push ecx
mov word [esp + 0x110], 0x53
mov word [esp + 0x112], ax
mov word [esp + 0x114], 0x43
mov word [esp + 0x116], 0x55
mov word [esp + 0x118], 0x52
mov word [esp + 0x11a], ax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x426e4b
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x28]
push 0x100
push eax
push esi
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push ebp
push esi
call edi
push esi
call ebx
push ebp
mov byte [esp + 0x17], 1
call sub.MFC42.DLL_operatordelete
mov al, byte [esp + 0x17]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x110
ret 0x10
push str.fail_to_create
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call sub.MFC42.DLL_operatordelete
mov al, byte [esp + 0x17]
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x110
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x110
ret 0x10
Function at 0x426e90
Capabilities:
Print debug messages
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov eax, dword [esp + 0x10]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocString
mov dword [esp + 0x2c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x426fa6
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebp
push ebp
push esi
call ebx
sub eax, 0x100
push eax
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
je 0x426f9f
push ebp
push ebp
push ebp
push esi
call ebx
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
push 0x100
push ebx
push esi
call ebp
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push edi
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 3
cmp word [ebx + 0xcc], ax
jne 0x426f7c
mov ecx, 2
cmp word [ebx + 0xce], cx
jne 0x426f7c
cmp word [ebx + 0xd0], ax
jne 0x426f7c
cmp word [ebx + 0xd2], cx
jne 0x426f7c
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00426bc0
push edi
mov esi, eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [edx], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push str.no_encrypt
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, edi
pop edi
mov dword [edx], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x42db50
Capabilities:
Delete registry value
Disable system features via registry on windows
Impersonate user
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 2
push str.Sec_2805Rs
push 0x4adac8
push str.zicons
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
je 0x42dd0b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov eax, dword [esp + 0x1c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x42dd00
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push SysReAllocString
call edi
test eax, eax
je 0x42dbea
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x42dbea
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebx, ebx
je 0x42dc24
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.DisableTaskMgr
push eax
call ebp
mov ecx, dword [esp + 0x10]
push str.DisableLockWorkstation
push ecx
call ebp
mov edx, dword [esp + 0x10]
push str.DisableChangePassword
push edx
call ebp
jmp 0x42dc71
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.DisableTaskMgr
push ecx
mov dword [esp + 0x2c], 1
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.DisableLockWorkstation
push eax
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push str.DisableChangePassword
push edx
call esi
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
call edi
test eax, eax
je 0x42dcbe
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x42dcbe
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
test ebx, ebx
je 0x42dcd4
mov eax, dword [esp + 0x10]
push str.NoLogoff
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x42dcf3
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push str.NoLogoff
push edx
mov dword [esp + 0x2c], 1
call esi
mov eax, dword [esp + 0x10]
push eax
call ebp
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
Function at 0x42dd20
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
mov eax, dword [esi + 0x110]
je 0x42dd65
test eax, eax
jne 0x42dd83
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0
push eax
push 0x42dab0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.0042db50
mov eax, 1
pop esi
ret 4
test eax, eax
je 0x42dd83
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push 1
mov ecx, esi
call fcn.0042db50
mov dword [esi + 0x110], 0
mov eax, 1
pop esi
ret 4

Function at 0x42e150
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49206b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push esi
push str.C:Secure1000Inspector.ini
lea eax, [esp + 0x40]
push 0x80
push eax
push str.RAPSVR01
push str.SCHEDULER
mov esi, ecx
push str.SYSTEM
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
call fcn.00424e20
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c4], ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.00424eb0
test al, al
je 0x42e29c
mov eax, dword [esi + 0xd0]
xor edx, edx
mov dword [esp + 0xc], edx
cmp eax, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
jne 0x42e272
push str.Connecting_to_server...
mov ecx, 0x4f201c
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0xbc]
xor eax, eax
push 0x80
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x20], eax
push 0x80
push edx
mov dword [esp + 0x2c], eax
push 1
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push 1
push edx
push 0x15
lea eax, [esp + 0xcc]
push ebx
push 0x49b7a0
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 0x49b750
call dword [sym.imp.ole32.dll_CoCreateInstanceEx]
cmp eax, ebx
jne 0x42e26a
cmp dword [esp + 0x10], ebx
jne 0x42e26a
cmp dword [esp + 0xc], ebx
je 0x42e26a
push str.workflow_object_created
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0xc]
mov dword [esi + 0xd0], eax
cmp dword [esi + 0xd0], ebx
je 0x42e29c
push str.Connecting_to_database...
mov ecx, 0x4f201c
call sub.MFC42.DLL_CString::operator_2
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov ecx, esi
call fcn.0042e2d0
test al, al
je 0x42e29c
mov bl, 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.00424f80
mov ecx, dword [esp + 0x1bc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c0
ret
Function at 0x42e2d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x19c
push ebx
push esi
push str.C:Secure1000Inspector.ini
lea eax, [esp + 0x28]
push 0x80
push eax
push str.RAPWBISERVER
push str.SCHEDULER
mov esi, ecx
push str.SYSTEM
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xa4]
xor ecx, ecx
push 0x80
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], ecx
push 0x80
push eax
mov dword [esp + 0x2c], ecx
push 1
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0xa4]
lea eax, [esp + 8]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x18]
push 1
xor edx, edx
push ecx
push 0x15
mov dword [esp + 0x1c], edx
push ebx
push 0x49b7e0
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], 0x49b7c0
call dword [sym.imp.ole32.dll_CoCreateInstanceEx]
test eax, eax
jne 0x42e3d0
cmp dword [esp + 0x10], ebx
jne 0x42e3d0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x42e3d0
push 8
mov dword [esi + 0xd4], eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x42e3b6
mov ecx, dword [esi + 0xd4]
mov dword [eax], 0x49da64
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [esi + 0xd8], eax
call fcn.0042e3e0
pop esi
mov al, 1
pop ebx
add esp, 0x19c
ret
xor eax, eax
mov ecx, esi
mov dword [esi + 0xd8], eax
call fcn.0042e3e0
pop esi
mov al, 1
pop ebx
add esp, 0x19c
ret
mov al, bl
pop esi
pop ebx
add esp, 0x19c
ret
Function at 0x430310
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x4f2160]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x430455
cmp byte [ecx + 0x30], bl
je 0x430455
push ebp
mov ebp, dword [esp + 0x430]
xor edx, edx
push esi
add ecx, 8
push edi
mov edi, dword [esp + 0x440]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx]
cmp eax, ebx
je 0x430435
cmp edx, 9
je 0x430435
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push ebx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp eax, ebx
jl 0x430435
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x49d820
push eax
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov esi, eax
cmp esi, ebx
jge 0x4303b7
push esi
lea ecx, [esp + 0x24]
push str.CoUnmarshalInterface:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, ebx
jl 0x430435
lea edx, [esp + 0x34]
push 0x200
push edx
push 0xffffffffffffffff
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, byte [esp + 0x448]
xor esi, esi
cmp al, bl
je 0x4303ee
mov esi, 1
jmp 0x430406
mov ecx, dword [0x4f1ac0]
lea eax, [esp + 0x34]
push ebx
push eax
push 0x8024
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x43c]
mov eax, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x38]
mov edx, dword [eax]
push esi
push ecx
push eax
call dword [edx + 0xc]
cmp edi, ebx
je 0x430435
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x444]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc edx
add ecx, 4
cmp edx, 0xa
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jl 0x43034d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 0x14