joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418e30
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x88], eax
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x7c]
push str.uedit32.INI
push eax
call fcn.00457470
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
push 0x477979
push str.Last_File
push 0x48488c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x47b3b4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004589bc
add esp, 0xc
cmp dword [ebp - 0x80], 0
je 0x418fc5
push esi
push edi
push 2
push 0
push dword [ebp - 0x80]
call fcn.00458860
push dword [ebp - 0x80]
call fcn.00459b69
push dword [ebp - 0x80]
mov esi, eax
call fcn.00459d1c
lea eax, [esi + 1]
push eax
call fcn.0045a511
push dword [ebp - 0x80]
mov edi, eax
push esi
push 1
push edi
call fcn.004587be
push dword [ebp - 0x80]
call fcn.004584a6
mov esi, str._Recent_File_List_
push esi
push edi
call fcn.00458310
add esp, 0x34
test eax, eax
je 0x418fbc
push ebx
push esi
push edi
call fcn.00458310
mov ebx, str._Find_Replace_
mov esi, eax
push ebx
push edi
sub esi, edi
call fcn.00458310
add esp, 0x10
test eax, eax
je 0x418f33
push ebx
push edi
call fcn.00458310
sub eax, edi
cmp esi, eax
pop ecx
pop ecx
jle 0x418f33
push ebx
push edi
call fcn.00458310
pop ecx
mov esi, eax
pop ecx
sub esi, edi
mov ebx, str._Find_History_
push ebx
push edi
call fcn.00458310
test eax, eax
pop ecx
pop ecx
je 0x418f61
push ebx
push edi
call fcn.00458310
sub eax, edi
cmp esi, eax
pop ecx
pop ecx
jle 0x418f61
push ebx
push edi
call fcn.00458310
pop ecx
mov esi, eax
pop ecx
sub esi, edi
mov ebx, str._Replace_History_
push ebx
push edi
call fcn.00458310
test eax, eax
pop ecx
pop ecx
je 0x418f8f
push ebx
push edi
call fcn.00458310
sub eax, edi
cmp esi, eax
pop ecx
pop ecx
jle 0x418f8f
push ebx
push edi
call fcn.00458310
pop ecx
mov esi, eax
pop ecx
sub esi, edi
lea eax, [ebp - 0x7c]
push 0x47b5e0
push eax
call fcn.004589a9
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
pop ebx
je 0x418fbc
push eax
push esi
push 1
push edi
call fcn.0045977a
push dword [ebp - 0x80]
call fcn.004584a6
add esp, 0x14
push edi
call fcn.0045a434
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x88]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x8c
leave
ret
Function at 0x41939a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edi
je 0x4194a4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x40000
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x419495
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x419495
cmp dword [ebp + 0x14], edi
je 0x419492
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x419495
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x419495
mov esi, 0x105
push esi
call fcn.004412fb
cmp dword [ebp - 8], edi
pop ecx
mov ebx, eax
mov dword [ebp + 0xc], edi
jbe 0x41948b
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x419479
mov ecx, dword [ebp - 0xc]
push 1
push dword [ebp + 0x10]
push ebx
push dword [ebp - 4]
call fcn.0041939a
jmp 0x419480
cmp eax, 0x103
je 0x41948b
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x419454
push ebx
call fcn.004412f6
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
pop esi
je 0x4194a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x4196a9
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push str.SeShutdownPrivilege
xor esi, esi
inc edi
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [0x4b9fa0], edi
cmp dword [ebx + 0x1484], esi
push esi
je 0x419715
push esi
jmp 0x419723
cmp dword [ebx + 0x1488], esi
je 0x419721
push 2
jmp 0x419723
push 9
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41aaa6
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2714]
mov eax, 0x2714
call fcn.004593a0
push 0xffffffffffffffff
push 0x470264
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x2710], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
lea eax, [ebp + 0x271c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040170c
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041a696
mov eax, dword [ebp + 0x2720]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401f53
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, 0x2710
jmp 0x41ab35
xor esi, esi
cmp dword [ebp - 0x14], esi
push edi
jne 0x41ab42
push 0xaa
jmp 0x41ab5a
cmp dword [ebp - 0x14], 1
jne 0x41ab4f
push 0xcc
jmp 0x41ab5a
cmp dword [ebp - 0x14], 2
jne 0x41ab59
push 0x55
jmp 0x41ab5a
push esi
lea eax, [ebp]
push eax
call fcn.00457260
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41abf7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
mov esi, eax
push ebx
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x41abc9
cmp esi, edi
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp]
jbe 0x41abc0
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, edi
jne 0x41aba4
jmp 0x41abc9
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x41ab33
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
push 0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401482
push eax
call sub.ERASER.dll_DeleteX
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp + 0x271c]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp + 0x2720]
add ecx, 0xfffffff0
call fcn.004010af
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 + 0x2710]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x2714
leave
ret 8
Function at 0x41ba09
Capabilities:
Delete file

Disassembly:
push 0x10
mov eax, 0x47040b
call fcn.004550bc
mov esi, ecx
cmp dword [esi + 0x74], 1
jne 0x41b723
call fcn.00442144
push eax
lea ecx, [ebp - 0x14]
call fcn.0040132d
and dword [ebp - 4], 0
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
mov byte [ebp - 4], 1
call fcn.00442144
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040132d
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00408726
lea ecx, [ebp - 0x14]
mov dword [esp], str.Plugins_
call fcn.004041d2
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401f53
lea edi, [esi + 0x1588]
mov ecx, edi
call fcn.00419831
test eax, eax
mov dword [ebp - 0x18], eax
je 0x41b6ed
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00419845
mov ebx, eax
add esi, 0x80
push ebx
mov ecx, esi
call fcn.00439d57
push eax
lea ecx, [ebp - 0x10]
call fcn.00402021
push 1
push ebx
mov ecx, esi
call fcn.0044a32a
push ebx
mov ecx, edi
call fcn.00411f57
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41b700
push 0
push 0x47a5b8
push 0x484c58
mov ecx, esi
call fcn.004440e0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010af
jmp 0x41b72e
lea ecx, [esi + 0x1588]
call fcn.00411f6e
call fcn.0045515b
ret
push edi
mov edi, ecx
mov eax, dword [edi + 0x7c]
cmp eax, 1
jne 0x41ba60
push ebx
lea ebx, [edi + 0x15f4]
mov ecx, ebx
call fcn.00419860
test eax, eax
jle 0x41ba57
push esi
mov ecx, ebx
call fcn.00411f44
mov esi, eax
jmp 0x41ba53
push 2
push esi
push 0x102c
push dword [edi + 0x1614]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 2
jne 0x41ba53
push esi
mov ecx, ebx
call fcn.00411f57
dec esi
jns 0x41ba32
pop esi
push ebx
call fcn.0041b50c
pop ebx
pop edi
ret
cmp eax, 2
jne 0x41ba5e
pop edi
jmp 0x41b623
Function at 0x41bd2d
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x30
mov eax, 0x470521
call fcn.004550bc
mov esi, ecx
mov edi, edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
call fcn.0044a0cb
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00442144
push eax
lea ecx, [ebp - 0x18]
call fcn.0040132d
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0044a148
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0044a148
lea eax, [ebp - 0x2c]
push eax
call fcn.00404ae7
lea eax, [ebp - 0x18]
push eax
call fcn.004396bf
mov esi, dword [ebp - 0x24]
pop ecx
pop ecx
jmp 0x41be48
dec esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00439d57
mov eax, dword [eax]
push 0x104
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41be48
lea eax, [ebp]
push 0x47b3f0
push eax
call fcn.00458c60
test eax, eax
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x2c]
jne 0x41be14
call fcn.00439d57
push str.RECYCLER
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040177e
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040a0c5
mov ecx, dword [ebp - 0x10]
jmp 0x41be3c
call fcn.00439d57
push str.RECYCLED
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040177e
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a0c5
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
cmp esi, ebx
jne 0x41bdaa
call fcn.00442144
push eax
lea ecx, [ebp - 0x14]
call fcn.0040132d
mov esi, dword [ebp - 0x24]
push 0x47b260
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bed9
push str.SHEmptyRecycleBinA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
cmp eax, ebx
setne cl
push edi
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41bed9
dec esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00439d57
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41bed9
test al, 4
je 0x41bed9
push esi
lea ecx, [ebp - 0x2c]
call fcn.00439d57
push eax
lea ecx, [ebp - 0x14]
call fcn.0040170c
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call fcn.0041baaf
add esp, 0x10
cmp esi, ebx
jne 0x41be98
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010af
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0044a39d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x108
leave
ret
Function at 0x41f102
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 0x10
mov eax, 0x470e5e
call fcn.004550bc
mov esi, ecx
and dword [ebp - 4], 0
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
mov byte [ebp - 4], 1
call fcn.00442144
push eax
lea ecx, [ebp - 0x14]
call fcn.0040132d
lea eax, [ebp + 0x14c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040170c
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 2
jge 0x41f1b0
lea ecx, [eax - 0x10]
call fcn.004010af
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp + 0x14c]
add ecx, 0xfffffff0
call fcn.004010af
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x144
leave
ret 0xc
push str..
lea ecx, [ebp - 0x14]
call fcn.004041d2
mov ebx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f1f9
xor esi, esi
lea ecx, [ebx - 0x10]
call fcn.004010af
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp + 0x14c]
add ecx, 0xfffffff0
call fcn.004010af
mov eax, esi
jmp 0x41f18b
lea eax, [ebp + 0x2c]
push 0x477fec
push eax
call fcn.00454b29
test eax, eax
pop ecx
pop ecx
je 0x41f312
lea eax, [ebp + 0x2c]
push 0x47ac4c
push eax
call fcn.00454b29
test eax, eax
pop ecx
pop ecx
je 0x41f312
cmp dword [ebp + 0x150], 0
jne 0x41f24a
lea eax, [ebp + 0x2c]
push str.desktop.ini
push eax
call fcn.00457a80
test eax, eax
pop ecx
pop ecx
je 0x41f312
lea eax, [ebp + 0x14c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040170c
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041a696
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041d2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x41f289
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp], 0x10
je 0x41f2bc
push dword [ebp + 0x154]
lea eax, [ebp - 0x10]
push dword [ebp + 0x150]
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00401464
mov ecx, esi
call fcn.0041f102
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41f312
cmp dword [ebp + 0x154], 0
je 0x41f309
lea eax, [ebp + 0x2c]
push str.index.dat
push eax
call fcn.00457a80
test eax, eax
pop ecx
pop ecx
jne 0x41f309
push ecx
lea eax, [ebp + 0x2c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401c93
push ecx
lea eax, [ebp + 0x14c]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 3
call fcn.00401464
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041aaa6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f1f9
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x41f1d4
Function at 0x4240df
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x4716a7
call fcn.004550bc
mov edi, ecx
call fcn.00442144
push eax
lea ecx, [ebp - 0x24]
call fcn.0040132d
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea ebx, [edi + 0x1450]
push 0
mov ecx, ebx
call fcn.0044a148
lea esi, [edi + 0x144c]
push 0x477979
mov ecx, esi
call fcn.00401759
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x14]
test ecx, eax
je 0x4241fd
movzx eax, byte [ebp - 0x10]
add al, 0x41
push 1
lea ecx, [ebp - 0x1c]
push eax
call fcn.0041a9de
push 0x4788e4
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0040177e
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040170c
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004010af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x4241fd
cmp eax, 5
je 0x4241fd
push str.System_Volume_Information
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0040177e
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040170c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004010af
push esi
push dword [ebx + 8]
mov ecx, ebx
call fcn.0044a503
push str.Windows_XP
lea ecx, [edi + 0x147c]
call fcn.00401759
push 3
mov ecx, edi
call fcn.0041f334
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0044a148
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x20
jl 0x42412f
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004010af
call fcn.0045515b
ret
Function at 0x424239
Capabilities:
Persist via run registry key

Disassembly:
push 0x20
mov eax, 0x4716f2
call fcn.004550bc
mov ebx, ecx
lea ecx, [ebp - 0x2c]
call fcn.00435c47
xor edi, edi
push 0x80000001
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00435a09
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMacromediaFlashPlayer
call fcn.00401c93
lea ecx, [ebp - 0x2c]
call fcn.00436002
cmp eax, edi
je 0x424286
lea ecx, [ebp - 0x2c]
call fcn.00435a64
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
push 0xffffffffffffffff
lea esi, [ebx + 0x1450]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0044a148
mov edi, 0x477979
lea ecx, [ebx + 0x144c]
push edi
call fcn.00401759
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.00401c93
lea ecx, [ebp - 0x2c]
call fcn.00436002
test eax, eax
je 0x4243f6
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.00401c93
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.AppData
mov byte [ebp - 4], 2
call fcn.00401c93
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00436249
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4243f6
push str.Adobe
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040177e
add esp, 0xc
lea edi, [ebx + 0x144c]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, esi
call fcn.0044a503
mov edi, str.FLASHPLAYER
lea ecx, [ebx + 0x147c]
push edi
call fcn.00401759
push 3
mov ecx, ebx
call fcn.0041f334
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0044a148
push str.Macromedia
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040177e
add esp, 0xc
push eax
lea ecx, [ebx + 0x144c]
mov byte [ebp - 4], 5
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
mov eax, dword [esi + 8]
lea ecx, [ebx + 0x144c]
push ecx
push eax
mov ecx, esi
call fcn.0044a503
push edi
lea ecx, [ebx + 0x147c]
call fcn.00401759
push 3
mov ecx, ebx
call fcn.0041f334
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00435c67
call fcn.0045515b
ret
Function at 0x42c10d
Capabilities:
Persist via run registry key

Disassembly:
push 0x20
mov eax, 0x47254c
call fcn.004550bc
mov esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.00435c47
and dword [ebp - 4], 0
push 0x80000002
lea ecx, [ebp - 0x2c]
call fcn.00435a09
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
push 0xffffffffffffffff
lea ebx, [esi + 0x1450]
push 0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0044a148
mov edi, 0x477979
lea ecx, [esi + 0x144c]
push edi
call fcn.00401759
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionexplorerShell_Folders
call fcn.00401c93
lea ecx, [ebp - 0x2c]
call fcn.00436002
test eax, eax
je 0x42c23a
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.00401c93
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Common_AppData
mov byte [ebp - 4], 2
call fcn.00401c93
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00436249
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x42c23a
push str.QuickTime
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040177e
add esp, 0xc
lea edi, [esi + 0x144c]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004010af
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, ebx
call fcn.0044a503
lea ecx, [esi + 0x147c]
push str.QuickTime_6.x
call fcn.00401759
push 3
mov ecx, esi
call fcn.0041f334
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00435c67
call fcn.0045515b
ret