joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011cf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x14]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.softwarehewlett_packardhp_software_update
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401296
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
push 4
pop edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push str.ndays
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push str.notify
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push str.never
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push str.ConnectRetries
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push str.WelcomeDisplayed
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push str.LastRun
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40356f
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x451931
call fcn.00438e7f
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403625
push 0x17
xor esi, esi
push esi
push str.HPRulesEngine.ContentCollection
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call fcn.00403016
cmp dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
je 0x403611
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401906
push 1
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401bf0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004017cf
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402598
mov ecx, dword [ebp + 0xc]
push 1
push dword [ebp - 0x14]
call fcn.00418ce9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
call fcn.00418846
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x403611
call fcn.00401c0f
mov dword [ebp - 0x18], esi
jmp 0x403611
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x403622
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
call fcn.00438f24
ret
Function at 0x403959
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4039b3
cmp dword [ebp + 0x10], 1
je 0x403998
cmp dword [ebp + 0x10], 2
je 0x403998
push 0xd
pop eax
jmp 0x4039b3
test edi, edi
mov eax, dword [ebp - 4]
je 0x4039af
test eax, eax
je 0x4039ac
cmp byte [eax + edi - 1], 0
je 0x4039af
jmp 0x403993
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x405783
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00439720
push 0xffffffffffffffff
push 0x451d75
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x100c]
mov dword [ebp - 0x14], esi
call fcn.00421c04
push eax
lea ecx, [ebp - 0x10]
call fcn.00404d81
push 0x1000
lea eax, [ebp]
push eax
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov byte [ebp], bl
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x405825
lea eax, [ebp]
push eax
call fcn.00405733
cmp eax, ebx
pop ecx
je 0x405825
movzx ecx, word [0x46d198]
push ecx
push eax
push dword [0x47065c]
lea ecx, [ebp - 0x10]
call fcn.0040421c
test eax, eax
je 0x405825
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
push ebx
push ebx
push ebx
push esi
jmp 0x405881
push 0x1000
lea eax, [ebp]
push eax
push esi
mov byte [ebp], bl
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40587b
lea eax, [ebp]
push eax
call fcn.00405733
cmp eax, ebx
pop ecx
je 0x40587b
movzx ecx, word [0x46d198]
push ecx
push eax
push dword [0x47065c]
lea ecx, [ebp - 0x10]
call fcn.0040421c
test eax, eax
je 0x40587b
push dword [ebp - 0x10]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push ebx
push esi
push dword [ebp - 0x14]
call edi
mov esi, eax
cmp esi, ebx
jne 0x405831
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00438e3d
add ebp, 0x1004
leave
ret
Function at 0x4069a4
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x1ab0], ebp
je 0x4069b9
xor eax, eax
jmp 0x406a5c
mov edx, dword [esi + 0x1258]
mov eax, dword [edx - 0xc]
mov ecx, eax
neg ecx
sbb ecx, ecx
push ebp
and ecx, edx
neg eax
push ebp
sbb eax, eax
push ecx
and eax, 3
push eax
push str.VCSoapClient
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebp
mov dword [esi + 0x1aac], eax
je 0x406a50
push ebx
lea ebx, [esi + 0x125c]
cmp dword [ebx], ebp
je 0x406a1f
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
push ebx
push 2
push eax
call edi
push 4
push ebx
push 6
push dword [esi + 0x1aac]
call edi
push 4
push ebx
push 5
push dword [esi + 0x1aac]
call edi
pop edi
movzx eax, word [esi + 0x122a]
push ebp
push 0x200
push 3
push ebp
push ebp
push eax
lea eax, [esi + 0x25]
push eax
push dword [esi + 0x1aac]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebp
mov dword [esi + 0x1ab0], eax
pop ebx
jne 0x4069b2
mov ecx, esi
call fcn.00405fea
mov eax, 0x80004005
pop esi
pop ebp
ret

Function at 0x40746f
Capabilities:
Send data
Send http request

Disassembly:
push 4
mov eax, 0x451e7f
call fcn.00438e4c
mov esi, ecx
call fcn.004069a4
test eax, eax
je 0x407495
mov dword [esi + 0x1aa8], 4
jmp 0x4075c6
movzx eax, word [esi + 0x122a]
mov ecx, dword [esi + 0x126c]
sub ax, 0x1bb
xor ebx, ebx
neg ax
push ebx
sbb eax, eax
and eax, 0xff800000
add eax, 0x800000
or eax, 0x200
push eax
push 0x46d674
push ebx
push str.HTTP_1.0
push ecx
push str.POST
push dword [esi + 0x1ab0]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0x1ab4], eax
je 0x4075bc
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_text_xml
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [esi + 0x124c]
push dword [eax - 0xc]
push eax
push dword [ebp + 8]
call fcn.00438990
pop ecx
push eax
push dword [ebp + 8]
push dword [esi + 0x1ab4]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4075c6
mov eax, dword [esi + 0x1ab4]
mov ecx, esi
mov dword [esi + 0x1254], eax
call fcn.0040604b
cmp eax, 0x1f4
je 0x407548
xor eax, eax
jmp 0x4075cb
mov dword [esi + 0x1aa8], 7
mov dword [ebp + 8], ebx
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax]
test eax, eax
jl 0x4075a9
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040602f
test eax, eax
mov edi, dword [ebp - 0x10]
jl 0x40759c
push dword [ebp + 8]
lea ecx, [esi + 0x1ab8]
push edi
call fcn.0040713c
test eax, eax
jge 0x40759c
mov dword [esi + 0x1aa8], 8
cmp edi, ebx
mov byte [ebp - 4], bl
je 0x4075a9
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4075c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4075c6
mov dword [esi + 0x1aa8], 5
mov eax, 0x80004005
call fcn.00438f24
ret 4
Function at 0x408feb
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
sub esp, 0x348
lea ebp, [esp - 4]
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0x348], eax
push 8
mov eax, 0x452107
call fcn.00438e4c
push 0x104
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp + 0x244]
push eax
lea eax, [ebp + 0x140]
push str._sMicrosoft.NETFramework_v
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 0x14], 0
add esp, 0xc
and dword [ebp - 4], 0
push 0x458f50
lea ecx, [ebp - 0x10]
call fcn.00401953
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4090aa
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402468
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401a07
test eax, eax
jle 0x40909b
lea ecx, [ebp - 0x14]
call fcn.00408688
push eax
lea ecx, [ebp - 0x10]
call fcn.004024d6
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40906e
lea ecx, [ebp - 0x10]
call fcn.00408688
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov esi, eax
je 0x4090c0
call fcn.00401c0f
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4090cc
call fcn.00401c0f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x348]
xor ecx, ebp
call fcn.00438e3d
add ebp, 0x34c
leave
ret
Function at 0x40fd51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 0x105], bl
push esi
je 0x40fdbd
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fd86
xor al, al
jmp 0x40fdbf
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40fdb7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd82
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x410301
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x410354
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x41036a
push 0x80004005
call fcn.00401510
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41036d
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x41087c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00403924
mov edi, eax
cmp edi, esi
je 0x4108e4
lea ecx, [ebp - 0x70]
call fcn.0040390d
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438e3d
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4108fc
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041087c
cmp eax, esi
jne 0x41092f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4108ec
lea ecx, [ebp - 0x70]
call fcn.0040390d
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040390d
mov eax, esi
jmp 0x4108ca
Function at 0x411968
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x24
mov eax, 0x4527a1
call fcn.00438e7f
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x4705a0]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x411a22
push esi
call dword [0x4705ec]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404a44
add esp, 0xc
test eax, eax
jl 0x411a22
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x411a0a
push edi
call fcn.00404bfb
test al, al
pop ecx
je 0x411a0a
mov eax, edi
call fcn.00439070
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x411a13
push edi
lea ecx, [ebp - 0x20]
call fcn.00404d3a
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.004059c9
cmp eax, ebx
jne 0x411a67
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x411a32
lea ecx, [ebp]
call fcn.00410852
lea ecx, [ebp - 0x20]
call fcn.00404bbd
mov eax, 0x8007000e
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00438e3d
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x411a86
call fcn.004101d8
mov esi, eax
jmp 0x411b58
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x411aa3
call fcn.004101d8
jmp 0x411b4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x411a99
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x411aea
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x411ad6
lea ecx, [ebp]
call fcn.00410852
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00404bbd
mov eax, esi
jmp 0x411a3f
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00410d29
mov dword [ebp - 4], 1
jmp 0x411b1a
cmp dword [ebp], ebx
jne 0x411b26
mov esi, 0x8007000e
jmp 0x411b4f
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.004037ca
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.00411849
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x411adb
lea ecx, [ebp]
call fcn.00410852
jmp 0x411adb
Function at 0x415710
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x452e34
call fcn.00438e4c
mov ebx, ecx
call fcn.00421c04
push eax
lea ecx, [ebp - 0x18]
call fcn.00404d81
lea esi, [ebx + 0x114]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00416006
push dword [eax + 8]
mov ecx, ebx
push dword [esi]
call fcn.00413c1b
cmp dword [ebp + 0xc], 9
jne 0x415883
call fcn.00421c04
push eax
lea ecx, [ebp - 0x10]
call fcn.00404d81
movzx eax, word [0x46d198]
push eax
push 0x8e
push dword [0x47065c]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040421c
call fcn.00421c04
push eax
lea ecx, [ebp + 0xc]
call fcn.00404d81
movzx eax, word [0x46d198]
push eax
push 0xd5
push dword [0x47065c]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040421c
call fcn.00421c04
push eax
lea ecx, [ebp - 0x14]
call fcn.00404d81
movzx eax, word [0x46d198]
push eax
push 0xd6
push dword [0x47065c]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040421c
push 0x45b048
lea ecx, [ebp + 0xc]
call fcn.004043c1
mov edi, dword [ebp - 0x14]
push dword [edi - 0xc]
lea ecx, [ebp + 0xc]
push edi
call fcn.00404279
push dword [ebx + 0x26c]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0041c850
cmp eax, 6
jne 0x415848
call fcn.00416c4e
mov ecx, esi
call fcn.00416b61
call fcn.00409307
call fcn.00419478
lea ecx, [edi - 0x10]
call fcn.00401740
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401740
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401740
jmp 0x415925
mov ecx, esi
call fcn.00416006
push 8
pop ecx
push ecx
mov dword [eax + 8], ecx
push dword [esi]
mov ecx, ebx
call fcn.00413c1b
lea ecx, [edi - 0x10]
call fcn.00401740
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401740
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401740
jmp 0x4158ef
cmp dword [ebp + 0xc], 7
jne 0x4158a7
mov ecx, esi
call fcn.00416006
push 8
pop ecx
push ecx
mov dword [eax + 8], ecx
push dword [esi]
mov ecx, ebx
call fcn.00413c1b
mov byte [ebx + 0x268], 1
mov ecx, esi
call fcn.00416006
mov ecx, eax
add ecx, 0x14
call fcn.00415fec
test eax, eax
jbe 0x4158ef
push edi
mov ecx, esi
call fcn.00416006
mov ecx, eax
add ecx, 0x14
call fcn.00415ff1
add eax, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
inc edi
call fcn.00416006
mov ecx, eax
add ecx, 0x14
call fcn.00415fec
cmp edi, eax
jb 0x4158bc
mov ecx, esi
call fcn.00416006
push dword [eax + 8]
mov ecx, esi
call fcn.00416006
push dword [eax + 0x2c]
call fcn.0040ed9e
inc dword [esi]
pop ecx
pop ecx
mov ecx, esi
call fcn.00415ff6
cmp dword [esi], eax
mov ecx, ebx
jae 0x415920
call fcn.004145cb
jmp 0x415925
call fcn.00414115
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401740
xor eax, eax
call fcn.00438f24
ret 8
Function at 0x4170cf
Capabilities:
Check if file exists

Disassembly:
push 0x2c
mov eax, 0x453090
call fcn.00438e4c
mov dword [ebp - 0x24], ecx
call fcn.004198e8
push eax
lea ecx, [ebp - 0x18]
call fcn.00401953
and dword [ebp - 4], 0
push str.Contents.dat
lea ecx, [ebp - 0x1c]
call fcn.00401906
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040253f
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov byte [ebp - 4], 0
je 0x41711d
call fcn.00401c0f
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x41712d
mov ecx, esi
call fcn.0040141a
jmp 0x41712f
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41714c
test esi, esi
je 0x417145
mov ecx, esi
call fcn.00401c0f
xor al, al
jmp 0x41726c
push 0x17
push 0
push str.HPRulesEngine.ContentCollection
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 0
call fcn.00403016
cmp dword [ebp - 0x14], 0
je 0x41724c
xor esi, esi
inc esi
push esi
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00401bf0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004017cf
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402598
lea ecx, [ebp - 0x14]
call fcn.004017cf
mov ecx, eax
call fcn.004015b4
cmp eax, esi
mov dword [ebp - 0x28], eax
jl 0x41724c
push esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call fcn.004017cf
mov ecx, eax
call fcn.00415d19
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00416de7
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004017cf
mov ecx, eax
call fcn.004167bd
mov eax, dword [eax]
test eax, eax
je 0x4171fb
mov eax, dword [eax]
jmp 0x4171fd
xor eax, eax
push eax
call fcn.0043aec6
pop ecx
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x2c], eax
mov ecx, dword [ebp - 0x20]
sete bl
test ecx, ecx
je 0x41721d
call fcn.00401c0f
and dword [ebp - 0x20], 0
test bl, bl
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
jne 0x41723e
test eax, eax
je 0x417232
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
cmp esi, dword [ebp - 0x28]
jle 0x4171af
jmp 0x41724c
test eax, eax
mov byte [ebp - 0xd], 1
je 0x41724c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x41725d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x417269
call fcn.00401c0f
mov al, byte [ebp - 0xd]
call fcn.00438f24
ret
Function at 0x419383
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00439d20
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4193d1
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
je 0x4193f6
mov eax, dword [ebp - 0x18]
dec eax
je 0x4193da
dec eax
jmp 0x4193f6
cmp dword [ebp - 0x24], 4
jne 0x4193f6
cmp dword [ebp - 0x20], 0
jne 0x4193ea
mov al, 1
jmp 0x4193f8
cmp dword [ebp - 0x20], 0xa
je 0x4193e6
cmp dword [ebp - 0x20], 0x5a
je 0x4193e6
xor al, al
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.00438e3d
add ebp, 0x78
leave
ret
Function at 0x419478
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xd0]
sub esp, 0x150
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0xcc], eax
push ebx
push edi
lea eax, [ebp - 0x68]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x7c]
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x80]
push eax
push edi
push dword [ebp - 0x68]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x74], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x70], ebx
jne 0x4194f7
xor eax, eax
jmp 0x4195ef
push esi
mov esi, dword [0x4705d4]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov dword [ebp - 0x60], eax
call esi
push str.Process32Next
push ebx
mov dword [ebp - 0x64], eax
call esi
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x4195e5
cmp dword [ebp - 0x64], edi
je 0x4195e5
cmp dword [ebp - 0x60], edi
je 0x4195e5
push edi
push 2
call dword [ebp - 0x60]
cmp eax, 0xffffffff
mov dword [ebp - 0x60], eax
je 0x4195e5
lea ecx, [ebp - 0x5c]
push ecx
push eax
mov dword [ebp - 0x5c], 0x128
call dword [ebp - 0x64]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4195ce
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
call fcn.00419383
test al, al
je 0x4195b6
cmp ebx, edi
je 0x4195b6
dec ebx
cmp byte [ebp + ebx - 0x38], 0x5c
jne 0x41957d
lea eax, [ebp + ebx - 0x37]
push eax
push str.explorer.exe
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4195b6
push dword [ebp - 0x54]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x5c], 0x128
call dword [ebp - 0x6c]
test eax, eax
jne 0x419564
mov ebx, dword [ebp - 0x70]
push dword [ebp - 0x60]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4195ee
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
mov ecx, dword [ebp + 0xcc]
pop edi
xor ecx, ebp
pop ebx
call fcn.00438e3d
add ebp, 0xd0
leave
ret