joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481c45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
mov esi, eax
mov eax, dword [0x5289f4]
push edi
mov ecx, 0x5289f4
call dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push eax
push ecx
xor edi, edi
push edi
call fcn.00447b28
push edi
mov ebx, eax
call fcn.0049b046
add esp, 0x10
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
movzx eax, word [esi + 0x2c]
push edx
push dword [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str._s_d__x__x__x.ich
push eax
call fcn.0041e84b
mov ebx, dword [esi + 0x18]
mov esi, dword [esi + 0x10]
add esp, 0x1c
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x481d0a
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x481cf9
cmp dword [ebp + 8], ebx
jne 0x481cf9
mov dword [ebp - 8], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], edi
je 0x481d0a
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4828f3
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5289f4]
push ebx
push esi
mov esi, 0x5289f4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x5289f4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.00489fb3
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x48295e
lea eax, [ebp - 0xc]
call fcn.00489e97
call fcn.00402073
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push str.kxetray.exe
lea eax, [ebp - 4]
push eax
call fcn.00405529
push 0x4fa090
lea eax, [ebp - 8]
push eax
call fcn.00401b57
mov edi, dword [ebp - 4]
push dword [edi - 0xc]
lea eax, [ebp - 8]
push edi
call fcn.0040cf49
push str.___autorun
lea eax, [ebp - 8]
push eax
call fcn.00405529
mov eax, dword [0x5289f4]
mov ecx, esi
call dword [eax + 0xc]
and dword [ebp - 4], 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ebx, [eax + 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 4]
mov dword [ebp - 0xc], ebx
call fcn.00402281
test eax, eax
je 0x4829d6
lea eax, [ebp - 0xc]
push eax
push str.kxesc
mov ebx, esi
call fcn.00443344
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0
je 0x4829e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx - 0xc], 0
jne 0x4829f0
xor esi, esi
inc esi
jmp 0x482a04
push dword [ebp - 8]
push ebx
call fcn.00498ba9
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
and esi, 2
lea eax, [ebx - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4837f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and word [ebp - 0x214], 0
push esi
push edi
push 0x206
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.00497490
mov esi, dword [ebp + 8]
mov edi, 0x5289f4
add esp, 0xc
mov ecx, edi
call fcn.004016a6
mov eax, dword [0x5289f4]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x52a694]
add eax, 0xfffffff0
call fcn.0040164e
lea esi, [eax + 0x10]
push 0x4f9b24
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
call fcn.0041e85e
pop ecx
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [esi - 0x10]
call fcn.0040151c
mov esi, dword [ebp - 4]
push esi
push 0x208
lea eax, [ebp - 0x214]
push eax
push 0x5041c0
push str.TryNo
push 0x4f9858
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x4838af
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call fcn.00401b57
lea eax, [esi - 0x10]
call fcn.0040151c
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x483caa
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ecx, ecx
push ecx
push eax
push dword [edi + 4]
lea esi, [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
call fcn.00402281
test eax, eax
mov ebx, 0x52a8fc
je 0x483d73
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [edi + 0x1c], esi
je 0x483d43
cmp dword [eax - 0xc], esi
jne 0x483d2e
cmp dword [ebp - 4], esi
je 0x483cf7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 8]
mov dword [ebp - 4], esi
push dword [edi + 4]
mov esi, ebx
push str.DeleteSubKeyTree_root:_d__path:_ws
call fcn.0044cbdd
push dword [edi + 8]
push dword [edi + 4]
call fcn.0042502d
push eax
push str.DeleteSubKeyTree_return:_d
mov dword [ebp - 0xc], eax
call fcn.0044cbdd
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jmp 0x483d3f
cmp dword [ebp - 4], esi
je 0x483d73
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x483d73
jmp 0x483d6c
cmp dword [eax - 0xc], esi
je 0x483d6c
cmp dword [edi + 0x18], 4
jne 0x483d5c
push dword [edi + 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004202fa
jmp 0x483d68
push dword [edi + 0x10]
lea esi, [ebp - 4]
push eax
call fcn.00440beb
test eax, eax
je 0x483d73
mov dword [ebp - 8], 1
push dword [edi + 0x10]
mov esi, ebx
push dword [edi + 0xc]
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
push dword [edi + 0x1c]
push dword [ebp - 8]
push str.KExecReg_Run_Return:_d__delete:_d__root:0x_x__path:_ws__type:_d__name:_ws__value:_ws
call fcn.0044cbdd
add esp, 0x20
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x483da9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x483f6b
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x483f85
pop edi
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x483fb4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x483fd7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x483fb0
push esi
call ebx
xor esi, esi
jmp 0x483fab
Function at 0x483fde
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x484003
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x484050
push ebx
push esi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x48402a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x484076
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x484053
cmp dword [ebp - 0x1c], 4
jne 0x484053
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x48407c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x48404e
push ebx
call esi
jmp 0x484025

Function at 0x484081
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4840a6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4840cf
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x4840d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x48410a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x4840cd
push 6
mov dword [ebp - 0x24], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
rep stosd dword es:[edi], eax
jmp 0x484130
cmp dword [ebp - 0x20], 1
je 0x484144
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x484122
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 8]
jmp 0x4840c2
Function at 0x4844af
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5289f4]
and dword [ebp - 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x5289f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 4
add ebx, 4
pop ecx
mov eax, ebx
call fcn.00405492
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, edi
call fcn.0040538f
push 0x503ef8
mov eax, edi
push eax
call fcn.0040cf9a
test eax, eax
mov esi, 0x52a8fc
jne 0x484590
push dword [ebx]
lea edi, [ebp - 0x10]
call fcn.00423685
pop ecx
lea edi, [ebp - 0xc]
call fcn.00424abb
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x48457d
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.0040cf49
mov edi, dword [ebp - 0xc]
push 0
push edi
call fcn.004997a7
test eax, eax
pop ecx
pop ecx
jne 0x48457d
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
push eax
push dword [ebp - 0xc]
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.0044cbdd
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x48457d
mov dword [ebp - 8], 1
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebx]
push 0
push eax
call fcn.004997a7
test eax, eax
pop ecx
pop ecx
jne 0x4845c8
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebx]
push eax
push edi
push str.KExecFile_DeleteFile_return:_d__error:_d__path:_ws
call fcn.0044cbdd
add esp, 0x10
test edi, edi
jne 0x4845c8
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x484645
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0xc], ebx
call fcn.00442f27
cmp dword [esi + 4], ebx
mov dword [ebp - 8], eax
je 0x484716
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x18]
lea ecx, [ebp - 4]
call fcn.0041e789
cmp dword [ebp - 8], 8
mov edi, dword [ebp - 4]
pop ecx
je 0x484685
cmp dword [ebp - 8], 0xa
jne 0x48469b
cmp dword [esi + 8], ebx
je 0x48469b
push 5
push ebx
push ebx
push edi
push str.taskbarunpin
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], 0xffffffff
jne 0x4846c0
lea eax, [edi - 0x10]
call fcn.0040151c
jmp 0x4847b2
test byte [ebp - 8], 0x10
je 0x4846ee
push ebx
push ebx
push ebx
push ebx
push edi
call fcn.00424a75
push edi
push eax
push str.KExecLink_DeleteFolder_return:_d__path:_ws
mov esi, 0x52a8fc
mov dword [ebp - 4], eax
call fcn.0044cbdd
add esp, 0x20
cmp dword [ebp - 4], ebx
jne 0x48470e
jmp 0x4846b3
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push edi
mov ebx, eax
call esi
push eax
push ebx
push str.KExecLink_DeleteFile_return:_d__error:_d__path:_ws
mov esi, 0x52a8fc
call fcn.0044cbdd
add esp, 0x10
lea eax, [edi - 0x10]
jmp 0x4847a6
lea edi, [esi + 0x14]
lea ebx, [esi + 0x18]
push edi
mov eax, ebx
lea ecx, [ebp - 8]
call fcn.0041e789
lea eax, [ebp - 8]
call fcn.00423643
push dword [ebp - 8]
call fcn.004237ff
push edi
mov eax, ebx
lea ecx, [ebp - 0x10]
call fcn.0041e789
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call fcn.00425a47
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add esp, 0x18
add eax, 0xfffffff0
call fcn.0040151c
push edi
mov eax, ebx
lea ecx, [ebp - 0x14]
call fcn.0041e789
push dword [eax]
push dword [esi + 0xc]
push dword [esi + 0x10]
mov esi, 0x52a8fc
push dword [ebp - 4]
push str.KExecLink_CreateLink_return:_d__file:_ws__cmd:_ws__link:_ws
call fcn.0044cbdd
mov eax, dword [ebp - 0x14]
add esp, 0x18
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
cmp dword [ebp - 4], 0
je 0x4846b6
call fcn.0040151c
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x485faa
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5289f4]
and dword [ebp - 4], 0
push esi
push edi
mov ecx, 0x5289f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x52a694]
add eax, 0xfffffff0
call fcn.0040164e
mov esi, eax
push str.kxetray.exe
add esi, 0x10
push esi
lea eax, [ebp - 8]
push str.__s_s___autorun
push eax
call fcn.0041e84b
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.0040151c
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 4]
call fcn.00402281
mov edi, dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x486026
push edi
push str.kxesc
lea esi, [ebp - 4]
call fcn.00440beb
mov esi, eax
lea eax, [edi - 0x10]
call fcn.0040151c
cmp dword [ebp - 4], 0
je 0x48603d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x48631d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea eax, [ebx + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.00480078
test al, al
je 0x4863d1
call fcn.0044b9cc
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push eax
push 0x486462
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, dword [ebx + 0x68]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push esi
call fcn.00486d69
mov ecx, dword [ebx + 0x6c]
mov edx, 0x3fffffff
sub edx, ecx
cmp edx, 1
jb 0x4863a3
inc ecx
mov dword [ebx + 0x6c], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0xc]
mov dword [ecx], eax
call fcn.00486d3b
jmp 0x486336
push str.list_T__too_long
lea ecx, [ebp - 0x38]
call fcn.0040aad0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040ab99
push 0x518a0c
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::length_error.0
call fcn.004a0a66
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x486ac5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5289f4]
push ebx
push esi
push edi
mov ecx, 0x5289f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x52a694]
add eax, 0xfffffff0
call fcn.0040164e
mov esi, eax
add esi, 0x10
lea eax, [ebp - 8]
lea edi, [ebp - 4]
mov dword [ebp - 8], esi
call fcn.00402073
lea eax, [esi - 0x10]
call fcn.0040151c
mov esi, str.desktop.ini
push esi
mov eax, edi
lea ecx, [ebp - 8]
call fcn.0041e85e
mov eax, dword [eax]
mov dword [esp], 0x50925c
push eax
call fcn.0049e449
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040151c
test edi, edi
mov ebx, dword [ebp - 4]
jne 0x486b57
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ModifyFolderIcon__tfopen_fail__error:_d
mov esi, 0x52a8fc
call fcn.0044cbdd
pop ecx
jmp 0x486ba9
push str._.ShellClassInfo__n
push edi
call fcn.004a047c
push str.IconIndex0_n
push edi
call fcn.004a047c
push str.IconFilekxetray.exe_n
push edi
call fcn.004a047c
push esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041e85e
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
add esp, 0x1c
push 2
push dword [eax]
call esi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push 1
push ebx
call esi
push edi
call fcn.0049e785
pop ecx
lea eax, [ebx - 0x10]
call fcn.0040151c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x487186
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 8], 0
push esi
mov esi, eax
push edi
mov eax, str.configcoverinstall_serviceitem
call fcn.00447402
jmp 0x4871cb
push esi
call fcn.0048498f
test eax, eax
pop ecx
je 0x4871db
mov dword [eax + 4], 2
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00486cae
xor eax, eax
call fcn.004475fe
test eax, eax
jne 0x4871a3
mov eax, str.configcoverinstall_regitem
call fcn.00447402
jmp 0x48720d
push str.CreateExecService_fail
jmp 0x487363
push esi
call fcn.0048480f
test eax, eax
pop ecx
je 0x48721d
mov dword [eax + 0x1c], 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00486cae
xor eax, eax
call fcn.004475fe
test eax, eax
jne 0x4871e5
mov eax, str.configcoverinstall_fileitem
call fcn.00447402
jmp 0x48724c
push str.CreateExecReg_fail
jmp 0x487363
push esi
call fcn.00484c70
test eax, eax
pop ecx
je 0x487357
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [ebx + 0xc]
call fcn.00486cae
xor eax, eax
call fcn.004475fe
test eax, eax
jne 0x487227
mov eax, str.configinstalldesktopitem
call fcn.00447402
test eax, eax
je 0x4872ce
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00497490
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x19
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call fcn.00484d24
mov edi, eax
test edi, edi
pop ecx
je 0x48735e
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 4], 1
call fcn.00484e2f
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.00486cae
xor eax, eax
call fcn.004475fe
test eax, eax
jne 0x48728e
mov eax, str.configinstall_startmenuitem
call fcn.00447402
test eax, eax
je 0x487349
xor edi, edi
push 0x206
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00497490
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push edi
push 0x17
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
call fcn.00484d24
mov edi, eax
test edi, edi
pop ecx
je 0x48735e
lea eax, [ebp - 0x210]
push eax
mov eax, edi
mov dword [edi + 4], 1
call fcn.00484e2f
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea edi, [ebx + 0xc]
call fcn.00486cae
xor eax, eax
call fcn.004475fe
test eax, eax
jne 0x48730d
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
push str.CreateExecFile_fail
jmp 0x487363
push str.CreateExecLink_fail
mov esi, 0x52a8fc
call fcn.0044cbdd
pop ecx
jmp 0x487350
Function at 0x48752d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [eax + 0x34], esi
jne 0x487542
mov eax, 0x8200000b
jmp 0x4875b2
cmp dword [eax + 0x38], 8
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
mov dword [ebp - 4], esi
jb 0x48755e
mov eax, dword [eax + 0x24]
jmp 0x487561
add eax, 0x24
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4875b2
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x4875a5
mov eax, edi
jmp 0x4875b1
push 4
push dword [ebp + 8]
call fcn.004997a7
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4

Function at 0x4875b7
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, eax
xor esi, esi
cmp dword [edi + 0x34], esi
jne 0x4875d5
mov eax, 0x8200000b
jmp 0x4876ad
push ebx
push 0x206
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
or ebx, 0xffffffff
mov word [ebp - 0x218], si
call fcn.00497490
add esp, 0xc
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x208
mov dword [ebp - 8], esi
je 0x4876aa
cmp dword [edi + 0x38], 8
jb 0x48761d
mov edi, dword [edi + 0x24]
jmp 0x487620
add edi, 0x24
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x4876ac
cmp dword [ebp - 8], 2
jne 0x48767e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48767e
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.00498ba9
test eax, eax
pop ecx
pop ecx
jne 0x48767e
xor ebx, ebx
jmp 0x48769c
push dword [ebp + 8]
call fcn.00497791
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp dword [ebp - 4], esi
je 0x4876aa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4