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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4f2be0]
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.00474a10
push esi
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.00474a10
push esi
lea eax, [ebp - 0x24f]
push ebx
push eax
mov byte [ebp - 0x250], bl
call fcn.00474a10
add esp, 0x24
push 7
pop ecx
mov esi, 0x4d334c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3368
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 [0x4d32f0]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4d32e4
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 [0x4d32f4]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], eax
mov esi, 0x237f
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00475e30
pop ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0046bf9f
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00475e30
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0046bf9f
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00475e30
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046bf9f
add esp, 0xc
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00475e30
pop ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046bf9f
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 0x46db92
xor eax, eax
jmp 0x46dbfa
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 0x46db8e
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.0040b3ac
add esp, 0x18
test eax, eax
jl 0x46db8e
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.00474a8a
leave
ret
Function at 0x46dc22
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4b2c8b
call fcn.00475a5f
mov esi, dword [ebp + 0x214]
xor eax, eax
test esi, esi
je 0x46dd01
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00474a10
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 0x46dc9e
xor eax, eax
jmp 0x46dd01
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402675
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041597a
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00432152
lea ecx, [ebp - 0x10]
call fcn.004159e2
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00437c24
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 0x46dcf4
xor edi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
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.00474a8a
add ebp, 0x20c
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4f2be0]
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.00474a10
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 0x46ddb3
xor eax, eax
jmp 0x46ddee
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
call fcn.00402675
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 0x46dde1
xor esi, esi
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, esi
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.00474a8a
add ebp, 0x198
leave
ret
Function at 0x46de04
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4b2c8b
call fcn.00475a5f
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00474a10
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 closesocket
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x46de76
xor eax, eax
jmp 0x46ded9
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402675
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041597a
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00432152
lea ecx, [ebp - 0x10]
call fcn.004159e2
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00437c24
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 0x46decc
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
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.00474a8a
add ebp, 0x20c
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f2be0]
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.00474a10
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 closesocket
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x470bd3
cmp ax, word [ebp - 0x78]
je 0x470bd3
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 0x470bd3
inc ebx
mov ecx, dword [ebp + 0x190]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0x194
leave
ret
Function at 0x470beb
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f2be0]
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.00474a10
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 closesocket
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x470c87
cmp ax, word [ebp - 0x78]
je 0x470c87
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 0x470c87
inc ebx
mov ecx, dword [ebp + 0x190]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0x194
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f2be0]
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.00474a10
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 closesocket
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x470d3b
cmp ax, word [ebp - 0x78]
je 0x470d3b
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 0x470d3b
inc ebx
mov ecx, dword [ebp + 0x190]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00474a8a
add ebp, 0x194
leave
ret
Function at 0x471131
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4b3063
call fcn.00475a5f
mov esi, ecx
push 1
push dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
jne 0x471155
call fcn.00475b37
ret
push 0x4f8ce0
lea ecx, [ebp - 0x14]
call fcn.004029af
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00470e31
mov ecx, eax
call fcn.00470e71
push str._safemonWdHPFileSafe.dll
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403a89
add esp, 0xc
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4711bd
push dword [ebp - 0x10]
call fcn.00430e30
test eax, eax
je 0x4711bd
push 0x4c710c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4711bd
call eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
je 0x4711ec
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.004029d4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov eax, esi
jmp 0x47114f
xor esi, esi
jmp 0x4711cf

Function at 0x471209
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4b3086
call fcn.00475a5f
mov edi, dword [ebp + 0x80c]
mov ebx, dword [ebp + 0x810]
and dword [ebp - 0x14], 0
mov esi, 0x4d2ec0
push esi
lea ecx, [ebp - 0x10]
call fcn.00402675
and dword [ebp - 4], 0
xor eax, eax
push 0x7fe
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00474a10
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 0x4712af
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.004028fb
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00403cb4
jmp 0x4712b7
push esi
mov ecx, edi
call fcn.00402675
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
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.00474a8a
add ebp, 0x804
leave
ret
Function at 0x4732dd
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 0x473303
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x473303
xor al, al
jmp 0x473323
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0047e3b0
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 0x473532
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 0x474159
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4f8cfc], 0
push esi
jne 0x4740cc
call fcn.00473ff2
test eax, eax
je 0x47410f
mov eax, dword [0x4f8cfc]
cmp eax, 1
jne 0x4740ed
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47410f
pop esi
ret
push eax
call dword [0x4f8d04]
test eax, eax
jne 0x474157
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 0x474113
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4f8cfc]
call dword [0x4f8d04]
mov edi, eax
test edi, edi
je 0x474138
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x474154
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4f8cfc]
call dword [0x4f8d00]
add edi, 0x10
cmp edi, esi
jb 0x474140
mov eax, edi
pop edi
pop esi
ret
jmp 0x4740b9

Function at 0x474a8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f2be0]
jne 0x474a94
repz ret
jmp fcn.00480afd
Function at 0x48f1bb
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.00481358
and dword [ebp - 4], 0
cmp dword [0x4f9a18], 0
mov ebx, eax
jne 0x48f26c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48f31d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x48f31d
push eax
call fcn.004812e6
mov dword [esp], 0x4cbc50
push edi
mov dword [0x4f9a18], eax
call esi
push eax
call fcn.004812e6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4f9a1c], eax
call esi
push eax
call fcn.004812e6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4f9a20], eax
call esi
push eax
call fcn.004812e6
pop ecx
mov dword [0x4f9a28], eax
test eax, eax
je 0x48f26c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004812e6
pop ecx
mov dword [0x4f9a24], eax
mov eax, dword [0x4f9a24]
cmp eax, ebx
je 0x48f2c4
cmp dword [0x4f9a28], ebx
je 0x48f2c4
push eax
call fcn.00481361
push dword [0x4f9a28]
mov esi, eax
call fcn.00481361
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48f2c4
test edi, edi
je 0x48f2c4
call esi
test eax, eax
je 0x48f2bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48f2bb
test byte [ebp - 0xc], 1
jne 0x48f2c4
or dword [ebp + 0x10], 0x200000
jmp 0x48f2fd
mov eax, dword [0x4f9a1c]
cmp eax, ebx
je 0x48f2fd
push eax
call fcn.00481361
pop ecx
test eax, eax
je 0x48f2fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48f2fd
mov eax, dword [0x4f9a20]
cmp eax, ebx
je 0x48f2fd
push eax
call fcn.00481361
pop ecx
test eax, eax
je 0x48f2fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f9a18]
call fcn.00481361
pop ecx
test eax, eax
je 0x48f31d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48f31f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x494298
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00474a8a
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00474a10
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x494363
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4942d0
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x494363
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4942f2
mov eax, dword [0x4d2be0]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494310
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x494324
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.00474a8a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00474a8a
add esp, 0x20c
ret
Function at 0x494950
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004760e0
mov eax, dword [0x4f2be0]
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 0x494abb
cmp dword [esp + 0x2c20], edi
je 0x494abb
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 0x4d74e8
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.0042be30
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 0x494a94
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.00474a10
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 0x494a87
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.00474a10
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00496260
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.0040b43a
test eax, eax
jne 0x494a87
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x494a9e
inc ebx
cmp ebx, 0x10
jl 0x4949a0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.00474a8a
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00474a8a
add esp, 0x2c14
ret
Function at 0x494d60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x494f61
cmp dword [esp + 0x2f8], 0
je 0x494f61
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00474a10
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x4cbe10
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x494f28
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x494f1b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x494ee9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4d757c
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x494ede
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00474a10
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.00494c50
add esp, 0x14
test eax, eax
je 0x494ede
cmp byte [esp + 0x24], 0
je 0x494ea2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x494ede
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x494ed1
mov cl, byte [esi + eax]
test cl, cl
je 0x494ed1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x494eb6
jmp 0x494ed5
test edx, edx
jne 0x494ed6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x494e00
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x494f61
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0040b43a
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00474a8a
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00474a8a
add esp, 0x2ec
ret