joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ec06
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
mov ebx, eax
call edi
test eax, eax
je 0x46ec30
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x46ece8
push 0
push dword [esi + 4]
call edi
cmp eax, 0x80
jne 0x46ec47
mov dword [esi + 0x48], 0x2734
jmp 0x46ec29
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
and dword [ebx], 0
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x46eca5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x46ecda
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46ecdd
and dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x46ecd4
mov bl, 1
jmp 0x46ecdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
pop edi
pop ebx
leave
ret 4
Function at 0x4787b1
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.004e38a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040253b
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
mov eax, esi
call fcn.004de422
add ebp, 0x194
leave
ret

Function at 0x478844
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.004e38a0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040253b
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
mov eax, esi
call fcn.004de422
add ebp, 0x194
leave
ret
Function at 0x47910f
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xc
mov eax, 0x50bdda
call fcn.004e3d00
lea esi, [ebp - 0x10]
call fcn.004787b1
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x60a9dc], ebx
jne 0x479170
push ecx
mov dword [ebp - 0x14], esp
mov esi, esp
push 0x5afd90
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.RESOURCESTRING
call fcn.0040253b
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.IDS_CLEAN_REG_FOR_FREE
call fcn.0040253b
push esi
mov byte [ebp - 4], bl
call fcn.00406ef3
lea ecx, [ebp - 0x10]
call fcn.00406dee
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.00402639
lea esi, [ebp - 0x14]
call fcn.00478844
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004025da
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
cmp dword [0x60a9dc], ebx
jne 0x4791fc
push ecx
mov dword [ebp - 0x18], esp
mov esi, esp
push 0x5afd90
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.RESOURCESTRING
call fcn.0040253b
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.IDS_CLEAN_REG_FOR_FREE
call fcn.0040253b
push esi
mov byte [ebp - 4], bl
call fcn.00406ef3
lea ecx, [ebp - 0x10]
call fcn.00406dee
push 0x80
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push ebx
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.00478986
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
call fcn.004e3dd8
ret
Function at 0x4822fb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x24
mov eax, 0x500ad6
call fcn.004e3d00
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x218]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x21c]
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], vtable.AutoComPtr_struct_IShellLinkW_.0
lea eax, [ebp - 0x10]
push eax
push 0x5ae750
xor ebx, ebx
inc ebx
push ebx
push edi
mov dword [ebp - 4], ebx
push 0x5ae7f0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x482459
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], vtable.AutoComPtr_struct_IPersistFile_.0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
push edx
push 0x5ae830
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x48244d
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, edi
jl 0x48244d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x5afd90
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, edi
jl 0x4823fe
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x3c]
mov esi, eax
cmp esi, edi
jl 0x4823fe
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x4823fe
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4823e0
sub eax, edx
sar eax, 1
je 0x4823fe
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, eax
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.004e38a0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, edi
jl 0x48244d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x44]
mov esi, eax
cmp esi, edi
jl 0x48244d
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x18]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], bl
call fcn.0048486c
xor eax, eax
cmp esi, edi
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.0048482b
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.004de422
add ebp, 0x20c
leave
ret 0xc
Function at 0x48916e
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
mov ecx, 0x60ce58
mov dword [0x60ce54], 0x1000
call fcn.00402719
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 0x4891ad
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x489232
cmp word [esi + 2], 0x3a
je 0x489232
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 0x4891dd
sub eax, edx
sar eax, 1
lea ecx, [ebp + eax*2 - 0x7e]
je 0x4891fe
sub ecx, edi
dec eax
cmp word [ecx], 0x5c
je 0x489204
cmp eax, ebx
jne 0x4891f1
cmp word [ecx], 0x5c
jne 0x48921b
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 0x48920b
jmp 0x489247
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 0x489222
jmp 0x489247
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 0x489239
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x489277
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x489277
push ecx
lea eax, [ebp - 0x7c]
mov ecx, esp
mov dword [ebp - 0x80], esp
push eax
call fcn.0040253b
call fcn.00489314
push ebx
push 0x8b041
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x60ce40]
mov esi, 0x60ce40
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
je 0x4892aa
mov eax, dword [0x60ce40]
push edi
push ebx
push ebx
mov ecx, esi
mov byte [0x60ce50], 1
call dword [eax + 0x28]
jmp 0x4892b0
mov byte [0x60ce50], bl
push 0x60ce24
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de422
add ebp, 0x194
leave
ret
Function at 0x48b186
Capabilities:
Get memory capacity

Disassembly:
push 0x6c
mov eax, 0x51418e
call fcn.004e3d33
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.004be6f3
push eax
lea ecx, [ebp - 0x18]
call fcn.004027f9
mov byte [ebp - 4], 1
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x14]
call fcn.004027f9
mov byte [ebp - 4], 2
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x1c]
call fcn.004027f9
mov byte [ebp - 4], 3
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x20]
call fcn.004027f9
push esi
push edi
mov edi, str._llu
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], 4
call fcn.00402a1d
add esp, 0x10
push dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push ebx
push edi
push eax
call fcn.00402a1d
add esp, 0x10
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push edi
push eax
call fcn.00402a1d
add esp, 0x10
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x30]
push edi
push eax
call fcn.00402a1d
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.00488adf
mov eax, esi
call fcn.00487f90
push edi
push dword [ebp - 0x18]
push str.total_phy
push esi
call fcn.00488adf
push edi
push dword [ebp - 0x14]
push str.avail_phy
push esi
call fcn.00488adf
mov ebx, dword [ebp - 0x1c]
push edi
push ebx
push str.total_page_file
push esi
call fcn.00488adf
push edi
mov edi, dword [ebp - 0x20]
push edi
push str.avail_page_file
push esi
call fcn.00488adf
call fcn.00487fba
lea ecx, [edi - 0x10]
call fcn.0040285b
lea ecx, [ebx - 0x10]
call fcn.0040285b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
call fcn.004e3dd8
ret 4
Function at 0x48cd41
Capabilities:
Get disk information

Disassembly:
push 0x470
mov eax, 0x5057a1
call fcn.004e3d69
lea ecx, [edi + 8]
mov dword [ebp - 0x47c], edi
call fcn.0040281e
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.004cc85e
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
call fcn.00456815
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.004e38a0
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.004e38a0
xor eax, eax
push esi
mov word [ebp - 0x474], ax
lea eax, [ebp - 0x472]
push ebx
push eax
call fcn.004e38a0
add esp, 0x18
cmp word [ebp - 0x274], bx
je 0x48ceae
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x48ce8f
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.004e0533
pop ecx
pop ecx
cmp eax, ebx
je 0x48ce5b
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 0x48ce8f
lea eax, [ebp - 0x74]
push eax
lea ecx, [edi + 0x28]
call fcn.004ccb16
lea ecx, [ebp - 0x474]
push ecx
mov ecx, eax
call fcn.00402719
push ebx
push dword [ebp - 0x478]
call fcn.004e0533
inc eax
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x478], eax
cmp word [eax], bx
jne 0x48ce24
mov eax, edi
call fcn.004e3dec
ret
Function at 0x48d741
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004e5a80
push 0xffffffffffffffff
push 0x50303e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5ff740]
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 0x48d885
cmp word [ebp + 0x800], si
je 0x48d87f
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
lea eax, [ebp]
push eax
call esi
test eax, eax
je 0x48d87f
cmp word [eax], 0
je 0x48d87f
push eax
call esi
mov esi, eax
test esi, esi
je 0x48d87f
cmp word [esi], 0
je 0x48d87f
push 4
push str.USER
push esi
call fcn.004e357c
add esp, 0xc
test eax, eax
jne 0x48d87f
push esi
lea ecx, [ebp - 0x10]
call fcn.0040253b
and dword [ebp - 4], 0
push str..DEFAULT
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x48d85a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
inc edi
call fcn.0040285b
jmp 0x48d79a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 8]
lea edx, [ebp]
push edx
push eax
call fcn.004c973a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
lea edx, [ebp + 0x800]
push edx
push eax
call fcn.004c973a
jmp 0x48d845
inc edi
jmp 0x48d79a
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.004de422
add ebp, 0x1004
leave
ret 0xc
Function at 0x48edc7
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510a57
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1974
call fcn.004e5a80
push ebx
push esi
push edi
mov eax, dword [0x5ff740]
xor eax, esp
push eax
lea eax, [esp + 0x1988]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004075e9
mov esi, eax
call fcn.0047876d
xor ebx, ebx
cmp eax, 6
jne 0x48eec1
cmp esi, ebx
jne 0x48eec1
mov eax, dword [0x60889c]
xor edi, edi
inc edi
push edi
mov esi, 0x5afd90
push esi
push str.arovistadefrag
push dword [eax]
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x48ee64
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.ExitProcess_:_Elevated_now_restarting
call fcn.0040253b
call fcn.00454d39
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.0040253b
push ecx
mov dword [esp + 0x19a4], ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.IDS_STR_LACK_OF_PERMISSION
call fcn.0040253b
or dword [esp + 0x19a4], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.00406ef3
mov dword [esp + 0x1998], edi
push dword [eax]
call fcn.004be306
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x48efd7
mov al, byte [0x60a9e0]
test al, al
je 0x48ef09
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00490732
lea eax, [esp + 0x24]
mov dword [esp + 0x1990], 2
mov ebx, dword [0x60a800]
push 0x19f
push eax
call fcn.004575bd
pop ecx
pop ecx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x24]
jmp 0x48efca
push ebx
push 0x2024
push 0x5afd90
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.RESOURCESTRING
call fcn.0040253b
push ecx
mov dword [esp + 0x19a4], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push str.IDS_ALERT_DEFRAG
call fcn.0040253b
or dword [esp + 0x19a4], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.00406ef3
mov dword [esp + 0x1998], 4
push dword [eax]
call fcn.004be306
cmp eax, 6
sete byte [esp + 0x17]
or dword [esp + 0x1990], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
cmp byte [esp + 0x17], bl
je 0x48efd7
push edi
lea eax, [esp + 0xcd8]
push eax
call fcn.00490732
lea eax, [esp + 0xcd4]
mov dword [esp + 0x1990], 5
mov ebx, dword [0x60a800]
push 0x19f
push eax
call fcn.004575bd
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.0049082f
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 0x49647a
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.00482292
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 0x496530
cmp dword [ebp - 4], ebx
je 0x496530
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 0x496501
push SysReAllocStringLen
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 0x496532
mov dword [esi], ebx
pop ebx
leave
ret

Function at 0x496535
Capabilities:
Get common file path

Disassembly:
push 0x828
mov eax, 0x502d81
call fcn.004e3d69
mov esi, 0x410
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004e38a0
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e38a0
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 0x4965da
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040253b
and dword [ebp - 4], 0
lea esi, [ebx + 0x54]
push eax
mov ecx, esi
call fcn.004025da
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x834]
add ecx, 0xfffffff0
call fcn.0040285b
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 0x4965d2
lea eax, [ebp - 0x830]
push eax
jmp 0x4965e2
lea eax, [ebp - 0x420]
jmp 0x4965cf
push 0x5af644
lea ecx, [ebx + 0x54]
call fcn.00402719
call fcn.004e3dec
ret
Function at 0x4965ed
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.004e5a80
mov eax, dword [0x5ff740]
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.004e38a0
push esi
lea eax, [ebp + 0xf88]
push 0
push eax
call fcn.004e38a0
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 0x496704
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x496704
test byte [0x60ce94], 1
jne 0x496697
or dword [0x60ce94], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx esi, ax
jmp 0x49669d
mov esi, dword [0x60ce90]
mov eax, esi
not eax
test al, 2
je 0x4966aa
add esi, 3
jmp 0x4966ad
add esi, 5
push 0x208
lea eax, [ebp + 0x1f88]
push 0
push eax
mov dword [0x60ce90], esi
call fcn.004e38a0
mov eax, dword [ebx + 0x54]
add esp, 0xc
lea ecx, [ebp + 0x1f88]
push ecx
push esi
push 0x5c94d0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x7c]
test eax, eax
je 0x4966f5
lea eax, [ebp + 0x1f88]
push eax
call fcn.00402719
jmp 0x4966fd
push dword [ebp - 0x80]
call fcn.004025da
mov eax, dword [ebp - 0x7c]
push dword [eax]
jmp 0x496749
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.004e159b
mov ecx, dword [ebp - 0x7c]
add esp, 0x10
lea eax, [ebp + 0xf88]
push eax
call fcn.00402719
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.004de422
add ebp, 0x2194
leave
ret 8