joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4759f1
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
mov ecx, 0x587c34
mov dword [0x587c30], 0x1000
call fcn.004026bd
mov eax, esi
push 2
lea edx, [eax + 2]
pop edi
xor ebx, ebx
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x475a30
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x475ab5
cmp word [esi + 2], 0x3a
je 0x475ab5
push 0x104
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x475a60
sub eax, edx
sar eax, 1
lea ecx, [ebp + eax*2 - 0x7e]
je 0x475a81
sub ecx, edi
dec eax
cmp word [ecx], 0x5c
je 0x475a87
cmp eax, ebx
jne 0x475a74
cmp word [ecx], 0x5c
jne 0x475a9e
lea edx, [ecx + 2]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x475a8e
jmp 0x475aca
lea edx, [ebp - 0x7c]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x475aa5
jmp 0x475aca
lea edx, [ebp - 0x7c]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x475abc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x475afa
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x475afa
push ecx
lea eax, [ebp - 0x7c]
mov ecx, esp
mov dword [ebp - 0x80], esp
push eax
call fcn.004024df
call fcn.00475b97
push ebx
push 0x8b041
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x587c1c]
mov esi, 0x587c1c
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
je 0x475b2d
mov eax, dword [0x587c1c]
push edi
push ebx
push ebx
mov ecx, esi
mov byte [0x587c2c], 1
call dword [eax + 0x28]
jmp 0x475b33
mov byte [0x587c2c], bl
push 0x587c00
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b96ff
add ebp, 0x194
leave
ret
Function at 0x477a05
Capabilities:
Get memory capacity

Disassembly:
push 0x6c
mov eax, 0x4e2744
call fcn.004bece3
and dword [ebp - 4], 0
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
call fcn.00499991
push eax
lea ecx, [ebp - 0x18]
call fcn.004727f7
mov byte [ebp - 4], 1
call fcn.00499991
push eax
lea ecx, [ebp - 0x14]
call fcn.004727f7
mov byte [ebp - 4], 2
call fcn.00499991
push eax
lea ecx, [ebp - 0x1c]
call fcn.004727f7
mov byte [ebp - 4], 3
call fcn.00499991
push eax
lea ecx, [ebp - 0x20]
call fcn.004727f7
push esi
push edi
mov edi, str._llu
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], 4
call fcn.00402967
add esp, 0x10
push dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push ebx
push edi
push eax
call fcn.00402967
add esp, 0x10
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push edi
push eax
call fcn.00402967
add esp, 0x10
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x30]
push edi
push eax
call fcn.00402967
mov esi, dword [ebp + 8]
add esp, 0x10
xor edi, edi
inc edi
push edi
push 0
push str.memory_info
push esi
call fcn.00475362
mov eax, esi
call fcn.00474813
push edi
push dword [ebp - 0x18]
push str.total_phy
push esi
call fcn.00475362
push edi
push dword [ebp - 0x14]
push str.avail_phy
push esi
call fcn.00475362
mov ebx, dword [ebp - 0x1c]
push edi
push ebx
push str.total_page_file
push esi
call fcn.00475362
push edi
mov edi, dword [ebp - 0x20]
push edi
push str.avail_page_file
push esi
call fcn.00475362
call fcn.0047483d
lea ecx, [edi - 0x10]
call fcn.004027b0
lea ecx, [ebx - 0x10]
call fcn.004027b0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
call fcn.004bed88
ret 4
Function at 0x4791c1
Capabilities:
Get disk information

Disassembly:
push 0x470
mov eax, 0x4d850c
call fcn.004bed19
lea ecx, [edi + 8]
mov dword [ebp - 0x47c], edi
call fcn.00402792
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x14], vtable.CArray_struct_SHiveInfoParams__struct_SHiveInfoParams__.0
mov dword [edi + 0x18], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
lea ecx, [edi + 0x28]
push 0xa
mov byte [ebp - 4], 1
call fcn.004a7acf
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
call fcn.0045d8a8
mov dword [edi + 0x60], vtable.CArray_struct_SHiveInfoResults__struct_SHiveInfoResults__.0
mov dword [edi + 0x64], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x68], ebx
xor eax, eax
mov byte [ebp - 4], 4
mov esi, 0x1fe
push esi
mov word [ebp - 0x274], ax
lea eax, [ebp - 0x272]
push ebx
push eax
mov dword [edi + 0xc], 1
call fcn.004be850
add esp, 0xc
lea eax, [ebp - 0x274]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x274]
mov dword [ebp - 0x478], eax
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.004be850
xor eax, eax
push esi
mov word [ebp - 0x474], ax
lea eax, [ebp - 0x472]
push ebx
push eax
call fcn.004be850
add esp, 0x18
cmp word [ebp - 0x274], bx
je 0x47932e
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x47930f
push dword [ebp - 0x478]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.004bb7b7
pop ecx
pop ecx
cmp eax, ebx
je 0x4792db
xor ecx, ecx
mov word [eax], cx
push 0x100
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47930f
lea eax, [ebp - 0x74]
push eax
lea ecx, [edi + 0x28]
call fcn.004a7d87
lea ecx, [ebp - 0x474]
push ecx
mov ecx, eax
call fcn.004026bd
push ebx
push dword [ebp - 0x478]
call fcn.004bb7b7
inc eax
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x478], eax
cmp word [eax], bx
jne 0x4792a4
mov eax, edi
call fcn.004bed9c
ret
Function at 0x479bc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004c0a30
push 0xffffffffffffffff
push 0x4d7334
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1010]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1014]
mov dword [ebp - 0x18], eax
xor edi, edi
xor eax, eax
mov word [ebp + 0x800], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x800]
push eax
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x479d05
cmp word [ebp + 0x800], si
je 0x479cff
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
lea eax, [ebp]
push eax
call esi
test eax, eax
je 0x479cff
cmp word [eax], 0
je 0x479cff
push eax
call esi
mov esi, eax
test esi, esi
je 0x479cff
cmp word [esi], 0
je 0x479cff
push 4
push str.USER
push esi
call fcn.004be74c
add esp, 0xc
test eax, eax
jne 0x479cff
push esi
lea ecx, [ebp - 0x10]
call fcn.004024df
and dword [ebp - 4], 0
push str..DEFAULT
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.004072a5
cmp eax, 0xffffffff
je 0x479cda
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
inc edi
call fcn.004027b0
jmp 0x479c1a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 8]
lea edx, [ebp]
push edx
push eax
call fcn.004a49ab
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
lea edx, [ebp + 0x800]
push edx
push eax
call fcn.004a49ab
jmp 0x479cc5
inc edi
jmp 0x479c1a
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004b96ff
add ebp, 0x1004
leave
ret 0xc
Function at 0x47ab64
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e0897
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1974
call fcn.004c0a30
push ebx
push esi
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x1988]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00407002
mov esi, eax
call fcn.004729c0
xor ebx, ebx
cmp eax, 6
jne 0x47ac5e
cmp esi, ebx
jne 0x47ac5e
mov eax, dword [0x583bbc]
xor edi, edi
inc edi
push edi
mov esi, 0x523938
push esi
push str.arovistadefrag
push dword [eax]
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x47ac01
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.ExitProcess_:_Elevated_now_restarting
call fcn.004024df
call fcn.0045c866
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push ebx
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.RESOURCESTRING
call fcn.004024df
push ecx
mov dword [esp + 0x19a4], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.IDS_STR_LACK_OF_PERMISSION
call fcn.004024df
or dword [esp + 0x19a4], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.004068e2
mov dword [esp + 0x1998], edi
push dword [eax]
call fcn.004995c6
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x47ad74
mov al, byte [0x585974]
test al, al
je 0x47aca6
push edi
lea eax, [esp + 0x28]
push eax
call fcn.0047c54e
lea eax, [esp + 0x24]
mov dword [esp + 0x1990], 2
mov ebx, dword [0x5857b0]
push 0x19f
push eax
call fcn.0045dc5d
pop ecx
pop ecx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x24]
jmp 0x47ad67
push ebx
push 0x2024
push 0x523938
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.RESOURCESTRING
call fcn.004024df
push ecx
mov dword [esp + 0x19a4], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push str.IDS_ALERT_DEFRAG
call fcn.004024df
or dword [esp + 0x19a4], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.004068e2
mov dword [esp + 0x1998], 4
push dword [eax]
call fcn.004995c6
cmp eax, 6
sete byte [esp + 0x17]
or dword [esp + 0x1990], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
cmp byte [esp + 0x17], bl
je 0x47ad74
push edi
lea eax, [esp + 0xcd8]
push eax
call fcn.0047c54e
lea eax, [esp + 0xcd4]
mov dword [esp + 0x1990], 5
mov ebx, dword [0x5857b0]
push 0x19f
push eax
call fcn.0045dc5d
pop ecx
pop ecx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0xcd4]
or dword [esp + 0x1990], 0xffffffff
call fcn.0047c64b
mov ecx, dword [esp + 0x1988]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481ce5
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 4], ebx
call fcn.0047380a
mov ecx, dword [esi + 0x10]
movzx eax, al
neg eax
lea edx, [ebp - 8]
push edx
sbb eax, eax
lea edx, [ebp - 4]
push edx
push ebx
and eax, 0x100
or eax, 0xf003f
push eax
push 4
push ebx
push ebx
push ecx
push dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x481d9b
cmp dword [ebp - 4], ebx
je 0x481d9b
push edi
push 0x80
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegFlushKey]
call edi
cmp dword [esi + 4], 0x80000002
je 0x481d6c
push SysReAllocString
call edi
push reloc.WS2_32.dll_closesocket
call edi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x18]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
push dword [ebp - 4]
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x481d9d
mov dword [esi], ebx
pop ebx
leave
ret

Function at 0x481da0
Capabilities:
Get common file path

Disassembly:
push 0x828
mov eax, 0x4d7043
call fcn.004bed19
mov esi, 0x410
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004be850
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004be850
add esp, 0x18
lea edi, [esi - 1]
push edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x481e45
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x834]
call fcn.004024df
and dword [ebp - 4], 0
lea esi, [ebx + 0x54]
push eax
mov ecx, esi
call fcn.0040257e
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x834]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x830]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, esi
test eax, eax
je 0x481e3d
lea eax, [ebp - 0x830]
push eax
jmp 0x481e4d
lea eax, [ebp - 0x420]
jmp 0x481e3a
push 0x5231e4
lea ecx, [ebx + 0x54]
call fcn.004026bd
call fcn.004bed9c
ret
Function at 0x481e58
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Query environment variable
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x2194]
mov eax, 0x2214
call fcn.004c0a30
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp + 0x2190], eax
mov eax, dword [ebp + 0x219c]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x21a0]
mov esi, 0x1000
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.004be850
push esi
lea eax, [ebp + 0xf88]
push 0
push eax
call fcn.004be850
add esp, 0x18
push 0x800
lea eax, [ebp - 0x78]
push eax
push str._SystemRoot_System32ConfigRCCBakup
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x481f6f
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x481f6f
test byte [0x587c70], 1
jne 0x481f02
or dword [0x587c70], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx esi, ax
jmp 0x481f08
mov esi, dword [0x587c6c]
mov eax, esi
not eax
test al, 2
je 0x481f15
add esi, 3
jmp 0x481f18
add esi, 5
push 0x208
lea eax, [ebp + 0x1f88]
push 0
push eax
mov dword [0x587c6c], esi
call fcn.004be850
mov eax, dword [ebx + 0x54]
add esp, 0xc
lea ecx, [ebp + 0x1f88]
push ecx
push esi
push 0x5530e0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x7c]
test eax, eax
je 0x481f60
lea eax, [ebp + 0x1f88]
push eax
call fcn.004026bd
jmp 0x481f68
push dword [ebp - 0x80]
call fcn.0040257e
mov eax, dword [ebp - 0x7c]
push dword [eax]
jmp 0x481fb4
mov eax, dword [ebp - 0x80]
push dword [eax]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xf88]
push str._s_s.bak
push eax
call fcn.004bc761
mov ecx, dword [ebp - 0x7c]
add esp, 0x10
lea eax, [ebp + 0xf88]
push eax
call fcn.004026bd
push 0x80
lea eax, [ebp + 0xf88]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0xf88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x2190]
xor ecx, ebp
pop esi
call fcn.004b96ff
add ebp, 0x2194
leave
ret 8
Function at 0x481fd2
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x608
lea ebp, [esp - 4]
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp + 0x608], eax
push 0x2c
mov eax, 0x4d7010
call fcn.004becb0
xor eax, eax
cmp dword [esi + 0x5c], eax
mov dword [ebp - 0x14], eax
jle 0x482176
mov dword [ebp - 0x10], eax
mov ebx, 0x200
xor eax, eax
lea edi, [ebp + 0x600]
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [ebp + 0x400]
push 0
push eax
call fcn.004be850
push ebx
lea eax, [ebp + 0x200]
push 0
push eax
call fcn.004be850
push ebx
lea eax, [ebp]
push 0
push eax
call fcn.004be850
mov eax, dword [esi + 0x58]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + eax + 0x18]
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x200]
push ecx
lea ecx, [ebp + 0x400]
push ecx
lea ecx, [ebp + 0x600]
push ecx
push eax
call fcn.004bb578
add esp, 0x38
push str..bac
lea ecx, [ebp - 0x1c]
call fcn.004024df
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x200]
push eax
lea ecx, [ebp - 0x34]
call fcn.004024df
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004024df
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x600]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004024df
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004020b5
push dword [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004020b5
push dword [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004020b5
add esp, 0x24
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x58]
lea ecx, [edi + ecx + 0x1c]
push eax
call fcn.0040257e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004027b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [esi + 0x58]
push dword [edi + eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add edi, 0x28
cmp eax, dword [esi + 0x5c]
mov dword [ebp - 0x10], edi
jl 0x48200c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x608]
xor ecx, ebp
call fcn.004b96ff
add ebp, 0x60c
leave
ret
Function at 0x482346
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d835c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x57b750]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
cmp dword [esi + 0x5c], edi
mov dword [esp + 0x18], edi
jle 0x482497
mov eax, dword [esi + 0x58]
lea eax, [edi + eax + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.0040228a
and dword [esp + 0x28], 0
lea ebx, [esp + 0x14]
call fcn.0048264b
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax + 0x14]
mov eax, ebx
push eax
call fcn.0040257e
mov eax, dword [esi + 0x58]
mov eax, dword [edi + eax + 0x14]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], 0xffffffff
je 0x4823f4
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x58]
push dword [esp + 0x10]
mov dword [edi + ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x482415
mov eax, dword [esi + 0x58]
push ecx
lea eax, [edi + eax + 0x14]
mov dword [esp + 0x14], esp
mov ecx, esp
push eax
call fcn.0040228a
call fcn.00482199
pop ecx
mov ecx, dword [esi + 0x58]
mov dword [edi + ecx + 0xc], eax
mov eax, dword [esi + 0x58]
mov eax, dword [edi + eax + 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x48244c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x58]
push dword [esp + 0x10]
mov dword [edi + ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax + 0x10]
push 0x523938
call fcn.004107fc
test eax, eax
jne 0x482472
mov eax, dword [esi + 0x58]
lea ecx, [edi + eax + 0x10]
push 0x525554
call fcn.004107fc
or dword [esp + 0x28], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004027b0
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add edi, 0x28
cmp eax, dword [esi + 0x5c]
jl 0x482380
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4824a9
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x610
lea ebp, [esp - 4]
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp + 0x610], eax
push 0xc
mov eax, 0x4d6f3e
call fcn.004becb0
mov eax, dword [ebp + 0x61c]
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 4], esi
push 0x3fe
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.004be850
mov eax, dword [ebp + 0x620]
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4825c0
xor eax, eax
push 0x206
mov word [ebp + 0x400], ax
lea eax, [ebp + 0x402]
push esi
push eax
call fcn.004be850
mov esi, 0x5530f4
lea edi, [ebp + 0x608]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
xor bl, bl
lea edi, [ebp]
mov ax, word [edi]
mov word [ebp + 0x608], ax
push 0x104
lea eax, [ebp + 0x400]
push eax
lea eax, [ebp + 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4825ac
lea eax, [ebp + 0x400]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x482577
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x4825ac
push esi
lea eax, [ebp + 0x400]
push eax
push dword [ebp - 0x14]
call fcn.004be74c
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jne 0x482601
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x4825ac
test bl, bl
jne 0x4825c0
cmp word [edi], 0
jne 0x482547
mov ecx, dword [ebp - 0x10]
push 0x523938
call fcn.004024df
mov ecx, dword [ebp + 0x620]
add ecx, 0xfffffff0
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x610]
xor ecx, ebp
call fcn.004b96ff
add ebp, 0x614
leave
ret
call fcn.00499991
push eax
lea ecx, [ebp - 0x18]
call fcn.004727f7
mov eax, dword [ebp - 0x14]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp + 0x608]
push eax
lea eax, [ebp - 0x18]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.00402967
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
call fcn.0040228a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
jmp 0x4825cd
Function at 0x48e2a0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x48e2d6
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push 0x48e1b3
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov al, 1
jmp 0x48e368
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x48e33d
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x48e321
dec eax
je 0x48e308
dec eax
je 0x48e321
dec eax
jne 0x48e2cf
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x64]
mov dword [esi], ecx
add eax, 0xfffffff0
jmp 0x48e338
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x48e2cf
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x48e366
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
jmp 0x48e2cf
xor al, al
pop edi
leave
ret