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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], ecx
push str.kernel32
mov dword [ebp - 4], edi
mov esi, 0x20019
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40175b
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40175b
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x401766
cmp dword [ebp - 0x10], edi
mov eax, 0x20219
cmovne esi, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4018d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], edi
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
jne 0x4017ef
push dword [ebp - 0xc]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 4], ecx
test edi, edi
je 0x4017ef
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 8]
call esi
test eax, eax
je 0x4017ef
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4018d8
mov esi, dword [ebp - 4]
mov ebx, edi
shr esi, 1
cmp word [edi], 0
je 0x4018c8
test esi, esi
je 0x4018c8
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x10], eax
sub esi, eax
lea ebx, [ebx + eax*2]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp - 0x1c]
inc eax
add dword [ebp - 0x10], eax
sub esi, eax
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40185c
mov eax, dword [ebp - 0x20]
cmp word [eax], 0
je 0x401864
cmp word [ebx], 0
jne 0x401811
jmp 0x4018c8
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x14]
call fcn.00414e20
imul eax, dword [ebp - 0x10], 0xfffffffe
add esp, 0xc
mov esi, 0x20006
add dword [ebp - 4], eax
call fcn.004012c0
test eax, eax
mov ecx, 0x20206
lea eax, [ebp - 8]
push eax
cmovne esi, ecx
push esi
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4018c8
push dword [ebp - 4]
push edi
push 7
push eax
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
lea eax, [ebp - 0x58]
mov esi, ecx
push 0
push eax
call fcn.00406cf0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov eax, 5
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401c87
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401c90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 1
push 0x41bb70
push 0
push str.SYSTEMMsetupInstCheck
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401ce4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SYSTEMMsetupInstCheck
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push str.kernel32
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d36
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401d36
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401d92
cmp dword [ebp - 8], 0
je 0x401d92
lea eax, [ebp - 4]
push eax
push 0x20106
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d92
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push 0
push str.UnsupportMajor
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push str.UnsupportMinor
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 0x20019
xor esi, esi
mov ebx, edx
push esi
push str.SoftwareCanonIJPLM
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e1e
lea eax, [ebp - 8]
mov dword [edi], esi
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push esi
push str.UnsupportMajor
push dword [ebp - 4]
mov dword [ebx], esi
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
call edi
test eax, eax
jne 0x401e15
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push esi
push str.UnsupportMinor
push dword [ebp - 4]
call edi
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call esi
test eax, eax
jne 0x401e8b
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
push str.InstallDate
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.kernel32
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401eca
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401ec4
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x401f14
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 8], 0
je 0x401f14
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call esi
test eax, eax
jne 0x401f14
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
push str.InstallDate
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40201f
push 0x200
push 0
push esi
call fcn.00406cf0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401fb1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push 0
push str.guid
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401fa5
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x208], 0
je 0x401fee
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x200
jae 0x40202e
xor ecx, ecx
mov word [ebp + eax - 0x208], cx
cmp word [esi], 0
je 0x40200f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x206]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
cmp eax, 0x6a9
jne 0x40201f
push 0x200
push 0
push esi
call fcn.00406cf0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404e4f
mov esp, ebp
pop ebp
ret
call fcn.00404f83
int3
Function at 0x402040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x200
lea eax, [ebp - 0x208]
mov esi, ecx
push 0
push eax
call fcn.00406cf0
add esp, 0xc
test esi, esi
je 0x402086
cmp word [esi], 0
je 0x402086
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4020b0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4020b0
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x402119
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x208]
push eax
push 1
push 0
push str.guid
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.kernel32
mov dword [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40215e
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402158
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4021ca
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0x220], 0
je 0x4021ca
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4021ca
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x208]
push eax
push 1
push 0
push str.guid
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404e4f
mov esp, ebp
pop ebp
ret
Function at 0x402400
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402467
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push 1
xorps xmm0, xmm0
push str.D:_A_OICI_GWGRSDDTDC___BU__A_OICI_GWGRSDDTDC___AU__A_OICI_GA___BA__A_OICI_GA___SY_
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x40244f
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], eax
push esi
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402467
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 0x20019
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4024de
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push str.AutoSendDate
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4024e6
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x402548
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push esi
push str.AutoSendDate
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x402560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025bb
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4025bb
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4025d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40260e
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x402680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.kernel32
mov esi, ecx
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov edi, 0x20006
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4026f0
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4026f0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4026ff
cmp dword [ebp - 0x94], 0
mov eax, 0x20206
cmovne edi, eax
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00406cf0
add esp, 0xc
lea eax, [ebp - 0x90]
push 0
push eax
push 0
push edi
push 0
push 0
push 0
push str.SoftwareCanonIJPLMInstalledDevice
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4027d6
sub esi, 1
je 0x402778
sub esi, 1
je 0x402761
sub esi, 2
jne 0x402782
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], esi
call fcn.00402620
jmp 0x402782
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], 1
call fcn.00402620
jmp 0x402782
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
push eax
lea eax, [ebp - 0x88]
push eax
push 1
push 0
push str.NEW_DATE
push dword [ebp - 0x90]
call esi
push 4
lea eax, [ebp - 0x8c]
push eax
push 4
push 0
push str.NEW_SEND_INFO_AGREE
push dword [ebp - 0x90]
call esi
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404e4f
mov esp, ebp
pop ebp
ret
Function at 0x4031b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403208
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.AutoSend
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403250
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push 0
push str.AutoSendDate
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403260
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x10], str.GlobalCANON_IJPLMUI
mov dword [ebp - 0xc], str.GlobalAPP_78D84DC5_5F4F_4B57_8540_D4D89617ADA8
mov dword [ebp - 8], str.GlobalCANON_IJPLMAGR
push dword [ebp + esi*4 - 0x10]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4032d0
push edi
call ebx
inc esi
cmp esi, 3
jb 0x403293
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404e4f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4032bd
mov esi, dword [ebp + esi*4 - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x400
jge 0x4032bd
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404e4f
mov esp, ebp
pop ebp
ret
Function at 0x100254e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009f170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1009467e
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100264a0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10025534
jmp dword [ecx*4 + 0x1002569c]
mov al, byte [esi]
test al, al
je 0x10025562
cmp al, 0x20
je 0x1002554e
cmp al, 0xa1
jne 0x10025562
cmp byte [esi + 1], al
jne 0x10025562
test al, 0x80
je 0x1002555a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10025562
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10025541
test ecx, ecx
je case.default.0x10025534
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10025534
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100255a8
cmp dl, 0xa1
jne 0x1002559c
cmp byte [eax + 1], 0xa1
jne 0x1002559c
test ecx, ecx
jne 0x10025594
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100255bc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100255d6
jmp 0x100255bc
cmp dl, 0x20
jne 0x100255ba
test ecx, ecx
jne 0x100255b3
mov edi, eax
mov ecx, 1
jmp 0x100255bc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002557c
cmp ecx, 1
jne case.default.0x10025534
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10025534
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10025534
mov al, byte [esi]
test al, al
je 0x1002562e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10025614
mov cl, byte [esi + 1]
test cl, cl
je 0x1002562e
cmp al, 0xa1
jne 0x10025604
cmp cl, al
je 0x10025611
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10026730
inc esi
jmp 0x10025626
cmp al, 0x20
je 0x10025626
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10026770
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100255ed
push 0
lea ecx, [esp + 0x14]
call fcn.10026770
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100317d0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10025661
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a8e98
call fcn.100266a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10094610
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret