joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48048c
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x66bada
call fcn.005beaa6
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.NGUtils::AFileVersionInfo.0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.NGUtils::CFileVersionInfo.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x480562
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x480562
mov byte [ebp - 4], 1
push ebx
call fcn.0052c340
pop ecx
mov dword [esi + 0xc], eax
mov dword [ebp - 4], edi
jmp 0x48050b
cmp dword [esi + 0xc], 0
je 0x480562
push dword [esi + 0xc]
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x480562
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push 0x846c34
push dword [esi + 0xc]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x480550
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 4]
push eax
push 0x7291ac
push dword [esi + 0xc]
call edi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.005bea04
ret 4

Function at 0x480970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret 0x28

Function at 0x480a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x480b20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret 8

Function at 0x480ce0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret 4
Function at 0x481830
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret 8

Function at 0x482334
Capabilities:
Create directory

Disassembly:
push 0x94
mov eax, 0x66bdd0
call fcn.005bea6f
mov edi, edx
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0xa0]
push ebx
push ebx
push 0x17e
push str.NGUtils::CPathUtils::CreatePathHierarchy
push 0x12fca0c
push dword [0x12fcaac]
call fcn.004203f9
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.004174d0
mov eax, dword [eax]
test eax, eax
je 0x482415
mov ecx, esi
call fcn.0048243c
test al, al
jne 0x48241f
mov ecx, esi
call fcn.0041743a
push eax
push str.wstrPathToCreate__s
push 0x184
lea eax, [ebp - 0xa0]
push 0x10
push eax
call fcn.0042077f
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00481e91
add esp, 0x1c
mov byte [ebp - 4], 1
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00482334
mov dword [ebp - 0x98], eax
test eax, eax
jns 0x4823da
cmp eax, 0x8004ffff
jne 0x482408
push edi
mov ecx, esi
call fcn.0041743a
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x482408
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, 0x80004005
cmp eax, 0xb7
cmove ecx, edx
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00416f5c
jmp 0x48241f
mov dword [ebp - 0x98], 0x8004ffff
mov esi, dword [ebp - 0x98]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004204d2
mov eax, esi
call fcn.005bea19
ret

Function at 0x482808
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x3c
mov eax, 0x66bf08
call fcn.005beadd
mov ebx, ecx
and dword [ebp - 4], 0
push 0xfa00
call fcn.0052c340
mov edi, eax
mov dword [esp], 0x84754c
lea ecx, [ebp - 0x30]
call fcn.0041bcf1
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004174d0
cmp dword [eax], 2
jbe 0x48288c
push 2
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
call fcn.0042117a
mov byte [ebp - 4], 2
push 0x847558
mov ecx, eax
call fcn.0041f172
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00416f5c
test esi, esi
jne 0x48288c
mov esi, 0x727bec
push esi
call fcn.004169f0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0041c91b
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x30]
call fcn.0041ddb9
push 0
push edi
push 0x7d00
lea ecx, [ebp - 0x30]
call fcn.0041743a
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x7cfe
ja 0x4828bb
push edi
jmp 0x4828c4
lea ecx, [ebp - 0x30]
call fcn.0041743a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
push edi
call fcn.0052f7e0
pop ecx
cmp ebx, 0xffffffff
jne 0x4828e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00416f5c
jmp 0x482905
test bl, 0x10
jne 0x4828d8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00416f5c
mov al, 1
jmp 0x482907
xor al, al
call fcn.005bea2a
ret
Function at 0x483459
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, edi
jmp 0x48346e
mov ebx, dword [ebp - 4]
add edi, 0x200
test esi, esi
je 0x48347f
push esi
call fcn.0052f7e0
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052c340
mov esi, eax
pop ecx
test esi, esi
je 0x4834e8
xor eax, eax
lea ecx, [ebx + 4]
mov word [esi], ax
call fcn.0041743a
push eax
push edi
push esi
push 0x727bec
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
lea ecx, [edi - 1]
cmp ebx, ecx
jae 0x48346b
push esi
call fcn.004169f0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.0041c91b
push esi
call fcn.0052f7e0
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x4834ea
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48d2d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e3ed
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x93500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x8c]
push 0
push 0
push 0xa44
push str.HPXS::CeSCLDevManager::StopScan
push 0x12fd214
push dword [0x12fa964]
call fcn.004203f9
mov dword [ebp - 4], 0
mov dword [edi], 0
cmp word [esi + 0xbc], 1
jne 0x48d3a1
movzx ecx, word [esi + 0x5e]
xor eax, eax
test cx, cx
setne al
cmp dword [esi + 0x48], 0
mov dword [esi + 0x4c], eax
je 0x48d374
test cx, cx
jne 0x48d368
mov ax, word [esi + 0x5c]
inc word [esi + 0x60]
mov dword [esi + 0x4c], 1
jmp 0x48d39d
lea eax, [ecx - 1]
mov dword [esi + 0x4c], 1
jmp 0x48d39d
push ecx
push str.ADF_stack:_duplicate_d
push 0xa58
lea eax, [ebp - 0x8c]
push 0x200
push eax
call fcn.0042077f
movzx eax, word [esi + 0x5e]
add esp, 0x14
test ax, ax
je 0x48d3a1
dec eax
mov word [esi + 0x5e], ax
cmp dword [esi + 0x58], 2
jne 0x48d40f
mov eax, dword [esi + 0x500]
test eax, eax
je 0x48d3fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x500], 0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
cmp dword [esi + 0x98], 8
jb 0x48d3db
mov eax, dword [esi + 0x84]
jmp 0x48d3e1
lea eax, [esi + 0x84]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x727bec
lea ecx, [esi + 0x84]
call fcn.0041c91b
mov dword [ebp - 0x84], 0
xor esi, esi
jmp 0x48d4cb
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x48d4c5
mov eax, dword [esi + 0x64]
xor dl, dl
mov byte [ebp - 0x91], dl
cmp eax, dword [esi + 0x68]
jb 0x48d449
cmp byte [esi + 0x10], dl
je 0x48d449
cmp byte [esi + 0x44], dl
je 0x48d449
cmp byte [esi + 0x11], 0
movzx eax, dl
mov edx, 1
cmove eax, edx
mov byte [ebp - 0x91], al
push dword [ebp - 0x91]
lea eax, [ebp - 0x8d]
push eax
call fcn.00498770
push eax
push str.Finished_m_peSCLDevice__StopScan_hr0x_08X
push 0xa74
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push 0x200
push eax
call fcn.0042077f
add esp, 0x14
cmp byte [esi + 0x11], 0
je 0x48d4ac
push str.A_cancel_has_been_received___from_user
push 0xa77
lea eax, [ebp - 0x8c]
push 0x200
push eax
call fcn.0042077f
add esp, 0x10
mov dword [edi], 0x10
jmp 0x48d4bd
mov eax, dword [ebp - 0x84]
test eax, eax
jns 0x48d4bd
push edi
push eax
call fcn.0048cfa0
mov ecx, dword [esi + 0x40]
call fcn.00493a90
mov esi, dword [ebp - 0x84]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.004204d2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052bbde
mov esp, ebp
pop ebp
ret 4
Function at 0x491c60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 8]
push 0x1cff
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, ebx
jne 0x491cfb
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
je 0x491cd0
cmp dword [ebp - 0x1c], 0x12
je 0x491d06
lea eax, [ebp - 0x20]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x491cb2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
ja 0x491d19
push 0x1cff
push ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
cmp edi, dword [ebp + 8]
je 0x491ca0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x102
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x491fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ea7f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x93500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x12e03ac], 0
mov ebx, 0x12e03a8
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x11], 1
je 0x49221c
mov ecx, ebx
call fcn.00492250
test al, al
je 0x49221c
mov esi, dword [ebp + 0xc]
mov ecx, 0x200000
mov dword [0x12e03ec], 0
mov dword [0x12e03f0], 0
mov dword [0x12e03cc], esi
mov dword [0x12e03c8], ecx
test esi, esi
jle 0x492091
mov eax, ecx
cdq
idiv esi
cmp eax, 0x10
jge 0x49207c
nop dword [eax]
add ecx, ecx
mov eax, ecx
cdq
idiv esi
cmp eax, 0x10
jl 0x492070
mov eax, ecx
cdq
idiv esi
imul eax, esi
mov dword [0x12e03c8], eax
mov eax, dword [ebp + 8]
mov dword [0x12e03d0], eax
mov dword [ebp - 4], 0
xor edi, edi
nop word [eax + eax]
cmp edi, 3
jge 0x492141
push 0x10
call fcn.0052bbfd
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 1
mov ecx, dword [0x12e03c8]
push ecx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
call fcn.0052c340
mov dword [esi], eax
add esp, 4
mov dword [esi + 8], 0
mov byte [ebp - 4], 0
mov dword [edi*4 + 0x12e03b0], esi
inc edi
jmp 0x4920a0
cmp byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
je 0x49220c
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 3
push 0
push 0
mov dword [0x12e03bc], 0
mov dword [0x12e03c0], 0
mov dword [0x12e03c4], 0
call esi
push 0
push 3
push 3
push 0
mov dword [0x12e03dc], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [0x12e03d8], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x12e03e0], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x12e03e4], eax
call esi
cmp dword [0x12e03dc], 0
mov dword [0x12e03e8], eax
je 0x49220c
cmp dword [0x12e03d8], 0
je 0x49220c
cmp dword [0x12e03e0], 0
je 0x49220c
cmp dword [0x12e03e4], 0
je 0x49220c
test eax, eax
je 0x49220c
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
push 0x491fd0
push 0
push 0
call fcn.005f6863
add esp, 0x18
mov dword [0x12e03d4], eax
cmp dword [0x12e03d4], 0
jne 0x492232
mov ecx, ebx
call fcn.00492250
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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 8
Function at 0x492250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
cmp dword [ebx + 0x2c], 0
je 0x4922b5
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x492279
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xea60
push dword [ebx + 0x2c]
call edi
cmp eax, 0x102
jne 0x4922a9
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
push dword [ebx + 0x2c]
call edi
mov byte [ebp - 1], 0
push dword [ebx + 0x2c]
call esi
mov dword [ebx + 0x2c], 0
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4922c6
push eax
call esi
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4922d7
push eax
call esi
mov dword [ebx + 0x30], 0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4922e8
push eax
call esi
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4922f9
push eax
call esi
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x49230a
push eax
call esi
mov dword [ebx + 0x40], 0
mov eax, 3
lea edi, [ebx + 8]
mov dword [ebp - 8], eax
mov esi, dword [edi]
test esi, esi
je 0x492344
mov eax, dword [esi]
test eax, eax
je 0x492330
push eax
call fcn.0052f7e0
add esp, 4
mov dword [esi], 0
push 0x10
push esi
call fcn.0052bbef
mov eax, dword [ebp - 8]
add esp, 8
mov dword [edi], 0
add edi, 4
sub eax, 1
mov dword [ebp - 8], eax
jne 0x492315
mov al, byte [ebp - 1]
pop edi
pop esi
mov dword [ebx + 0x50], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499fd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e42b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x93500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push str.ulBytes__Requested__d
push 0
push 0
push 0xbf5
push str.HPXS::CeSCLDevice::ReadScan
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x10]
push 0x12fd24c
push dword [0x12fa964]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00420466
add esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 0
test edi, edi
je 0x49a1df
cmp dword [esi + 0x114], 0
jne 0x49a0b4
push str.ReadScan:_m_pIScanJob__NULL
push 0xc01
lea eax, [ebp - 0x8c]
push 0x11
push eax
call fcn.0042077f
add esp, 0x10
mov ecx, esi
call fcn.004981f0
mov dword [ebp - 0x84], eax
test eax, eax
js 0x49a0f7
cmp dword [esi + 0x114], 0
je 0x49a0f7
push str.ReadScan:_CreateScanJob_succeeded
push 0xc0a
lea eax, [ebp - 0x8c]
push 0x11
push eax
call fcn.0042077f
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0xfc], 0
push dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
push edi
push dword [ebp - 0x94]
je 0x49a10b
mov ecx, esi
call fcn.00499750
mov dword [ebp - 0x84], eax
cmp eax, 0x83e8ebfc
jne 0x49a15a
push eax
push str.ReadScan:_m_pIScanJob__ReadScan_returned_E_SCAN_CANCELLED_0x_08X
push 0xc20
jmp 0x49a169
push str.ReadScan:_CreateScanJob_failed
push 0xc05
push 0x80
jmp 0x49a1eb
mov ecx, dword [esi + 0x114]
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov dword [ebp - 0x84], eax
cmp eax, 0x83e8ebfb
jne 0x49a14c
push 0x83e8ebfc
push str.ReadScan:_m_pIScanJob__ReadScan_returned_E_SCAN_CANCELLED_0x_08X
mov dword [ebp - 0x84], 0x83e8ebfc
push 0xc20
jmp 0x49a169
cmp eax, 0x83e8ebf0
jne 0x49a0e3
mov esi, eax
jmp 0x49a200
test eax, eax
jns 0x49a17d
push eax
push str.ReadScan:_m_pIScanJob__ReadScan_failed_0x_08X
push 0xc24
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.0042077f
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x98]
push eax
lea ecx, [eax + 0x1f4]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esi + 0xfc], 0
push eax
lea eax, [ebp - 0x8c]
je 0x49a1c8
push str.TIME4A_J_CeSCLDevice::ReadScan:_UseImagePipeLine_JPEG_took___ld_sec__ld_r_n
push 0xc2b
push 0x11
push eax
call fcn.0042077f
add esp, 0x18
jmp 0x49a1fa
push str.TIME4A_R_CeSCLDevice::ReadScan:_m_pIScanJob__ReadScan_raw_took__ld_sec__ld_r_n
push 0xc2d
push 0x11
push eax
call fcn.0042077f
add esp, 0x18
jmp 0x49a1fa
push str.ReadScan:_0_bytes_requested
push 0xc31
push 0x11
lea eax, [ebp - 0x8c]
push eax
call fcn.0042077f
add esp, 0x10
mov esi, dword [ebp - 0x84]
lea ecx, [ebp - 0x8c]
call fcn.004204d2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052bbde
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49a60a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and dword [eax], 0
push edi
push ecx
mov dword [ebp - 4], edx
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x49a68a
cmp word [esi + 8], 2
jne 0x49a66c
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x49a66c
mov edi, dword [esi + 0xc]
jmp 0x49a666
push dword [eax]
mov edx, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0049a5a1
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
test ecx, ecx
je 0x49a685
lea eax, [ecx + 0x1c]
add edi, 4
mov dword [ebp + 0x14], eax
mov eax, dword [edi]
test eax, eax
jne 0x49a642
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.0060ccb1
add esp, 0x10
xor eax, eax
jmp 0x49a6a8
push 8
pop eax
jmp 0x49a6a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x49a6a6
sub eax, 1
je 0x49a6b8
sub eax, 1
je 0x49a6b1
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x2afb
jmp 0x49a6a8
mov eax, 0x2afa
jmp 0x49a6a8
Function at 0x49ad10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x93500c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x130277c], 0
mov ax, cx
mov word [ebp - 0x232], ax
mov dword [ebp - 0x230], 0x855e44
mov dword [ebp - 0x22c], 0x49a85c
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x49ab2c
mov dword [ebp - 0x220], 0x855e5c
mov dword [ebp - 0x21c], fcn.0049a81e
je 0x49ad7a
movzx eax, ax
jmp 0x49aeac
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49ae9b
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
mov ebx, 0x10c
push eax
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.005fb579
push str.ws2_32
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.0060b1a3
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x49adf9
push 0x855e44
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x49adf5
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x49ae53
lea eax, [ebp - 0x218]
mov esi, 0x10c
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.005fb579
push str.wship6
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0060b1a3
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x49ae98
push 0x855e44
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x49ae4f
push esi
call ebx
mov esi, edi
test esi, esi
je 0x49ae98
mov ebx, edi
push dword [ebp + ebx*8 - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + ebx*8 - 0x22c], eax
test eax, eax
je 0x49ae76
inc ebx
cmp ebx, 3
jl 0x49ae55
jmp 0x49ae7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x49ae98
mov eax, dword [ebp + edi - 0x22c]
mov dword [edi + 0x12e0450], eax
add edi, 8
cmp edi, 0x18
jl 0x49ae83
pop edi
pop esi
pop ebx
movzx eax, word [ebp - 0x232]
mov dword [0x130277c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x12e0450]
xor ecx, ebp
call fcn.0052bbde
mov esp, ebp
pop ebp
ret