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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
xor eax, dword [ebp + 0x10]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0xe6a66b
push esi
push edi
mov esi, dword [ebp + 8]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0xe6a64b
pop edi
pop esi
pop ebp
ret

Function at 0xe6e7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov esi, 0x200
call fcn.00e62476
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00e62315
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00e79c1c
add esp, 0x20
jmp 0xe6e832
cmp esi, 0x3fffffff
ja 0xe6e816
add esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00e62315
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00e79c1c
add esp, 0x18
add dword [ebp - 0x208], eax
cmp eax, esi
jae 0xe6e80c
lea eax, [ebp - 0x210]
push eax
call fcn.00e623de
pop ecx
pop esi
leave
ret

Function at 0xe6e84c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.00e62476
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00e62315
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.00e79c1c
mov esi, eax
add dword [ebp - 0x208], esi
lea eax, [ebp - 0x210]
push eax
call fcn.00e623de
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0xe6eb3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00e63424
pop ecx
mov esi, eax
sub esi, ebx
push 1
pop edi
je 0xe6ebce
push ebx
push dword [ebp + 8]
dec esi
call fcn.00e635b3
pop ecx
pop ecx
cmp eax, 3
jne 0xe6eb97
test edi, edi
je 0xe6ebc3
push 0
push ebx
push dword [ebp + 8]
call fcn.00e6379c
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.00e7725d
add esp, 0x10
test eax, eax
jle 0xe6ebc3
xor edi, edi
inc edi
jmp 0xe6ebc5
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.00e62f98
add esp, 0xc
test edi, edi
je 0xe6ebc3
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp - 4]
inc edi
push edi
push eax
call fcn.00e78990
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0xe6ebc5
xor edi, edi
inc ebx
test esi, esi
jne 0xe6eb58
test edi, edi
je 0xe6ebd3
xor eax, eax
inc eax
jmp 0xe6ebe2
push 0
push 0
push dword [ebp + 8]
call fcn.00e6213f
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
add eax, 0x268c
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x310c
push ecx
push str.m_szLangRegKey___s__m_szLangRegValue___s
call fcn.00401000
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x310c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028a6
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x268c
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40289c
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x278c
push eax
call fcn.00429bd0
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4028a8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402f04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov dword [ebp - 0x414], ecx
mov dword [ebp - 4], 0x200
mov dword [ebp - 0x408], 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.IN_CDataManager::SetCustomDirectory___:_regkey____s___Drivername____s_
call fcn.00401000
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x45c9ac
lea ecx, [ebp - 0x404]
push ecx
call fcn.0042a6b4
add esp, 0x10
lea edx, [ebp - 0x404]
push edx
push str.TempREgKey___s
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x410]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402fa1
push str.RegOpenKeyEx___is_Error
call fcn.00401000
add esp, 4
xor eax, eax
jmp 0x40306b
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0x45c9dc
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryValueEx___is_failed_____d
call fcn.00401000
add esp, 8
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40306b
push str.SMOption
lea ecx, [ebp - 0x204]
push ecx
call fcn.0042a7c0
add esp, 8
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x204]
sub edx, eax
mov byte [ebp + edx - 0x205], 0
lea ecx, [ebp - 0x204]
push ecx
push str.SM_Directory_:__s
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp - 0x414]
add eax, 0x340c
push eax
call fcn.00429bd0
add esp, 8
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.OUT_CDataManager::SetCustomDirectory__
call fcn.00401000
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4030e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b91d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x110], 0xff
lea eax, [ebp - 0x114]
push eax
push 0x20019
push 0
lea ecx, [ebp + 8]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031c4
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.00404560
push eax
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031b7
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0043d92c
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x118], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x118]
jmp 0x4031ef
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403503
Capabilities:
Query or enumerate registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b95f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
lea ecx, [ebp + 8]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403559
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x1e
push 0xff
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x103
je 0x40359a
cmp dword [ebp - 0x1c], 6
jne 0x40359c
jmp 0x403601
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0043c441
test eax, eax
jl 0x4035eb
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0043d92c
mov dword [ebp - 0x124], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x124]
jmp 0x403636
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x40356e
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4036e6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x1780
push eax
push 0xff
mov ecx, dword [ebp - 4]
add ecx, 0x4368
push ecx
push 0x4679f8
push str.ModelID
push str.Toner
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 4]
add eax, 0x4368
mov esp, ebp
pop ebp
ret

Function at 0x403726
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x1780
push eax
push 0xff
mov ecx, dword [ebp - 4]
add ecx, 0xf75
push ecx
push 0x4679fc
push str.XMLOrderURL
push 0x45cc6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 4]
add eax, 0xf75
mov esp, ebp
pop ebp
ret
Function at 0x40429a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ba65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x14], 0x200
lea ecx, [ebp - 0x330]
call fcn.004044f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004044f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x33c]
add eax, 0x2a8c
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x2b8c
push ecx
push str.SOFTWARE_s_sInstalled_
lea edx, [ebp - 0x10]
push edx
call fcn.0043c7c7
add esp, 0x10
lea eax, [ebp - 0x338]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404442
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x32c]
push edx
push 0
push 0
push str.UserGuideDir
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4043e4
lea ecx, [ebp - 0x32c]
push ecx
mov ecx, dword [ebp - 0x33c]
add ecx, 8
call fcn.0043d92c
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 8]
push eax
push str.m_szHTMLUserGuidePath___s
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x33c]
add ecx, 8
call fcn.00404560
push eax
call fcn.0042a24e
add esp, 8
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0xffffffff
jne 0x4043c8
mov edx, dword [ebp - 0x33c]
mov dword [edx + 0x10], 0
jmp 0x4043d5
mov eax, dword [ebp - 0x33c]
mov dword [eax + 0x10], 1
mov ecx, dword [ebp - 0x334]
push ecx
call fcn.0042a31b
add esp, 4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x32c]
push eax
push 0
push 0
push str.UserGuideFile
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404435
lea edx, [ebp - 0x32c]
push edx
mov ecx, dword [ebp - 0x33c]
add ecx, 4
call fcn.0043d92c
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax + 4]
push ecx
push str.m_szHTMLUserGuideIndexFile___s
call fcn.00401000
add esp, 8
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x330]
call fcn.0043d7a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405177
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bb7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
push 0x467da8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 8
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4051d6
push 0x467da8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x405263
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x5c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
call fcn.004045e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404570
push eax
lea ecx, [ebp - 0x10]
call fcn.00404560
push eax
push 1
push 0
push 0x45cf78
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405238
push 0x467da8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
jmp 0x405263
cmp dword [0x46a8e4], 0
je 0x405249
mov ecx, dword [ebp - 0x18]
call fcn.00405271
push 0x467da8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405271
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bbb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x2c], ecx
call fcn.004045b0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x5c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
call fcn.004045e0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
push ecx
push 0x45cf80
lea ecx, [ebp - 0x24]
call fcn.0043d811
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xec
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0043d9d2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0043d9d2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0043d7a3
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.0043d7a3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.0043d7a3
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push 0
lea ecx, [ebp - 0x14]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405364
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
jmp 0x4053df
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x5c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
call fcn.004045e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.00404570
push eax
lea ecx, [ebp - 0x10]
call fcn.00404560
push eax
push 1
push 0
push 0x45cf84
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4053c4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
jmp 0x4053df
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405d9a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov dword [ebp - 0x30c], ecx
cmp dword [ebp + 8], 0
jne 0x405db6
xor eax, eax
jmp 0x405e87
mov dword [ebp - 4], 0xff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30c]
mov edx, dword [ecx + 8]
push edx
push 0x45d024
lea eax, [ebp - 0x204]
push eax
call fcn.0042a6b4
add esp, 0x10
lea ecx, [ebp - 0x204]
push ecx
push str.GetBaseModelName__:_RegPath_:__s
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x208]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e85
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x308]
push edx
push 0
push 0
push str.BaseModelName
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e74
lea ecx, [ebp - 0x308]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00429bd0
add esp, 8
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push ecx
push str.GetBaseModelName__:_SUCCESS_szModel_name_:__s
call fcn.00401000
add esp, 8
mov eax, 1
jmp 0x405e87
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x405e87
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x408ef7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x38], eax
push 0x32
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0042a3a0
add esp, 0xc
mov ecx, dword [ebp - 0x38]
push ecx
push str.Enter_GetInfoFromCommanLine___s__n
call fcn.00413e70
add esp, 8
mov edx, dword [ebp - 0x38]
push edx
call fcn.0042a0a0
add esp, 4
test eax, eax
je 0x409042
mov eax, dword [ebp - 0x38]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x409042
push 0x20
mov edx, dword [ebp - 0x38]
push edx
call fcn.0042b310
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x409042
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x40]
movsx edx, byte [ecx]
cmp edx, 0x25
jne 0x408f9a
mov eax, dword [ebp - 0x38]
push eax
push str.its_launch_smart_panel_option_:__s
call fcn.00413e70
add esp, 8
xor eax, eax
jmp 0x409044
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
lea eax, [edx + ecx + 1]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x114
call fcn.0043d92c
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x114]
push edx
push str.pipename__s__n
call fcn.00413e70
add esp, 8
mov eax, dword [ebp - 0x40]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.0042a150
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x118
call fcn.0043d92c
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x118]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x114]
push ecx
push str.pipename__s___pgmname__s__n
call fcn.00413e70
add esp, 0xc
mov ecx, dword [ebp - 0x44]
add ecx, 0x114
call fcn.00404570
test eax, eax
je 0x409042
mov ecx, dword [ebp - 0x44]
add ecx, 0x118
call fcn.00404570
test eax, eax
je 0x409042
mov eax, 1
jmp 0x409044
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409048
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x204], 1
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40911d
push str.__autorun
lea ecx, [ebp - 0x200]
push ecx
call fcn.00429be0
add esp, 8
lea edx, [ebp - 0x200]
push edx
push str.IN_CLaserSMMgrApp::SetRegMgrAutoRun____Seg_Registry____s
call fcn.00413e70
add esp, 8
lea eax, [ebp - 0x208]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4090c9
jmp 0x40912a
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042a0a0
add esp, 4
push eax
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp - 0x204]
push eax
push 0
mov ecx, dword [ebp - 0x20c]
add ecx, 0xe8
call fcn.00404560
push eax
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40910e
jmp 0x40912a
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40912a
push str.CLaserSMMgrApp::SetRegMgrAutoRun_____GetModuleFileName___failed__
call fcn.00413e70
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x409a33
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c09d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
lea ecx, [ebp + 8]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409ade
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
lea ecx, [ebp + 0xc]
call fcn.00404560
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x409ad4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x18]
jmp 0x409b03
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc