joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [edx + 8]
test eax, eax
jle 0x42f917
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 8]
jne 0x42f917
push esi
xor esi, esi
test eax, eax
jle 0x42f90d
push edi
test esi, esi
js 0x42f92d
cmp esi, dword [ecx + 8]
jge 0x42f92d
cmp esi, eax
jge 0x42f92d
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x42f8fd
mov eax, dword [edx + 4]
mov eax, dword [eax + esi*4]
mov dword [ebp - 8], eax
test eax, eax
je 0x42f8fd
push 8
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x42f8d7
push 0xa
push 0xfa1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42f861
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f861
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx eax, word [eax]
mov dword [ebp - 4], eax
push 0xb0
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x42f8bd
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov dword [edi], eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0xc]
add ecx, 0xc
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x42f8a8
push dword [ebp - 0x14]
mov dword [eax], edi
add dword [ecx + 4], 4
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42f8e6
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.0041de70
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42f8e6
push dword [ebp - 0x14]
mov ebx, 0x80010002
mov dword [0x6183ec], 2
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42f8e6
mov ebx, 0x80010047
mov dword [0x6183ec], 0x47
test ebx, ebx
js 0x42f90c
mov edx, dword [ebp + 8]
inc esi
mov eax, dword [edx + 8]
cmp esi, eax
jge 0x42f90c
mov ecx, dword [ebp + 0xc]
jmp 0x42f7e2
mov dword [0x6183ec], 1
mov ebx, 0x80010001
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [0x6183ec], 1
mov eax, 0x80010001
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.005511b9
int3
Function at 0x434970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
push str.CheckPrinterDriverInstall::CheckPortRegistry
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ebx
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x434a28
test byte [ecx + 0x1c], 1
je 0x4349ec
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caa20
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4b
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x434a28
test byte [ecx + 0x1c], 1
je 0x434a28
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5caa20
push ebx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4c
call fcn.00430170
add esp, 0x14
push 0x410
xor ebx, ebx
lea eax, [esp + 0x264]
xor edi, edi
mov dword [esp + 0x1c], ebx
push edi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0x58]
push 0x208
push edi
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434b24
nop dword [eax]
nop dword [eax + eax]
push 0x410
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0x58]
push 0x208
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [esp + 0x14], 0x208
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x208
mov dword [esp + 0x10], 1
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x274]
push eax
push edi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push dword [esp + 0x1c]
mov esi, eax
inc edi
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x434b1f
test esi, esi
je 0x434a90
jmp 0x434b24
mov ebx, 1
mov byte [esp + 0x24], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x434b6a
test byte [ecx + 0x1c], 1
je 0x434b6a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5caa20
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4d
call fcn.004018a0
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.0040a570
mov ecx, dword [esp + 0x674]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x43dc00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.CheckRunEnvironment::CheckConIme
lea ecx, [ebp - 0x48]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43dc7f
test byte [ecx + 0x1c], 1
je 0x43dc7f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caaf4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5d
call fcn.00401840
add esp, 0xc
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0xf003f
xor edi, edi
mov dword [ebp - 0x58], 0
push edi
push str.Console
push closesocket
mov esi, 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43dd76
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 4
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], 4
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push str.LoadConIme
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43dd69
mov dword [ebp - 0x54], 4
cmp dword [ebp + 8], edi
je 0x43dd09
cmp dword [ebp - 0x4c], edi
je 0x43dd0c
mov dword [ebp - 0x4c], edi
mov edi, esi
jmp 0x43dd0c
mov dword [ebp - 0x4c], esi
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push 0
push str.LoadConIme
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43dd69
mov ecx, dword [0x6184f0]
mov ecx, dword [ecx + 0x1c]
test edi, edi
je 0x43dd4f
push 0x5ca578
push str.PROCESS_CONIME_RUN
call fcn.004f6860
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dd78
push 0x5cb138
push str.PROCESS_CONIME_RUN
call fcn.004f6860
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dd78
push dword [ebp - 0x50]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43dd78
xor esi, esi
mov byte [ebp - 0x44], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43ddbd
test byte [ecx + 0x1c], 1
je 0x43ddbd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5caaf4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5e
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
Function at 0x44a010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp dword [eax + 0x3d4], 0
jbe 0x44a02a
pop ebp
jmp fcn.0044a6f0
pop ebp
jmp fcn.0044a030
Function at 0x44c5b0
Capabilities:
Parse url

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x24]
mov edi, dword [esi + 0x10]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
cmp dword [esi + 0x18], 0
mov dword [ecx], 0x3c
jne 0x44c63c
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x54], edi
jmp 0x44c6ec
push ebx
push 0
lea ebx, [esi + 0x60]
push edi
mov ecx, ebx
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x44c652
mov ebx, dword [ebx]
mov dword [esi + 0x28], ebx
lea ebx, [esi + 0x78]
push 0
push edi
mov ecx, ebx
mov dword [esi + 0x2c], edi
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x44c66d
mov ebx, dword [ebx]
mov dword [esi + 0x34], ebx
lea ebx, [esi + 0x90]
push 0
push edi
mov ecx, ebx
mov dword [esi + 0x38], edi
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x44c68b
mov ebx, dword [ebx]
mov dword [esi + 0x40], ebx
lea ebx, [esi + 0xa8]
push 0
push edi
mov ecx, ebx
mov dword [esi + 0x44], edi
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x44c6a9
mov ebx, dword [ebx]
mov dword [esi + 0x48], ebx
lea ebx, [esi + 0xc0]
push 0
push edi
mov ecx, ebx
mov dword [esi + 0x4c], edi
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x44c6c7
mov ebx, dword [ebx]
mov dword [esi + 0x50], ebx
lea ebx, [esi + 0xd8]
push 0
push edi
mov ecx, ebx
mov dword [esi + 0x54], edi
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
jb 0x44c6e5
mov ebx, dword [ebx]
mov dword [esi + 0x58], ebx
lea ecx, [esi + 0x24]
pop ebx
mov dword [esi + 0x5c], edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44c6f9
mov eax, dword [esi]
push ecx
push dword [esi + 0x18]
push dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop edi
mov dword [esi + 0x1c], 1
pop esi
ret
Function at 0x4520c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f0fb
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.InstallDiasAndGetDevInfo::AskDIASRegistInICFList
lea ecx, [ebp - 0x888]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x452143
test byte [ecx + 0x1c], 1
je 0x452143
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ccde0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe
call fcn.00401840
add esp, 0xc
cmp dword [0x618500], 0
jne 0x452195
call fcn.0049c1d0
neg eax
sbb eax, eax
add eax, 0x480
push eax
push dword [0x6184fc]
call fcn.00502d80
mov ecx, dword [0x6184f0]
add esp, 8
mov ecx, dword [ecx + 0x1c]
cmp eax, 6
jne 0x452186
push 0x5c7da0
push str.DIASREGISTICF
jmp 0x45224e
push 0x5c7d38
push str.DIASREGISTICF
jmp 0x45224e
push 0x800
lea eax, [ebp - 0x850]
push 0
push eax
call fcn.00571c00
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x850]
add esp, 0x18
mov ecx, dword [ecx + 0x1c]
push eax
push str.SILENTPATH
call fcn.004f65f0
mov ecx, dword [0x6184f0]
push 0x5c7d38
push str.DIASREGISTICF
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
lea eax, [ebp - 0x850]
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x5c6930
push str.DiasIcfRegist
push str.SelectMenu
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x452253
push 0x5c7da0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x452253
mov ecx, dword [0x6184f0]
push 0x5c7da0
push str.DIASREGISTICF
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov ecx, dword [0x6184f0]
push 0x5c7da0
push str.DIASINSTALLFLAG
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov byte [ebp - 0x884], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45229c
test byte [ecx + 0x1c], 1
je 0x45229c
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5ccde0
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xf
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x888]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x45f8f0
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0180
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
push str.InstallTypeProfile::DeleteTypeSelectionInfo
lea ecx, [ebp - 0x48]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45f972
test byte [ecx + 0x1c], 1
je 0x45f972
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdc50
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.004066e0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004068b0
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push 0
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f9cd
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
add eax, 0x7fc
cmp dword [eax + 0x14], 8
jb 0x45f9ba
mov eax, dword [eax]
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x45f9cd
test eax, eax
je 0x45f9cd
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [edi + 0xc]
xor esi, esi
test eax, eax
jle 0x45fa00
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
test esi, esi
js 0x45fa74
cmp esi, eax
jge 0x45fa74
mov eax, dword [edi + 8]
push dword [eax + esi*4]
call ebx
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x45f9e0
mov byte [ebp - 0x44], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x45fa46
test byte [ecx + 0x1c], 1
je 0x45fa46
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cdc50
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x70]
call fcn.004067f0
lea ecx, [ebp - 0x48]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.005511b9
int3
Function at 0x463620
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a06c6
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push ecx
push str.InstallUsbPrinter::GetDriverInfoFromFiles
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x86c], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4636b4
test byte [ecx + 0x1c], 1
je 0x4636b4
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x27
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x830]
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
mov ecx, dword [ecx + 0x1c]
push eax
push str.TEMPPATH
call fcn.004f65f0
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.InsDrv.ini
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x830]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5ca984
push str.PnPWatch
push str.Installer_Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x5ca984
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [ebp - 0x86c]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
cmp ecx, 2
jne 0x46384a
cmp dword [0x618540], 0
je 0x463776
mov dword [ebp - 0x874], ecx
mov dword [ebp - 0x870], 1
jmp 0x46378a
mov dword [ebp - 0x874], 1
mov dword [ebp - 0x870], 0
lea ecx, [ebp - 0x86c]
call fcn.00430700
lea eax, [ebp - 0x874]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x870]
push eax
lea ecx, [ebp - 0x86c]
call fcn.00436650
lea ecx, [ebp - 0x86c]
mov byte [ebp - 4], 0
call fcn.004307d0
mov eax, dword [ebp - 0x870]
push eax
push edi
push esi
lea eax, [ebp - 0x830]
mov ecx, 0x618568
push eax
call fcn.00448730
mov byte [ebp - 0x864], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x463822
test byte [ecx + 0x1c], 1
je 0x463822
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cdca0
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x28
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x868]
call fcn.0040a570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
jne 0x4637c7
push 0xffffffffffffffff
push edi
push esi
push str.USBPrinters
lea eax, [ebp - 0x830]
mov ecx, 0x618568
push eax
call fcn.00447b70
jmp 0x4637db
Function at 0x466fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push ecx
push str.InstallVitualChannel::SetRegKeyCNAPX
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46708c
test byte [ecx + 0x1c], 1
je 0x46704f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x37
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46708c
test byte [ecx + 0x1c], 1
je 0x46708c
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push edi
push esi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x38
call fcn.0040c1c0
add esp, 0x18
push 0x208
lea eax, [esp + 0x54]
mov dword [esp + 0x14], 0
push 0
push eax
mov edi, 1
call fcn.00571c00
add esp, 0xc
lea eax, [esp + 0x50]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x50]
push 0x5c692c
push eax
call esi
push dword [esp + 0x14]
lea eax, [esp + 0x54]
push eax
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x467182
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467107
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push str.DriverNameWin32
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x467178
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x467176
test byte [ecx + 0x1c], 4
je 0x467176
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x39
call fcn.00401840
add esp, 0xc
xor edi, edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x1c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4671c8
test byte [ecx + 0x1c], 1
je 0x4671c8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x3a
call fcn.004018a0
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.0040a570
mov ecx, dword [esp + 0x25c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46a920
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0e21
mov eax, dword fs:[0]
push eax
sub esp, 0xa70
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa68], ecx
push ecx
push str.OperateFile::RemoveReadOnlyAttribute
lea ecx, [ebp - 0xa50]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46a9ac
test byte [ecx + 0x1c], 1
je 0x46a9ac
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cecd4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.INSTALLDIR
call fcn.004f65f0
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0xa1a], 0x5c
je 0x46aa06
push 0x5c692c
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0xa64]
call fcn.0055b16f
push 0x5ca344
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa64]
push dword [ebp - 0xa5c]
call fcn.0055b606
push 0x5ca324
push dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa64]
call fcn.0055b606
call fcn.0052ee40
cmp dword [eax + 8], 0xa
ja 0x46aa57
jne 0x46aa6d
cmp dword [eax + 0x10], 0x3fab
jb 0x46aa6d
push str.ARM64
push dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa64]
call fcn.0055b606
mov esi, dword [ebp - 0xa5c]
xor edi, edi
test esi, esi
jle 0x46ab4a
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0xc
test edi, edi
js 0x46abc7
cmp edi, esi
jge 0x46abc7
mov eax, dword [ebp - 0xa60]
push dword [eax + edi*4]
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0x218]
push 0x5ca318
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0xa7c]
call fcn.0055b16f
mov ecx, dword [ebp - 0xa68]
lea eax, [ebp - 0xa7c]
push 1
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
call fcn.0046bb90
mov eax, dword [ebp - 0xa74]
xor esi, esi
test eax, eax
jle 0x46ab2c
test esi, esi
js 0x46abc7
cmp esi, eax
jge 0x46abc7
mov eax, dword [ebp - 0xa78]
push 0x20
push dword [eax + esi*4]
call ebx
mov eax, dword [ebp - 0xa74]
inc esi
cmp esi, eax
jl 0x46ab04
lea ecx, [ebp - 0xa7c]
mov byte [ebp - 4], 1
call fcn.0055b186
mov esi, dword [ebp - 0xa5c]
inc edi
cmp edi, esi
jl 0x46aa83
mov byte [ebp - 0xa4c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46ab93
test byte [ecx + 0x1c], 1
je 0x46ab93
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cecd4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0xa64]
call fcn.0055b186
lea ecx, [ebp - 0xa50]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
call fcn.005511b9
int3