joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x43ea30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x55166b16
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x35324c0e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401a3b
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a791
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x437898]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov ecx, dword [0x437898]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], ecx
mov edx, dword [0x437898]
mov dword [esi + 0xc], edx
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call fcn.0041e9a6
mov eax, dword [0x437898]
mov dword [esi + 0x24], eax
mov ecx, dword [0x437898]
mov dword [esi + 0x28], ecx
mov edx, dword [0x437898]
mov dword [esi + 0x2c], edx
mov eax, dword [0x437898]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0x42c658
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov ecx, dword [0x437898]
mov dword [esi + 0x80], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], 0x42c654
call fcn.00401bf0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x401af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a80b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x42c654
lea ecx, [edi + 0x80]
mov dword [esp + 0x1c], 8
call fcn.0041f323
lea ebx, [edi + 0x34]
mov dword [esp + 0x10], ebx
mov dword [ebx], 0x42c658
mov esi, dword [ebx + 4]
mov byte [esp + 0x1c], 9
test esi, esi
je 0x401b6c
mov eax, dword [ebx + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x401b60
push ebp
lea ebp, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebp
jne 0x401b51
pop ebp
mov ebx, dword [ebx + 4]
push ebx
call fcn.0041f7e8
add esp, 4
lea ecx, [edi + 0x30]
mov byte [esp + 0x1c], 6
call fcn.0041f323
lea ecx, [edi + 0x2c]
mov byte [esp + 0x1c], 5
call fcn.0041f323
lea ecx, [edi + 0x28]
mov byte [esp + 0x1c], 4
call fcn.0041f323
lea ecx, [edi + 0x24]
mov byte [esp + 0x1c], 3
call fcn.0041f323
lea ecx, [edi + 0x10]
mov byte [esp + 0x1c], 2
call fcn.0041e9d9
lea ecx, [edi + 0xc]
mov byte [esp + 0x1c], 1
call fcn.0041f323
lea ecx, [edi + 8]
mov byte [esp + 0x1c], 0
call fcn.0041f323
lea ecx, [edi + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041f323
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403020
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.0040f030
mov byte [eax], bl
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jne 0x40307b
mov byte [esp + 0x12], bl
mov edi, str.MSInputs.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
and ecx, 3
push 1
push str.Display
rep movsb byte es:[edi], byte [esi]
push str.DisplayError
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
mov dword [ebp + 0xc0], eax
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4032e6
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x403345
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x403345
mov eax, dword [0x4397d0]
test eax, eax
je 0x40333a
push 0
push 0
push str.Error_In_Getting_OS_Version_Information_
call fcn.004264a1
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x40336a
cmp dword [esp + 0xc], 5
jne 0x403385
mov dword [esi + 0x60], 1
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne 0x403385
cmp dword [esp + 0xc], 4
jne 0x403385
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403385
mov dword [esi + 0x60], 0
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
Function at 0x4036d0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push esi
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esi + 4]
test eax, eax
jne 0x403794
lea ecx, [esp + 0x108]
push edi
push ecx
lea edx, [esp + 0xc]
push str._sMos24Sr.sys
push edx
call fcn.0040f09b
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea eax, [esp + 8]
push 0x80
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push ecx
call edi
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push str._sMos24Spt.vxd
push eax
call fcn.0040f09b
add esp, 0xc
lea ecx, [esp + 8]
push 0x80
push ecx
call esi
lea edx, [esp + 8]
push edx
call edi
lea eax, [esp + 0x10c]
lea ecx, [esp + 8]
push eax
push str._sMs24enum.vxd
push ecx
call fcn.0040f09b
add esp, 0xc
lea edx, [esp + 8]
push 0x80
push edx
call esi
lea eax, [esp + 8]
push eax
call edi
pop edi
pop esi
add esp, 0x208
ret
lea ecx, [esp + 0x108]
lea edx, [esp + 4]
push ecx
push str._sdriversMos24Ser.sys
push edx
call fcn.0040f09b
add esp, 0xc
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x208
ret
Function at 0x403e10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42ab7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x70]
call fcn.00401000
xor ebx, ebx
push esi
push 0x404040
lea ecx, [esp + 0x78]
mov dword [esp + 0x1ac], ebx
call fcn.004019b0
mov eax, dword [0x437898]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a4], 3
call fcn.0041f2ae
push section..data
lea ecx, [esp + 0x18]
call fcn.0041f4ac
lea eax, [esp + 0x6c]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ebx
call fcn.0041e096
mov ecx, dword [eax]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x3c], ecx
call fcn.0041e096
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x40], eax
call fcn.0041e096
mov edx, dword [eax]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x44], edx
call fcn.0041e096
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x48], ecx
call fcn.0041e096
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x4c], eax
call fcn.0041e096
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x98]
push 0x104
push eax
mov byte [esp + 0x1ac], 4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ecx, 0xffffffff
lea edx, [esp + 0x98]
mov edi, str.inf
xor eax, eax
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
lea eax, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041f4ac
push str..inf
lea ecx, [esp + 0x18]
push str._s
push ecx
call fcn.0041e67b
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
add esp, 0xc
or al, 0x10
or esi, 0x927
or al, 0x20
push str.mos24ser.sys
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x24], eax
call fcn.0041f4ac
lea ecx, [esp + 0x70]
call fcn.00401990
lea edx, [esp + 0x10]
lea ecx, [esp + 0x70]
push edx
call fcn.00401110
lea ecx, [esp + 0x70]
call fcn.004019d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a4], 6
call fcn.0041f323
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a4], 5
call fcn.0041f323
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a4], bl
call fcn.0041f323
lea ecx, [esp + 0x70]
mov dword [esp + 0x1a4], 0xffffffff
call fcn.00401050
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x198
ret
Function at 0x404110
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x30c
lea eax, [esp + 0x104]
push ebx
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebx + 4]
test eax, eax
je 0x404258
push esi
lea edx, [esp + 0x210]
push edi
push edx
lea eax, [esp + 0x10]
push str._sdriversMos24Ser.sys
push eax
call fcn.0040f09b
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0x80
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push str._sinfMos24Ser.inf
push ecx
call fcn.0040f09b
add esp, 0xc
lea edx, [esp + 0xc]
push 0x80
push edx
call esi
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push str._sinfMos24Ser.PNF
push edx
call fcn.0040f09b
add esp, 0xc
lea eax, [esp + 0xc]
push 0x80
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push str._sinfMs24Comp.inf
push eax
call fcn.0040f09b
add esp, 0xc
lea ecx, [esp + 0xc]
push 0x80
push ecx
call esi
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x110]
lea ecx, [esp + 0xc]
push eax
push str._sinfMs24Comp.PNF
push ecx
call fcn.0040f09b
add esp, 0xc
lea edx, [esp + 0xc]
push 0x80
push edx
call esi
lea eax, [esp + 0xc]
push eax
call edi
push str.SystemCurrentControlSetEnumCMC
mov ecx, ebx
call fcn.00405810
push str.SystemCurrentControlSetEnumCMC
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00405970
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
Function at 0x404260
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [ecx + 4]
push esi
test eax, eax
mov dword [esp + 4], ecx
jne 0x404279
mov esi, str.SystemCurrentControlSetServicesClassPorts
jmp 0x404284
mov esi, str.SystemCurrentControlSetControlClass4D36E978_E325_11CE_BFC1_08002BE10318
push esi
call fcn.00405810
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40441a
mov edx, dword [esp + 0xc]
push ebp
mov ebp, 0x104
push edi
lea ecx, [esp + 0x124]
push ebp
push ecx
push eax
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404405
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0xf003f
lea ecx, [esp + 0x130]
push esi
push ecx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4043e4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push esi
push str.DriverDesc
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x404355
cmp dword [esp + 0x14], 4
jbe 0x404355
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004057e0
push 0x19
lea edx, [esp + 0x28]
push str.usb_to_serial_port_driver
push edx
mov dword [esp + 0x20], ebp
call fcn.0040f100
add esp, 0xc
test eax, eax
je 0x4043a7
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.PortDriver
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x4043ac
cmp dword [esp + 0x14], 4
jbe 0x4043ac
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004057e0
push 8
lea edx, [esp + 0x28]
push str.mos24spt
push edx
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x4043ac
mov esi, 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x1c], 0
je 0x4043e4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.00405970
test eax, eax
je 0x4043e4
sub edi, 2
jns 0x4043e4
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
mov eax, edi
push ebp
push ecx
push eax
push edx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4042d4
pop ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
add esp, 0x21c
ret
cmp eax, 2
je 0x404463
push 0
lea ecx, [esp + 8]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x4397d0]
test eax, eax
je 0x404458
mov edx, dword [esp + 4]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
add esp, 0x21c
ret
Function at 0x4047c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [ecx + 4]
push esi
test eax, eax
mov dword [esp + 4], ecx
jne 0x4047d9
mov esi, str.SystemCurrentControlSetServicesClassUSB
jmp 0x4047e4
mov esi, str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push esi
call fcn.00405810
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40497a
mov edx, dword [esp + 0xc]
push ebp
mov ebp, 0x104
push edi
lea ecx, [esp + 0x124]
push ebp
push ecx
push eax
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404965
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0xf003f
lea ecx, [esp + 0x130]
push esi
push ecx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404944
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push esi
push str.DriverDesc
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x4048b5
cmp dword [esp + 0x14], 4
jbe 0x4048b5
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004057e0
push 0x2a
lea edx, [esp + 0x28]
push str.high_speed_usb_multiserial_compound_device
push edx
mov dword [esp + 0x20], ebp
call fcn.0040f100
add esp, 0xc
test eax, eax
je 0x404907
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.NTMPDriver
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x40490c
cmp dword [esp + 0x14], 4
jbe 0x40490c
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004057e0
push 0xb
lea edx, [esp + 0x28]
push str.mos24sr.sys
push edx
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x40490c
mov esi, 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x1c], 0
je 0x404944
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.00405970
test eax, eax
je 0x404944
sub edi, 2
jns 0x404944
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
mov eax, edi
push ebp
push ecx
push eax
push edx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404834
pop ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
add esp, 0x21c
ret
cmp eax, 2
je 0x4049c3
push 0
lea ecx, [esp + 8]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x4397d0]
test eax, eax
je 0x4049b8
mov edx, dword [esp + 4]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
add esp, 0x21c
ret
Function at 0x4049d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [ecx + 4]
push esi
test eax, eax
mov dword [esp + 8], ecx
je 0x4049ef
mov esi, str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push esi
call fcn.00405810
jmp 0x4049f3
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b8d
mov edx, dword [esp + 0xc]
push ebx
mov ebx, 0x104
push edi
lea ecx, [esp + 0x124]
push ebx
push ecx
push eax
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404b78
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0xf003f
lea ecx, [esp + 0x130]
push esi
push ecx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b57
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push esi
push str.InfSection
push eax
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
jne 0x404ac4
cmp dword [esp + 0x10], 4
jbe 0x404ac4
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004057e0
push 0xb
lea edx, [esp + 0x28]
push str.mosquadcomp
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040f100
add esp, 0xc
test eax, eax
je 0x404b1a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.NTMPDriver
push eax
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
jne 0x404b1f
cmp dword [esp + 0x10], 4
jbe 0x404b1f
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004057e0
push 8
lea edx, [esp + 0x28]
push str.mos24ser
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x404b1f
mov esi, 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x1c], 0
je 0x404b57
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00405970
test eax, eax
je 0x404b57
sub edi, 2
jns 0x404b57
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
mov eax, edi
push ebx
push ecx
push eax
push edx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404a43
pop ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0x21c
ret
cmp eax, 2
je 0x404bd6
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x4397d0]
test eax, eax
je 0x404bcb
mov edx, dword [esp + 8]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
add esp, 0x21c
ret
Function at 0x404be0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x58
mov eax, dword [ecx + 4]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
je 0x404d6b
push str.SystemCurrentControlSetControlCOM_Name_Arbiter
call fcn.00405810
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SystemCurrentControlSetControlCOM_Name_Arbiter
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404d6b
mov ecx, 8
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
mov edi, 0x20
push str.ComDB
push ecx
mov dword [esp + 0x28], edi
call esi
test eax, eax
je 0x404c83
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x58
ret
cmp dword [esp + 0x14], 3
jne 0x404d60
cmp dword [esp + 0x10], ebx
je 0x404d60
lea eax, [esp + 0x10]
push ebp
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.ComDB_Merge
push eax
mov dword [esp + 0x2c], edi
call esi
mov ebx, 1
lea esi, [ebx - 1]
lea edi, [ebx - 1]
shr esi, 3
and edi, 7
mov al, byte [esp + esi + 0x28]
lea ebp, [esp + esi + 0x28]
test al, al
je 0x404d19
mov edx, 1
mov ecx, edi
shl edx, cl
test dl, al
mov dword [esp + 0x24], edx
je 0x404d19
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00405a10
test eax, eax
je 0x404d19
mov cl, byte [esp + 0x24]
mov al, byte [esp + esi + 0x48]
test cl, al
jne 0x404d19
mov al, byte [ebp]
mov dl, 1
mov ecx, edi
mov dword [esp + 0x1c], 1
shl dl, cl
not dl
and al, dl
mov byte [ebp], al
inc ebx
cmp ebx, 0x100
jbe 0x404cbe
mov eax, dword [esp + 0x1c]
pop ebp
test eax, eax
je 0x404d4e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x24]
push 0x20
push eax
push 3
push 0
push str.ComDB
push ecx
mov dword [esp + 0x28], 0x20
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x58
ret