joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c080
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x49db3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4aa8e8
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], 5
je 0x47c0cd
mov dword [esi + 0x18], edi
call fcn.00479710
mov ecx, dword [esi + 0x14]
cmp ecx, edi
je 0x47c0cd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], edi
lea ecx, [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea edi, [esi + 0xf8]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edi, [esi + 0xdc]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edi, [esi + 0xc0]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edi, [esi + 0xa4]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi + 0x58]
call fcn.00472180
lea ecx, [esi + 0x30]
call fcn.004734f0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47c5f0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
push edi
jne 0x47c642
mov edi, dword [esp + 0xc]
test edi, edi
je 0x47c642
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47c642
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x47c340
mov dword [esi + 0x114], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x1c], eax
je 0x47c642
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x47ccd0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x47cc80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jne 0x47ccf7
xor al, al
pop esi
ret 4
mov dword [esi + 8], eax
mov al, 1
pop esi
ret 4

Function at 0x47d440
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x84]
test edi, edi
mov esi, ebp
jg 0x47d46f
push str.IDEA_encryption_error__t_block_size_is_negative_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x47d492
push str.IDEA_encryption_error__t_user_key_is_NULL_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
push ebx
lea eax, [esp + 0x18]
call fcn.0047d0a0
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
sar eax, 3
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jle 0x47d4eb
mov ebx, eax
jmp 0x47d4c0
xor dword [esi], ecx
xor dword [esi + 4], edx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.0047d260
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 4
add esi, 8
dec ebx
jne 0x47d4c0
mov esi, edi
and esi, 7
je 0x47d520
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
call fcn.0047d260
mov eax, edi
sub eax, esi
add esp, 4
cmp eax, edi
jge 0x47d520
lea ecx, [esp + 0x10]
nop
mov bl, byte [eax + ebp]
mov dl, byte [ecx]
xor bl, dl
mov byte [eax + ebp], bl
inc eax
inc ecx
cmp eax, edi
jl 0x47d510
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x70
ret
Function at 0x47d530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe4
push ebp
mov ebp, dword [esp + 0xf0]
test ebp, ebp
push esi
mov esi, dword [esp + 0xf0]
jg 0x47d564
push str.IDEA_decryption_error__t_block_size_is_negative_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xe4
ret
mov ecx, dword [esp + 0xf8]
test ecx, ecx
jne 0x47d589
push str.IDEA_decryption_error__t_user_key_is_NULL_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xe4
ret
push ebx
push edi
lea eax, [esp + 0x24]
call fcn.0047d0a0
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x24]
call fcn.0047d120
mov eax, dword [esp + 0x104]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, ebp
sar eax, 3
test eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
jle 0x47d618
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov ebp, dword [esi]
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x90]
mov ecx, esi
call fcn.0047d260
mov eax, dword [esi]
mov edx, dword [esi + 4]
xor eax, edi
xor edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edx
add esp, 4
add esi, 8
dec eax
mov edi, ebp
mov dword [esp + 0x18], eax
jne 0x47d5c5
mov ebp, dword [esp + 0xfc]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edi, ebp
and edi, 7
je 0x47d650
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
call fcn.0047d260
mov eax, ebp
sub eax, edi
add esp, 4
cmp eax, ebp
jge 0x47d650
lea ecx, [esp + 0x10]
lea esp, [esp]
mov bl, byte [eax + esi]
mov dl, byte [ecx]
xor bl, dl
mov byte [eax + esi], bl
inc eax
inc ecx
cmp eax, ebp
jl 0x47d640
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xe4
ret

Function at 0x47d750
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x400
call sub.MFC71.DLL_operator_new
mov esi, eax
add esp, 4
test esi, esi
je 0x47d7a4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.KM.TID_0x_x.
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
pop esi
ret
Function at 0x47d7b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
push 0x100
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x47d7e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error:__u_n
call fcn.0047d750
add esp, 8
xor eax, eax
add esp, 0x110
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
push str.hostname_s_n
call fcn.0047d750
add esp, 8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x47d829
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error:__u_n
call fcn.0047d750
add esp, 8
xor eax, eax
pop ebx
add esp, 0x110
ret
movsx eax, word [ebx + 0xa]
movsx ecx, word [ebx + 8]
mov edx, dword [ebx + 4]
push ebp
push esi
push edi
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
push str.name_s_naliases_s_naddrtype_d_nlength_d_n
call fcn.0047d750
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx]
add esp, 0x14
xor ebp, ebp
test esi, esi
je 0x47d890
movsx ecx, word [ebx + 0xa]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Address:__s_n
call fcn.0047d750
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + ebp*4 + 4]
add esp, 8
inc ebp
test esi, esi
jne 0x47d855
movsx ecx, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x47dab0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x650
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
lea ebp, [esi + 4]
push 0
mov ecx, ebp
call fcn.0047fcb0
cmp eax, 0xffffffff
mov dword [esi + 0x8c], eax
je 0x47dbfa
mov eax, dword [esi + 0x10]
xor edi, edi
push edi
push eax
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47dbfa
mov eax, dword [esi + 0x8c]
xor ecx, ecx
mov dword [esp + 0x12c], eax
inc eax
mov dword [esp + 0x128], 1
je 0x47db1f
mov ecx, eax
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x47dbe7
test eax, eax
jne 0x47dbae
mov ecx, edi
inc edi
cmp ecx, 0x14
mov dword [esp + 0x14], edi
ja 0x47dbfa
mov ebx, dword [esi + 0x8c]
lea edx, [esi + 0x84]
push edx
mov ecx, 0xe7
lea edi, [esp + 0x2c4]
rep stosd dword es:[edi], eax
push 0xf
lea eax, [esp + 0x2c8]
push eax
mov ecx, ebp
call fcn.0047e130
lea ecx, [esi + 0x78]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x2cc]
push eax
mov ecx, ebp
mov word [esp + 0x130], 0
call fcn.0047f210
cmp eax, 0xffffffff
je 0x47dbfa
mov edi, dword [esp + 0x14]
jmp 0x47dbc8
jle 0x47dbc8
mov ecx, dword [esi + 0x8c]
push ecx
mov ecx, esi
call fcn.0047da00
cmp eax, 0xffffffff
je 0x47dbc8
cmp eax, 3
jne 0x47dbfd
mov edx, dword [esi + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47db00
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._select_failed____d_n
call fcn.0047d750
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47e1a0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
sub eax, 0
je 0x47e23e
dec eax
je 0x47e202
dec eax
je 0x47e1cb
push ecx
push str._error_type__d_n
call fcn.0047d750
add esp, 8
mov eax, 1
ret 0xc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x47e1c3
push str._error_setting_SO_REUSEADDR_option_on_socket.__n
call fcn.0047d750
add esp, 4
xor eax, eax
ret 0xc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x47e1c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_failed_with_error__d_n
call fcn.0047d750
add esp, 8
xor eax, eax
ret 0xc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x47e1c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ioctlsocket___failed_with_error__d_n
call fcn.0047d750
add esp, 8
xor eax, eax
ret 0xc
Function at 0x47fcb0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push edi
push 0x11
push 2
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47fcd9
call sub.WS2_32.dll_WSAGetLastError
pop edi
or eax, esi
pop esi
add esp, 0x14
ret 8
push 1
push 0
add edi, 4
push esi
mov ecx, edi
call fcn.0047e1a0
test eax, eax
je 0x47fcfc
push 1
push 2
push esi
mov ecx, edi
call fcn.0047e1a0
test eax, eax
jne 0x47fd0e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x14
ret 8
mov edi, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
test bx, bx
jne 0x47fd24
test edi, edi
je 0x47fdb9
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
push eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
call ebp
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
test edi, edi
mov word [esp + 0x16], ax
je 0x47fd6a
cmp edi, 0x100007f
je 0x47fd6a
push edi
call ebp
mov dword [esp + 0x18], eax
push 0x10
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
pop ebp
je 0x47fd95
call sub.WS2_32.dll_WSAGetLastError
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x14
ret 8
push 4
lea edx, [esp + 0x10]
push edx
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x20], 0x800000
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x47fd82
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret 8

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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov edi, eax
mov eax, dword [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x40], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x47fe1a
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret 0x14
test eax, eax
jl 0x47fe59
je 0x47fe59
mov ecx, dword [esp + 0xe]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esp + 0x30]
mov word [edx], ax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov esi, dword [esi]
lea edx, [esi + 1]
cmp edx, edi
jl 0x47fe64
push str.Received_a_message_that_was_too_large__n
call fcn.0047d750
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x10
ret 0x14
pop edi
mov byte [esi + ebx], 0
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret 0x14
Function at 0x47fe80
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x10
test ax, ax
push esi
jne 0x47fea6
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x47fef8
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 8]
push ecx
push 0
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x47ff12
call sub.WS2_32.dll_WSAGetLastError
sub eax, 0x2733
neg eax
sbb eax, eax
pop esi
add esp, 0x10
ret 0x14
test eax, eax
jne 0x47ff2c
push str.no_data_sent_in_send__n
call fcn.0047d750
add esp, 4
xor eax, eax
pop esi
add esp, 0x10
ret 0x14
cmp eax, esi
je 0x47ff48
push esi
push eax
push str.only__d_out_of__d_bytes_send__n
call fcn.0047d750
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x10
ret 0x14
mov eax, 1
pop esi
add esp, 0x10
ret 0x14
Function at 0x481df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49de58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esi], 0x4ab7b8
mov eax, dword [esi + 0x30]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004813b0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x481e08
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49de58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esi], 0x4ab7b8
mov eax, dword [esi + 0x30]
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004813b0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x481ef0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49de70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [ecx + 0x30]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x482410
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49df22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.00482190
cmp eax, ebx
je 0x48244f
cmp dword [esi + 0x10], ebx
je 0x482462
mov al, byte [ebp + 8]
mov byte [esi + 0x14], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
push 1
lea ecx, [ebp + 8]
push ecx
push 4
push ebx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x48244f
push str.SetTTL
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ecx + esi + 4]
mov byte [ebp - 4], 1
call fcn.004813c0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4826e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49df72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
je 0x4827e9
mov edx, dword [ebp + 8]
cmp edx, ebx
je 0x4827e9
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4827e9
cmp byte [edi + 0x15], 6
je 0x482778
cmp dword [edi + 0x20], ebx
jne 0x482778
lea esi, [ebp + 8]
push esi
lea esi, [ebp - 0x24]
push esi
push ebx
push ecx
push edx
push eax
mov dword [ebp + 8], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
call fcn.00481730
cmp esi, eax
je 0x482784
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea eax, [edi + 0x28]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x482784
push ebx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call fcn.00481730
cmp esi, eax
jne 0x4827d4
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea ecx, [ecx + edi + 4]
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4827d4
push str.Receive
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x30]
push edx
lea ecx, [ecx + edi + 4]
mov byte [ebp - 4], 1
call fcn.004813c0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00481730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x482ba0
Capabilities:
Create raw socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e00b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
or edi, 0xffffffff
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
je 0x482bd5
mov eax, dword [esi]
call dword [eax + 0x10]
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], ebx
jne 0x482c21
cmp eax, ebx
mov eax, dword [ebp + 8]
jne 0x482c14
cmp eax, 1
je 0x482c14
cmp eax, 6
jne 0x482c02
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x482c58
cmp eax, 0x11
jne 0x482c5b
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x482c58
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x482c58
cmp eax, ebx
mov eax, dword [ebp + 8]
jne 0x482c49
cmp eax, 1
je 0x482c49
cmp eax, 6
jne 0x482c3b
push 1
push ebx
push ebx
push eax
push 1
jmp 0x482c50
cmp eax, 0x11
jne 0x482c5b
push 1
push ebx
push ebx
push eax
push 2
jmp 0x482c50
push 1
push ebx
push ebx
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], edi
jne 0x482ca6
push str.Create
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebp - 4], 1
lea ecx, [eax + esi + 4]
call fcn.004813c0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x10], ebx
je 0x482d36
mov dword [ebp + 8], 1
call fcn.00481730
mov edx, dword [esi + 0x1c]
push 4
lea ecx, [ebp + 8]
push ecx
push 2
push ebx
push edx
mov edi, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, edi
jne 0x482d36
push str.Create
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [edx + esi + 4]
jmp 0x482c80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4