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

Disassembly:
sub esp, 0x11c
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x20], 0
shr ecx, 2
mov dword [esp + 0x1c], SysReAllocStringLen
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
test ecx, ecx
je 0x404d20
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x404d73
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.RetryInstall
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
push 0x415e2c
lea eax, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404dc7
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.RetryInstall
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop esi
je 0x404ddc
push 3
lea edx, [esp + 0x10]
push 0
push edx
jmp 0x404de5
push 1
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeA]
test eax, eax
je 0x404df8
xor al, al
add esp, 0x11c
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
test eax, eax
sete al
add esp, 0x11c
ret

Function at 0x404eb0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x404
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
not ecx
push 0x400
push eax
push ecx
mov ecx, dword [esp + 0x424]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
pop edi
add esp, 0x404
ret
Function at 0x408930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ff4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x30], vtable.CRegistry.0
mov byte [esp + 0x38], 0
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], SysReAllocStringLen
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x544], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
test ecx, ecx
je 0x408a01
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
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 + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0x20019
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408a54
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.SpdifGateId
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x48]
push 0x415e2c
lea eax, [esp + 0x50]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408aa8
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.SpdifGateId
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.004080c0
mov esi, dword [esp + 0x54c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
mov dword [esp + 0x30], esi
call fcn.00408200
mov eax, dword [ebp + 0x358]
test eax, eax
je 0x408ae1
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x14]
push 0
push esi
lea eax, [esp + 0x144]
push str.ToggleSpdifEnable__d__rc___d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14c]
push 1
push ecx
call fcn.004029d0
mov ecx, dword [esp + 0x554]
add esp, 0x18
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x53c
ret 4
Function at 0x40a1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40ff6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x570
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], vtable.CRegistry.0
mov byte [esp + 0x2c], 0
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], SysReAllocStringLen
mov eax, ecx
mov esi, edi
mov edi, ebx
mov dl, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x588], 0
and ecx, 3
mov byte [esp + 0x13], dl
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40a27e
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GlobalStateSTSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x590]
xor edi, edi
mov eax, dword [ebx + 0x1e4]
test eax, eax
jbe 0x40a380
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add ebx, 0x1e8
mov esi, dword [ebx]
lea edx, [esp + 0x130]
push esi
push str.JackPresence_x
push edx
mov dword [esp + 0x20], 0
call ebp
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a337
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x13c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40a337
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x590]
setne dl
mov byte [edi + eax + 0x238], dl
jmp 0x40a33c
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x180]
push ecx
push esi
push str.Port__04x:_Presense___d
push edx
call ebp
lea eax, [esp + 0x190]
push 1
push eax
call fcn.004029d0
mov ecx, dword [esp + 0x5a8]
add esp, 0x18
inc edi
add ebx, 4
cmp edi, dword [ecx + 0x1e4]
jb 0x40a2a1
mov al, byte [esp + 0x13]
jmp 0x40a382
mov al, dl
mov ecx, dword [esp + 0x580]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x57c
ret
Function at 0x40a3a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x164
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x18], 0
shr ecx, 2
mov dword [esp + 0x14], SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40a448
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
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.GlobalStateSTSysTray1.0
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
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0x11c]
push eax
push str.JackPresence_x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x180]
add esp, 0xc
lea eax, [esp + 8]
and edx, 0xff
push 0
push eax
push 0
push 0xf003f
push 0
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x28]
push 0x415e2c
lea ecx, [esp + 0x30]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop esi
test eax, eax
jne 0x40a4cd
mov edx, dword [esp]
lea eax, [esp + 4]
push 4
push eax
push 4
lea ecx, [esp + 0x120]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x164
ret
Function at 0x40ba10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
xor ebx, ebx
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x4a8], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], vtable.CRegistry.0
shr ecx, 2
mov byte [esp + 0x24], bl
mov dword [esp + 0x20], SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0EventExpressions
test ecx, ecx
je 0x40bac6
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
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 + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0EventExpressions
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x20019
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb37
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40bb37
mov ecx, dword [esp + 0x18]
pop edi
mov dword [ebp + 0x4a8], ecx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x40cee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x168
push ebx
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x20], bl
shr ecx, 2
mov dword [esp + 0x1c], SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40cf8a
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GlobalStateSTSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x178]
lea ecx, [esp + 0x124]
push eax
push str.ShowEventDialog
push str._s_x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push edx
push 0x20019
push ebx
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d01f
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x130]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40d01f
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
pop edi
pop esi
pop ebx
setne al
add esp, 0x168
ret 4
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x168
ret 4
Function at 0x40d030
Capabilities:
Set registry value

Disassembly:
sub esp, 0x164
push ebx
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x1c], bl
shr ecx, 2
mov dword [esp + 0x18], SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40d0da
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GlobalStateSTSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x120]
push eax
push str.ShowEventDialog
push str._s_x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x188]
add esp, 0x10
lea eax, [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push 0x415e2c
lea ecx, [esp + 0x34]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d162
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 4
push eax
push 4
lea ecx, [esp + 0x12c]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov eax, 1
je 0x40d164
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x164
ret 8
Function at 0x40d170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x1c], 0
shr ecx, 2
mov dword [esp + 0x18], SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40d218
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GlobalStateSTSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push 0x20019
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d27e
mov edx, dword [esp + 0x124]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test esi, esi
je 0x40d285
mov eax, dword [esp + 0x128]
pop edi
pop esi
add esp, 0x118
ret 8
Function at 0x40d290
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push ebx
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x1c], bl
shr ecx, 2
mov dword [esp + 0x18], SysReAllocStringLen
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.GlobalStateSTSysTray1.0
test ecx, ecx
je 0x40d33a
mov edi, 0x4135b4
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GlobalStateSTSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0xc]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push 0x415e2c
lea edx, [esp + 0x34]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d39f
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov eax, 1
je 0x40d3a1
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret 8
Function at 0x40d660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x418
push ebx
push edi
mov edi, ecx
xor bl, bl
xor ecx, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x114]
mov byte [esp + 0x10], bl
test eax, eax
mov byte [esp + 0x14], bl
mov dword [esp + 8], ecx
je 0x40d810
mov eax, dword [eax + 0x1ac]
test eax, eax
je 0x40d810
mov ecx, dword [eax]
push ebp
mov ebp, dword [esp + 0x428]
lea edx, [esp + 0x20]
push esi
mov esi, dword [esp + 0x434]
push edx
lea edx, [esp + 0x18]
push esi
push edx
push ebp
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x40d7dc
mov eax, dword [edi + 0x114]
mov edx, dword [eax + 0x1e4]
test edx, edx
jle 0x40d708
lea ecx, [eax + 0x358]
add eax, 0x368
mov edi, edx
cmp ebp, dword [eax - 0x180]
jne 0x40d6fd
cmp byte [ecx], 0
mov ebx, dword [eax]
setne dl
shr ebx, 0x10
mov byte [esp + 0x1c], dl
and bl, 1
add eax, 4
inc ecx
dec edi
jne 0x40d6e3
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
and eax, 0xff
and edi, 0xff
push eax
push edi
push esi
mov esi, dword [esp + 0x43c]
lea edx, [esp + 0x34]
push esi
push ecx
push ebp
push str.SetDeviceType:_port0x_04x_curdev_d_newdev_d_flag_d_isslave_d_slavable_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x48]
push 1
push eax
call fcn.004029d0
mov eax, dword [esp + 0x3c]
add esp, 0x28
cmp eax, esi
jne 0x40d77b
test bl, bl
je 0x40d76a
mov edx, dword [esp + 0x434]
xor ecx, ecx
cmp edx, 1
sete cl
xor ecx, edi
jne 0x40d77b
push esi
push ebp
mov dword [esp + 0x18], 1
push str.Port_0x_04x_already_type_0x_04x_n
jmp 0x40d7b5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x114]
mov eax, dword [ecx + 0x1ac]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x438]
mov edx, dword [eax]
push ecx
push esi
push ebp
push 0
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x40d7c5
push esi
push ebp
mov dword [esp + 0x18], 1
push str.Reconfigured_Port_0x_04x_to_type_0x_04x_n
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40d7f0
push esi
push ebp
lea eax, [esp + 0x30]
push str.Failed_to_reconfigure_Port_0x_04x_to_type_0x_04x_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40d7f0
push ebp
lea ecx, [esp + 0x2c]
push str.GetPortDeviceType_Port_0x_04x_failed__n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x28]
push 1
push edx
call fcn.004029d0
mov eax, dword [esp + 0x18]
add esp, 8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x418
ret 0xc
pop edi
mov eax, ecx
pop ebx
add esp, 0x418
ret 0xc