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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ab9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401af4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401af0
lea ebx, [ebx]
cmp esi, eax
jae 0x401af4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ae0
cmp esi, eax
jb 0x401afa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401d70
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401d88
pop edi
ret
push esi
push 0xf01ff
push 0x42d99c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401dac
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x401df0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x401e0b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop esi
ret
Function at 0x404d20
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push edi
xor edi, edi
cmp ebx, edi
jne 0x404d44
push str.error:PvssConfig_is_a_invalid_parameter...
call fcn.00404950
add esp, 4
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push ebp
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, edi
jne 0x404d6e
push str.error:_OpenSCManager_fail...
call fcn.00404950
add esp, 4
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push esi
push 0xf01ff
push 0x42d99c
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
jne 0x404da4
push str.error:_OpenService_fail...
call fcn.00404950
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x30]
push eax
push 0x1000
push ebx
push esi
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x404dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig___d_n
jmp 0x404e16
cmp eax, 1
jne 0x404e1e
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404de8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, eax
test edi, edi
jne 0x404e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig___d_n
call fcn.00404950
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x404ec0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
xor ebx, ebx
push 0x7f
lea eax, [esp + 0x99]
push ebx
push eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xa0], bl
call fcn.00418350
push 0x7f
lea ecx, [esp + 0x25]
push ebx
push ecx
mov byte [esp + 0x2c], bl
call fcn.00418350
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x2001f
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f7e
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push str.Identifier
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x404f96
push eax
push str.IsVista64_RegQueryValueEx_errorcode:__d_n
call fcn.00404950
add esp, 8
push str.Cant_find_substring_64__So_this_isnt_a_64bit_OS_n
call fcn.00404950
mov eax, dword [esp + 8]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00417b3b
add esp, 0x114
ret
push edi
lea ecx, [esp + 0x18]
push ecx
push str.Identifier:__s_n
call fcn.00404950
add esp, 8
lea edi, [esp + 0xc]
mov ecx, 0x80
lea edx, [esp + 0x98]
mov dword [esp + 0xc], ebx
call fcn.00401c40
xor ecx, ecx
cmp eax, ebx
setl cl
pop edi
sub ecx, 1
and ecx, dword [esp + 8]
cmp eax, ebx
jne 0x405012
lea eax, [ecx + 1]
cmp eax, 0x7ffffffe
jbe 0x404fe5
mov byte [esp + 0x14], bl
jmp 0x405000
push eax
push ebx
lea eax, [esp + 0x9c]
mov ecx, 0x80
lea edx, [esp + 0x1c]
call fcn.00401c80
cmp eax, ebx
je 0x405012
push str.IsVista64
push str._s_cannot_get_cpuclass_n
call fcn.00404950
add esp, 8
lea edx, [esp + 0x14]
push 0x42db54
push edx
call fcn.00417550
add esp, 8
test eax, eax
je 0x404f66
push str.Find_substring_64__So_this_is_a_64bit_OS_n
call fcn.00404950
mov ecx, dword [esp + 0x118]
add esp, 4
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00417b3b
add esp, 0x114
ret
Function at 0x405060
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x94
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x90], eax
xor eax, eax
cmp dword [0x456788], eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
jbe 0x4051f7
push esi
push ebx
push ebp
mov esi, 0x452690
push edi
jmp 0x4050a0
cmp byte [esp + 0xa8], 0
je 0x4051a9
mov edx, dword [esi - 0x188]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea edi, [esi - 0x144]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4050f1
push eax
push edi
push str._nInfo__:_Open_Key___s__error:__lx._n
call fcn.00404950
add esp, 0xc
jmp 0x4051d6
lea ebp, [esi - 0x40]
push ebp
push edi
push str._nInfo__:_Install_registry:___s_s__n
call fcn.00404950
mov ebx, dword [esi]
add esp, 0xc
cmp ebx, 4
jne 0x405110
push ebx
lea eax, [esi + 8]
jmp 0x40517a
cmp ebx, 3
lea edx, [esi + 0xc]
jne 0x40513e
push 0x80
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00402580
mov edx, dword [esi]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
push 0
push ebp
push eax
jmp 0x405184
test edx, edx
mov dword [esp + 0x18], 0
je 0x405162
lea edi, [esp + 0x18]
mov ecx, 0x80
call fcn.00401c40
test eax, eax
jl 0x405167
mov ecx, dword [esp + 0x18]
jmp 0x405169
mov eax, 0x80070057
xor ecx, ecx
test eax, eax
jne 0x4051f3
cmp ecx, 0x7e
ja 0x4051f3
push ecx
lea eax, [esi + 0xc]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40519c
push eax
push str.Info__:_RegSetValueEx_error_status_:__lx_n
call fcn.00404950
add esp, 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4051d6
cmp dword [esi + 4], 0
je 0x4051d6
lea edi, [esi - 0x40]
push edi
lea ebx, [esi - 0x144]
push ebx
push str._nInfo__:_Delete_registry:___s_s__n
call fcn.00404950
mov eax, dword [esi - 0x188]
add esp, 0xc
push edi
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov eax, dword [esp + 0x14]
add eax, 1
add esi, 0x214
cmp eax, dword [0x456788]
mov dword [esp + 0x14], eax
jb 0x4050a0
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00417b3b
add esp, 0x94
ret
Function at 0x405490
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42b28b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2a4]
push 0xf
xor esi, esi
push str.Logical_Drives:
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x5c3a41
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
call fcn.004039d0
push 0x64
lea ecx, [esp + 0x3c]
push esi
push ecx
mov dword [esp + 0x2a8], esi
call fcn.00418350
push 0x1f4
lea edx, [esp + 0xac]
push esi
push edx
call fcn.00418350
add esp, 0x18
cmp byte [esp + 0x38], 0
lea esi, [esp + 0x38]
je 0x4055d9
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
mov eax, esi
lea edx, [eax + 1]
jmp 0x405550
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405550
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00403e70
push 1
push 0x42dd8c
lea ecx, [esp + 0x24]
call fcn.00403e70
push esi
call edi
cmp eax, 5
jne 0x4055b5
mov bl, byte [esi]
push 0x1f4
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x20], bl
call ebp
test eax, eax
je 0x4055b5
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x9c]
push edx
push eax
call fcn.004199dd
add esp, 8
test eax, eax
je 0x405617
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4055c0
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x405546
cmp dword [esp + 0x34], 0x10
jb 0x4055ed
mov edx, dword [esp + 0x20]
push edx
call fcn.0040eec8
add esp, 4
mov al, 0x30
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00417b3b
add esp, 0x28c
ret
cmp dword [esp + 0x34], 0x10
jb 0x40562b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040eec8
add esp, 4
mov al, bl
jmp 0x4055ef
Function at 0x406190
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x42b388
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.0040f25f
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4061db
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
lea eax, [esp + 0x30]
push eax
push 7
push esi
push ebx
mov dword [esp + 0x50], ebp
call edi
test eax, eax
jne 0x40634c
jmp 0x406220
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x406270
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406270
test ebp, ebp
je 0x406241
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
lea edx, [esp + 0x30]
push edx
push 7
push esi
push ebx
mov dword [esp + 0x34], eax
call edi
test eax, eax
mov ebp, dword [esp + 0x18]
je 0x406220
test ebp, ebp
je 0x40634c
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebp]
cmp ebp, ecx
mov esi, ebp
jae 0x406345
mov ebx, dword [esp + 0x44]
cmp byte [esi], 0
je 0x406345
push eax
push esi
call fcn.00417f6c
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esp + 0x1c]
mov ecx, 0xff
mov edx, esi
mov dword [esp + 0x1c], 0
call fcn.00401c40
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and ecx, dword [esp + 0x1c]
test eax, eax
jne 0x40632b
cmp ecx, 0xfd
jae 0x40632b
lea ebp, [ecx + 1]
lea edi, [esp + 0x28]
mov ecx, 0xff
mov edx, ebx
call fcn.00401c40
test eax, eax
jl 0x406327
cmp ebp, 0x7ffffffe
ja 0x406327
mov eax, dword [esp + 0x28]
push ebp
mov ecx, 0xff
sub ecx, eax
lea edx, [eax + ebx]
push 0
mov eax, esi
call fcn.00401c80
test eax, eax
jne 0x406327
push esi
push str.GetDeviceClass
push str._s_DeviceClass:_s_n
call fcn.00404950
add esp, 0xc
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x14]
lea edx, [eax + ebp]
cmp esi, edx
jb 0x40628d
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x34], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406374
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x406bf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push 0
push eax
call fcn.00418350
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406c59
push str.Error_:_GetWindowsDirectory_fail._n
call fcn.00404950
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00417b3b
add esp, 0x108
ret
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406c60
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.004039d0
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov al, 1
call fcn.00417b3b
add esp, 0x108
ret

Function at 0x406c90
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1014
call fcn.00419cb0
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebp
mov ebp, dword [esp + 0x101c]
push esi
mov esi, dword [esp + 0x1024]
push 0x801
lea eax, [esp + 0x818]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.00418350
push 0x801
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00418350
push 0x42e414
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.00419053
add esp, 0x24
test eax, eax
jne 0x406df8
mov eax, dword [esp + 8]
test eax, eax
je 0x406df8
push edi
push eax
push 0x800
lea eax, [esp + 0x820]
push 1
push eax
call fcn.00419c8a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418dc4
add esp, 0x14
lea edi, [esp + 0x10]
mov ecx, 0x801
lea edx, [esp + 0x818]
mov dword [esp + 0x10], 0
call fcn.00401c40
xor ecx, ecx
test eax, eax
setl cl
pop edi
sub ecx, 1
and ecx, dword [esp + 0xc]
test eax, eax
jne 0x406d9e
lea eax, [ecx + 1]
cmp eax, 0x7ffffffe
jbe 0x406d70
mov byte [esp + 0x10], 0
jmp 0x406d8c
push eax
push 0
lea eax, [esp + 0x81c]
mov ecx, 0x801
lea edx, [esp + 0x18]
call fcn.00401c80
test eax, eax
je 0x406d9e
push str.IsDriverInfFiles
push str._s_copy_inf_files_content_err_n
call fcn.00404950
add esp, 8
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406da5
sub eax, edx
add eax, 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00417f6c
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00417550
add esp, 0x10
test eax, eax
je 0x406df8
push ebp
push esi
push str.IsDriverInfFiles:find__s__in___s__n
call fcn.00404950
add esp, 0xc
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00417b3b
add esp, 0x1014
ret
mov ecx, dword [esp + 0x1018]
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.00417b3b
add esp, 0x1014
ret
Function at 0x4075a0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x254
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
push edi
mov ecx, 0xb
lea esi, [esp + 0x260]
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
push 0x103
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x159]
push 0
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x14], 4
mov byte [esp + 0x160], 0
call fcn.00418350
push 0x104
lea ecx, [esp + 0x60]
push 0
push ecx
call fcn.00418350
add esp, 0x18
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREHuawei_technologiesCurrHandSetWinDriver
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40766d
push str.INFO:_DriverInfo_Open_Key_error._n
call fcn.00404950
add esp, 4
jmp 0x4077ad
cmp dword [esp + 0x14], 2
jne 0x407792
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
xor esi, esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x168]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x407792
lea esp, [esp]
lea eax, [esp + 0x154]
push str.MajorVersion
push eax
add esi, 1
call fcn.00417550
add esp, 8
test eax, eax
je 0x4076e3
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00419ce0
add esp, 0xc
lea ecx, [esp + 0x154]
push str.MinorVersion
push ecx
call fcn.00417550
add esp, 8
test eax, eax
je 0x407713
mov edx, dword [esp + 8]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00419ce0
add esp, 0xc
lea edx, [esp + 0x154]
push str.Customization
push edx
call fcn.00417550
add esp, 8
test eax, eax
je 0x407743
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00419ce0
add esp, 0xc
push 0x104
lea eax, [esp + 0x54]
push 0
push eax
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x14], 4
call fcn.00418350
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x168]
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4076b0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREHuawei_technologiesCurrHandSetWinDriver
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0x258]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00417b3b
add esp, 0x254
ret
Function at 0x4077d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x8c], eax
push 0x7f
lea eax, [esp + 0x11]
push 0
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
call fcn.00418350
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetControlCOM_Name_Arbiter
push 0x80000002
mov dword [esp + 0x18], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.ComDB
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407860
push eax
push str.RegQueryValueEx_errorcode:__d
call fcn.00404950
add esp, 8
movzx eax, byte [esp + 0x15]
movzx ecx, byte [esp + 0x14]
movzx edx, byte [esp + 0x13]
push eax
movzx eax, byte [esp + 0x16]
push ecx
movzx ecx, byte [esp + 0x19]
push edx
movzx edx, byte [esp + 0x1c]
push eax
movzx eax, byte [esp + 0x1f]
push ecx
movzx ecx, byte [esp + 0x22]
push edx
movzx edx, byte [esp + 0x25]
push eax
movzx eax, byte [esp + 0x28]
push ecx
push edx
push eax
push str.ComDB_before_install:__d__d__d__d__d__d__d__d__d__d_n
call fcn.00404950
mov ecx, dword [esp + 0xb8]
add esp, 0x2c
xor ecx, esp
xor eax, eax
call fcn.00417b3b
add esp, 0x90
ret
Function at 0x4078c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42b3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
xor edi, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], edi
call fcn.004045f0
add esp, 4
test al, al
jne 0x40793b
cmp dword [esp + 0x30], 0x10
jb 0x407ab0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040eec8
add esp, 4
jmp 0x407ab0
mov eax, dword [esp + 0x2c]
cmp eax, 0x104
jbe 0x407971
push eax
push str._s_GetModulePath_err_len:_d_n
call fcn.00404950
add esp, 8
cmp dword [esp + 0x30], 0x10
jb 0x407ab0
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040eec8
add esp, 4
jmp 0x407ab0
push 0x104
push edi
push esi
call fcn.00418350
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
add esp, 0xc
cmp ebp, 0x10
mov edx, ebx
jae 0x407993
lea edx, [esp + 0x1c]
cmp edx, edi
mov dword [esp + 0x14], edi
je 0x4079b3
lea edi, [esp + 0x14]
mov ecx, 0x104
call fcn.00401c40
test eax, eax
jl 0x4079b8
mov ecx, dword [esp + 0x14]
jmp 0x4079ba
mov eax, 0x80070057
xor ecx, ecx
test eax, eax
je 0x4079d9
cmp ecx, 0x102
jbe 0x4079d9
lea ecx, [esp + 0x18]
call fcn.004031e0
mov eax, 0x4e2e
jmp 0x407ab5
cmp ebp, 0x10
mov eax, ebx
jae 0x4079e4
lea eax, [esp + 0x1c]
add ecx, 1
cmp ecx, 0x7ffffffe
jbe 0x407a05
lea ecx, [esp + 0x18]
mov byte [esi], 0
call fcn.004031e0
mov eax, 0x4e2e
jmp 0x407ab5
push ecx
push 0
mov ecx, 0x104
mov edx, esi
call fcn.00401c80
test eax, eax
jne 0x4079c6
call fcn.00404ec0
test eax, eax
lea edi, [esp + 0x14]
mov ecx, 0x104
mov edx, esi
je 0x407a4a
call fcn.00401c40
test eax, eax
jl 0x407aa7
mov eax, dword [esp + 0x14]
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.DriverX64
jmp 0x407a66
call fcn.00401c40
test eax, eax
jl 0x407aa7
mov eax, dword [esp + 0x14]
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + esi]
mov eax, str.DriverX86
push 0xb
push 0
call fcn.00401c80
test eax, eax
jne 0x407aa7
push esi
push str.Info:_Driver_path:_s_n
call fcn.00404950
add esp, 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x407a9a
lea ecx, [esp + 0x18]
call fcn.004031e0
xor eax, eax
jmp 0x407ab5
push str.Error_:_Driver_path_is_not_founded._n
call fcn.00404950
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004031e0
mov eax, 0x4e25
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00417b3b
add esp, 0x30
ret
Function at 0x40d1e0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x40d1f8
mov eax, 0x4e25
pop esi
ret
push esi
call fcn.0040b3f0
mov eax, dword [0x44b104]
push eax
push 0x44b108
push esi
call fcn.00407ed0
mov ecx, dword [0x44b0f8]
push ecx
push 0x443cf8
push esi
call fcn.00407ed0
add esp, 0x1c
xor eax, eax
pop esi
ret