joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb90
Capabilities:
Modify service

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebp, eax
test ebp, ebp
jne 0x40cbab
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [esp + 0x18]
push edi
push 2
push ebx
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40cbcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40cc23
cmp dword [esp + 0x18], edi
je 0x40cbda
mov eax, 4
jmp 0x40cbe5
mov eax, dword [esp + 0x20]
neg eax
sbb eax, eax
add eax, 3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x40cc23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str.ChangeServiceConfig_failed_for__s_n
push 0x400
push 0x4932a8
mov edi, eax
call fcn.00401300
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40cc40
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
push ebx
mov dword [esp + 0x18], eax
call ebp
mov eax, dword [esp + 0x20]
cmp dword [esi + 4], eax
jne 0x40cca1
lea esp, [esp]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ebx
call ebp
test eax, eax
je 0x40ccf9
mov edx, dword [esp + 0x24]
cmp dword [esi + 4], edx
je 0x40ccb9
call edi
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
ja 0x40ccd7
mov eax, dword [esp + 0x20]
cmp dword [esi + 4], eax
je 0x40cc70
call edi
mov eax, dword [esi + 4]
sub eax, dword [esp + 0x24]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0x5b4
pop ebx
pop ecx
ret
push str._Service_successfully_transitioned.
push 1
push 0x4932a8
call fcn.00401300
add esp, 0xc
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push str.Service_attempting_to_start_stop.__Service_found_to_be_pending_a_stop_event_and_timed_out_waiting_for_the_service_to_start_stop.
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x5b4
pop ebx
pop ecx
ret
push str.Service_attempting_transition.__Service_found_to_be_pending_a_start_stop_event_and_QueryServiceStatus_failed.
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x40cd20
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x30]
push 0xbc
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
push edi
jne 0x40cd60
push str.OpenService_failed_for__s___not_found.
push 0x10
push 0x4932a8
call fcn.00401300
add esp, 0x10
pop edi
mov eax, 0x424
pop esi
add esp, 0x1c
ret
push str.StartOrStopService:_Found_servie__s._n
push 1
push 0x4932a8
call fcn.00401300
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40ce25
cmp dword [esp + 0x2c], 0
je 0x40cde4
cmp dword [esp + 0xc], 4
je 0x40cdca
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40cdca
push edi
push str.StartService_failed_for__s._n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x10
mov esi, 0x435
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret
push 4
push 2
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0040cc40
add esp, 0x10
pop edi
mov esi, eax
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0xc], 1
je 0x40ce0b
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40ce0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push str._s_Service_attempting_to_stop.__ControlService_with_SERVICE_CONTROL_STOP_failed._n
jmp 0x40ce31
push 1
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.0040cc40
add esp, 0x10
pop edi
mov esi, eax
pop esi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push str.QueryServiceStatus_failed_for__s._n
push 0x400
push 0x4932a8
mov esi, eax
call fcn.00401300
add esp, 0x10
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x40e8fb
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
push str.CFileIssue::ResolveIssue___n
push 2
push 0x4932a8
mov esi, ecx
call fcn.00401300
mov edx, dword [esi + 0xe8]
mov ecx, dword [esi + 0x100]
add esp, 0xc
mov eax, edx
neg eax
sbb eax, eax
and eax, 9
cmp ecx, 3
jne 0x40e969
test edx, edx
je 0x40ea41
cmp dword [esp + 0xc], 0
jne 0x40e8d1
cmp dword [esi + 0xf8], ecx
jne 0x40ea41
cmp dword [esi + 0x1c0], 0x10
jb 0x40e8e2
mov edi, dword [esi + 0x1ac]
jmp 0x40e8e8
lea edi, [esi + 0x1ac]
push edi
call fcn.00420c92
add esp, 4
test eax, eax
je 0x40e943
push edi
push str.Created_folder__s_n
push 1
push 0x4932a8
call fcn.00401300
add esp, 0x10
cmp dword [esi + 0x1c4], 0
je 0x40e962
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40e962
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_set_the_hidden_attribute_for__s___error_d_n
push 1
push 0x4932a8
call fcn.00401300
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_create_folder__s___error__d_n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret 4
test ecx, ecx
je 0x40e976
cmp ecx, 1
jne 0x40ea41
cmp dword [esi + 0xf8], 0
je 0x40ea41
push ebx
push esi
push 0x40e180
mov ecx, 0x4a2fdc
call fcn.0040a940
test eax, eax
je 0x40ea2f
mov dword [esi + 0x1d0], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x1cc]
mov dword [esi + 0x1d4], eax
mov eax, dword [esi + 0x1c8]
push eax
push ecx
lea edi, [esi + 0x1a8]
push edi
lea edx, [esi + 0x1d8]
push edx
mov ecx, 0x4a2fdc
call fcn.0040c980
test eax, eax
je 0x40e9f0
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
xor ebx, ebx
push ebx
mov ecx, esi
call edx
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
cmp dword [edi + 0x18], 0x10
mov ebx, 9
jb 0x40ea00
mov edi, dword [edi + 4]
jmp 0x40ea03
add edi, 4
push 9
push edi
push str.Cannot_set_Access_to_Folder__s_error___d_n
push 0x400
push 0x4932a8
call fcn.00401300
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
add esp, 0x14
push ebx
mov ecx, esi
call edx
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ebx, 9
push ebx
mov ecx, esi
call edx
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
Function at 0x40edf4
Capabilities:
Delete registry key

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0xe8], ebp
mov eax, 9
je 0x40efc0
cmp dword [esp + 0x18], ebp
jne 0x40ee1d
cmp dword [esi + 0xf8], 3
jne 0x40efc0
cmp dword [esi + 0x1f4], ebp
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x1c], ebp
jne 0x40ee32
xor eax, eax
jmp 0x40ee87
mov edx, dword [esi + 0x1f8]
cmp edx, 0x10
lea edi, [esi + 0x1e0]
push ebx
lea eax, [edi + 4]
jb 0x40ee4b
mov ebx, dword [eax]
jmp 0x40ee4d
mov ebx, eax
cmp ebx, ebp
je 0x40ee70
cmp edx, 0x10
jb 0x40ee5a
mov ecx, dword [eax]
jmp 0x40ee5c
mov ecx, eax
cmp ecx, ebx
ja 0x40ee70
cmp edx, 0x10
jb 0x40ee67
mov eax, dword [eax]
mov ecx, dword [edi + 0x14]
add ecx, eax
cmp ebx, ecx
jbe 0x40ee75
call fcn.00453b27
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
call fcn.00405790
pop ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xec]
push eax
call fcn.00405500
mov edi, eax
cmp edi, ebp
jne 0x40efb3
mov eax, dword [esi + 0x100]
cmp eax, 3
ja case.default.0x40eeb6
jmp dword [eax*4 + 0x40efc8]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, eax
jmp 0x40efb3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push edx
push eax
mov dword [esp + 0x34], ebp
call fcn.0042b201
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 0x24
cmp eax, ebp
je 0x40efb3
push eax
call fcn.0042b427
add esp, 4
jmp 0x40efb3
push esi
push 0x40e160
mov ecx, 0x4a2fdc
call fcn.0040a940
test eax, eax
je 0x40efa6
mov dword [esi + 0x244], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x23c], ebp
mov dword [esi + 0x248], eax
jne 0x40ef67
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, 0x4a2fdc
call fcn.0040a710
test eax, eax
jne 0x40ef63
cmp dword [esi + 0x238], ebp
jne 0x40ef67
xor eax, eax
jmp 0x40ef6c
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0x234]
push 1
push eax
push ecx
push edx
lea eax, [esi + 0x258]
push eax
mov ecx, 0x4a2fdc
call fcn.0040c790
test eax, eax
je 0x40efa6
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test eax, eax
jne 0x40efa6
xor edi, edi
jmp 0x40efb3
mov edi, 9
jmp 0x40efb3
mov dword [esi + 0xf8], ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push edi
mov ecx, esi
call eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x40f550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bd78
mov eax, dword fs:[0]
push eax
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
jae 0x40f587
lea eax, [esp + 0x1c]
push eax
push str.CIssueGroup::Load__s__n
push 0x42
push 0x4932a8
call fcn.00401300
push str.CIssueGroup::Load___n
push 4
push 0x4932a8
call fcn.00401300
add esp, 0x1c
cmp dword [esp + 0x30], 0x10
jb 0x40f5c1
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042f9ca
add esp, 4
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20
Function at 0x410290
Capabilities:
Query service configuration
Query service status

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
mov edi, 0x10
cmp dword [esi + 0x1c0], edi
jb 0x4102ac
mov eax, dword [esi + 0x1ac]
jmp 0x4102b2
lea eax, [esi + 0x1ac]
push eax
push str.CSystemIssue::IsPresent__s__n
push 2
push 0x4932a8
call fcn.00401300
add esp, 0x10
cmp dword [esi + 0xf8], 4
jne 0x4102da
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 4
mov eax, dword [esi + 0x100]
cmp eax, 6
push ebp
mov dword [esi + 0xe8], 0
je 0x410378
cmp eax, 9
je 0x410378
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, dword [esp + 0x30]
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0x1000
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x410351
xor eax, eax
cmp dword [esi + 0x100], 7
jne 0x41033f
cmp dword [edi + 4], 4
setne al
mov dword [esi + 0xe8], eax
jmp 0x4103ff
cmp dword [edi + 4], 4
sete al
mov dword [esi + 0xe8], eax
jmp 0x4103ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceConfig_failed_with_errror_d
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x10
cmp dword [esi + 0x100], 8
jmp 0x4103f3
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4103b7
xor eax, eax
cmp dword [esi + 0x100], 6
jne 0x4103a7
cmp dword [esp + 0x14], 4
setne al
mov dword [esi + 0xe8], eax
jmp 0x4103ff
cmp dword [esp + 0x14], 1
setne al
mov dword [esi + 0xe8], eax
jmp 0x4103ff
cmp dword [esi + 0x1c0], edi
jb 0x4103c7
mov edi, dword [esi + 0x1ac]
jmp 0x4103cd
lea edi, [esi + 0x1ac]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.QueryServiceStatus_failed_for_service__s_with_error_d
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x14
cmp dword [esi + 0x100], 6
jne 0x4103ff
mov dword [esi + 0xe8], 1
cmp dword [esi + 0xe8], 0
je 0x41045f
cmp dword [esi + 0x1d8], 0
jne 0x41045f
push 0x1000
mov dword [esp + 0x34], 0
call fcn.0042f9cf
mov edi, eax
add esp, 4
test edi, edi
je 0x41045f
lea edx, [esp + 0x30]
push edx
push 0x1000
push edi
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
je 0x410456
mov eax, dword [edi]
test eax, eax
je 0x410456
push eax
lea ecx, [esi + 0x1c4]
call fcn.00404200
push edi
call fcn.0042f9ca
add esp, 4
push str.CSystemIssue::IsPresent___n
push 4
push 0x4932a8
call fcn.00401300
mov eax, dword [esi + 0xe8]
add esp, 0xc
pop ebp
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x415d10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46c58b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
mov dword [esi], vtable.CIssueGroup.0
call fcn.00414680
mov ecx, dword [edi + 0x10]
xor eax, eax
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push eax
lea edx, [edi + 0x14]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
push edx
mov dword [esp + 0x24], eax
mov byte [ecx + 4], al
call fcn.00403cf0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x41b840
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.CShieldPlugIn::ProcessCommandLine__s__n
push 2
push 0x4932a8
call fcn.00401300
add esp, 0x10
cmp dword [esi + 0x14c], 0
jne 0x41b892
cmp dword [esi + 0x110], 0
jne 0x41b892
push str.Shield_plug_in_requires_a_section_name_to_run___
push 8
push 0x4932a8
call fcn.00401300
add esp, 0xc
mov dword [esi + 0xa4], 0x57
xor eax, eax
pop esi
ret
push str.CShieldPlugIn::ProcessCommandLine___n
push 4
push 0x4932a8
call fcn.00401300
add esp, 0xc
mov eax, 1
pop esi
ret
Function at 0x41d800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x118
mov eax, dword [0x491d88]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
mov esi, dword [esp + 0x124]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x24], bl
call fcn.004530b0
add esp, 0xc
push esi
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x473048
push str.DriverVer
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41d919
push esi
lea edx, [esp + 0x1c]
push edx
push str.Read_DriverVer_s_from__s
push 0x20
push 0x4932a8
call fcn.00401300
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push str._d__d__d___d._d._d._d
push ecx
call fcn.00454474
add esp, 0x2c
cmp eax, 4
je 0x41d938
push str.Error_reading_DriverVer_in_normal_method
push 0x20
push 0x4932a8
call fcn.00401300
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push str._d._d._d._d
push eax
call fcn.00454474
add esp, 0x24
cmp eax, 4
jge 0x41d938
push str.Error_getting_DriverVer_from_the_DAT_file
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
jmp 0x41d938
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_get_DriverVer_from__s._GetLastError___d
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x14
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0xc]
mov edx, 0x10000
mul edx
push ebx
xor esi, esi
add ecx, eax
push 0x10000
adc esi, edx
push esi
push ecx
call fcn.00455650
movzx ecx, word [esp + 8]
push ebx
xor esi, esi
add eax, ecx
push 0x10000
adc edx, esi
push edx
push eax
call fcn.00455650
movzx ecx, word [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x11c]
adc edx, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0045309e
add esp, 0x118
ret
Function at 0x4207c4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x491d88]
xor eax, ebp
mov dword [ebp + 0x120], eax
call fcn.0042a022
test eax, eax
je 0x4207f0
xor eax, eax
inc eax
jmp 0x42093c
lea eax, [ebp - 0x60]
push ebx
xor ebx, ebx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x7c]
push eax
push 8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 0x67], bl
mov byte [ebp - 0x66], bl
mov byte [ebp - 0x65], bl
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x63], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42093b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push ebx
push 2
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x420859
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x420859
xor eax, eax
jmp 0x42093a
push edi
push dword [ebp - 0x6c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
push edi
push 2
push dword [ebp - 0x7c]
call esi
test eax, eax
je 0x420951
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x420951
cmp dword [edi], ebx
mov dword [ebp - 0x74], ebx
jbe 0x420921
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x420914
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xa0]
push eax
mov dword [ebp - 0x6c], 0x80
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x42090d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x420951
push str.NONE_MAPPED
lea eax, [ebp + 0xa0]
push 0x80
push eax
call fcn.004542fb
add esp, 0xc
mov dword [ebp - 0x78], 1
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add esi, 8
cmp eax, dword [edi]
jb 0x4208ad
cmp dword [ebp - 0x70], ebx
je 0x42092f
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0045309e
add ebp, 0x124
leave
ret
xor eax, eax
jmp 0x420939
Function at 0x420bd8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
call fcn.0042a004
test eax, eax
je 0x420bf2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop ebp
ret
push edi
push dword [ebp + 0xc]
push str.HPInstallerTemp
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirA]
mov edi, eax
test edi, edi
je 0x420c35
push edi
push str.Could_not_get_temp_path_____hr_d
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x420c47
push dword [ebp + 0xc]
call fcn.004051f0
push dword [ebp + 0xc]
call fcn.00456310
pop ecx
pop ecx
pop edi
pop ebp
ret
Function at 0x42514a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x425199
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ab09
push eax
push str.GetFileVersionInfoSize_failed_with__s_n
push 0x80
push 0x4932a8
call fcn.00401300
add esp, 0x14
xor eax, eax
xor edx, edx
jmp 0x42525b
push eax
call fcn.0042f9cf
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x4251ba
push str.Can_not_allocate_memory._n
push 0x4932a8
call fcn.0041fb18
pop ecx
pop ecx
jmp 0x425190
push eax
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4251f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ab09
push eax
push str.GetFileVersionInfo_failed_with__s_n
push 0x4932a8
call fcn.0041fb18
push dword [ebp - 4]
call fcn.0042f9ca
jmp 0x42518d
push ebx
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x472e4c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x425231
cmp dword [ebp - 0xc], esi
je 0x425231
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edi
xor edi, edi
xor ecx, ecx
push ebx
or edi, eax
or esi, ecx
call fcn.0042f9ca
pop ecx
mov eax, edi
mov edx, esi
pop edi
jmp 0x42525a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ab09
push eax
push str.VerQueryValue_failed_with__s_n
push 0x4932a8
call fcn.0041fb18
push ebx
call fcn.0042f9ca
add esp, 0x14
xor eax, eax
xor edx, edx
pop ebx
pop esi
leave
ret
Function at 0x429e5a
Capabilities:
Check os version

Disassembly:
cmp dword [0x4a36b8], 0
jne 0x429eee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x4a36b8
push edi
mov dword [0x4a36b8], 0x9c
call esi
test eax, eax
jne 0x429e92
push edi
mov dword [0x4a36b8], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x429eca
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x429ec3
push 0x4a36b4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x4a36bc], 5
pop edi
pop esi
jne 0x429eee
cmp dword [0x4a36c0], 2
jne 0x429eee
xor eax, eax
inc eax
cmp byte [0x4a3752], al
jne 0x429eee
mov dword [0x4a36c0], eax
ret