joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x52c232
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x52c312
cmp eax, 2
jbe 0x52c2a0
cmp eax, 0xb
jne 0x52c312
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push ebx
push edi
mov dword [ebp - 0x10], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edx, byte [ebp - 5]
movzx ecx, byte [ebp - 7]
push edx
movzx edx, byte [ebp - 8]
mov edi, eax
movzx eax, byte [ebp - 6]
push eax
movzx eax, byte [ebp - 9]
push ecx
movzx ecx, byte [ebp - 0xa]
push edx
movzx edx, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push ecx
push edx
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x
push esi
call fcn.00401cf0
add esp, 0x28
jmp 0x52c30a
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jns 0x52c2b1
push 0x80070057
call fcn.004010a0
mov eax, dword [esi]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or edx, eax
jge 0x52c2cc
push ecx
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x52c2f8
push ecx
push eax
call fcn.004ff818
add esp, 8
test eax, eax
js 0x52c2a7
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x52c2a7
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
test edi, edi
jne 0x52c221
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
Function at 0x52c330
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5773b4
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040c84f
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x52c373
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push esi
push str.SOFTWARECanonIJNetworkScannerSelectorEX
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
lea esi, [ebp - 0x14]
mov ebx, str.AppPath
call fcn.0052c1f0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
push esi
mov dword [ebp - 0x10], 0
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x52c3ec
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x52c3ee
xor bl, bl
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52c411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x52c430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
test esi, esi
je 0x52c490
push ebx
mov ecx, esi
call fcn.00401850
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x52c45f
push str.SHGetKnownFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 0
test eax, eax
je 0x52c494
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push edi
call eax
test eax, eax
js 0x52c484
mov edx, dword [ebp - 4]
push edx
mov ecx, esi
call fcn.004018c0
test ebx, ebx
je 0x52c48f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5a9024
push edi
call fcn.004043e0
add esp, 8
test eax, eax
je 0x52c4d7
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x52c4c9
push 0x104
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
push eax
push 0
push 0
push 5
jmp 0x52c595
push 0x5a9054
push edi
call fcn.004043e0
add esp, 8
test eax, eax
je 0x52c517
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x52c50c
push 0x104
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
push eax
push 0
push 0
push 0x27
jmp 0x52c595
push 0x5a9044
push edi
call fcn.004043e0
add esp, 8
test eax, eax
je 0x52c557
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x52c54c
push 0x104
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
push eax
push 0
push 0
push 0x25
jmp 0x52c595
push 0x5a9064
push edi
call fcn.004043e0
add esp, 8
test eax, eax
je 0x52c5a5
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x52c58c
push 0x104
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x52c484
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x52c5bc
push ecx
push eax
call fcn.004ff818
add esp, 8
test eax, eax
js 0x52c5d3
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x52c5d3
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x52c484
push 0x80070057
call fcn.004010a0
int3
Function at 0x52c5e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5773e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040c84f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x52c62c
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov dword [ebp - 0x14], 1
cmp dword [eax - 0xc], ebx
jge 0x52c655
push 0x80070057
call fcn.004010a0
cmp word [eax], 0x40
jne 0x52c73c
push str._Evernote
push edi
call fcn.00406fe0
add esp, 8
test al, al
je 0x52c6c0
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsEvernote.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x52c73c
mov ebx, 0x5a95c8
call fcn.0052c1f0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str._DropBox
push edi
call fcn.00406fe0
add esp, 8
test al, al
je 0x52c73c
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x52c6f4
push 0x104
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
push 0x104
push eax
push str._USERPROFILE_DropBox
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x52c714
xor eax, eax
jmp 0x52c726
push ecx
push eax
call fcn.004ff818
add esp, 8
cmp eax, ebx
jl 0x52c64b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x52c64b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52cef0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5775d2
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x5a95c8
mov ecx, esi
mov dword [ebp - 0x10], 0
call fcn.00401210
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x52cf5d
push 0x104
mov ecx, esi
call fcn.004019b0
mov eax, dword [esi]
push 0x104
push eax
push 0x20
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x52cf89
push ecx
push eax
call fcn.004ff818
add esp, 8
test eax, eax
js 0x52cfad
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x52cfad
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*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.004010a0
int3
Function at 0x52e130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ecx
mov byte [ebp - 0x20d], 1
test esi, esi
je 0x52e1e4
push edi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00500277
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00401210
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edx
call esi
test eax, eax
mov eax, dword [ebp - 0x21c]
sete byte [ebp - 0x20e]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e1d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x20e], 0
je 0x52e1ea
mov byte [ebp - 0x20d], 0
jmp 0x52e1ea
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x214], 0
je 0x52e27b
cmp byte [ebp - 0x20d], 0
je 0x52e27b
push edi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00500277
mov edx, dword [ebp - 0x214]
add esp, 0xc
push edx
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
call fcn.00401210
mov edx, dword [ebp - 0x214]
push edx
call esi
test eax, eax
mov eax, dword [ebp - 0x214]
sete byte [ebp - 0x20e]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e26b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x20e], 0
je 0x52e27b
mov byte [ebp - 0x20d], 0
cmp dword [ebp - 0x218], 0
mov al, byte [ebp - 0x20d]
je 0x52e319
test al, al
je 0x52e319
push edi
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00500277
mov edx, dword [ebp - 0x218]
add esp, 0xc
push edx
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00401210
mov edx, dword [ebp - 0x218]
push edx
call esi
test eax, eax
mov eax, dword [ebp - 0x218]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e2fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x52e313
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x20d]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
Function at 0x532b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579fe9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040c84f
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x532bc6
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push str.SOFTWARECanonMy_Image_Garden
mov dword [ebp - 4], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
jne 0x532c29
cmp edi, ebx
je 0x532c0d
push ebx
push 0x5a95c8
mov ecx, edi
call fcn.00401900
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x532d47
lea esi, [ebp - 0x14]
mov ebx, str.AppPath
call fcn.0052c1f0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x532c65
push eax
push 0x5a95c8
mov ecx, esi
call fcn.00401900
mov ebx, dword [ebp - 0x14]
test edi, edi
je 0x532c8a
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x10], esp
mov esi, esp
push eax
call fcn.00401a10
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.0052eee0
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x532c9a
lea edx, [ebp - 0x14]
push edx
call fcn.004015b0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x532d30
mov eax, dword [ebp + 0x10]
push eax
mov ecx, 0x20004
lea edi, [ebp - 0x10]
call fcn.00530ca0
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
jne 0x532cfe
mov eax, dword [ebp + 0x14]
cmp eax, 4
ja case.0x532cce.0
jmp dword [eax*4 + 0x532d68]
push str.SU_CalenderView
jmp 0x532cf6
push str.SU_WorkShop
jmp 0x532cf6
push str.SU_Scan
jmp 0x532cf6
push str.SU_OCR
jmp 0x532cf6
push str.SU_FolderView
lea ecx, [ebp - 0x10]
call fcn.004012d0
mov edi, dword [ebp - 0x10]
push edi
push str._f__s_
push esi
call fcn.00401cf0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x532d30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x532d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x539b00
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57750c
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
push eax
mov dword [esi + 0x14], edx
call fcn.0040be10
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
sub eax, 0x10
push eax
call fcn.00401a10
add esp, 4
add eax, 0x10
mov dword [esi + 0x44], eax
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x54], ecx
mov edx, dword [edi + 0x58]
mov dword [esi + 0x58], edx
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x53da40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f3a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x88], eax
call fcn.0040e785
mov dword [ebp - 4], 0
movzx ecx, word [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], 0
jbe 0x53db2c
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x53dac0
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e5bd
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53db2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 1
jne 0x53db61
mov edx, 0xffff
cmp word [esi + 2], dx
jne 0x53db61
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x53db61
cmp dword [ecx + 0x20], 0
je 0x53db61
call fcn.0041aa78
or dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push esi
mov ecx, edi
call fcn.00417b96
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
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 8
Function at 0x54c700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5d52e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x28]
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]
movzx ecx, word [ebp + 8]
xor eax, eax
push ecx
push str._04x
lea edx, [ebp - 0x24]
push 0x10
push edx
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
call fcn.00500a88
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.004ff818
add esp, 0x18
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
Function at 0x54fc90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a502
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, 1
jne 0x54fd62
push ebx
push 0x69
lea ecx, [ebp - 0xc0]
call fcn.00417179
mov edi, vtable.CDlgProgress.0
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1fbd
mov dword [ebp - 0x20], 0x1fb2
mov dword [ebp - 0x1c], 0x23c1
mov dword [ebp - 0x18], esi
call fcn.005583c0
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x54fd2d
mov edx, dword [ebp + 0xc]
push edx
call fcn.00564a20
add esp, 4
mov dword [ebp + 8], 2
mov dword [ebp - 0xc0], edi
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x54fd4a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004170b9
mov edx, dword [ebp + 8]
cmp edx, 2
jne 0x54fda6
mov eax, dword [esi + 0x1e0]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp ecx, ebx
jle 0x54fda6
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov edi, ecx
mov eax, dword [esi]
push eax
call ebx
add esi, 0x90
dec edi
jne 0x54fd81
mov eax, dword [ebp + 8]
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, edx
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
Function at 0x5579c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57707a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x18]
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], ebx
call fcn.0040e785
mov dword [ebp - 4], ebx
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e555
call fcn.0040da38
mov eax, dword [eax + 4]
cmp word [eax + 0xc0], bx
jbe 0x557aa7
call fcn.0040c84f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x557a40
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp + 0xc]
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], ebx
call fcn.0040e809
call fcn.0040da38
mov eax, dword [eax + 4]
movzx eax, word [eax + 0xc0]
push eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e5bd
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x557aa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp word [eax], 1
jne 0x557ad1
mov edx, 0xffff
cmp word [eax + 2], dx
jne 0x557ad1
cmp dword [0x5ddaf8], ebx
je 0x557ad1
or dword [eax + 8], 0x400000
push ebx
push edi
push eax
mov ecx, esi
call fcn.00417b96
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040e3be
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