joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c787
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push str._Hosts
mov ecx, dword [ebp + 8]
call fcn.00409360
push 0x104
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.driversetchosts
lea ecx, [ebp - 0x204]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
push 0x51b9b0
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x46c7f4
xor eax, eax
jmp 0x46c8e1
mov eax, dword [ebp - 0x208]
push eax
push 0x100
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x46c8cf
mov dword [ebp - 0x20c], 0
lea edx, [ebp - 0x100]
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 0
je 0x46c88f
mov eax, dword [ebp - 0x210]
movsx ecx, byte [eax]
cmp ecx, 0x23
je 0x46c860
mov edx, dword [ebp - 0x210]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x46c860
mov ecx, dword [ebp - 0x210]
movsx edx, byte [ecx]
test edx, edx
jne 0x46c86c
mov dword [ebp - 0x20c], 1
jmp 0x46c88f
mov eax, dword [ebp - 0x210]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x46c88b
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
jmp 0x46c88d
jmp 0x46c88f
jmp 0x46c82e
cmp dword [ebp - 0x20c], 0
jne 0x46c8b4
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409390
push 0x51b9b4
mov ecx, dword [ebp + 8]
call fcn.00409390
push 0x100
push 0
lea ecx, [ebp - 0x100]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x46c7f4
push 0x51b9bc
mov ecx, dword [ebp + 8]
call fcn.00409390
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x46cc71
Capabilities:
Check for time delay via gettickcount
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov dword [ebp - 0x130], ecx
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.down360test.ini
lea ecx, [ebp - 0x110]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
push 0x51bc1c
mov ecx, dword [ebp + 8]
call fcn.00409360
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x114], eax
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push str.http:__update.360safe.com_safe_safeup35.ini
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x46cdd5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x46cd18
mov dword [ebp - 0x114], 1
lea ecx, [ebp - 0x11c]
call fcn.00409340
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x130]
call fcn.0046ce69
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
imul eax, eax, 0x3e8
mov ecx, dword [ebp - 0x114]
shl ecx, 0xa
xor edx, edx
div ecx
push eax
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x114]
push eax
push 0x51bc60
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00439000
add esp, 0x14
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004155e0
push 0x51bca8
mov ecx, dword [ebp + 8]
call fcn.00409390
mov dword [ebp - 0x128], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.00409510
mov eax, dword [ebp - 0x128]
jmp 0x46ce59
lea ecx, [ebp - 0x124]
call fcn.00409340
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51bcd4
lea edx, [ebp - 0x124]
push edx
call fcn.00439000
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
call fcn.004155e0
push 0x51bd04
mov ecx, dword [ebp + 8]
call fcn.00409390
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00409510
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d206
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abd01
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x36c
mov dword [ebp - 0x378], ecx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0x128
mov dword [ebp - 0x364], 0x224
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x46d44c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x46d431
mov ecx, dword [ebp - 0x130]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x36c], eax
lea edx, [ebp - 0x364]
push edx
mov eax, dword [ebp - 0x36c]
push eax
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0
je 0x46d3e2
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x46d3c4
lea ecx, [ebp - 0x370]
call fcn.00409340
mov dword [ebp - 4], 0
push 0x51bdd4
mov ecx, dword [ebp + 0xc]
call fcn.00409390
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409390
mov dword [ebp - 0x13c], 1
lea ecx, [ebp - 0x370]
push ecx
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x378]
call fcn.0046d74d
test eax, eax
je 0x46d3a5
mov eax, dword [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.____
mov ecx, dword [ebp + 0xc]
call fcn.00409390
lea edx, [ebp - 0x370]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004155e0
push 0x51bdf0
mov ecx, dword [ebp + 0xc]
call fcn.00409390
mov dword [ebp - 0x374], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x370]
call fcn.00409510
mov eax, dword [ebp - 0x374]
jmp 0x46d46e
push 0x51bdf4
mov ecx, dword [ebp + 0xc]
call fcn.00409390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x370]
call fcn.00409510
lea eax, [ebp - 0x364]
push eax
mov ecx, dword [ebp - 0x36c]
push ecx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0x368], eax
jmp 0x46d2c0
cmp dword [ebp - 0x36c], 0
je 0x46d402
mov edx, dword [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x36c], 0
cmp dword [ebp - 0x13c], 0
jne 0x46d431
push 0x51bdf8
mov ecx, dword [ebp + 0xc]
call fcn.00409390
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00409390
push 0x51be0c
mov ecx, dword [ebp + 0xc]
call fcn.00409390
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x10], eax
jmp 0x46d26d
cmp dword [ebp - 0x140], 0
je 0x46d46c
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x140], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x46d4e3
Capabilities:
Check os version
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d4
push edi
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x134], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x130]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c8], 0
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0x1c4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c8], 0x94
push str.WINDOWS
mov ecx, dword [ebp + 8]
call fcn.00409390
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x46d576
push 0x51be24
mov ecx, dword [ebp + 8]
call fcn.00409390
xor eax, eax
jmp 0x46d73c
cmp dword [ebp - 0x1c4], 6
jne 0x46d595
push str.MpsSvc
lea ecx, [ebp - 0x118]
push ecx
call sub.ntdll.dll_strcpy
add esp, 8
jmp 0x46d5d1
cmp dword [ebp - 0x1c4], 5
jne 0x46d5bd
cmp dword [ebp - 0x1c0], 1
jne 0x46d5bd
push str.SharedAccess
lea edx, [ebp - 0x118]
push edx
call sub.ntdll.dll_strcpy
add esp, 8
jmp 0x46d5d1
push 0x51be54
mov ecx, dword [ebp + 8]
call fcn.00409390
xor eax, eax
jmp 0x46d73c
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x1d4]
call fcn.0046d47e
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46d602
push 0x51be68
mov ecx, dword [ebp + 8]
call fcn.00409390
xor eax, eax
jmp 0x46d73c
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x46d635
push 0x51be78
mov ecx, dword [ebp + 8]
call fcn.00409390
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x46d73c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x554c34
lea ecx, [ebp - 0x14]
call fcn.00415500
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x1d8], edx
cmp dword [ebp - 0x1d8], 1
je 0x46d6a9
cmp dword [ebp - 0x1d8], 4
je 0x46d67c
cmp dword [ebp - 0x1d8], 7
je 0x46d6b8
jmp 0x46d6c7
mov ecx, dword [ebp - 0x1d4]
call fcn.0046d8a0
test eax, eax
je 0x46d69a
push 0x51be88
lea ecx, [ebp - 0x14]
call fcn.00409360
jmp 0x46d6a7
push 0x51be90
lea ecx, [ebp - 0x14]
call fcn.00409360
jmp 0x46d6d4
push 0x51be98
lea ecx, [ebp - 0x14]
call fcn.00409360
jmp 0x46d6d4
push 0x51bea0
lea ecx, [ebp - 0x14]
call fcn.00409360
jmp 0x46d6d4
push str.0_
lea ecx, [ebp - 0x14]
call fcn.00409360
push 0x51beb4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.0046ddf0
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 8]
call fcn.004155e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1cc]
call fcn.00409510
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409510
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x46d74d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0x228], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46d779
xor eax, eax
jmp 0x46d89a
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46d796
xor eax, eax
jmp 0x46d89a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46d7b3
xor eax, eax
jmp 0x46d89a
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x46d88a
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x51beb8
mov ecx, dword [ebp - 0xc]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x46d88a
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
and edx, 0xffff
and edx, 0xffff
push edx
push str.StringFileInfo_04x_04x
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x220]
push ecx
push str._sCompanyName
push 0x104
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x46d88a
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00409360
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x46dbce
Capabilities:
Create process on windows
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1370
call sub.ntdll.dll__chkstk
push edi
mov dword [ebp - 0x1370], ecx
mov dword [ebp - 0x1364], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x1360]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov cl, byte [0x554c3c]
mov byte [ebp - 0x1014], cl
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1013]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str._NetStat
mov ecx, dword [ebp + 8]
call fcn.00409360
lea edx, [ebp - 0x1118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x1320]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe__c_netstat.exe__nr__
lea ecx, [ebp - 0x1320]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
push str.360xxNetstat.txt
lea edx, [ebp - 0x1118]
push edx
call sub.ntdll.dll_strcat
add esp, 8
lea eax, [ebp - 0x1118]
push eax
lea ecx, [ebp - 0x1320]
push ecx
call sub.ntdll.dll_strcat
add esp, 8
lea edx, [ebp - 0x1118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1364]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov word [ebp - 0x1334], 0
mov ecx, dword [ebp - 0x1338]
or ecx, 0xa
mov dword [ebp - 0x1338], ecx
mov dword [ebp - 0x1364], 0x44
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1364]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1320]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x136c], eax
cmp dword [ebp - 0x136c], 0
jne 0x46dd1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor eax, eax
jmp 0x46dde7
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x1118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1368], eax
cmp dword [ebp - 0x1368], 0xffffffff
jne 0x46dd66
xor eax, eax
jmp 0x46dde7
push 0
lea edx, [ebp - 4]
push edx
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x1368]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ddbb
lea edx, [ebp - 0x1014]
push edx
mov ecx, dword [ebp + 8]
call fcn.00409390
cmp dword [ebp - 4], 0x1000
jae 0x46dda3
jmp 0x46ddbb
push 0x1000
push 0
lea eax, [ebp - 0x1014]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
jmp 0x46dd66
mov ecx, dword [ebp - 0x1368]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x51c094
mov ecx, dword [ebp + 8]
call fcn.00409390
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x46e0e3
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
push 0x104
lea eax, [ebp - 0x214]
push eax
call fcn.0046e24a
add esp, 8
test eax, eax
jne 0x46e111
xor eax, eax
jmp 0x46e246
push 0x51c134
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.00407f00
lea edx, [ebp - 0x214]
push edx
call sub.ntdll.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x214]
mov dword [ebp - 4], eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x108]
push edx
call fcn.0040a130
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x46e17b
xor eax, eax
jmp 0x46e246
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
jmp 0x46e1a5
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 7
jae 0x46e241
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx*4 + 0x51c0c0]
push eax
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409000
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0xffffffff
jne 0x46e1ee
xor eax, eax
jmp 0x46e246
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax*4 + 0x51c0c0]
push ecx
push 0x104
mov edx, dword [ebp - 0x110]
push edx
call fcn.00409000
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x46e22b
xor eax, eax
jmp 0x46e246
push 4
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x46e196
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x46ec8c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2708
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jae 0x46ecfe
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x46edb6
mov dword [ebp - 0x1c], 0
jmp 0x46ed10
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x1c], eax
jae 0x46ed9a
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jne 0x46ed3c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x2c], edx
jmp 0x46ed4f
mov eax, dword [ebp - 0x1c]
add eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + eax + 0xc]
jb 0x46ed95
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x46ed95
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
add eax, dword [edx + ecx + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x46edb6
jmp 0x46ed07
mov dword [ebp - 4], 0xffffffff
jmp 0x46edb3
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ef14
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push edi
mov dword [ebp - 0x660], ecx
mov byte [ebp - 0x638], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x637]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32userinit.exe
push 0x104
lea ecx, [ebp - 0x234]
push ecx
call fcn.00407f00
mov dword [ebp - 0x130], 0
mov ecx, 0x4b
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46f0f7
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x660]
call fcn.0046edc7
test eax, eax
je 0x46f0f7
push str.MD5:
push 0x400
lea edx, [ebp - 0x638]
push edx
call fcn.00407f00
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0046f100
add esp, 8
push eax
push 0x400
lea edx, [ebp - 0x638]
push edx
call fcn.00407f00
push 0x51c354
push 0x400
lea eax, [ebp - 0x638]
push eax
call fcn.00407f00
lea ecx, [ebp - 0x638]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
lea edx, [ebp + eax - 0x638]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x128]
push eax
push 0x51c358
push 0x400
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040a150
add esp, 0x10
lea edx, [ebp - 0x638]
push edx
call sub.ntdll.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x638]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x114]
push ecx
push 0x51c368
push 0x400
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040a150
add esp, 0x10
lea eax, [ebp - 0x638]
push eax
call sub.ntdll.dll_strlen
add esp, 4
lea ecx, [ebp + eax - 0x638]
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x12c], 0
je 0x46f0b1
mov dword [ebp - 0x664], 0x51c378
jmp 0x46f0bb
mov dword [ebp - 0x664], 0x51c37c
mov edx, dword [ebp - 0x664]
push edx
push 0x51c384
push 0x400
mov eax, dword [ebp - 0x238]
push eax
call fcn.0040a150
add esp, 0x10
lea ecx, [ebp - 0x638]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407f00
mov eax, dword [ebp - 0x130]
jmp 0x46f0f9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x46f183
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov dword [ebp - 0x564], ecx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x46f1b0
xor eax, eax
jmp 0x46f38c
push 0x51c3bc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.00407f00
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x46f1f0
xor eax, eax
jmp 0x46f38c
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x254], 0xffffffff
je 0x46f213
mov edx, dword [ebp - 0x254]
and edx, 0x10
test edx, edx
je 0x46f21a
xor eax, eax
jmp 0x46f38c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x110]
push eax
push 0x4b5900
push 1
push 0
push 0x4b5910
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x46f259
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46f38c
lea ecx, [ebp - 4]
push ecx
push 0x4b5920
mov edx, dword [ebp - 0x110]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [eax]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jge 0x46f2a1
mov edx, dword [ebp - 0x110]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46f38c
push 0x104
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.ntdll.dll_mbstowcs]
add esp, 0xc
push 1
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x46f301
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x110]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46f38c
push 2
push 0
push 0x104
lea edx, [ebp - 0x560]
push edx
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x110]
push edx
call dword [ecx + 0xc]
test eax, eax
je 0x46f34f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x110]
push edx
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x46f38c
lea eax, [ebp - 0x560]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409000
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x110]
push edx
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov esp, ebp
pop ebp
ret 8