joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5070
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x4b50c1
push edi
xor edi, edi
mov edi, edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + edi + 8]
add eax, edi
test ecx, ecx
je 0x4b50a9
cmp byte [ebp + 8], 0
je 0x4b509e
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4b50b7
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4b50b7
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 4]
mov dword [edx + eax + 0x10], 6
inc ebx
add edi, 0x24
cmp ebx, dword [esi + 0x14]
jl 0x4b5080
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4b61c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x40]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4b61d5
push 9
push eax
call edi
jmp 0x4b61e3
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x3c], 6
mov eax, dword [esi + 0x834]
test eax, eax
je 0x4b61f4
push 0
push eax
call edi
jmp 0x4b6208
mov edx, dword [esi + 0x830]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x830], 6
mov eax, dword [esi + 0x588]
test eax, eax
je 0x4b6219
push 5
push eax
call edi
pop edi
ret
mov ecx, dword [esi + 0x584]
mov edx, dword [ecx + 4]
mov dword [esi + edx + 0x584], 6
pop edi
ret

Function at 0x4b63f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 2
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
lea esi, [edi + 0x1fc]
jne 0x4b6453
mov eax, dword [esi + 0x38c]
test eax, eax
je 0x4b6418
push 0
push eax
call ebx
jmp 0x4b642c
mov eax, dword [esi + 0x388]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x388], 6
mov eax, dword [esi + 0x638]
test eax, eax
je 0x4b643d
push 5
push eax
call ebx
jmp 0x4b64a3
mov edx, dword [esi + 0x634]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x634], 6
jmp 0x4b64a3
mov eax, dword [esi + 0x638]
test eax, eax
je 0x4b6464
push 0
push eax
call ebx
jmp 0x4b6478
mov ecx, dword [esi + 0x634]
mov edx, dword [ecx + 4]
mov dword [esi + edx + 0x634], 6
mov eax, dword [esi + 0x38c]
test eax, eax
je 0x4b6489
push 5
push eax
call ebx
jmp 0x4b649d
mov eax, dword [esi + 0x388]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x388], 6
cmp dword [ebp + 0xc], 0
jne 0x4b64bd
mov ebx, dword [ebp + 8]
lea eax, [edi + 0xb8]
call fcn.00511440
mov ebx, dword [ebp + 0x10]
mov eax, ebx
call fcn.004b7350
jmp 0x4b64c0
mov ebx, dword [ebp + 0x10]
fild dword [ebp + 0x10]
mov edx, dword [edi + 0xe7c]
sub edx, dword [edi + 0xe08]
mov esi, dword [ebp + 0x14]
fidiv dword [edi + 0xe04]
add edx, esi
push 1
push edx
fimul dword [edi + 0xe78]
call fcn.005210c0
push eax
lea ecx, [edi + 0xda0]
call fcn.00511070
mov dx, word [edi + 0xe24]
mov ax, word [edi + 0xe0c]
sub dx, word [edi + 0xe08]
add ax, ax
sub bx, ax
add dx, si
movzx eax, dx
mov edx, dword [edi + 0xe5c]
movzx ecx, bx
shl eax, 0x10
or ecx, eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 5
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4bcff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x3c]
mov ebx, eax
push edi
je 0x4bd019
mov ecx, str.BrCcAdvnc.sdd
call fcn.00466b30
push str.RangeScan_ImageArea
jmp 0x4bd028
mov ecx, str.BrCcHome.sdd
call fcn.00466b30
push str.ScanImgCrop_ImageArea
lea eax, [esi + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4bd03e
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4bd069
test ecx, ecx
je 0x4bd069
cmp word [ecx], ax
je 0x4bd069
mov eax, dword [edi + 4]
test eax, eax
jne 0x4bd05a
mov eax, 0x538640
push eax
push 0
push str.TMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x10c4], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4bd07d
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4bd0a8
test ecx, ecx
je 0x4bd0a8
cmp word [ecx], ax
je 0x4bd0a8
mov eax, dword [edi + 4]
test eax, eax
jne 0x4bd099
mov eax, 0x538640
push eax
push 0
push str.BMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x10c8], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4bd0bc
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4bd0e7
test ecx, ecx
je 0x4bd0e7
cmp word [ecx], ax
je 0x4bd0e7
mov eax, dword [edi + 4]
test eax, eax
jne 0x4bd0d8
mov eax, 0x538640
push eax
push 0
push str.LMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x10cc], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4bd0fb
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4bd126
test ecx, ecx
je 0x4bd126
cmp word [ecx], ax
je 0x4bd126
mov eax, dword [edi + 4]
test eax, eax
jne 0x4bd117
mov eax, 0x538640
push eax
push 0
push str.RMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10cc]
mov edx, dword [esi + 0x10c4]
mov edi, dword [ebp + 0x10]
sub edi, ecx
sub edi, eax
mov dword [esi + 0x10d0], eax
sub ebx, edx
sub ebx, dword [esi + 0x10c8]
push 0
mov eax, edi
mov edi, ebx
push edi
push eax
mov eax, dword [ebp + 8]
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push 0x10300000
push eax
add esi, 0x5c
mov eax, 0x2374
call fcn.0045f600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c7420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x3c]
push edi
mov ecx, str.BrCcHome.sdd
mov ebx, eax
call fcn.00466b30
push str.ScanFuncPage_ViewWnd_ImageArea
lea eax, [esi + 0x4c]
call fcn.004fcf00
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4c7453
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4c747e
test ecx, ecx
je 0x4c747e
cmp word [ecx], ax
je 0x4c747e
mov eax, dword [edi + 4]
test eax, eax
jne 0x4c746f
mov eax, 0x538640
push eax
push 0
push str.TMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x1658], eax
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x4c7492
mov ecx, 0x538640
xor eax, eax
cmp dword [edi + 8], eax
jle 0x4c74bf
test ecx, ecx
je 0x4c74bf
cmp word [ecx], ax
je 0x4c74bf
mov edi, dword [edi + 4]
mov eax, edi
test edi, edi
jne 0x4c74b0
mov eax, 0x538640
push eax
push 0
push str.BMargin
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x1644]
mov edx, dword [esi + 0x1658]
lea edi, [ecx + ecx]
sub ebx, edi
mov edi, dword [ebp + 0x10]
push 0
sub edi, edx
sub edi, eax
push edi
push ebx
push edx
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x165c], eax
mov eax, dword [ebp + 8]
push 0x10300000
push eax
add esi, 0x5dc
mov eax, 0x2374
call fcn.0045f600
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4c7e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52be90
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 4], 0
jle 0x4c7f27
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
mov esi, dword [eax + 0x20]
jle 0x4c7f27
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp edi, eax
je 0x4c7f27
sub eax, edi
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test esi, esi
js 0x4c7f27
cmp esi, eax
jge 0x4c7f27
lea eax, [esi*8]
sub eax, esi
lea edi, [edi + eax*4 + 0xc]
push edi
lea ecx, [ebp - 0x24]
call fcn.004fc120
xor esi, esi
mov eax, ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.0043cf70
test al, al
je 0x4c7f10
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004fce50
push 0x5388e8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5388e8
lea edi, [ebp - 0x18]
call fcn.004fcc10
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
push ecx
call fcn.004fcc10
mov edi, dword [ebp - 0x18]
mov eax, edi
cmp edi, esi
jne 0x4c7ef8
mov eax, 0x538640
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
cmp edi, esi
je 0x4c7f10
push edi
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x4c7f27
push eax
call fcn.005134a7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4cc3a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x3c]
push esi
mov ecx, str.BrCcHome.sdd
call fcn.00466b30
cmp byte [ebp + 0x14], 0
lea eax, [edi + 0x4c]
je 0x4cc3ca
push str.ScanFuncPage_Mini_ScanSizeListBox
jmp 0x4cc3cf
push str.ScanFuncPage_ScanSizeListBox
call fcn.004fcf00
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x4cc3e2
mov eax, 0x538640
mov dword [ebp - 8], ebx
cmp dword [esi + 8], ebx
jle 0x4cc414
cmp eax, ebx
je 0x4cc414
cmp word [eax], bx
je 0x4cc414
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x4cc3ff
mov ecx, 0x538640
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push ebx
push str.PosiX
push eax
call edi
mov dword [ebp - 8], eax
jmp 0x4cc41a
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x4cc426
mov ecx, 0x538640
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jle 0x4cc450
cmp ecx, ebx
je 0x4cc450
cmp word [ecx], bx
je 0x4cc450
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4cc443
mov eax, 0x538640
push eax
push ebx
push str.PosiY
push ecx
call edi
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x4cc45c
mov ecx, 0x538640
mov dword [ebp + 0x14], ebx
cmp dword [esi + 8], ebx
jle 0x4cc486
cmp ecx, ebx
je 0x4cc486
cmp word [ecx], bx
je 0x4cc486
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4cc479
mov eax, 0x538640
push eax
push ebx
push str.Width
push ecx
call edi
mov dword [ebp + 0x14], eax
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
jne 0x4cc492
mov ecx, 0x538640
cmp dword [esi + 8], ebx
jle 0x4cc4b9
test ecx, ecx
je 0x4cc4b9
cmp word [ecx], bx
je 0x4cc4b9
mov eax, dword [esi + 4]
test eax, eax
jne 0x4cc4ac
mov eax, 0x538640
push eax
push 0
push str.Height
push ecx
call edi
mov ebx, eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x4cc4c5
mov ecx, 0x538640
xor edi, edi
cmp dword [esi + 8], edi
jle 0x4cc4f2
test ecx, ecx
je 0x4cc4f2
cmp word [ecx], di
je 0x4cc4f2
mov eax, dword [esi + 4]
test eax, eax
jne 0x4cc4e1
mov eax, 0x538640
push eax
push 0
push str.FontPoint
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
push 0x2af8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x55a400
call fcn.00467b90
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4cc511
mov eax, 0x538640
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
push 1
push edi
push ebx
push ecx
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push 0x1646
push edx
mov edx, dword [ebp + 8]
add edx, 0x5c8
push ecx
push edx
mov edx, 0x10200003
call fcn.004253b0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4cc552
push eax
call fcn.005134a7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d2340
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
lea eax, [esi + 0xea4]
call fcn.004ea730
cmp byte [esi + 0xea1], 0
mov eax, dword [esi + 0x1a8]
je 0x4d2388
test eax, eax
je 0x4d2372
push 0
push 0
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4d23b2
mov eax, dword [esi + 0x1a4]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x1a4], 6
jmp 0x4d23b2
test eax, eax
je 0x4d239e
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4d23b2
mov edx, dword [esi + 0x1a4]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x1a4], 6
lea ecx, [esi + 0xea4]
call fcn.004eae50
lea ecx, [esi + 0xea4]
mov edi, eax
call fcn.004eb440
cmp dword [eax], 0xa0
jne 0x4d2414
cmp byte [esi + 0xe98], 1
lea edi, [esi + 0xbb0]
je 0x4d23e8
mov byte [edi + 0x2e8], 1
cmp byte [esi + 0x62d], 1
lea ebx, [esi + 0x20c]
je 0x4d247d
push 0
mov ecx, ebx
mov byte [ebx + 0x421], 1
call fcn.00478110
mov eax, ebx
call fcn.00476590
jmp 0x4d247d
cmp byte [esi + 0x62d], 0
lea ebx, [esi + 0x20c]
je 0x4d243a
push 0
mov ecx, ebx
mov byte [ebx + 0x421], 0
call fcn.00478110
mov eax, ebx
call fcn.00476590
mov eax, dword [edi]
cmp eax, 3
je 0x4d2446
cmp eax, 4
jne 0x4d2467
cmp dword [edi + 4], 0x12c
jne 0x4d2467
cmp byte [esi + 0xe98], 1
lea edi, [esi + 0xbb0]
je 0x4d247d
mov byte [edi + 0x2e8], 1
jmp 0x4d247d
cmp byte [esi + 0xe98], 0
lea edi, [esi + 0xbb0]
je 0x4d247d
mov byte [edi + 0x2e8], 0
mov eax, ebx
call fcn.00476590
mov eax, 3
mov ecx, edi
call fcn.00472630
cmp dword [esi + 0xb5f8], 0
pop edi
pop ebx
je 0x4d24a2
mov ecx, esi
jmp fcn.004d2930
ret

Function at 0x4d24f0
Capabilities:
Get common file path

Disassembly:
lea ecx, [edi + 0xea4]
call fcn.004eb440
test eax, eax
je 0x4d2543
cmp dword [eax], 0xa0
push esi
jne 0x4d251a
mov al, 1
cmp byte [edi + 0x62d], al
je 0x4d2542
mov byte [edi + 0x62d], al
jmp 0x4d252a
cmp byte [edi + 0x62d], 0
je 0x4d2542
mov byte [edi + 0x62d], 0
push 0
lea ecx, [edi + 0x20c]
call fcn.00478110
lea eax, [edi + 0x20c]
call fcn.00476590
pop esi
cmp dword [edi + 0xb5f8], 0
je 0x4d2553
mov ecx, edi
jmp fcn.004d2930
ret
Function at 0x4d3130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bb59
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 4], 0x542bac
mov dword [edi + 0x2c], 0x542bb4
mov dword [edi + 0x3c], 0x542bbc
mov dword [edi + 0xb270], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov byte [edi + 0x1c], bl
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov byte [edi + 0x38], bl
mov dword [edi + 0x40], ebx
mov dword [ebp - 0x10], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov byte [edi + 0x4c], bl
mov dword [ebp - 4], ebx
mov dword [edi], vtable.CScanToFaxTxDlg.0
mov eax, 0x544264
mov dword [edi + 0x60], eax
mov dword [edi + 0x70], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
mov byte [edi + 0x6c], bl
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x84], eax
mov dword [edi + 0x94], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov byte [edi + 0x90], bl
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0xa8], eax
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb0], ebx
mov byte [edi + 0xb4], bl
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xcc], eax
mov dword [edi + 0xdc], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xd4], ebx
mov byte [edi + 0xd8], bl
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xf0], eax
mov dword [edi + 0x100], ebx
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xf8], ebx
mov byte [edi + 0xfc], bl
mov dword [edi + 0xe0], ebx
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0x114], eax
mov dword [edi + 0x124], ebx
mov dword [edi + 0x118], ebx
mov dword [edi + 0x11c], ebx
mov byte [edi + 0x120], bl
mov dword [edi + 0x104], ebx
mov dword [edi + 0x108], ebx
mov dword [edi + 0x10c], ebx
mov dword [edi + 0x110], ebx
mov dword [edi + 0x128], ebx
mov dword [edi + 0x12c], ebx
mov dword [edi + 0x130], ebx
lea esi, [edi + 0x134]
call fcn.00474bb0
lea edx, [edi + 0xae0]
call fcn.004e90a0
push fcn.004fc190
push 0x43dbb0
push 5
push 0xc
lea eax, [edi + 0xb234]
push eax
mov byte [ebp - 4], 7
call fcn.00513b7a
mov dword [edi + 0xad8], ebx
mov byte [edi + 0xadc], bl
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d8710
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
lea eax, [esi + 0xf3c]
call fcn.004ea730
cmp byte [esi + 0xf39], 0
mov eax, dword [esi + 0x1a8]
je 0x4d8758
test eax, eax
je 0x4d8742
push 0
push 0
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4d8782
mov eax, dword [esi + 0x1a4]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x1a4], 6
jmp 0x4d8782
test eax, eax
je 0x4d876e
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4d8782
mov edx, dword [esi + 0x1a4]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x1a4], 6
lea ecx, [esi + 0xf3c]
call fcn.004eae50
lea ecx, [esi + 0xf3c]
mov edi, eax
call fcn.004eb440
cmp dword [eax], 0xa0
jne 0x4d87e4
cmp byte [esi + 0xe98], 1
lea edi, [esi + 0xbb0]
je 0x4d87b8
mov byte [edi + 0x2e8], 1
cmp byte [esi + 0x62d], 1
lea ebx, [esi + 0x20c]
je 0x4d884d
push 0
mov ecx, ebx
mov byte [ebx + 0x421], 1
call fcn.00478110
mov eax, ebx
call fcn.00476590
jmp 0x4d884d
cmp byte [esi + 0x62d], 0
lea ebx, [esi + 0x20c]
je 0x4d880a
push 0
mov ecx, ebx
mov byte [ebx + 0x421], 0
call fcn.00478110
mov eax, ebx
call fcn.00476590
mov eax, dword [edi]
cmp eax, 3
je 0x4d8816
cmp eax, 4
jne 0x4d8837
cmp dword [edi + 4], 0x12c
jne 0x4d8837
cmp byte [esi + 0xe98], 1
lea edi, [esi + 0xbb0]
je 0x4d884d
mov byte [edi + 0x2e8], 1
jmp 0x4d884d
cmp byte [esi + 0xe98], 0
lea edi, [esi + 0xbb0]
je 0x4d884d
mov byte [edi + 0x2e8], 0
mov eax, ebx
call fcn.00476590
mov eax, 1
mov ecx, edi
call fcn.00472630
mov edx, dword [esi + 0xe9c]
mov eax, dword [edx + 8]
lea ecx, [esi + 0xe9c]
push 0
call eax
cmp dword [esi + 0xb690], 0
pop edi
pop ebx
je 0x4d8885
mov ecx, esi
jmp fcn.004d8c10
ret
Function at 0x4db050
Capabilities:
Get common file path

Disassembly:
lea eax, [esi + 0xcf4]
call fcn.004ea730
cmp byte [esi + 0xcf1], 0
mov eax, dword [esi + 0x1a8]
je 0x4db096
test eax, eax
je 0x4db080
push 0
push 0
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4db0c0
mov eax, dword [esi + 0x1a4]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x1a4], 6
jmp 0x4db0c0
test eax, eax
je 0x4db0ac
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4db0c0
mov edx, dword [esi + 0x1a4]
mov eax, dword [edx + 4]
mov dword [esi + eax + 0x1a4], 6
lea eax, [esi + 0x20c]
call fcn.00476590
lea eax, [esi + 0xbb0]
call fcn.004739b0
mov edx, dword [esi + 0xc54]
mov eax, dword [edx + 8]
lea ecx, [esi + 0xc54]
push 0
call eax
cmp dword [esi + 0xb448], 0
je 0x4db0f9
mov ecx, esi
jmp fcn.004db390
ret
Function at 0x4e4d20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
test eax, eax
je 0x4e4d36
cmp eax, 2
jne 0x4e4f06
mov eax, dword [esi + 0x30]
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x2c]
test eax, eax
je 0x4e4d88
test ebx, ebx
jle 0x4e4d7a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e4d7a
push 0xe
push ecx
push ebx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x4e4d94
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x4e4d94
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [edi + eax], 0x57
jmp 0x4e4d94
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov dword [edi + edx], 6
mov eax, dword [esi + 0x674]
mov ecx, dword [esi + 0x32dc]
test eax, eax
je 0x4e4df2
test ebx, ebx
jle 0x4e4ddc
test ecx, ecx
jle 0x4e4ddc
push 0xe
push ecx
push ebx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x4e4e06
mov eax, dword [esi + 0x670]
mov ebx, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + esi + 0x670], eax
mov ebx, dword [ebp + 8]
jmp 0x4e4e06
mov ecx, dword [esi + 0x670]
mov edx, dword [ecx + 4]
mov dword [esi + edx + 0x670], 0x57
jmp 0x4e4e06
mov eax, dword [esi + 0x670]
mov ecx, dword [eax + 4]
mov dword [esi + ecx + 0x670], 6
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x32e0]
lea edx, [esi + 0x21e0]
sub eax, dword [esi + 0x32dc]
mov ecx, ebx
call fcn.004bccb0
push str.ScanImgCropWnd_ClientWnd
lea eax, [esi + 0x4c]
call fcn.004fcf00
mov eax, dword [esi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x4e4e3d
mov ecx, 0x538640
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x4e4e6a
test ecx, ecx
je 0x4e4e6a
cmp word [ecx], ax
je 0x4e4e6a
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4e4e5f
mov eax, 0x538640
push eax
push 0
push str.Width
push ecx
call edi
sub ebx, eax
mov eax, dword [esi + 0x4c]
mov ecx, eax
test eax, eax
jne 0x4e4e7a
mov ecx, 0x538640
xor eax, eax
cmp dword [esi + 0x44], eax
jle 0x4e4ea1
test ecx, ecx
je 0x4e4ea1
cmp word [ecx], ax
je 0x4e4ea1
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4e4e96
mov eax, 0x538640
push eax
push 0
push str.Height
push ecx
call edi
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0x32f8]
sub edi, eax
mov eax, dword [esi + 0x32f4]
push 1
add edx, edi
push edx
push eax
lea ecx, [esi + 0x88]
call fcn.00511070
mov ecx, dword [esi + 0x32e8]
mov edx, dword [esi + 0x32e4]
push 1
add ecx, edi
push ecx
add edx, ebx
push edx
lea ecx, [esi + 0x118]
call fcn.00511070
mov eax, dword [esi + 0x32f0]
mov ecx, dword [esi + 0x32ec]
push 1
add eax, edi
add ecx, ebx
push eax
push ecx
lea ecx, [esi + 0x3c4]
call fcn.00511070
call fcn.004e5010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e6130
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534480
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x700000
mov byte [ebp - 0xd], 0
call fcn.00508890
push 0x20000
call fcn.00508b10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004e2670
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4e62a1
mov eax, dword [ebx + 0xd7c]
lea esi, [ebx + 0xd74]
mov ecx, 9
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0xddc]
sub edi, dword [ebx + 0xd78]
lea ecx, [eax + eax]
mov eax, dword [ebx + 0xdd8]
add edi, dword [ebx + 0xd94]
sub esp, 0xc
sub eax, ecx
lea edx, [ebx + 0x4108]
mov ecx, esp
mov dword [ebp - 0x14], esp
push edx
mov dword [ebp + 0x10], eax
call fcn.004fc120
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebx + 0x40fc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004fc120
sub esp, 0xc
lea edx, [ebx + 0x40f0]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
mov byte [ebp - 4], 1
call fcn.004fc120
lea esi, [ebx + 0xdec]
mov dword [ebp - 4], 0xffffffff
call fcn.004e4940
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push ecx
push edx
mov edx, dword [ebp - 0x28]
push esi
mov eax, edi
call fcn.004e4620
mov esi, eax
test esi, esi
je 0x4e629c
push edi
mov dword [ebx + 0xdcc], esi
call fcn.005080d0
push esi
call fcn.005081e0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4e6278
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx + 0x2c], 6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004e2830
call fcn.00508960
call fcn.00508be0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc