joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bd2b
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x468
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x464], eax
push ebp
push esi
xor eax, eax
xor ebp, ebp
push 0x40e
mov word [esp + 0x60], ax
mov esi, ecx
lea eax, [esp + 0x62]
push ebp
push eax
call sub.MSVCR120.dll_memset
push str.taskkill__F__IM__httpsvr.exe_
lea eax, [esp + 0x6c]
push 0x208
push eax
call dword [sym.imp.MSVCR120.dll_swprintf_s]
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push ebp
push eax
call sub.MSVCR120.dll_memset
add esp, 0x24
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
xor ecx, ecx
mov word [esp + 0x48], ax
inc ecx
lea eax, [esp + 8]
mov dword [esp + 0x44], ecx
push eax
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push ebp
push ebp
push ebp
push ecx
push ebp
push ebp
lea eax, [esp + 0x7c]
push eax
push ebp
movdqu xmmword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000be1c
push edi
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], ebp
je 0x1000bdee
push dword [esp + 0xc]
call edi
mov dword [esp + 0xc], ebp
cmp dword [esp + 0x10], ebp
je 0x1000bdfe
push dword [esp + 0x10]
call edi
mov dword [esp + 0x10], ebp
cmp dword [esi + 8], ebp
je 0x1000be1b
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 8], ebp
je 0x1000be1b
push dword [esi + 8]
call edi
mov dword [esi + 8], ebp
pop edi
lea ecx, [esi + 0x10]
call fcn.1000d5f8
mov ecx, dword [esp + 0x46c]
pop esi
pop ebp
xor ecx, esp
call fcn.10015a21
add esp, 0x468
ret

Function at 0x1000c0db
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1000c10e
dec eax
jne 0x1000c114
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
jmp 0x1000c114
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor eax, eax
xor ecx, esp
inc eax
call fcn.10015a21
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c12b
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
push 0x11
push 2
pop eax
push eax
push eax
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000c1ac
push ebp
push 4
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 4
push 0xffff
inc ebp
push edi
mov dword [esp + 0x24], ebp
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
pop eax
push esi
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
push edi
cmovne esi, ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebp
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0x18
ret

Function at 0x1000c6c3
Capabilities:
Delete registry key
Set file attributes

Disassembly:
cmp byte [0x10020c50], 0
push ebx
push esi
push edi
mov ebx, 0x10020c50
jne 0x1000c6e0
mov edx, ebx
mov ecx, str.Tftpd32.ini
call fcn.1000e907
mov esi, 0x80
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
push edi
push esi
push 3
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c721
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SOFTWARETFTPD32
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop edi
pop esi
pop ebx
ret
Function at 0x1000c786
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x20
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
push 0x35a
push str.line_d_Enter_CreateUdp
call fcn.100138a5
pop ecx
pop ecx
push 0x11
push 2
pop esi
push esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000c872
push ebx
push ebp
push 0
mov word [esp + 0x20], si
call dword [sym.imp.WS2_32.dll_htonl]
push 0x44
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, 0xffff
push 4
pop ebp
push ebp
mov word [esp + 0x22], ax
lea eax, [esp + 0x18]
push eax
push 0x1006
push ebx
push edi
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x2c], 0x8000
mov dword [esp + 0x24], 1
call esi
push ebp
lea eax, [esp + 0x14]
push eax
push 0x20
push ebx
push edi
call esi
push ebp
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push edi
call esi
push ebp
lea eax, [esp + 0x1c]
push eax
push 0x1002
push ebx
push edi
call esi
push 0x10
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
pop ebp
pop ebx
cmp eax, 0xffffffff
jne 0x1000c872
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x377
push str.Line_d_bind_fail_WSAGetLastError0x_x
call fcn.100138a5
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov ecx, 0x1001ae28
cmp edi, 0xffffffff
mov eax, str.Fail_
cmovne eax, ecx
push eax
push 0x37d
push str.Line_d_Leave_CreateUdp:_Create__s
call fcn.100138a5
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10015a21
add esp, 0x20
ret
Function at 0x1000e932
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push edi
xor esi, esi
push 0x10020c50
push dword [esi + 0x100200d8]
push dword [esi + 0x100200dc]
push dword [esi + 0x100200d4]
push dword [esi + 0x100200d0]
push str.SOFTWARETFTPD32
call fcn.10013bdb
add esi, 0x10
add esp, 0x18
cmp esi, 0x220
jb 0x1000e937
mov eax, dword [0x1001fd50]
test eax, eax
push ebx
push 0x6f
pop ecx
cmove eax, ecx
mov ebx, 0x10020e00
mov ecx, ebx
mov dword [0x1001fd50], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000e989
mov esi, 0x104
mov edi, 0x1001fbf8
sub ecx, edx
je 0x1000e9aa
push ebx
push esi
push edi
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
push edi
call fcn.10014138
pop ecx
pop ebx
test eax, eax
je 0x1000e9c7
push 0
push 0x1001ffb4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x1000e9d3
push 0x1001ffb4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
pop edi
inc eax
pop esi
pop ecx
ret

Function at 0x1000ea36
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
push str.SOFTWARETFTPD32DHCP
mov edi, reloc.WS2_32.dll_bind
push edi
call esi
push str.SOFTWARETFTPD32
push edi
call esi
cmp byte [0x10020c50], 0
mov esi, eax
je 0x1000ea87
push 0x1001b394
lea eax, [ebp - 4]
push 0x10020c50
push eax
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1000ea87
push dword [ebp - 4]
call dword [sym.imp.MSVCR120.dll_fclose]
pop ecx
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000eedc
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001f048]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, edx
push 0
push esi
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push 2
pop edx
mov ebp, eax
mov word [esp + 0x10], dx
cmp esi, edx
mov eax, 0x1001b48c
mov ecx, 0x1001951c
cmovne ecx, eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getservbyname]
test eax, eax
je 0x1000ef30
mov ax, word [eax + 8]
jmp 0x1000ef3a
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
test ebx, ebx
je 0x1000ef48
cmp byte [ebx], 0
jne 0x1000ef4d
mov ebx, 0x1001a578
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 0
push 8
push str.wake_up
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
push ebp
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
setg al
pop ebx
xor ecx, esp
call fcn.10015a21
add esp, 0x14
ret

Function at 0x1000eff7
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
push edi
imul edi, ebx, 0x2c
mov esi, ebx
shl esi, 4
mov edx, dword [edi + 0x10018d74]
cmp edx, 1
jl 0x1000f04f
push dword [edi + 0x10018d84]
mov eax, dword [edi + 0x10018d7c]
push dword [edi + 0x10018d80]
mov ecx, dword [edi + 0x10018d60]
mov dword [esi + 0x10020d60], ebp
push dword [eax]
push dword [edi + 0x10018d78]
call fcn.1000ec8e
add esp, 0x10
mov dword [esi + 0x10020d6c], eax
cmp eax, 0xffffffff
jne 0x1000f056
xor eax, eax
jmp 0x1000f0b2
or dword [esi + 0x10020d6c], 0xffffffff
cmp dword [edi + 0x10018d88], ebp
je 0x1000f081
push ebp
push ebp
push dword [edi + 0x10018d6c]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10020d68], eax
cmp eax, 0xffffffff
jne 0x1000f088
mov ecx, ebx
call fcn.1000eea2
jmp 0x1000f04b
or dword [esi + 0x10020d68], 0xffffffff
push ebp
push dword [edi + 0x10018d70]
push dword [edi + 0x10018d68]
call dword [sym.imp.MSVCR120.dll__beginthread]
add esp, 0xc
mov dword [esi + 0x10020d64], eax
cmp eax, 0xffffffff
je 0x1000f078
xor eax, eax
inc eax
mov dword [esi + 0x10020d60], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000f43f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x1000f47c
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000f47c
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 4]
push eax
call sub.MSVCR120.dll_memcpy
mov esi, dword [ebp - 4]
add esp, 0xc
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000f573
Capabilities:
Delete file
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp - 4], eax
push 5
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [0x10028021], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 4
push 0x10028021
push dword [0x10030048]
mov word [0x10028023], ax
call dword [sym.imp.WS2_32.dll_send]
call fcn.1000f484
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0x10
push 0x100197c4
lea eax, [ebp - 0x204]
push eax
push dword [0x10030108]
call fcn.10013740
add esp, 0x10
push 0
push 1
push dword [0x100300fc]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp byte [0x10027d20], 1
jne 0x1000f619
cmp dword [0x10030044], 0
je 0x1000f619
push 0x10027d21
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10015a21
mov esp, ebp
pop ebp
ret
Function at 0x1000f9e9
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, 0x1002c025
push ebp
mov ebp, dword [sym.imp.MSVCR120.dll_atoi]
mov ecx, 0x200
push esi
push edi
mov esi, 0x1002c027
cmp byte [esi], 0
je 0x1000fb30
mov eax, esi
mov edi, esi
sub eax, edx
add eax, 0xfffffffe
jmp 0x1000fa23
cmp byte [edi], 0
je 0x1000fa27
inc edi
inc eax
cmp eax, ecx
jl 0x1000fa1c
inc edi
mov eax, edi
sub eax, edx
sub eax, 2
cmp eax, ecx
je 0x1000fb38
cmp byte [0x10027d20], 1
jne 0x1000fa9f
push str.tsize
push esi
call ebx
test eax, eax
jne 0x1000fa9f
push edi
call ebp
pop ecx
push 4
mov dword [0x10030070], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [0x10028021], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push dword [0x1003005c]
mov word [0x10028023], ax
push 0x659
push dword [0x10030108]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 4
push 0x10028021
push dword [0x10030048]
call dword [sym.imp.WS2_32.dll_send]
push str.blksize
push esi
call ebx
test eax, eax
jne 0x1000fab4
push edi
call ebp
pop ecx
mov dword [0x1003007c], eax
push str.udpport
push esi
call ebx
test eax, eax
jne 0x1000fb0b
push edi
call ebp
push eax
push str.Port_value_is__d
call fcn.100138a5
push edi
call ebp
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push 0x1003002c
push dword [0x10030048]
mov word [0x1003002e], ax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.re_connect_returns__d___d_
call fcn.100138a5
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x1002c025
mov ecx, 0x200
lea esi, [eax + 1]
add esi, edi
mov eax, esi
sub eax, edx
sub eax, 2
cmp eax, ecx
jl 0x1000fa08
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
jmp 0x1000fb33

Function at 0x1000fb3c
Capabilities:
Connect socket
Receive data
Receive data on socket

Disassembly:
push ecx
xor ecx, ecx
mov dword [esp], 0x10
push ebp
mov ebp, 0x1003002c
mov dword [0x10030044], ecx
push esi
cmp dword [0x1003004c], ecx
jne 0x1000fb7a
lea eax, [esp + 8]
push eax
push ebp
push ecx
push 0x4004
push 0x1002c025
push dword [0x10030048]
call dword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x1000fb91
push ecx
push 0x4004
push 0x1002c025
push dword [0x10030048]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000fb9c
xor eax, eax
jmp 0x1000fbc7
cmp dword [0x1003004c], 0
jne 0x1000fbbe
push 0x10
push ebp
push dword [0x10030048]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [0x1003004c], 1
xor eax, eax
mov dword [0x10030044], esi
inc eax
pop esi
pop ebp
pop ecx
ret
Function at 0x1000fbcb
Capabilities:
Get file size

Disassembly:
movzx eax, byte [0x10027d20]
push esi
push edi
dec eax
je 0x1000fc3d
dec eax
jne 0x1000fc2c
xor esi, esi
mov edi, 0x10027d21
push esi
push 0x8000020
push 3
push esi
push 1
push accept
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10030050], eax
cmp eax, 0xffffffff
jne 0x1000fc1f
call fcn.10013b71
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Error_opening_file__s_for_reading_nreturn_code_is__d___s_
call fcn.1000f573
add esp, 0x10
jmp 0x1000fc3a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10030070], eax
mov ecx, dword [0x10030050]
xor eax, eax
cmp ecx, 0xffffffff
setne al
pop edi
pop esi
ret
xor esi, esi
mov edi, 0x10027d21
push esi
push 0x8000020
push 1
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [0x10030050], ecx
cmp ecx, 0xffffffff
jne 0x1000fc32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1000fc2c
push 3
push 0x100197c4
push str.File_exists__overwrite_it__
push dword [0x10030108]
call fcn.10013740
add esp, 0x10
cmp eax, 6
jne 0x1000fc2c
push esi
push 0x8000020
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [0x10030050], ecx
cmp ecx, 0xffffffff
jne 0x1000fc32
call fcn.10013b71
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Error_opening_file__s_for_writing_nreturn_code_is__d___s_
jmp 0x1000fc15
Function at 0x10010e96
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 8]
xor ebp, ebp
push edi
mov edi, ebp
push 0x4510
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
pop ecx
pop ecx
cmp dword [0x10020d5c], ebp
jne 0x10010ec3
mov esi, eax
mov dword [0x10020d5c], esi
jmp 0x10010ecb
mov dword [esi + 0x450c], eax
mov esi, eax
push 0x4510
push ebp
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi + 0x450c], ebp
mov dword [esi + 4], 1
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
inc edi
lea eax, [esi + 0xc]
mov dword [esi + 0x1c], edi
push eax
push ebp
push esi
push 0x1001278d
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [esi + 0x24], 0xffffffff
mov dword [esi + 8], eax
cmp edi, 2
jl 0x10010ea2
pop edi
xor eax, eax
pop esi
inc eax
pop ebp
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, ecx
push edi
mov edi, edx
cmp dword [ebp + 0x20], 0xffffffff
jne 0x1001132f
xor eax, eax
jmp 0x100113b0
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
lea ebx, [ebp + 0x60]
push 5
call esi
push edi
mov word [ebx], ax
call esi
mov word [ebx + 2], ax
mov esi, 0x10020380
cmp dword [0x10020380], 0
jl 0x10011367
cmp dword [esi], edi
je 0x10011362
add esi, 8
cmp dword [esi], 0
jge 0x10011356
cmp dword [esi], 0
jge 0x1001137b
lea eax, [edi - 0x64]
push eax
call dword [sym.imp.MSVCR120.dll_strerror]
mov dword [esi + 4], eax
xor eax, eax
pop ecx
mov word [ebx + 2], ax
push dword [esi + 4]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0
mov byte [esi + ebx + 4], 0
add esi, 5
push esi
push ebx
push dword [ebp + 0x20]
call dword [sym.imp.WS2_32.dll_send]
sub eax, esi
neg eax
pop esi
sbb eax, eax
pop ebx
pop edi
pop ebp
ret
Function at 0x1001142f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x44a4]
push eax
lea ebx, [esi + 0x44fc]
push ebx
call fcn.100150aa
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x7c]
pop ecx
pop ecx
push 0x1001ffb4
push eax
add esi, 0x427a
call edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10011497
push eax
lea edx, [ebp - 0x7c]
mov ecx, esi
call fcn.1001140e
pop ecx
jmp 0x1001149f
push esi
lea eax, [ebp + eax - 0x7c]
push eax
call edi
push str..md5
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push 0x8000020
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, edi
mov esi, eax
mov dword [ebp - 0x80], edx
movzx ecx, byte [ebx + edx]
lea eax, [ebp + 0x18c]
push ecx
lea eax, [eax + edx*2]
push str._02x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp - 0x80]
add esp, 0xc
inc edx
mov dword [ebp - 0x80], edx
cmp edx, 0x10
jl 0x100114d1
push edi
lea eax, [ebp - 0x80]
push eax
push 0x20
lea eax, [ebp + 0x18c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
push str.MD5_written_into___s_
push 2
call fcn.10001113
mov ecx, dword [ebp + 0x1b0]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.10015a21
lea esp, [ebp + 0x1b4]
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 2
pop eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0xf]
xor eax, eax
mov esi, ecx
mov word [ebp - 0x12], ax
mov byte [ebp - 0x10], al
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, word [0x1001ff78]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x1001ff68
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [esi + 0x38]
push 0
add eax, 4
push eax
lea eax, [esi + 0x60]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10015a21
mov esp, ebp
pop ebp
ret
Function at 0x1001168c
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x1001f048]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push esi
mov esi, ecx
xor edx, edx
xor ecx, ecx
inc edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push ecx
push ecx
lea eax, [ebp - 0x78]
push eax
push edx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100116e6
push str.select
xor edx, edx
mov ecx, esi
call fcn.10011651
pop ecx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop esi
call fcn.10015a21
lea esp, [ebp + 0x90]
pop ebp
ret
Function at 0x10011e85
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x10011ea4
push 0x255
push str._services_tftpd_thread.c
push str.pTftp_NULL
call dword [sym.imp.MSVCR120.dll__wassert]
add esp, 0xc
add dword [esi + 0x38], 2
push dword [esi + 0x38]
push str.send_OACK__d_bytes
push 0xa
call fcn.10001113
add esp, 0xc
lea eax, [esi + 0x4064]
cmp dword [esi + 0x44], 0
je 0x10011ede
push dword [esi + 0x38]
push eax
lea eax, [esi + 0x4268]
push eax
push dword [esi + 0x44]
call fcn.10015939
add esp, 0x10
jmp 0x10011eed
push 0
push dword [esi + 0x38]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x10011efb
cmp eax, dword [esi + 0x38]
jne 0x10011efb
xor eax, eax
inc eax
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_:_Error__d
push 0
call fcn.10001113
add esp, 0xc
xor eax, eax
pop esi
ret