joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x24c1716a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
mov ecx, 0x3a9725e9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x3ecd1325
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x743d6c2b
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2ba6412f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x249e47e9
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4016b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xbc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 4]
cmp ax, 6
je 0x4016e2
cmp ax, 9
je 0x4016e2
cmp ax, 0xa
mov dword [0x41e1ac], 0
jne 0x4016ec
mov dword [0x41e1ac], 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40170f
mov eax, 0xfffe523c
add esp, 0xbc
ret
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x40173a
cmp eax, 2
je 0x401750
push 0x30
push 0
push str.DIAS_PLTFORM_WAR
call fcn.00402fd0
add esp, 0xc
mov eax, 2
add esp, 0xbc
ret
mov dword [0x41e1b0], 0xa
mov eax, 1
add esp, 0xbc
ret
mov eax, dword [esp + 0x2c]
cmp eax, 4
jae 0x401776
push 0x30
push 0
push str.DIAS_PLTFORM_WAR
call fcn.00402fd0
add esp, 0xc
mov eax, 2
add esp, 0xbc
ret
jne 0x401784
mov dword [0x41e1b0], 0xb
jmp 0x4017a4
cmp eax, 5
jne 0x401795
mov dword [0x41e1b0], 0xc
jmp 0x4017a4
mov eax, dword [0x41e1b0]
cmp eax, 0xb
je 0x4017a4
cmp eax, 0xc
jne 0x4017cf
lea edx, [esp]
push edx
push 0xf003f
push 0
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4017db
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xbc
ret
push 0x30
push 0
push str.DIAS_ADMIN_WAR
call fcn.00402fd0
add esp, 0xc
mov eax, 2
add esp, 0xbc
ret
Function at 0x401c40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
push ebx
push esi
push edi
mov edi, str.SOFTWARECanonDIASSETUP
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d15c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DIASUser
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x2001f
lea ecx, [esp + 0x24]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401cf5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor esi, esi
mov ebx, 0x104
lea edx, [esp + 0x10]
lea eax, [esp + 0x224]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x130]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x401d45
mov al, byte [esp + 0x120]
test al, al
je 0x401d45
inc esi
jmp 0x401d02
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
setne al
add esp, 0x31c
ret
Function at 0x402890
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push 0x2001f
push 0
push esi
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4028c1
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ecx
ret

Function at 0x4028e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 4]
push ebp
mov ebp, dword [esp + 0x21c]
push eax
push 0x2001f
push 0
push ecx
push ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a1f
push ebx
push esi
push edi
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x130]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x4029f6
mov edi, dword [esp + 0x22c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d15c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.004028e0
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.00402890
add esp, 0x10
mov ecx, dword [esp + 0x10]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
je 0x402924
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x214
ret
xor eax, eax
pop ebp
add esp, 0x214
ret
Function at 0x402a30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402a4d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x402a7c
push esi
call fcn.00402d70
add esp, 4
test eax, eax
mov eax, 1
je 0x402a9b
mov dword [0x41e1a8], eax
pop esi
ret
cmp eax, 2
je 0x402a96
cmp eax, 3
je 0x402a96
push 0x30
push eax
push str.DIAS_REMOVE_ERR
call fcn.00402fd0
add esp, 0xc
mov eax, 1
pop esi
ret

Function at 0x402aa0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
push ebx
push ebp
mov ebp, dword [esp + 0x254]
mov dword [esp + 8], 0
push ebp
call fcn.00402c00
add esp, 4
cmp eax, 1
jne 0x402ac9
mov dword [esp + 8], eax
push ebp
lea eax, [esp + 0x10]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402be4
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
cmp dword [esp + 0x118], 0x10
jne 0x402bb0
mov esi, 0x40d2e8
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402b48
test cl, cl
je 0x402b44
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402b48
add eax, 2
add esi, 2
test cl, cl
jne 0x402b24
xor eax, eax
jmp 0x402b4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402bb0
mov esi, 0x40d2e4
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402b81
test cl, cl
je 0x402b7d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402b81
add eax, 2
add esi, 2
test cl, cl
jne 0x402b5d
xor eax, eax
jmp 0x402b86
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402bb0
lea eax, [esp + 0x144]
lea ecx, [esp + 0x14]
push eax
push ebp
push 0x40d2dc
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x24]
push edx
call fcn.00402aa0
add esp, 0x14
lea eax, [esp + 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402afd
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
jne 0x402be4
push ebp
call fcn.00402d70
add esp, 4
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x248
ret
Function at 0x402c00
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x24c
mov eax, dword [esp + 0x250]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x1c]
push str._s.
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x11c]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x402c56
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x11c]
cmp eax, 4
je 0x402d2c
cmp eax, 0x10
je 0x402d2c
mov edx, dword [esp + 0x260]
lea ecx, [esp + 0x148]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x40d2dc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402cd1
lea edx, [esp + 0x18]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x18]
push eax
call esi
call ebx
cmp eax, 5
je 0x402d0f
cmp eax, 0x21
jne 0x402d2c
cmp dword [0x41e1c4], 0x1f
jae 0x402d0f
push 0x3e8
call ebp
lea ecx, [esp + 0x18]
push ecx
call esi
call ebx
mov edx, dword [0x41e1c4]
inc edx
cmp eax, 0x21
mov dword [0x41e1c4], edx
je 0x402ce4
lea edx, [esp + 0x18]
push edx
call fcn.00402d70
add esp, 4
test eax, eax
je 0x402c49
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c68
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x4030a0
Capabilities:
Get common file path
Get geographical location
Read .ini file

Disassembly:
sub esp, 0x650
lea eax, [esp + 0x14c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4030c4
add esp, 0x650
ret
push ebx
push esi
push edi
or ecx, 0xffffffff
lea edi, [esp + 0x158]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x54]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 6
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x40d15c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x58]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DIASUninst.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.MessageString
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x660]
and ecx, 3
lea eax, [esp + 0x54]
rep movsb byte es:[edi], byte [esi]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
jne 0x4031f2
or ecx, eax
mov edi, str.MessageString0409
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x25c]
push ecx
push 0x400
push edx
push str.A_message_string_is_not_found.
lea eax, [esp + 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x250]
push 0x5c
push ecx
call fcn.00404e30
add esp, 8
test eax, eax
je 0x403233
mov byte [eax], 0xa
jmp 0x403218
mov edx, dword [esp + 0x65c]
mov ecx, dword [esp + 0x658]
lea eax, [esp + 0x250]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
add esp, 0x650
ret
Function at 0x403260
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x403281
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0xf01ff
push str.Canon_Driver_Information_Assist_Service
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4032a9
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0x1e
push esi
push ebx
call fcn.00403720
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
xor edi, edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4032f7
cmp dword [esp + 0x14], 1
je 0x40330d
test edi, edi
jne 0x4032ea
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4032f7
push 0x3e8
call ebp
inc edi
cmp edi, 0x1e
jb 0x4032bd
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x40332e
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
call esi
push ebx
call esi
call fcn.00403340
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x403340
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push 0
push str.DiasAppClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40335f
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push str.DiasDispatcherExist
push 0
push 0x1f0001
call ebx
test eax, eax
je 0x40339b
cmp esi, 0x1e
ja 0x40339b
push eax
call edi
push 0x3e8
call ebp
inc esi
jmp 0x403377
push eax
call edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4033cb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push str.CanonDIAS
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret
Function at 0x403400
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
push ebp
push esi
mov ebp, 4
push edi
push ebp
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
jne 0x403427
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov eax, dword [esp + 0x30]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40344e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x403473
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
push ebx
test eax, eax
je 0x4034cd
mov eax, dword [esp + 0x18]
mov ebp, 1
cmp eax, ebp
je 0x40350d
lea edx, [esp + 0x14]
push edx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x34], eax
xor edi, edi
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [esp + 0x18]
push 0x3e8
cmp eax, ebp
je 0x4034c9
call ebx
inc edi
cmp edi, 0x1e
jb 0x4034a6
jmp 0x403509
call ebx
jmp 0x403509
cmp dword [esp + 0x18], ebp
je 0x40350d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x34], eax
xor edi, edi
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], ebp
je 0x403509
push 0x3e8
call ebx
inc edi
cmp edi, 0x1e
jb 0x4034ea
mov edi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov eax, dword [esp + 0x34]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20
ret