joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408354
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x408349
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
ret

Function at 0x408360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
call fcn.004082f0
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0
push 0x40
call edi
mov esi, eax
test esi, esi
jne 0x40838d
push 8
push eax
push 0x40
call edi
mov esi, eax
test esi, esi
jne 0x40838d
pop edi
pop esi
pop ecx
ret
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push 0
push 0x80
jne 0x4083a8
push 2
jmp 0x4083aa
push 1
push 0
push 0
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4083cc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 3
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4084e0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x408510
Capabilities:
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x41439b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
lea ecx, [esp + 0x10c]
call fcn.00412740
lea eax, [esp + 8]
push 0x104
push eax
push 0
mov dword [esp + 0x434], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x110]
call fcn.004127b0
test eax, eax
je 0x408684
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
lea ecx, [esp + 0x114]
call fcn.004128c0
test eax, eax
je 0x408684
mov eax, dword [esp]
test eax, eax
je 0x408684
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x218]
lea eax, [esp + 8]
push edx
push 0
push 0x419ac4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
lea ecx, [esp + 0x21c]
push 0
push ecx
push str.http:__update.360safe.com_safe_fixtool.ini
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jl 0x408684
mov ecx, dword [esp]
xor edx, edx
cmp byte [ecx], 0
je 0x40860a
mov al, byte [ecx]
cmp al, 0x20
je 0x408602
cmp al, 0x2c
je 0x4085fc
mov byte [esp + edx + 8], al
jmp 0x408601
mov byte [esp + edx + 8], 0x2e
inc edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4085ec
mov byte [esp + edx + 8], 0
lea edx, [esp + 0x218]
push edx
lea eax, [esp + 0x320]
push 0x104
push eax
push str.1.0.0.2055
push 0x419a88
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
lea edx, [esp + 0x31c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x408684
lea ecx, [esp + 0x10c]
mov dword [esp + 0x428], 0xffffffff
call fcn.00412780
mov eax, 1
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
add esp, 0x42c
ret
lea ecx, [esp + 0x10c]
mov dword [esp + 0x428], 0xffffffff
call fcn.00412780
mov ecx, dword [esp + 0x420]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x42c
ret

Function at 0x4086c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4086e6
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x4086f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x408970
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4143b8
push eax
mov dword fs:[0], esp
sub esp, 8
push str.SYSTEMCurrentControlSetServicescnsminkp
push 0x80000002
call fcn.00406120
add esp, 8
test eax, eax
jne 0x4089b4
push str.SYSTEMCurrentControlSetServicesyaskp
push 0x80000002
call fcn.00406120
add esp, 8
test eax, eax
je 0x4089ff
push esi
lea ecx, [esp + 4]
call fcn.00412910
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.004129b0
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.SYSTEMCurrentControlSetServicescnsminkp
push 0x80000002
call esi
push str.SYSTEMCurrentControlSetServicesyaskp
push 0x80000002
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00412940
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408cd0
Capabilities:
Check if file exists
Delete registry key
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x210
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x218]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 8]
push ecx
push edx
push str.ImagePath
push edi
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x408dd8
push esi
push 0xc
lea eax, [esp + 0x14]
push str.rundll32.exe
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x408db4
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea ecx, [esp + 0x10]
push str..log_start
push ecx
call esi
test eax, eax
je 0x408db4
lea edx, [esp + 0x1d]
push str._start
push edx
call esi
test eax, eax
je 0x408db4
mov byte [eax], 0
lea eax, [esp + 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x1d]
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408db4
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x408db4
lea edx, [esp + 0x114]
push edx
call fcn.00406260
add esp, 4
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop esi
mov dword [0x41d920], 1
mov eax, 1
pop edi
add esp, 0x210
ret
mov eax, 1
pop edi
add esp, 0x210
ret

Function at 0x408df0
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push str.AppInit_DLLs
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x408e9a
mov ax, word [0x419e58]
mov cl, byte [0x419e5a]
mov ebx, dword [sym.imp.MSVCRT.dll__mbstok]
mov word [esp + 0x10], ax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x1a], cl
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x408e9a
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push 2
push 0x419e54
push esi
call edi
test eax, eax
jne 0x408e88
push str..LOG
push esi
call ebp
test eax, eax
jne 0x408ea7
lea ecx, [esp + 0x10]
push ecx
push 0
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x408e6e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40c
ret
Function at 0x409100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
mov dl, byte [0x41d744]
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x108]
lea edx, [esp + 4]
push ecx
push str._s_realplayer.exe
push 0x104
push edx
call fcn.00409880
lea eax, [esp + 0x14]
push eax
call fcn.00406220
add esp, 0x14
test eax, eax
pop edi
je 0x409188
mov eax, 1
add esp, 0x208
ret
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push str._s_nbbho.dll
push 0x104
push edx
call fcn.00409880
lea eax, [esp + 0x10]
push eax
call fcn.00406220
add esp, 0x14
test eax, eax
je 0x4091c1
mov eax, 1
add esp, 0x208
ret
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push str._s_brlmon.dll
push 0x104
push edx
call fcn.00409880
lea eax, [esp + 0x10]
push eax
call fcn.00406220
add esp, 0x14
test eax, eax
je 0x4091fa
mov eax, 1
add esp, 0x208
ret
push str.CLSID295CD217_AD34_4B66_91BA_48D5EFD9CA20
push 0x80000000
call fcn.00406120
add esp, 8
test eax, eax
je 0x40921c
mov eax, 1
add esp, 0x208
ret
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push str._sIeFilter.dll
push 0x104
push edx
call fcn.00409880
lea eax, [esp + 0x10]
push eax
call fcn.00406220
add esp, 0x14
test eax, eax
je 0x409255
mov eax, 1
add esp, 0x208
ret
lea ecx, [esp + 0x104]
push 0x104
push ecx
call fcn.00406160
add esp, 8
lea edx, [esp + 0x104]
lea eax, [esp]
push edx
push str._sTencentQQMessenger.exe
push 0x104
push eax
call fcn.00409880
lea ecx, [esp + 0x10]
push ecx
call fcn.00406220
add esp, 0x14
neg eax
sbb eax, eax
neg eax
add esp, 0x208
ret
Function at 0x4092a0
Capabilities:
Delete registry key
Delete registry value
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
call fcn.00409100
test eax, eax
je 0x4094d5
mov dl, byte [0x41d744]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], dl
mov byte [ebp - 0x12c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x230]
mov dword [ebp - 0x28], str.realplayer.exe
push eax
mov dword [ebp - 0x24], str.RavMon.dll
mov dword [ebp - 0x20], str.nbbho.dll
mov dword [ebp - 0x1c], str.brlmon.dll
mov dword [ebp - 0x18], str.gnimatmd.bat
mov dword [ebp - 0x14], str.IeFilter.dll
mov dword [ebp - 0x10], str.Maxthonz.dll
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x12c]
push ecx
push str._s_realplayer.exe
push 0x103
push edx
call fcn.00409880
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x10
push 0
call esi
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00406d10
add esp, 0xc
push 0
call esi
push eax
push str.TencentQQMessenger.exe
call fcn.00406d10
add esp, 0xc
lea esi, [ebp - 0x28]
mov edi, 7
mov ecx, dword [esi]
lea edx, [ebp - 0x230]
push ecx
push edx
push str._s_s
lea eax, [ebp - 0x12c]
push 0x103
push eax
call fcn.00409880
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00406260
add esp, 0x18
add esi, 4
dec edi
jne 0x409385
push str.realplayer.exe
call fcn.00407270
push str.Messenger.exe
call fcn.00407270
lea edx, [ebp - 0x230]
push 0x104
push edx
mov dword [ebp - 0xc], str.Messenger.exe
mov dword [ebp - 8], str.Messenger.dll
mov dword [ebp - 4], str.RTraveler.dll
call fcn.00406160
add esp, 0x10
lea esi, [ebp - 0xc]
mov edi, 3
mov eax, dword [esi]
lea ecx, [ebp - 0x230]
push eax
push ecx
push str._sTencentQQ_s
lea edx, [ebp - 0x12c]
push 0x103
push edx
call fcn.00409880
lea eax, [ebp - 0x12c]
push eax
call fcn.00406260
add esp, 0x18
add esi, 4
dec edi
jne 0x4093ff
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.SoftwareMicrosoft_NT
push 0x80000002
call esi
push str.Clsid295CD217_AD34_4B66_91BA_48D5EFD9CA20
push 0x80000000
call esi
mov ecx, dword [str.about:blank]
mov eax, dword [0x419f80]
mov edx, dword [0x419f7c]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x32c], eax
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x328]
push str.Start_Page
mov dword [ebp - 0x330], edx
push str.softwaremicrosoftinternet_explorermain
push 0x80000001
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
nop
lea edi, [ebp - 0x334]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x334]
push ecx
push 1
push str.Start_Page
push str.softwaremicrosoftinternet_explorermain
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
mov dword [0x41d924], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409760
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4143db
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, dword [esp + 0x11c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40980d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40980d
lea eax, [esp + 8]
push eax
push 0
push 0x41a37c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x409802
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409802
lea ecx, [esp + 4]
call fcn.00412c10
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0
call fcn.00412ec0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
mov dword [esp + 0x114], 0xffffffff
call fcn.00412c40
jmp 0x40980d
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x10c]
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x409830
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp]
push eax
push str._c_rd___s___s__q
push 0x104
push ecx
call fcn.00409880
add esp, 0x10
lea edx, [esp]
push 0
push 0
push edx
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0x20
cmp ecx, eax
sbb eax, eax
neg eax
add esp, 0x104
ret

Function at 0x4098f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push esi
push edi
mov edi, dword [esp + 0x118]
mov esi, 0x41a2e0
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x409961
lea edx, [esp + 0x10]
push edx
call ebp
test eax, eax
je 0x409961
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x409954
lea ecx, [esp + 0x10]
push ecx
call fcn.00409760
lea edx, [esp + 0x14]
push edx
call fcn.00409830
add esp, 8
jmp 0x409961
lea eax, [esp + 0x10]
push eax
call fcn.004084e0
add esp, 4
add esi, 4
cmp esi, 0x41a2f0
jb 0x409912
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x409980
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov al, byte [0x41d744]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
push ecx
stosb byte es:[edi], al
call fcn.00406160
add esp, 8
test eax, eax
je 0x4099de
lea edx, [esp + 0x14]
push str.360Safe
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x14]
push eax
call fcn.00409760
lea ecx, [esp + 0x18]
push ecx
call fcn.004098f0
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x409a2d
lea edx, [esp + 0x14]
push edx
call fcn.00409760
lea eax, [esp + 0x18]
push eax
call fcn.004098f0
add esp, 8
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, 0x41a2f0
mov ecx, dword [esi]
lea edx, [esp + 0x118]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_s
push 0x103
push edx
call fcn.00409880
add esp, 0x10
lea eax, [esp + 0x118]
push eax
push 0x80000002
call edi
add esi, 4
cmp esi, str.mmc.exe
jb 0x409a38
lea ecx, [esp + 8]
push 1
push ecx
mov dword [esp + 0x10], str..360safe.com
call fcn.00407850
add esp, 8
pop edi
pop esi
add esp, 0x214
ret
Function at 0x409a90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, dword [0x41d934]
sub esp, 0x334
test eax, eax
push esi
je 0x409bf8
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
je 0x409bf8
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409bf0
push ebx
push ebp
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0xc19
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x409bdb
lea edx, [esp + 0x13c]
push 0x104
push edx
push 0
push ebp
call dword [0x41d934]
test eax, eax
je 0x409bd4
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.MSVCRT.dll__mbslwr]
add esp, 4
xor edi, edi
xor ebx, ebx
mov esi, 0x4154dc
mov ecx, dword [esi]
mov edx, dword [edi + 0x4154cc]
inc ecx
lea eax, [esp + 0x240]
push ecx
push edx
push 0x419584
push 0x104
push eax
call fcn.00409880
lea ecx, [esp + 0x254]
lea edx, [esp + 0x150]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 0x1c
test eax, eax
jne 0x409b88
add esi, 4
inc ebx
cmp esi, 0x415520
jb 0x409b3b
jmp 0x409bbf
mov eax, dword [edi + 0x4154dc]
movsx eax, byte [eax]
sub eax, 0x30
je 0x409bb6
sub eax, 2
jne 0x409bbf
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x13c]
push ecx
call fcn.004084e0
add esp, 4
jmp 0x409bbf
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp ebx, 0x11
jne 0x409bd0
add edi, 4
cmp edi, 0x10
jb 0x409b34
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409ae7
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x334
ret

Function at 0x409c00
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, 0x41a3fc
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_s
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x80000002
call ebx
add esi, 4
cmp esi, 0x41a418
jb 0x409c1a
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x409e00
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
sub esp, 0x234
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov dword [esp + 8], eax
test eax, eax
mov byte [esp + 4], 0x41
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0
je 0x409f86
push ebp
mov ebp, dword [esp + 0x240]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x409f61
cmp byte [esp + 0x10], 0x43
jl 0x409f61
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x409f5d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push str._s_autorun.inf
push 0x104
push edx
call fcn.00409880
add esp, 0x10
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x409f5d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x3c]
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x409f5d
test byte [esp + 0x18], 0x10
jne 0x409f5d
mov eax, dword [esp + 0x38]
test eax, eax
je 0x409f5d
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x140]
mov esi, 0x104
lea eax, [esp + 0x140]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x409ee9
mov byte [eax], cl
inc eax
dec esi
jne 0x409eda
jmp 0x409eed
test esi, esi
jne 0x409eee
dec eax
mov byte [eax], 0
mov esi, 0x415520
mov edx, dword [esi]
lea eax, [esp + 0x10]
push edx
push eax
push str._s_s
lea ecx, [esp + 0x48]
push 0x104
push ecx
call fcn.00409880
add esp, 0x14
lea edx, [esp + 0x3c]
push edx
call edi
test al, 0x10
jne 0x409f3a
test al, 6
je 0x409f3a
test ebp, ebp
mov ebx, 1
je 0x409f3a
lea eax, [esp + 0x3c]
push eax
call fcn.004084e0
add esp, 4
add esi, 4
cmp esi, 0x415550
jb 0x409ef6
test ebx, ebx
je 0x409f5d
test ebp, ebp
je 0x409f5d
lea ecx, [esp + 0x140]
push ecx
call fcn.004084e0
add esp, 4
mov eax, dword [esp + 0x14]
mov dl, byte [esp + 0x10]
shr eax, 1
inc dl
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x10], dl
jne 0x409e3a
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x234
ret
mov eax, ebx
pop ebx
add esp, 0x234
ret
Function at 0x40a540
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415578
push 0x414114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], 0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a5a0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0xa00000
jbe 0x40a5c8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test edi, edi
jne 0x40a5fb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x24], esi
push edi
call ebx
test esi, esi
jne 0x40a629
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push esi
call fcn.0040a450
add esp, 0x10
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x34]
jne 0x40a654
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x40a670
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a690
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41441b
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [esp + 0x12c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40a6de
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
lea ecx, [esp + 0x10]
call fcn.00412740
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0
call fcn.004127b0
test eax, eax
jne 0x40a72c
mov dword [esp + 0x124], ebx
lea ecx, [esp + 0x10]
call fcn.00412780
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.004128c0
test eax, eax
je 0x40a700
mov eax, dword [esp + 8]
mov dword [esp + 0x124], ebx
test eax, eax
lea ecx, [esp + 0x10]
je 0x40a70b
call fcn.00412780
push esi
call fcn.0040a540
mov ecx, dword [esp + 0x120]
add esp, 4
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret