joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e4f5
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x353]
push ebx
push eax
mov byte [ebp - 0x354], bl
call fcn.00475420
push esi
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.00475420
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.00475420
add esp, 0x24
push 7
pop ecx
mov esi, 0x4d36ec
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3708
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x4d3690]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4d3684
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d3694]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], eax
mov esi, 0x237f
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046ca42
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
add esp, 0xc
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov ebx, 0x104
push edi
mov dword [ebp - 0x35c], 1
mov dword [ebp - 0x358], ebx
call esi
test eax, eax
je 0x46e635
xor eax, eax
jmp 0x46e69d
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
mov dword [ebp - 0x358], ebx
call esi
test eax, eax
jne 0x46e631
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x354]
push eax
push str._s_s_s
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.0040b3f2
add esp, 0x18
test eax, eax
jl 0x46e631
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret
Function at 0x46e6c5
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x39c], eax
and dword [ebp - 0x78], 0
push ebx
push esi
push edi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
mov dword [ebp - 0x80], 1
call fcn.00475420
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x4d28bc
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsReaderTray.exe
mov ebx, SysReAllocStringLen
mov esi, 0x410
push ebx
mov dword [ebp - 0x7c], esi
call edi
test eax, eax
jne 0x46e779
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push str.ReaderTray.exe
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e779
push 0
push 1
push 1
lea eax, [ebp - 0x74]
push eax
call fcn.00401d75
test eax, eax
je 0x46e779
mov dword [ebp - 0x78], 1
jmp 0x46e7d7
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x4c4a98
push str.SOFTWARE360SoftMgr_reader
push ebx
mov dword [ebp - 0x7c], esi
call edi
test eax, eax
jne 0x46e7d7
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e7d7
push 0
xor esi, esi
inc esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.00401d75
test eax, eax
je 0x46e7d7
mov dword [ebp - 0x78], esi
mov ecx, dword [ebp + 0x39c]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x3a0
leave
ret
Function at 0x46e7f2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4b5717
call fcn.004764c0
mov esi, dword [ebp + 0x214]
xor eax, eax
test esi, esi
je 0x46e8d1
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
xor edi, edi
push str.SOFTWAREKasperskyLabSetupFolders
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x46e86e
xor eax, eax
jmp 0x46e8d1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004024e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00415953
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0043246d
lea ecx, [ebp - 0x10]
call fcn.004159bb
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004380a4
push str.avp.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e8c4
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x20c
leave
ret

Function at 0x46e919
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push str.InstallLocation
xor esi, esi
push str.SoftWareMicrosoftWindowsCurrentVersionUninstallA9861883_31C5_4324_BD9A_DC9527EEB675_is1
inc esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x46e983
xor eax, eax
jmp 0x46e9be
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
call fcn.004024e0
push str.LenovoTray.exe
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e9b1
xor esi, esi
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, esi
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.0047549a
add ebp, 0x198
leave
ret
Function at 0x46e9d4
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4b5717
call fcn.004764c0
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push str.InstallPath
xor esi, esi
push str.SoftwareHuorongSysdiag
inc esi
push SysReAllocStringLen
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x46ea46
xor eax, eax
jmp 0x46eaa9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004024e0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00415953
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0043246d
lea ecx, [ebp - 0x10]
call fcn.004159bb
push 0x22
lea ecx, [ebp - 0x10]
call fcn.004380a4
push str.binHipsTray.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ea9c
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
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 + 0x208]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x20c
leave
ret

Function at 0x47170a
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.UninstallString
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push SysReAllocStringLen
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4717a6
cmp ax, word [ebp - 0x78]
je 0x4717a6
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.......
lea eax, [ebp - 0x78]
push eax
call edi
push str.360se.exe
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
je 0x4717a6
inc ebx
mov ecx, dword [ebp + 0x190]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x194
leave
ret
Function at 0x4717be
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.UninstallString
push str.Software360ChromeUpdateClientState27D39816_7A3D_406c_9ABC_97FB55674016
push SysReAllocStringLen
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x47185a
cmp ax, word [ebp - 0x78]
je 0x47185a
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.......
lea eax, [ebp - 0x78]
push eax
call edi
push str.360chrome.exe
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
je 0x47185a
inc ebx
mov ecx, dword [ebp + 0x190]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x194
leave
ret

Function at 0x471872
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.UninstallString
push str.Software360ChromeXUpdateClientState3D30AC46_8F09_8BE3_6B29_DD54B0E9EDA6
push SysReAllocStringLen
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x47190e
cmp ax, word [ebp - 0x78]
je 0x47190e
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.......
lea eax, [ebp - 0x78]
push eax
call edi
push str.360ChromeX.exe
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
je 0x47190e
inc ebx
mov ecx, dword [ebp + 0x190]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x194
leave
ret
Function at 0x471b84
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4b3acc
call fcn.004764c0
mov esi, ecx
push 1
push dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
jne 0x471ba8
call fcn.00476598
ret
push 0x4f9e00
lea ecx, [ebp - 0x14]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004719e1
mov ecx, eax
call fcn.00471a21
push str._safemonWdHPFileSafe.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403a39
add esp, 0xc
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x471c10
push dword [ebp - 0x10]
call fcn.00431135
test eax, eax
je 0x471c10
push 0x4c74b4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471c10
call eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
je 0x471c3f
push 1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, esi
jmp 0x471ba2
xor esi, esi
jmp 0x471c22

Function at 0x471c5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4b3aef
call fcn.004764c0
mov edi, dword [ebp + 0x80c]
mov ebx, dword [ebp + 0x810]
and dword [ebp - 0x14], 0
mov esi, 0x4d3260
push esi
lea ecx, [ebp - 0x10]
call fcn.004024e0
and dword [ebp - 4], 0
xor eax, eax
push 0x7fe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x471d02
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402766
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00403cb9
jmp 0x471d0a
push esi
mov ecx, edi
call fcn.004024e0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x804
leave
ret
Function at 0x473c6e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x473c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x473c94
xor al, al
jmp 0x473cb4
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0047edb0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x473ec3
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x474b89
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4f9e1c], 0
push esi
jne 0x474afc
call fcn.00474a22
test eax, eax
je 0x474b3f
mov eax, dword [0x4f9e1c]
cmp eax, 1
jne 0x474b1d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x474b3f
pop esi
ret
push eax
call dword [0x4f9e24]
test eax, eax
jne 0x474b87
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x474b43
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4f9e1c]
call dword [0x4f9e24]
mov edi, eax
test edi, edi
je 0x474b68
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x474b84
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4f9e1c]
call dword [0x4f9e20]
add edi, 0x10
cmp edi, esi
jb 0x474b70
mov eax, edi
pop edi
pop esi
ret
jmp 0x474ae9

Function at 0x47549a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f3bd0]
jne 0x4754a4
repz ret
jmp fcn.0048145d
Function at 0x48fbbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00481cb8
and dword [ebp - 4], 0
cmp dword [0x4fab38], 0
mov ebx, eax
jne 0x48fc6c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48fd1d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x48fd1d
push eax
call fcn.00481c46
mov dword [esp], 0x4cbff0
push edi
mov dword [0x4fab38], eax
call esi
push eax
call fcn.00481c46
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4fab3c], eax
call esi
push eax
call fcn.00481c46
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4fab40], eax
call esi
push eax
call fcn.00481c46
pop ecx
mov dword [0x4fab48], eax
test eax, eax
je 0x48fc6c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00481c46
pop ecx
mov dword [0x4fab44], eax
mov eax, dword [0x4fab44]
cmp eax, ebx
je 0x48fcc4
cmp dword [0x4fab48], ebx
je 0x48fcc4
push eax
call fcn.00481cc1
push dword [0x4fab48]
mov esi, eax
call fcn.00481cc1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48fcc4
test edi, edi
je 0x48fcc4
call esi
test eax, eax
je 0x48fcbb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48fcbb
test byte [ebp - 0xc], 1
jne 0x48fcc4
or dword [ebp + 0x10], 0x200000
jmp 0x48fcfd
mov eax, dword [0x4fab3c]
cmp eax, ebx
je 0x48fcfd
push eax
call fcn.00481cc1
pop ecx
test eax, eax
je 0x48fcfd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48fcfd
mov eax, dword [0x4fab40]
cmp eax, ebx
je 0x48fcfd
push eax
call fcn.00481cc1
pop ecx
test eax, eax
je 0x48fcfd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fab38]
call fcn.00481cc1
pop ecx
test eax, eax
je 0x48fd1d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48fd1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494c60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x494c98
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0047549a
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x494d63
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x494cd0
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x494d63
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x494cf2
mov eax, dword [0x4d2f80]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494d10
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x494d24
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0047549a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047549a
add esp, 0x20c
ret
Function at 0x495350
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00476b40
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x4954bb
cmp dword [esp + 0x2c20], edi
je 0x4954bb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push 0x4d7878
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0042be80
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x495494
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00475420
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x495487
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00475420
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00496c60
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0040b480
test eax, eax
jne 0x495487
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x49549e
inc ebx
cmp ebx, 0x10
jl 0x4953a0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0047549a
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0047549a
add esp, 0x2c14
ret