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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push str.UpdateDefaultFaxDevice__Called__n
push 0x56dce8
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x25c], ebx
call fcn.00415550
push esi
push str.___pRegKey_____s_n
call fcn.00415550
push edi
push str.___pRegValue___s_n
call fcn.00415550
add esp, 0x18
cmp esi, ebx
je 0x416635
mov eax, esi
lea edx, [eax + 2]
jmp 0x416490
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416490
sub eax, edx
sar eax, 1
je 0x416635
cmp edi, ebx
je 0x416635
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4164b2
sub eax, edx
sar eax, 1
je 0x416635
push 0x1152
push str.DevConFunc.cpp
lea eax, [ebp - 0x250]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043e520
add esp, 0x14
test eax, eax
jne 0x416635
mov edx, dword [ebp - 0x250]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x20
lea ecx, [ebp - 0x44]
push ecx
push ebx
push edx
xor esi, esi
call edi
test eax, eax
jne 0x4165a4
mov edi, edi
lea eax, [ebp - 0x44]
push eax
push str.Enum_Device_Keys_....__s_n
call fcn.00415550
mov eax, dword [ebp - 0x250]
push 0x1157
push str.DevConFunc.cpp
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x44]
push edx
push eax
call fcn.0043e520
add esp, 0x1c
test eax, eax
jne 0x4165a4
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x24c]
push edx
push ebx
push ebx
push str.FaxDriver
push eax
mov dword [ebp - 0x25c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4165ef
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0043e540
mov eax, dword [ebp - 0x250]
add esp, 4
push 0x20
lea edx, [ebp - 0x44]
push edx
inc esi
push esi
push eax
mov dword [ebp - 0x254], ebx
call edi
test eax, eax
je 0x416510
push str.FaxDriver_entry_not_found._n
push 0x56dce8
call fcn.00415550
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x250]
add esp, 8
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0043e540
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret
push str.FaxDriver_entry_found._n
push 0x56dce8
call fcn.00415550
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x250]
add esp, 8
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0043e540
add esp, 4
mov dword [ebp - 0x254], ebx
jmp 0x4165ca
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret
Function at 0x417450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x8fc
mov eax, dword [0x5d7b20]
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 esi, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x904], edi
call fcn.004489d0
mov dword [ebp - 4], edi
cmp dword [ebp - 0x6c4], edi
jne 0x4174a9
push str.IsPnPInstallerRunning_Not_WinME._n
jmp 0x417678
cmp esi, edi
je 0x417673
cmp word [esi], di
je 0x417673
push 1
push esi
push 1
call fcn.00416650
add esp, 0xc
test eax, eax
jne 0x4174d5
push str.IsPnPInstallerRunning_Device_is_not_exist_on_system._n
jmp 0x417678
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.0053dd9b
add esp, 8
cmp eax, edi
je 0x417502
cmp word [eax + 2], di
je 0x41751b
push 0x56825c
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0053e396
add esp, 0xc
push str.cmdninst.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053e396
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x420]
push eax
push str.IsPnPInstallerRunning_szCmdninst___1_s__n
push 4
call fcn.00403ab0
add esp, 0xc
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x417682
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Process32First
push esi
mov ebx, eax
call edi
push str.Process32Next
push esi
mov dword [ebp - 0x908], eax
call edi
mov edi, eax
test edi, edi
je 0x417682
cmp dword [ebp - 0x908], 0
je 0x417682
test ebx, ebx
je 0x417682
push 0
push 2
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x417682
lea ecx, [ebp - 0x900]
push ecx
mov ebx, 0x22c
push esi
mov dword [ebp - 0x900], ebx
call dword [ebp - 0x908]
test eax, eax
je 0x417652
jmp 0x4175f0
push 0x104
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x8dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0053e2bf
add esp, 8
test eax, eax
je 0x417639
lea eax, [ebp - 0x900]
push eax
push esi
mov dword [ebp - 0x900], ebx
call edi
test eax, eax
jne 0x4175f0
jmp 0x417652
push str.IsPnPInstallerRunning_cmdninst.exe_is_running._n
push 4
call fcn.00403ab0
add esp, 8
mov dword [ebp - 0x904], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
mov eax, dword [ebp - 0x904]
jmp 0x417696
push str.IsPnPInstallerRunning_pHardwareId_is_invalid._n
push 4
call fcn.00403ab0
add esp, 8
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
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.0053e1ad
mov esp, ebp
pop ebp
ret
Function at 0x417a30
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556d03
mov eax, dword fs:[0]
push eax
sub esp, 0x8e0
mov eax, dword [0x5d7b20]
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
xor edi, edi
lea ecx, [ebp - 0x8e8]
mov dword [ebp - 4], edi
xor esi, esi
call fcn.004489d0
push str.setupapi.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x8ec], eax
cmp eax, edi
je 0x417a97
push str.SetupUninstallOEMInfW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x20a
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0053e550
push edi
push edi
push 0x105
lea ecx, [ebp - 0x430]
push ecx
mov ecx, dword [ebp + 8]
push 0x101
lea edx, [ebp - 0x634]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.0053e704
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.0053eeab
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x224]
push 0x105
push edx
call fcn.0053e396
add esp, 0x48
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x224]
push 0x105
push ecx
call fcn.0053e396
push str..PNF
lea edx, [ebp - 0x224]
push 0x105
push edx
call fcn.0053e396
push 0x56e6a0
push 0x56dce8
call fcn.00415550
mov eax, dword [ebp + 8]
push eax
push str._InfFileName_:__s_n
call fcn.00415550
lea ecx, [ebp - 0x224]
push ecx
push str._PnfFileName_:__s_n
call fcn.00415550
push 0x56e6a0
push 0x56dce8
call fcn.00415550
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x38
push edx
call ebx
and eax, 0xfffffffe
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x417bde
push str.DeleteInf___:_SetupUninstallOEMInf_called._n
push 4
call fcn.00403ab0
push str..INF
lea ecx, [ebp - 0x430]
push 0x105
push ecx
call fcn.0053e396
add esp, 0x14
push 0
push 1
lea edx, [ebp - 0x430]
push edx
call esi
mov edi, eax
test edi, edi
jne 0x417c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupUninstallOEMInfA_error___1_x__n
push 4
call fcn.00403ab0
add esp, 0xc
jmp 0x417c16
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
je 0x417c16
lea ecx, [ebp - 0x224]
push ecx
call ebx
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x224]
push eax
call esi
mov edi, 1
mov eax, dword [ebp - 0x8ec]
test eax, eax
je 0x417c27
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x8e8]
mov byte [ebp - 4], 0
call fcn.004488b0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417c5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.0053e1ad
mov esp, ebp
pop ebp
ret
Function at 0x41ebb0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5574ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5d7b20]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call fcn.0044c104
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ebfe
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 0
test esi, esi
je 0x41ed53
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ec24
sub eax, edx
sar eax, 1
je 0x41ed53
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x41ec79
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ec72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41ed7b
push str.Twain_32
lea ecx, [ebp - 0x21c]
push 0x105
push ecx
call fcn.0053e396
push 0x56825c
lea edx, [ebp - 0x21c]
push 0x105
push edx
call fcn.0053e396
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405db0
push esi
lea ecx, [ebp - 0x220]
call fcn.004062b0
mov esi, dword [ebp - 0x220]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call edi
test eax, eax
jne 0x41ecf5
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41ec66
lea ecx, [ebp - 0x21c]
push ecx
call edi
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41ed20
push 0
lea ecx, [ebp - 0x220]
call fcn.004045b0
mov esi, dword [ebp - 0x220]
push ebx
push esi
call fcn.0041e700
mov edi, eax
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ed4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x41ed7b
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ed76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0053e1ad
mov esp, ebp
pop ebp
ret
Function at 0x42c390
Capabilities:
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor edi, edi
push edi
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x42c444
mov edx, dword [ebp - 4]
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x20019
push edi
push str.Setup
push edx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42c40a
mov eax, dword [ebp - 8]
push eax
call ebx
mov ecx, dword [ebp - 4]
push 0x10
push str.runonce
push 1
push 0
push str.Wrapper
push ecx
call edi
mov esi, eax
jmp 0x42c40c
xor esi, esi
mov edx, dword [ebp - 4]
push 0x16
push str.grpconv__o
push 1
push 0
push str.GrpConv
push edx
call edi
test eax, eax
je 0x42c428
xor esi, esi
mov eax, dword [ebp - 4]
push eax
call ebx
cmp dword [ebp + 8], 0
pop ebx
je 0x42c442
push 1
push str.runonce__r
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0053e550
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0053e550
push 0x208
lea edx, [ebp - 0x61c]
push 0
push edx
call fcn.0053e550
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x24
push 0x568928
lea eax, [ebp - 0x414]
push eax
call esi
push 0x568928
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x620]
push edx
push 0x208
lea eax, [ebp - 0x61c]
push eax
push 1
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 0x620], 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
cmp eax, 1
jne 0x42c9c9
lea eax, [ebp - 0x61c]
push eax
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret 4
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret 4

Function at 0x42cba0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
lea edx, [ebp - 0x20c]
push 0x104
push edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
call fcn.0053f95d
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42ccc8
push esi
push ebx
push 0
lea edx, [ebp - 0x20c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42cc9f
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x56825c
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x210]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push edi
push str.GetFileVersion_File___1_s__nfile_version:__2_u_._3_u_._4_u_._5_u__n
push 5
call fcn.00403ab0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x218]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x220]
add esp, 0x1c
mov dword [ecx], eax
mov edi, 1
jmp 0x42cca5
mov edi, dword [ebp - 0x214]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret
Function at 0x42db10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push str.CDeviceInfSection::Init__________________________IN._n
push 5
mov edi, ecx
call fcn.00403ab0
add esp, 8
cmp dword [edi + 0x60], 0
je 0x42db3d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x42db57
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_NULL._n
jmp 0x42dbf2
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42db60
sub eax, edx
sar eax, 1
jne 0x42db80
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_Zero_length._n
jmp 0x42dbf2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42db9b
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_not_found._n
jmp 0x42dbf2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42dba0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.004021b0
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x42dbcf
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pSectionName_is_NULL._n
jmp 0x42dbf2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42dbd4
sub eax, esi
sar eax, 1
jne 0x42dc13
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pSectionName_is_Zero_length._n
push 5
call fcn.00403ab0
add esp, 8
push str.CDeviceInfSection::Init__________________________OUT._n
push 5
call fcn.00403ab0
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 0xc
push edx
lea ecx, [edi + 0x40]
call fcn.00402490
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42dc26
mov dword [edi + 0x5c], eax
push str.CDeviceInfSection::Init__________________________OUT._n
push 5
mov dword [edi + 0x60], 1
call fcn.00403ab0
add esp, 8
pop esi
mov eax, 1
pop edi
pop ebp
ret 0xc

Function at 0x42dd80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.DelDrv.exe_public:_int___thiscall_CDeviceInfSection::Init_wchar_t_const___class_CInfStringTable___wchar_t_const__
Function at 0x42ec30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push str.CIniSections::Init__________________________IN._n
push 5
mov edi, ecx
call fcn.00403ab0
add esp, 8
cmp dword [edi + 0x30], 0
je 0x42ec5d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x42ec74
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_NULL._n
jmp 0x42ecb9
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ec80
sub eax, edx
sar eax, 1
jne 0x42eca0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_Zero_length._n
jmp 0x42ecb9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42ecda
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_not_found._n
push 5
call fcn.00403ab0
add esp, 8
push str.CIniSections::Init__________________________OUT._n
push 5
call fcn.00403ab0
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ece0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x14]
call fcn.004021b0
push str.CIniSections::Init__________________________OUT._n
push 5
mov dword [edi + 0x30], 1
call fcn.00403ab0
add esp, 8
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
Function at 0x43f070
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x105
lea eax, [ebp - 0x210]
push eax
mov edi, ecx
mov ecx, dword [edi + 4]
xor esi, esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x43f0f0
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43f0b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
push ebx
call fcn.0053f81b
add esp, 0xc
test eax, eax
je 0x43f105
mov ecx, dword [edi + 4]
push 0x105
lea eax, [ebp - 0x210]
push eax
inc esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x43f0a8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret 4

Function at 0x43f200
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
push str.advapi32.dll
mov dword [esi], vtable.CRegistryW.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x43f282
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x58633c
push edi
call ebx
push 0x586330
push edi
mov dword [esi + 8], eax
call ebx
push 0x58631c
push edi
mov dword [esi + 0xc], eax
call ebx
push 0x58630c
push edi
mov dword [esi + 0x10], eax
call ebx
push str.RegCreateKeyW
push edi
mov dword [esi + 0x14], eax
call ebx
push 0x5862ec
push edi
mov dword [esi + 0x18], eax
call ebx
push 0x5862dc
push edi
mov dword [esi + 0x1c], eax
call ebx
push 0x5862cc
push edi
mov dword [esi + 0x20], eax
call ebx
mov dword [esi + 0x24], eax
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x43f460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.0043f120
test eax, eax
jne 0x43f484
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push edi
push ecx
call ebx
cmp dword [ebp - 4], 0
je 0x43f4ef
mov eax, dword [esi + 0x24]
test eax, eax
je 0x43f4b9
push eax
call fcn.0043e500
add esp, 4
mov dword [esi + 0x24], 0
mov edx, dword [ebp - 4]
push 0x202
push 0x58629c
push edx
call fcn.0043e4e0
add esp, 0xc
mov dword [esi + 0x24], eax
test eax, eax
jne 0x43f4df
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push edi
push edx
call ebx
mov eax, dword [esi + 0x24]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4