joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456060
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 0x456084
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 0x456098
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 0x4560e2
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 0x456100
xor ebp, ebp
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebp
mov dword [ecx], ebp
add ecx, 0xc
dec ebx
jne 0x4560ea
mov ecx, dword [esp + 0x18]
test ecx, ecx
lea ecx, [edi + edi*2]
je 0x456117
lea ecx, [esi + ecx*4 + 0x1c]
jmp 0x45611b
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 0x456131
mov dword [edx], eax
ret 8

Function at 0x456200
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.00456060
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x456261
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x456237
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.004a1060
push 0
push edi
push edx
push eax
call fcn.004a0fe0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
cmp edi, 0xa
jbe 0x45626b
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 0x4562cc
call ebx
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x4562a2
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.004a1060
push 0
push edi
push edx
push eax
call fcn.004a0fe0
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.00456140
xor edx, edx
div edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4562f0
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.00456060
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x456352
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x456327
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.004a1060
push 0
push edi
push edx
push eax
call fcn.004a0fe0
pop edi
pop esi
mov dword [esp + 8], edx
pop ebx
add esp, 8
ret 4
cmp edi, 0xa
jbe 0x45635c
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 0x4563be
call ebx
mov edi, eax
mov eax, dword [esi + 0x14]
sub edi, eax
jne 0x456393
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.004a1060
push 0
push edi
push edx
push eax
call fcn.004a0fe0
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.00456140
xor edx, edx
div edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x458270
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4ac716
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 0x4582a7
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x4c6008]
push ebp
or ebp, 0xffffffff
cmp eax, ebx
push edi
jne 0x45836c
mov ax, word [0x4c6234]
mov word [0x4d1230], 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 0x4582e4
mov ecx, eax
call fcn.00476700
jmp 0x4582e6
xor eax, eax
mov dword [esi + 0x14], eax
mov cx, word [0x4d1230]
push ecx
push esi
mov ecx, eax
mov dword [esp + 0x24], ebp
call fcn.00476770
mov edi, eax
cmp edi, ebx
jne 0x45835a
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x458338
mov edx, dword [eax + 0x10]
push edx
push str._TcpListening__Err:__d
push 0x4d1048
call fcn.00453980
mov ecx, dword [esi + 0x14]
add esp, 0xc
call fcn.004767d0
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x458335
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], ebx
call fcn.00459830
mov word [0x4d1230], ax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0xc4], ecx
jne 0x4582c5
cmp edi, ebx
mov dword [esi + 0xc4], 5
jne 0x458440
mov edx, dword [0x4d1554]
shr edx, 0x18
add edx, 0x2710
mov word [0x4d1230], 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 0x4583a5
mov ecx, eax
call fcn.00476700
jmp 0x4583a7
xor eax, eax
mov dword [esi + 0x14], eax
mov cx, word [0x4d1230]
push ecx
push esi
mov ecx, eax
mov dword [esp + 0x24], ebp
call fcn.00476770
mov edi, eax
cmp edi, ebx
jne 0x45841f
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4583f9
mov edx, dword [eax + 0x10]
push edx
push str._TcpListening__Err:__d
push 0x4d1048
call fcn.00453980
mov ecx, dword [esi + 0x14]
add esp, 0xc
call fcn.004767d0
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x4583f6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], ebx
call fcn.00459830
mov word [0x4d1230], ax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
lea ecx, [eax - 1]
mov dword [esi + 0xc4], ecx
jne 0x458382
cmp edi, ebx
je 0x458440
cmp dword [0x4d2d84], ebx
je 0x458440
push ebx
push ebx
push esi
push 0x4586d0
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc8], eax
mov edx, dword [0x4c6008]
xor eax, eax
mov ax, word [0x4d1230]
push edx
push eax
push str._TcpListening__Port__u__NatType__d
push 0x4d1048
call fcn.00453980
add esp, 0x10
cmp edi, ebx
jne 0x458482
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x458482
call fcn.004767d0
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x45847f
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 0x4592e0
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x190c
call fcn.004a0d60
push ebp
mov ebp, dword [esp + 0x1914]
test ebp, ebp
push esi
je 0x459348
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 0x459348
lea edx, [esp + 0x14]
test edx, edx
je 0x459348
mov eax, dword [esi + 0x190]
xor ecx, ecx
cmp eax, 6
jne 0x459342
xor eax, eax
xor edx, edx
mov dl, byte [esi + eax + 0x194]
add ecx, edx
inc eax
cmp eax, 6
jb 0x45932d
test ecx, ecx
jne 0x459353
mov esi, dword [esi]
test esi, esi
jne 0x45931e
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 0x459378
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x190c
ret

Function at 0x4593b0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4ac748
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 [0x4c600c]
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, 0x4d1558
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.004775e0
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.00476a40
push 0x2441453
push 0x14
push esi
push 0x10325476
push 0x98badcfe
lea edx, [esp + 0x1c]
push 0xefcdab89
push edx
lea ecx, [esp + 0x70]
call fcn.00476a90
push 0xf57c0faf
push 0x10
push esi
push 0x10325476
push 0x98badcfe
lea eax, [esp + 0x1c]
push 0xefcdab89
push eax
lea ecx, [esp + 0x70]
call fcn.00476ae0
push 0x4bdecfa9
push 0x16
push esi
push 0x10325476
push 0x98badcfe
lea ecx, [esp + 0x1c]
push 0xefcdab89
push ecx
lea ecx, [esp + 0x70]
call fcn.00476b20
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 0x4594e4
add cl, 0x37
jmp 0x4594e7
add cl, 0x30
mov byte [0x4d1560], cl
xor ecx, ecx
mov cl, ah
and cl, 0xf
cmp cl, 9
jbe 0x4594fe
add cl, 0x37
jmp 0x459501
add cl, 0x30
mov byte [0x4d1561], cl
mov cl, al
shr cl, 4
and cl, 0xf
cmp cl, 9
jbe 0x459519
add cl, 0x37
jmp 0x45951c
add cl, 0x30
and al, 0xf
mov byte [0x4d1562], cl
cmp al, 9
jbe 0x45952c
add al, 0x37
jmp 0x45952e
add al, 0x30
mov ecx, dword [esp + 0xa8]
mov byte [0x4d1563], al
mov dword fs:[0], ecx
add esp, 0xb4
ret
Function at 0x4595f0
Capabilities:
Resolve dns

Disassembly:
push ebp
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x459601
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 0x45964a
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
push ecx
call fcn.00459680
add esp, 4
test al, al
je 0x45962d
mov eax, dword [ebp + 0xc]
inc ebx
cmp dword [eax + ebx*4], 0
jne 0x45960f
jmp 0x45964a
movsx ecx, word [ebp + 0xa]
mov edx, dword [ebp + 0xc]
mov eax, ecx
mov edi, 0x4d1554
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 0x45966c
movsx ecx, word [ebp + 0xa]
mov esi, dword [eax]
mov edx, ecx
mov edi, 0x4d1554
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 0x459d20
Capabilities:
Get file version info

Disassembly:
mov eax, 0x480c
call fcn.004a0d60
mov eax, dword [esp + 0x4818]
push esi
cmp eax, 0x60
push edi
jb 0x459e17
mov ax, word [0x4cf75c]
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 [0x4d128c]
test eax, eax
jne 0x459d6a
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 0x459e17
cmp eax, 0x2000
ja 0x459e17
lea ecx, [esp + 0x814]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x459e17
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x81c]
push 0x4c07a4
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x459e17
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 0x4c078c
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 0x459e30
Capabilities:
Get networking parameters

Disassembly:
mov eax, 0x1004
call fcn.004a0d60
push edi
mov edi, dword [esp + 0x100c]
test edi, edi
jne 0x459e50
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 0x459e78
xor eax, eax
pop edi
add esp, 0x1004
ret
lea edx, [esp + 0x114]
push esi
test edx, edx
lea esi, [esp + 0x118]
je 0x459ea9
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 0x459e92
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x1004
ret
Function at 0x45a8b0
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 0x45a8da
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 [0x4d1550]
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 0x45a930
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 0x45a9df
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 0x45a91c
add edi, eax
cmp edi, ebx
jl 0x45a9bf
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 0x45aa29
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 0x45a91c
add edi, eax
cmp edi, ebx
jl 0x45aa08
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 0x45aa49
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 0x45ac00
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 0x45ac1b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
cmp dword [esp + 0x20], ebx
jne 0x45ac2c
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 0x45ac21
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 0x45ac6b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x45ac91
mov al, byte [ecx - 1]
test al, al
je 0x45ac91
cmp al, 0xff
je 0x45ac91
test ebx, ebx
jne 0x45acb7
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 0x45ace5
test ebx, ebx
jne 0x45aca1
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 0x45ace5
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x45acad
cmp eax, ebx
jae 0x45acc0
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 0x45aa70
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 0x45c000
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 0x45c020
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 0x45c06d
cmp eax, 0x100007f
je 0x45c06d
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 0x45c08a
or eax, 0xffffffff
pop edi
add esp, 0x10
ret 8
mov eax, edi
pop edi
add esp, 0x10
ret 8
Function at 0x45c480
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.0045d820
cmp eax, 0xffffffff
je 0x45c4ad
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.0045ca10
test eax, eax
jne 0x45c4d4
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 0x45c4fc
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 0x45c523
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.0045c840
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0045d660
test eax, eax
jne 0x45c558
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 0x45c580
mov eax, dword [esi + 8]
push 0x3f
add eax, 0x402
mov ecx, esi
push eax
call fcn.0045d830
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x45c53e
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x45c5c5
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x45c5ed
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.0045c7e0
test eax, eax
jne 0x45c5ed
jmp 0x45c53e
push 0x10
push eax
mov ecx, esi
call fcn.0045c7e0
test eax, eax
jne 0x45c5ed
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 0x45d2e0
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 0x45d308
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 0x45d530
Capabilities:
Connect socket

Disassembly:
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x45d54b
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 0x45d900
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