joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409490
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x410640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push 0x41646c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push str._TWAIN_Driver_Set
lea eax, [esp + 0xc]
push 0x4166c8
push eax
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [esp + 8]
call fcn.0040f2ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409563
push 0x72
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push 0x4166c8
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0040f2ca
mov eax, dword [0x4166c4]
mov ecx, dword [esp + 4]
mov edx, dword [esi + 0x20]
push 0x30
push eax
push ecx
push edx
call fcn.00402280
add esp, 0x10
lea ecx, [esp + 4]
push 0x41646c
call sub.MFC42.DLL_CString::operator
push 0
call dword [sym.imp.MSVCRT.dll__exit]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409660
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4106b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
push 0x41646c
lea ecx, [esp + 0x20]
mov dword [esp + 0x340], 2
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x340], 3
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 4
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 5
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
mov byte [esp + 0x33c], 6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x12c]
inc esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0xa
push eax
push esi
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push str.Scanner
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x33c], 6
call fcn.0040f2ca
mov ecx, dword [0x4166cc]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x130]
push 0x104
push edx
push 0x41646c
push str.Name
push eax
call ebp
mov ecx, dword [0x4166cc]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x234]
push 0x104
push edx
push 0x41646c
push str.Model
push eax
call ebp
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x230]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x348]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40980c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34c]
push edx
push eax
call ebx
add esp, 8
test eax, eax
je 0x409815
cmp esi, 0x1e
jl 0x4096f4
mov esi, dword [esp + 0x344]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 5
call fcn.0040f2ca
lea ecx, [esp + 0x10]
mov byte [esp + 0x33c], 4
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], 3
call fcn.0040f2ca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x33c], 2
call fcn.0040f2ca
lea ecx, [esp + 0x348]
mov byte [esp + 0x33c], bl
call fcn.0040f2ca
lea ecx, [esp + 0x34c]
mov byte [esp + 0x33c], 0
call fcn.0040f2ca
mov ecx, dword [esp + 0x334]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret 0xc
Function at 0x409a90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410761
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
push ebx
push ebp
push esi
mov dword [esp + 0x18], ecx
push edi
xor ebx, ebx
push 0x41646c
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x33c], ebx
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x338], 1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
call fcn.004098c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x338], 1
call fcn.0040f2ca
mov ecx, dword [0x4166cc]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x12c]
push 0x104
push edx
push 0x41646c
push str.Name
push eax
call ebp
mov ecx, dword [0x4166cc]
lea edx, [esp + 0x22c]
push ecx
push 0x104
mov esi, eax
mov eax, dword [esp + 0x18]
push edx
push 0x41646c
push str.Model
push eax
call ebp
test esi, esi
jbe 0x409b9d
test eax, eax
jbe 0x409b9d
inc dword [esp + 0x14]
inc ebx
cmp ebx, 0x1e
jl 0x409aea
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push 0xa
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [0x4166cc]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str.RegNum
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x18]
dec esi
mov byte [esp + 0x338], 0
call fcn.0040f2ca
lea ecx, [esp + 0x10]
mov dword [esp + 0x338], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x330]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32c
ret
Function at 0x40a620
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push 0x41646c
lea ecx, [esp + 4]
mov dword [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
mov byte [esp + 0xc], 2
cmp eax, 1
jne 0x40a6be
push 0x41646c
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator
mov eax, dword [0x4166cc]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str.DefaultUse
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push str.Scanner
push eax
call sub.MFC42.DLL_operator_2
mov ecx, dword [0x4166cc]
mov eax, dword [eax]
push ecx
push 0
push 0x41638c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov dword [0x4166d0], eax
call fcn.0040f2ca
jmp 0x40a6cb
mov edx, dword [0x4166cc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov byte [esp + 0xc], 1
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov byte [esp + 0xc], 0
call fcn.0040f2ca
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x40a820
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4109be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0
push 0x41646c
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], 1
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov byte [esp + 0x124], 3
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040a9a0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 3
call fcn.0040f2ca
lea ecx, [esp + 8]
push str.TWAINInfo.ini
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 3
call fcn.0040f2ca
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push 0x41646c
push edx
push str.Module
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 2
call fcn.0040f2ca
lea ecx, [esp + 8]
mov byte [esp + 0x124], 1
call fcn.0040f2ca
lea ecx, [esp + 0x130]
mov byte [esp + 0x124], 0
call fcn.0040f2ca
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 8
Function at 0x40d410
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x411011
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
push 0x41646c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
xor esi, esi
push 0x41646c
lea ecx, [esp + 0x14]
mov dword [esp + 0x338], esi
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
mov ebx, dword [sym.imp.MSVCRT.dll__itoa]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, 0x41
lea edi, [esp + 0x20]
mov byte [esp + 0x334], 1
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x228]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
inc esi
push 0xa
push eax
push esi
call ebx
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push str.Scanner
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x338], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x334], 1
call fcn.0040f2ca
mov ecx, dword [0x4166f0]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x41646c
push str.Name
push eax
call ebp
mov ecx, dword [0x4166f0]
lea edx, [esp + 0x228]
push ecx
push 0x104
mov edi, eax
mov eax, dword [esp + 0x18]
push edx
push 0x41646c
push str.Model
push eax
call ebp
test edi, edi
jne 0x40d53c
test eax, eax
je 0x40d547
cmp esi, 0x1e
jl 0x40d495
jmp 0x40d55a
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x419
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea ecx, [esp + 0x10]
mov byte [esp + 0x334], 0
call fcn.0040f2ca
lea ecx, [esp + 0x14]
mov dword [esp + 0x334], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret
Function at 0x40d5a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x411054
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x20], ebp
xor esi, esi
push 0x41646c
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], esi
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x130], 3
add ebp, 0x68
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.004098c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 3
call fcn.0040f2ca
mov ecx, dword [0x4166f0]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push 0x104
push edx
push 0x41646c
push str.Name
push eax
call ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x138]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40d6ae
xor edi, edi
inc esi
cmp esi, 0x1e
jl 0x40d619
jmp 0x40d6ea
push 0x6c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x4166dc]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [eax + 0x20]
push edx
push ecx
call fcn.00402280
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x41646c
call sub.MFC42.DLL_CString::operator
mov edi, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 2
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call fcn.0040f2ca
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 0
call fcn.0040f2ca
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x128]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
Function at 0x40db30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4110cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
push edi
push 0x41646c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esi + 0x60], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x4166f0]
lea ecx, [esp + 0xc]
push eax
push 0x104
push ecx
push 0x41646c
push str.DefaultUse
push str.Setting
mov dword [esp + 0x130], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40dbdb
push 0x70
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [0x4166dc]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x20]
push 4
push edx
push eax
push ecx
call fcn.00402280
add esp, 0x10
lea ecx, [esp + 8]
mov dword [esi + 0x60], eax
push 0x41646c
call sub.MFC42.DLL_CString::operator
mov esi, dword [esi + 0x60]
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x40dde0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41111b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
push 0x41646c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov esi, 0x104
push eax
push 0x20019
push ebx
push str.Control_PanelInternational
push 0x80000001
mov dword [esp + 0x138], 0
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dea1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.iMeasure
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40de92
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40deba
push str.Win.ini
push 0
push str.iMeasure
push str.intl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40dfc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Brand
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x68]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0040a820
push eax
mov ecx, 0x4166e0
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::operator_1
or ebp, 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
push 0x416080
lea ecx, [esp + 0x10]
push 0x4166e0
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x4166dc
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
mov edx, dword [0x4166dc]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.004099e0
push eax
mov ecx, 0x4166f0
mov dword [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
push 0x4161ec
lea ecx, [esp + 0x1c]
push 0x4166f0
push ecx
call sub.MFC42.DLL_operator
push 0x4166e0
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x30], 3
call sub.MFC42.DLL_operator_1
push str.KM_TWAINRegList.ini
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 4
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x4166f0
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.0040f2ca
mov byte [esp + 0x24], 3
lea ecx, [esp + 0x14]
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret

Function at 0x40f169
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f1c1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x41646c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f1b4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40f1c3
xor eax, eax
pop esi
leave
ret 4
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xaa4008], 0x8088405
inc edx
mov dword [ebx + 0xaa4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0xa8858e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa88595
ret