joyce8/EMBER2024-capa huggingface dataset:
Function at 0x569950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, ax
push eax
push str._04x
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00529eed
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00528e72
add esp, 0x18
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00527e5c
mov esp, ebp
pop ebp
ret

Function at 0x569a10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0d14
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov ebx, ecx
push 0x20001
mov edx, 0x1e240
lea ecx, [ebp - 0x1c]
call fcn.0058f8e0
add esp, 4
mov esi, dword [ebp - 0x1c]
mov edi, 0x5e9af0
mov eax, esi
lea esp, [esp]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x569a86
test cx, cx
je 0x569a82
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x569a86
add eax, 4
add edi, 4
test cx, cx
jne 0x569a60
xor eax, eax
jmp 0x569a8b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x569b24
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARECanonIJ_Scan_Utility
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x569ac3
xor bl, bl
jmp 0x569b26
cmp byte [ebp - 0xd], 0
jne 0x569afb
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 0
push 0
push str.OCRLang
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x569af8
cmp ebx, dword [ebp - 0x18]
je 0x569b14
mov eax, dword [ebp - 0x14]
push 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push 4
push 0
push str.OCRLang
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov bl, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x569b47
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5799b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1a45
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push 0
mov dword [edi + 0x88], ebx
call fcn.00417716
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
call fcn.0041792c
call fcn.00416d27
mov eax, dword [eax + 4]
cmp word [eax + 0xd4], 0
jbe 0x579a9c
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x579a35
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebp - 0x18]
call fcn.00417765
call fcn.00416d27
lea ecx, [ebp - 0x18]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xd4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00417994
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x579a9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 1
jne 0x579ad0
mov eax, 0xffff
cmp word [esi + 2], ax
jne 0x579ad0
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x579ad0
cmp dword [ecx + 0x20], 0
je 0x579ad0
call fcn.00414a61
or dword [esi + 8], eax
push 0
push ebx
push esi
mov ecx, edi
call fcn.00419e27
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00417751
mov eax, esi
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 0x57cad0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1da6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call fcn.0040a670
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
sub eax, 0x10
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, edi
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 0x585e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b24a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0041505f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x585e78
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.00403500
test edi, edi
je 0x585ec5
push esi
mov edx, 0x5e9af0
mov ecx, edi
call fcn.0058b990
mov eax, dword [esi]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x585ec5
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x585ec5
mov ecx, esi
call fcn.00403500
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5876a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x58787b
mov ecx, esi
call fcn.00403500
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
xor eax, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x5876dd
push str.SHGetKnownFolderPath
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 0
test eax, eax
je 0x58770a
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push edi
call eax
test eax, eax
js 0x58786d
push dword [ebp - 4]
mov ecx, esi
call fcn.00403560
jmp 0x58786d
push ebx
mov ecx, edi
mov edx, 0x5e7498
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x587757
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x587717
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x58774a
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 5
jmp 0x587832
mov ecx, edi
mov edx, 0x5e74c8
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5877a3
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x587763
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x587796
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 0x27
jmp 0x587832
mov ecx, edi
mov edx, 0x5e74b8
mov ebx, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5877ed
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x5877b0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5877e3
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 0x25
jmp 0x587832
mov ecx, 0x5e74d8
mov edx, 0xc
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x58783e
add edi, 4
add ecx, 4
sub edx, 4
jae 0x5877f7
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x58782a
push 0x104
mov ecx, esi
call fcn.00402c20
push dword [esi]
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x58786c
mov eax, dword [esi]
test eax, eax
jne 0x587848
xor ecx, ecx
jmp 0x58785a
push dword [eax - 8]
push eax
call fcn.00528e72
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x587881
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x587881
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
pop ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x58787b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
int3
Function at 0x587b50
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b26e6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
mov bh, 1
call fcn.00585970
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
je 0x587bfb
push 0x5e9af0
lea ecx, [ebp - 0x10]
call fcn.00402f60
push 0xc
push str._f_SU_Exec_
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bh
call fcn.004035a0
push 5
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov ecx, esi
setl bl
add edx, 0xfffffff0
dec bl
and bl, bh
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x587bfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x587bfd
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x587c1e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x587c40
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
test edi, edi
jne 0x587c72
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527e5c
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
jle 0x587ca7
lea esp, [esp]
test esi, esi
js 0x587d53
mov eax, dword [ebx]
cmp esi, dword [eax - 0xc]
jg 0x587d53
movzx eax, word [eax + esi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
test al, 3
je 0x587d16
inc esi
cmp esi, edi
jl 0x587c80
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebx]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052a6fe
push str._99991332_0001.su
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0052a6fe
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x587d29
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527e5c
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00527e5c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
int3
Function at 0x5888c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b27f7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push 0x5e9af0
mov dword [ebp - 0x10], 0
call fcn.00402f60
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x588933
push 0x104
mov ecx, esi
call fcn.00402c20
push 0x104
push dword [esi]
push 0x20
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [esi]
test eax, eax
jne 0x588951
xor ecx, ecx
jmp 0x588963
push dword [eax - 8]
push eax
call fcn.00528e72
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x588987
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x588987
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
int3

Function at 0x5889a0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b281a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5889e3
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARECanonIJNetworkScannerSelectorEX
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov edx, str.AppPath
call fcn.0058b990
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
mov bl, 1
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x588a66
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x588a68
xor bl, bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588a89
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x588af0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b283d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x588b33
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARECanonIJNetworkScannerSelectorEX2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
mov edx, str.AppPath
call fcn.0058b990
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
mov bl, 1
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x588bb6
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x588bb8
xor bl, bl
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588bd9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x589260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2893
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x589358
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x589355
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00403660
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5892eb
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402c20
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x589388
cmp eax, dword [esi - 8]
jg 0x589388
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov edi, esp
add esi, 0xfffffff0
push esi
call fcn.00403660
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00589260
add esp, 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x589355
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x589376
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402740
int3
Function at 0x589550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b28e9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10], esi
mov ebx, ecx
call fcn.0041505f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x58959b
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWARECanonMy_Image_Garden
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x5895f0
test ebx, ebx
je 0x5896f7
push ecx
push 0x5e9af0
mov ecx, ebx
call fcn.004035a0
jmp 0x5896f7
lea eax, [ebp - 0x14]
mov edx, str.AppPath
push eax
call fcn.0058b990
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x14]
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x589630
push eax
push 0x5e9af0
lea ecx, [ebp - 0x14]
call fcn.004035a0
mov edi, dword [ebp - 0x14]
test ebx, ebx
je 0x589655
push ecx
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.00403660
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00588080
mov esi, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x589664
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004032d0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5896f7
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0x20004
call fcn.0058f8e0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x5896c7
mov eax, dword [ebp + 0x10]
cmp eax, 4
ja case.0x589697.0
jmp dword [eax*4 + 0x58972c]
push str.SU_CalenderView
jmp 0x5896bf
push str.SU_WorkShop
jmp 0x5896bf
push str.SU_Scan
jmp 0x5896bf
push str.SU_OCR
jmp 0x5896bf
push str.SU_FolderView
lea ecx, [ebp - 0x10]
call fcn.00403020
mov esi, dword [ebp - 0x10]
push esi
push str._f__s_
push ebx
call fcn.00402d50
add esi, 0xfffffff0
mov byte [ebp - 4], 0
add esp, 0xc
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5896f7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x589718
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret