joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412888
cmp eax, dword [ebp - 8]
jbe 0x405ec8
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412894
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov byte [ebp - 9], al
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412894
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
movzx dx, byte [ebp - 9]
mov eax, dword [ebp - 0x10]
lea eax, [edx + eax]
inc eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x405de6
mov dword [esp], 0x4175f0
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 9]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x405e19
mov dword [esp], str.ERROR:_could_not_write_keyLen_n
call sub.msvcrt.dll_printf
cmp byte [ebp - 9], 0
je 0x405e65
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412894
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
movzx eax, byte [ebp - 9]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x405e65
mov dword [esp], str.ERROR:_could_not_write_msg_key_n
call sub.msvcrt.dll_printf
cmp dword [ebp - 0x10], 0
je 0x405eb1
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412894
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x405eb1
mov dword [esp], str.ERROR:_could_not_write_msg_value_n
call sub.msvcrt.dll_printf
movzx eax, word [ebp - 0x12]
add eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
inc dword [eax]
jmp 0x405d58
mov word [ebp - 0x12], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 4]
add eax, 2
leave
ret
Function at 0x4062be
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, 0x8004667e
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_ioctlsocket
sub esp, 0xc
mov word [ebp - 0x28], 2
mov eax, dword [ebp + 0xc]
movzx eax, ax
mov dword [esp], eax
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x8001
mov eax, dword [0x4196b0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAAsyncSelect
sub esp, 0x10
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_connect
sub esp, 0xc
test eax, eax
je 0x4063f4
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x8001
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.00409096
cmp dword [ebp - 0x44], 0x8001
jne 0x4063f4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [0x4196b0]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_WSAAsyncSelect
sub esp, 0x10
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
test ax, ax
je 0x4063f4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_closesocket
sub esp, 4
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x4c], eax
jmp 0x406422
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, 0x8004667e
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_ioctlsocket
sub esp, 0xc
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
leave
ret
Function at 0x406790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
jne 0x4067df
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4177da
mov dword [esp], 0x4177de
call sub.KERNEL32.DLL_GetTempFileNameA
sub esp, 0x10
test eax, eax
jne 0x4067df
mov dword [ebp - 0xc], 0
jmp 0x406880
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
jne 0x406835
mov dword [ebp - 0xc], 0
jmp 0x406880
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004066c8
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
cmp byte [ebp - 5], 0
je 0x406873
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x40687a
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40757a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x4075d0
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x4075c6
jmp 0x4075d0
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
add dword [eax], edx
jmp 0x407587
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
sete al
movzx eax, al
leave
ret
Function at 0x4075de
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0x64
mov dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x134]
jbe 0x407645
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x124]
cmp eax, dword [edx + 4]
jne 0x40763b
jmp 0x407645
lea eax, [ebp - 0x134]
inc dword [eax]
jmp 0x407616
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x134]
jne 0x407677
cmp dword [ebp - 0x128], 0x3f
ja 0x407677
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp + edx*4 - 0x124], eax
lea eax, [ebp - 0x128]
inc dword [eax]
call fcn.00409012
lea eax, [ebp - 0x130]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
inc eax
mov dword [esp], eax
call sub.WS2_32.DLL_select
sub esp, 0x14
test eax, eax
je 0x4075f8
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jg 0x407704
mov dword [ebp - 0x13c], 0
jmp 0x407765
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0xc]
add dword [eax], edx
cmp dword [ebp - 0xc], 1
jbe 0x4075ee
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
add eax, 2
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0xc]
jne 0x4075ee
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp + 0x14]
sete al
movzx eax, al
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
leave
ret

Function at 0x407dde
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov word [ebp - 0x18], 2
mov dword [ebp - 0x14], 0xffffffff
mov dword [esp], 0x5051
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x16], ax
mov dword [esp + 0x14], 0x10
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.WS2_32.DLL_sendto
sub esp, 0x18
test eax, eax
jg 0x407e62
mov dword [ebp - 0x1c], 0
jmp 0x407e69
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
leave
ret
Function at 0x409124
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0x200
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x4091af
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x4190b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x417bb5
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x4091af
mov dword [ebp - 0xc], 0x4190b0
jmp 0x409235
mov dword [esp + 4], 0x200
mov dword [esp], 0x4190b0
call sub.KERNEL32.DLL_GetWindowsDirectoryA
sub esp, 8
mov dword [esp + 8], 0x200
mov dword [esp + 4], str.AppData
mov dword [esp], 0x4190b0
call sub.msvcrt.dll_strncat
mov dword [esp], 0x4190b0
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x40922e
mov dword [esp + 4], 0
mov dword [esp], 0x4190b0
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
test eax, eax
jne 0x40922e
mov dword [esp + 4], 0x4190b0
mov dword [esp], str.couldnt_make_directory__s_n
call sub.msvcrt.dll_printf
mov dword [ebp - 0xc], 0
jmp 0x409235
mov dword [ebp - 0xc], 0x4190b0
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40923a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
call fcn.00409124
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4092f6
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sMikrotik
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x4092a1
mov dword [esp + 4], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sWinbox
mov dword [esp], 0x4192b0
call sub.msvcrt.dll_sprintf
mov dword [esp], 0x4192b0
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x4092ea
mov dword [esp + 4], 0
mov dword [esp], 0x4192b0
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
mov dword [ebp - 0x21c], 0x4192b0
jmp 0x409300
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x21c]
leave
ret
Function at 0x409308
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.0040923a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409372
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
mov dword [esp], 0x4194b0
call sub.msvcrt.dll_sprintf
mov dword [esp], 0x4194b0
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
jne 0x409369
mov dword [esp + 4], 0
mov dword [esp], 0x4194b0
call sub.KERNEL32.DLL_CreateDirectoryA
sub esp, 8
mov dword [ebp - 8], 0x4194b0
jmp 0x409379
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret

Function at 0x40937e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindFirstFileA
sub esp, 8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x409467
cmp byte [ebp - 0x21c], 0x2e
jne 0x4093dd
jmp 0x409443
lea eax, [ebp - 0x248]
add eax, 0x2c
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
shr eax, 4
and eax, 1
test al, al
je 0x409432
lea eax, [ebp - 0x108]
mov dword [esp], eax
call fcn.0040937e
jmp 0x409443
lea eax, [ebp - 0x108]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
test eax, eax
je 0x409467
jmp 0x4093d2
leave
ret
Function at 0x409ff8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp + 4], 0xcb
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412630
mov dword [esp + 4], 0x417cd4
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412658
mov dword [esp + 4], str.RouterOS_WinBox
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xce
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412630
mov dword [esp + 4], 0x417cf7
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412630
mov dword [esp + 4], 0x417cf7
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcf
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412630
mov dword [esp + 4], 0x417cf7
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xd0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412630
mov dword [esp + 4], 0x417cf7
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], 0xcc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412630
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
leave
ret
Function at 0x40a7ec
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412680
mov eax, dword [ebp + 8]
mov dword [eax], 0x418238
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [esp], eax
call fcn.004122ac
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0xffffffff
mov eax, dword [ebp + 8]
mov byte [eax + 0x2c], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0xffffffff
jne 0x40a88b
mov dword [esp], str.socket
call sub.msvcrt.dll_perror
jmp 0x40a930
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov word [ebp - 0x18], 2
mov dword [esp], 0x162e
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x16], ax
mov dword [ebp - 0x14], 0
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_bind
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x40a8f9
mov dword [esp], str.bind
call sub.msvcrt.dll_perror
jmp 0x40a930
mov dword [ebp - 0x1c], 1
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_setsockopt
sub esp, 0x14
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40aab4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x474
lea eax, [ebp - 0x438]
mov dword [esp], eax
call fcn.00412748
mov dword [ebp - 0x43c], eax
mov dword [esp + 4], 4
lea eax, [ebp - 0x438]
mov dword [esp], eax
call fcn.00412760
mov eax, dword [ebp - 0x43c]
mov dword [eax], 0
mov dword [esp + 4], 6
lea eax, [ebp - 0x438]
mov dword [esp], eax
call fcn.0040a54a
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x458]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov word [ebp - 0x458], 2
mov dword [esp], 0x162e
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x456], ax
mov dword [ebp - 0x454], 0xffffffff
lea eax, [ebp - 0x438]
mov dword [esp], eax
call fcn.00412750
mov ebx, eax
lea eax, [ebp - 0x438]
mov dword [esp], eax
call fcn.00412740
mov edx, eax
mov dword [esp + 0x14], 0x10
lea eax, [ebp - 0x458]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_sendto
sub esp, 0x18
test eax, eax
jg 0x40abb4
mov dword [esp], str.sendto
call sub.msvcrt.dll_perror
mov eax, dword [ebp + 8]
inc dword [eax + 0x1c]
cmp dword [eax + 0x1c], 2
ja 0x40abff
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x40ac26
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412658
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x64
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.USER32.dll_SetTimer
sub esp, 0x10
mov dword [ebx + 0x18], eax
jmp 0x40ac26
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x40ac26
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412658
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.USER32.dll_KillTimer
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x410030
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00411660
call fcn.00410230
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x410068
jmp 0x410106
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x410067
cmp cl, 0x22
je 0x4100c0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x4100e0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4100e0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x4100a0
jmp 0x4100e0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x4100c0
cmp cl, 0x22
je 0x410142
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x410100
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x4100f0
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x410124
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.00404c9a
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4100e0
Function at 0x4114a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [0x419720]
test ecx, ecx
je 0x4114be
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x58], 0x41414141
mov eax, dword [str._LIBGCCW32_EH_2_MINGW32]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x38], eax
mov eax, dword [0x418064]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x48], 0x41414141
mov dword [ebp - 0x34], eax
mov eax, dword [0x418068]
mov dword [ebp - 0x44], 0x41414141
mov dword [ebp - 0x40], 0x41414141
mov dword [ebp - 0x30], eax
mov eax, dword [0x41806c]
mov dword [ebp - 0x3c], 0x41414141
mov dword [ebp - 0x2c], eax
mov eax, dword [0x418070]
mov dword [ebp - 0x28], eax
mov eax, dword [0x418074]
mov dword [ebp - 0x24], eax
mov dword [esp], esi
call sub.KERNEL32.DLL_FindAtomA
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x41161d
mov dword [esp], 0x1c
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x411651
cld
mov edi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, 7
mov edx, 0x1f
rep stosd dword es:[edi], eax
mov dword [ebx], 0x1c
mov eax, dword [0x419700]
mov ecx, 1
mov dword [ebx + 4], sub.msvcrt.dll_abort
mov dword [ebx + 8], 0x4113f0
mov dword [ebx + 0x14], eax
jmp 0x4115a0
mov eax, ebx
and eax, ecx
cmp eax, 1
sbb eax, eax
and al, 0x20
add ecx, ecx
add al, 0x41
mov byte [ebp + edx - 0x98], al
dec edx
jns 0x4115a0
mov eax, dword [str._LIBGCCW32_EH_2_MINGW32]
mov dword [ebp - 0x78], eax
mov eax, dword [0x418064]
mov dword [ebp - 0x74], eax
mov eax, dword [0x418068]
mov dword [ebp - 0x70], eax
mov eax, dword [0x41806c]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x418070]
mov dword [ebp - 0x68], eax
mov eax, dword [0x418074]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sub.KERNEL32.DLL_AddAtomA
movzx edi, ax
sub esp, 4
test edi, edi
jne 0x411642
xor edx, edx
test edx, edx
jne 0x411624
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.KERNEL32.DLL_FindAtomA
sub esp, 4
movzx eax, ax
call fcn.00411400
mov ebx, eax
mov dword [0x419720], ebx
lea eax, [ebx + 4]
mov dword [0x419710], eax
lea eax, [ebx + 8]
mov dword [0x419730], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
call fcn.00411400
cmp eax, ebx
mov edx, edi
jne 0x411601
jmp 0x411603
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop