joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ee70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
je 0x45ee94
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, ebp
mov dword [esi + 4], eax
jmp 0x45eea8
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
add edx, ecx
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
adc eax, ebp
mov dword [esi + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, dword [esi + 0x10]
mov ecx, 0xa
shr edx, 6
add eax, edx
xor edx, edx
div ecx
mov edi, edx
call ebx
lea edx, [edi + edi*2 + 6]
mov ecx, eax
mov ebx, dword [esi + edx*4]
lea edx, [esi + edx*4]
sub ecx, ebx
cmp ecx, 0x1f40
jbe 0x45eef2
lea ecx, [edi + edi*2]
lea ecx, [esi + ecx*4]
mov dword [ecx + 0x1c], ebp
mov dword [ecx + 0x20], ebp
mov dword [edx], ebp
lea ecx, [esi + 0x18]
mov ebx, 0xa
mov ebp, eax
sub ebp, dword [ecx]
cmp ebp, 0x2af8
jbe 0x45ef10
xor ebp, ebp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx], ebp
add ecx, 0xc
dec ebx
jne 0x45eefa
mov ecx, dword [esp + 0x18]
test ecx, ecx
lea ecx, [edi + edi*2]
je 0x45ef27
lea ecx, [esi + ecx*4 + 0x1c]
jmp 0x45ef2b
lea ecx, [esi + ecx*4 + 0x20]
mov esi, dword [esp + 0x14]
mov edi, dword [ecx]
add edi, esi
mov dword [ecx], edi
mov ecx, dword [edx]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
jne 0x45ef41
mov dword [edx], eax
ret 8

Function at 0x45f010
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 1
mov esi, ecx
push 0
call fcn.0045ee70
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x45f071
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x45f047
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
push 0x3e8
push eax
push ecx
call fcn.004a7920
push 0
push edi
push edx
push eax
call fcn.004a78b0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
cmp edi, 0xa
jbe 0x45f07b
mov edi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, eax
mov eax, dword [esi + 0x14]
sub edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, edi
ja 0x45f0dc
call ebx
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x45f0b2
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
push 0x3e8
push eax
push ecx
call fcn.004a7920
push 0
push edi
push edx
push eax
call fcn.004a78b0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
push 1
push edi
mov ecx, esi
call fcn.0045ef50
xor edx, edx
div edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x45f100
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0
call fcn.0045ee70
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x45f162
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x45f137
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x3e8
push eax
push ecx
call fcn.004a7920
push 0
push edi
push edx
push eax
call fcn.004a78b0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
cmp edi, 0xa
jbe 0x45f16c
mov edi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, eax
mov eax, dword [esi + 0x14]
sub edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, edi
ja 0x45f1ce
call ebx
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x45f1a3
xor eax, eax
pop edi
pop esi
mov dword [esp + 8], eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push 0x3e8
push eax
push ecx
call fcn.004a7920
push 0
push edi
push edx
push eax
call fcn.004a78b0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
push 0
push edi
mov ecx, esi
call fcn.0045ef50
xor edx, edx
div edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x461080
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4b34b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x4610b7
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x4ce288]
push ebp
or ebp, 0xffffffff
cmp eax, ebx
push edi
jne 0x46117c
mov ax, word [0x4ce4b4]
mov word [0x4d8fa0], ax
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x4610f4
mov ecx, eax
call fcn.0047f510
jmp 0x4610f6
xor eax, eax
mov dword [esi + 0x14], eax
mov cx, word [0x4d8fa0]
push ecx
push esi
mov ecx, eax
mov dword [esp + 0x24], ebp
call fcn.0047f580
mov edi, eax
cmp edi, ebx
jne 0x46116a
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x461148
mov edx, dword [eax + 0x10]
push edx
push str._TcpListening__Err:__d
push 0x4d8db8
call fcn.0045c790
mov ecx, dword [esi + 0x14]
add esp, 0xc
call fcn.0047f5e0
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x461145
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], ebx
call fcn.00462640
mov word [0x4d8fa0], ax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0xc4], ecx
jne 0x4610d5
cmp edi, ebx
mov dword [esi + 0xc4], 5
jne 0x461250
mov edx, dword [0x4d92c4]
shr edx, 0x18
add edx, 0x2710
mov word [0x4d8fa0], dx
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x1c], 1
je 0x4611b5
mov ecx, eax
call fcn.0047f510
jmp 0x4611b7
xor eax, eax
mov dword [esi + 0x14], eax
mov cx, word [0x4d8fa0]
push ecx
push esi
mov ecx, eax
mov dword [esp + 0x24], ebp
call fcn.0047f580
mov edi, eax
cmp edi, ebx
jne 0x46122f
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x461209
mov edx, dword [eax + 0x10]
push edx
push str._TcpListening__Err:__d
push 0x4d8db8
call fcn.0045c790
mov ecx, dword [esi + 0x14]
add esp, 0xc
call fcn.0047f5e0
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x461206
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], ebx
call fcn.00462640
mov word [0x4d8fa0], ax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0xc4], ecx
jne 0x461192
cmp edi, ebx
je 0x461250
cmp dword [0x4daaf4], ebx
je 0x461250
push ebx
push ebx
push esi
push 0x4614e0
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc8], eax
mov edx, dword [0x4ce288]
xor eax, eax
mov ax, word [0x4d8fa0]
push edx
push eax
push str._TcpListening__Port__u__NatType__d
push 0x4d8db8
call fcn.0045c790
add esp, 0x10
cmp edi, ebx
jne 0x461292
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x461292
call fcn.0047f5e0
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x46128f
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4620f0
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x190c
call fcn.004a7630
push ebp
mov ebp, dword [esp + 0x1914]
test ebp, ebp
push esi
je 0x462158
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], 0x1900
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x462158
lea edx, [esp + 0x14]
test edx, edx
je 0x462158
mov eax, dword [esi + 0x190]
xor ecx, ecx
cmp eax, 6
jne 0x462152
xor eax, eax
xor edx, edx
mov dl, byte [esi + eax + 0x194]
add ecx, edx
inc eax
cmp eax, 6
jb 0x46213d
test ecx, ecx
jne 0x462163
mov esi, dword [esi]
test esi, esi
jne 0x46212e
pop esi
xor al, al
pop ebp
add esp, 0x190c
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x16]
add eax, ecx
add word [esi + 0x194], ax
mov byte [ebp], 0
xor edi, edi
xor edx, edx
mov dl, byte [esi + edi + 0x194]
push edx
push ebp
push str._s_02X
push ebp
call ebx
add esp, 0x10
inc edi
cmp edi, 6
jb 0x462188
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x190c
ret

Function at 0x4621c0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4b34e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push esi
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [0x4ce28c]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str.360P_04d_012I64X
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, 5
lea esi, [esp + 0x28]
mov edi, 0x4d92c8
add esp, 0x14
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x54]
mov dword [esp + 8], 0x67452301
lea esi, [eax + edx]
call fcn.004803f0
push 0x432aff97
push 5
push esi
push 0x10325476
push 0x98badcfe
lea ecx, [esp + 0x1c]
push 0xefcdab89
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0xd4], 0
call fcn.0047f850
push 0x2441453
push 0x14
push esi
push 0x10325476
push 0x98badcfe
lea edx, [esp + 0x1c]
push 0xefcdab89
push edx
lea ecx, [esp + 0x70]
call fcn.0047f8a0
push 0xf57c0faf
push 0x10
push esi
push 0x10325476
push 0x98badcfe
lea eax, [esp + 0x1c]
push 0xefcdab89
push eax
lea ecx, [esp + 0x70]
call fcn.0047f8f0
push 0x4bdecfa9
push 0x16
push esi
push 0x10325476
push 0x98badcfe
lea ecx, [esp + 0x1c]
push 0xefcdab89
push ecx
lea ecx, [esp + 0x70]
call fcn.0047f930
mov ecx, dword [esp + 8]
pop edi
mov eax, ecx
pop esi
shr eax, 0x10
xor eax, ecx
mov cx, ax
shr cx, 0xc
cmp cl, 9
jbe 0x4622f4
add cl, 0x37
jmp 0x4622f7
add cl, 0x30
mov byte [0x4d92d0], cl
xor ecx, ecx
mov cl, ah
and cl, 0xf
cmp cl, 9
jbe 0x46230e
add cl, 0x37
jmp 0x462311
add cl, 0x30
mov byte [0x4d92d1], cl
mov cl, al
shr cl, 4
and cl, 0xf
cmp cl, 9
jbe 0x462329
add cl, 0x37
jmp 0x46232c
add cl, 0x30
and al, 0xf
mov byte [0x4d92d2], cl
cmp al, 9
jbe 0x46233c
add al, 0x37
jmp 0x46233e
add al, 0x30
mov ecx, dword [esp + 0xa8]
mov byte [0x4d92d3], al
mov dword fs:[0], ecx
add esp, 0xb4
ret
Function at 0x462400
Capabilities:
Resolve dns

Disassembly:
push ebp
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x462411
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [eax]
push edi
test ecx, ecx
je 0x46245a
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
push ecx
call fcn.00462490
add esp, 4
test al, al
je 0x46243d
mov eax, dword [ebp + 0xc]
inc ebx
cmp dword [eax + ebx*4], 0
jne 0x46241f
jmp 0x46245a
movsx ecx, word [ebp + 0xa]
mov edx, dword [ebp + 0xc]
mov eax, ecx
mov edi, 0x4d92c4
mov esi, dword [edx + ebx*4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
cmp dword [eax + ebx*4], 0
jne 0x46247c
movsx ecx, word [ebp + 0xa]
mov esi, dword [eax]
mov edx, ecx
mov edi, 0x4d92c4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
ret

Function at 0x462b30
Capabilities:
Get file version info

Disassembly:
mov eax, 0x480c
call fcn.004a7630
mov eax, dword [esp + 0x4818]
push esi
cmp eax, 0x60
push edi
jb 0x462c27
mov ax, word [0x4d74cc]
mov ecx, 0xfff
mov word [esp + 0x814], ax
xor eax, eax
lea edi, [esp + 0x816]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4d8ffc]
test eax, eax
jne 0x462b7a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, dword [esp + 0x4818]
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push esi
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x462c27
cmp eax, 0x2000
ja 0x462c27
lea ecx, [esp + 0x814]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x462c27
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x81c]
push 0x4c8a38
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x462c27
mov eax, dword [esp + 8]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x4824]
shr eax, 0x10
push edx
push eax
push 0x4c8a20
push ecx
call edi
add esp, 0x18
mov eax, 1
pop edi
pop esi
add esp, 0x480c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x480c
ret
Function at 0x462c40
Capabilities:
Get networking parameters

Disassembly:
mov eax, 0x1004
call fcn.004a7630
push edi
mov edi, dword [esp + 0x100c]
test edi, edi
jne 0x462c60
xor eax, eax
pop edi
add esp, 0x1004
ret
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [edi], 0
mov dword [esp + 0xc], 0x400
call sub.iphlpapi.dll_GetNetworkParams
test eax, eax
je 0x462c88
xor eax, eax
pop edi
add esp, 0x1004
ret
lea edx, [esp + 0x114]
push esi
test edx, edx
lea esi, [esp + 0x118]
je 0x462cb9
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esi + 4]
push eax
push edi
push str._s__s
push edi
call ebx
mov esi, dword [esi]
add esp, 0x10
test esi, esi
jne 0x462ca2
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x1004
ret
Function at 0x4636c0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, ebp
jge 0x4636ea
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
xor eax, eax
push 0x50
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x4d92c0]
lea edx, [esp + 0x18]
push 0x10
push edx
push esi
mov word [esp + 0x26], ax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x463740
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x28], 0x2710
call edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x80
push 0xffff
push esi
mov word [esp + 0x24], bp
mov word [esp + 0x26], bp
call edi
mov edx, dword [esp + 0x42c]
lea eax, [esp + 0x34]
push edx
push str.Host:
push str.GET__index.html_HTTP_1.0_r_n
push str._s_s_s
push eax
mov word [esp + 0x3c], 0x2324
mov word [esp + 0x3e], bp
mov dword [esp + 0x40], ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
xor edi, edi
mov dword [esp + 0x30], ecx
lea ebx, [ecx + 0xc]
cmp ebx, ebp
jle 0x4637ef
mov ecx, ebx
push ebp
sub ecx, edi
lea edx, [esp + edi + 0x2c]
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebp
jle 0x46372c
add edi, eax
cmp edi, ebx
jl 0x4637cf
mov edi, str.Server:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.HTTP_1.0_200_OK_r_n
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
add ebp, ecx
lea ebx, [ebp + 0x2c]
test ebx, ebx
jle 0x463839
mov eax, ebx
push 0
sub eax, edi
lea ecx, [esp + edi + 0x2c]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46372c
add edi, eax
cmp edi, ebx
jl 0x463818
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + ebp + 0x34]
lea esi, [esp + ebp + 0x34]
test eax, eax
jne 0x463859
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x418
ret
mov edi, dword [esp + 0x430]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x418
ret
Function at 0x463a10
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x463a2b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
cmp dword [esp + 0x20], ebx
jne 0x463a3c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0xc], esi
je 0x463a31
mov al, byte [esp + 0x18]
push ebp
lea ebp, [esi + 0xc]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x463a7b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x463aa1
mov al, byte [ecx - 1]
test al, al
je 0x463aa1
cmp al, 0xff
je 0x463aa1
test ebx, ebx
jne 0x463ac7
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x463af5
test ebx, ebx
jne 0x463ab1
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x463af5
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x463abd
cmp eax, ebx
jae 0x463ad0
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x10]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], ecx
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
push eax
push esi
push 0x463880
push eax
mov dword [esi + 4], edx
mov dword [esi + 8], eax
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x464e10
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push edi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x464e30
or eax, eax
pop edi
add esp, 0x10
ret 8
xor eax, eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
push eax
mov dword [esp + 0x18], eax
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x464e7d
cmp eax, 0x100007f
je 0x464e7d
push eax
call esi
mov dword [esp + 0xc], eax
lea edx, [esp + 8]
push 0x10
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
pop esi
je 0x464e9a
or eax, 0xffffffff
pop edi
add esp, 0x10
ret 8
mov eax, edi
pop edi
add esp, 0x10
ret 8
Function at 0x465290
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.00466630
cmp eax, 0xffffffff
je 0x4652bd
push 0x2735
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi + 0x10], 0x2735
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov ecx, esi
call fcn.00465820
test eax, eax
jne 0x4652e4
push 0x276d
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [esi + 0x10], 0x276d
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x46530c
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
call dword [eax + 0x28]
pop edi
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x20]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x465333
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
push eax
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00465650
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00466470
test eax, eax
jne 0x465368
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 0x10], eax
call dword [edx + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x24]
test eax, eax
je 0x465390
mov eax, dword [esi + 8]
push 0x3f
add eax, 0x402
mov ecx, esi
push eax
call fcn.00466640
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x46534e
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4653d5
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4653fd
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htonl]
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
mov ecx, esi
call fcn.004655f0
test eax, eax
jne 0x4653fd
jmp 0x46534e
push 0x10
push eax
mov ecx, esi
call fcn.004655f0
test eax, eax
jne 0x4653fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 0x10
Function at 0x4660f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x466118
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x38]
pop esi
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x10
ret 0x14

Function at 0x466340
Capabilities:
Connect socket

Disassembly:
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x46635b
mov ecx, dword [esp + 8]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 8]
push ecx
mov ecx, eax
call dword [edx + 0x20]
ret 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret 8

Function at 0x466710
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 0x10