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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
call ebx
mov ebp, eax
call ebx
mov ecx, dword [esp + 0x34]
sub eax, ebp
cmp eax, ecx
jae 0x4354ef
add edi, 0x14c8
mov dword [esp + 0x10], edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x43546d
mov eax, dword [esp + 0x34]
push 0
push 0x1ff
push eax
mov eax, dword [esp + 0x1c]
push eax
push 1
call edi
mov esi, eax
test esi, esi
je 0x4354df
cmp esi, 0x102
je 0x4354df
cmp esi, 0xffffffff
je 0x4354df
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4354df
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4bd058]
jne 0x4354c9
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4bd028
call fcn.0042b6d0
test eax, eax
jne 0x4354fb
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
call ebx
mov ecx, dword [esp + 0x34]
sub eax, ebp
cmp eax, ecx
jb 0x435465
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 0x42b
pop ebx
add esp, 0x20
ret 4

Function at 0x435510
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
mov dword [esp + 0xc], ecx
push 0x10
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov esi, eax
push edx
push esi
mov dword [esp + 0x24], ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov word [esp + 0x1a], cx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x4355a2
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4355a2
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4355be
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00496ace
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00496ace
add esp, 0x1c
ret 4
Function at 0x43c7e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x43c7f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43c7f0
mov ecx, dword [ecx + 4]
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x43c820
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [esp + 8]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x43c850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43c893
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x43c8a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov esi, dword [esp + 0xa10]
lea edx, [esp + 4]
push edx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xa10], eax
mov eax, dword [esp + 0xa18]
push 0
push eax
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x1c], 0x22a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43c915
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
mov eax, 1
pop esi
mov ecx, dword [esp + 0xa00]
xor ecx, esp
call fcn.00496ace
add esp, 0xa04
ret 8
push 0
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov ecx, dword [esp + 0xa04]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00496ace
add esp, 0xa04
ret 8
Function at 0x43f490
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49bdb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CFileFind::CFileFind
lea ecx, [esp + 4]
mov dword [esp + 0x3c], 0
call dword [0x49f754]
lea ecx, [esp + 8]
call dword [0x49f754]
mov bl, 2
push 0
mov byte [esp + 0x40], bl
call dword [sym.imp.MSVCR71.dll__time64]
add esp, 4
mov dword [esp + 0x14], eax
push str._Y_m_d
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edx
call fcn.00407370
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xc]
push str.sys_msg__s.log
push edx
mov byte [esp + 0x48], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x4bc618
lea ecx, [esp + 8]
call dword [0x49f214]
push str.config_sys_msg_.log
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
push 0
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CFileFind::FindFile
test eax, eax
je 0x43f5fa
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CFileFind::FindNextFileA
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 4
call dword [0x49f214]
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x43f5f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 5
call dword [0x49f214]
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call edi
test esi, esi
jne 0x43f567
pop edi
pop esi
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00496456
mov ecx, dword [esp + 0x34]
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x440790
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49c044
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xb0]
push edi
push eax
mov esi, ecx
push 0x82
mov dword [esp + 0x1c], esi
call fcn.004962ac
push 0
push 0x4000
lea eax, [esi + 0x4138]
lea edi, [esi + 0x74]
push eax
mov ecx, edi
mov dword [esp + 0xb0], 0
call fcn.00484b40
mov dword [edi], 0x4a7200
lea edi, [esi + 0xb0]
mov ecx, edi
mov byte [esp + 0xa4], 1
mov dword [esi], 0x4a70a0
call sub.MFC71.DLL_CWnd::CWnd
mov dword [edi], 0x4a6f38
lea edi, [esi + 0x104]
mov ecx, edi
call dword [0x49f754]
lea ebx, [esi + 0x10c]
mov ecx, ebx
call dword [0x49f754]
lea ecx, [esi + 0x110]
call dword [0x49f754]
lea ecx, [esi + 0x114]
call dword [0x49f754]
lea ecx, [esi + 0x118]
mov byte [esp + 0xa4], 6
call sub.MFC71.DLL_CFile::CFile
lea ecx, [esi + 0x128]
mov byte [esp + 0xa4], 7
call sub.MFC71.DLL_CFile::CFile
push ebp
mov ecx, ebx
mov byte [esp + 0xa8], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
mov ecx, dword [esp + 0xb0]
push str.configenumwindow.ini
lea edx, [esp + 0x14]
push 0x4bc618
push edx
mov dword [esi + 0x108], ecx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x80
lea eax, [esp + 0x20]
push eax
push 0x4a0f3c
push str.NAME
push str.MSGWINDOW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
push ecx
push str._s
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov ecx, dword [esp + 0xa8]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8c]
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x98
ret 0xc
Function at 0x441d00
Capabilities:
Encode data using xor

Disassembly:
mov cx, word [edx]
xor eax, eax
test cx, cx
je 0x441d28
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
xor eax, ecx
add edx, 2
xor ecx, ecx
mov cx, word [edx]
test cx, cx
jne 0x441d10
ret
Function at 0x454530
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi], 0
mov esi, ecx
jg 0x45454a
mov dword [edi], 0
pop edi
xor eax, eax
pop esi
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi + 0x1028]
mov ecx, dword [edi]
sub eax, edx
cmp ecx, eax
jle 0x45456e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
sub eax, dword [esi + 0x1028]
mov dword [edi], eax
mov eax, dword [esi + 0x1028]
test eax, eax
jne 0x454583
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov word [esi + 0x14], ax
mov ecx, dword [edi]
mov edx, dword [esi + 0x1028]
push 0
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esi + edx + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4545bd
mov dword [edi], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
pop edi
sbb eax, eax
pop esi
ret 8
mov dword [edi], eax
mov edx, dword [esi + 0x1028]
add edx, eax
mov dword [esi + 0x1028], edx
mov edi, edx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp edi, eax
jl 0x4545e4
pop edi
mov eax, 1
pop esi
ret 8
mov eax, edi
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
ret 8

Function at 0x455930
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
push eax
call fcn.0045eab0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0xc], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4559e9
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x4559b6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455997
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4559b6
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4559c2
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4559ff
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00496ace
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0045edc0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00496ace
add esp, 0x1c
ret 4
Function at 0x455a50
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10]
push eax
call fcn.0045eab0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0x10], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x455b0c
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x455ad6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455ab7
sub eax, edx
mov dword [esp + 0x10], eax
je 0x455ad6
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x455ae2
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x1bb
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x455b22
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00496ace
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0045edc0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x10], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00496ace
add esp, 0x1c
ret 4
Function at 0x455b70
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
push eax
call fcn.0045eab0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0x14], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x455c29
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x455bf6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455bd7
sub eax, edx
mov dword [esp + 0x10], eax
je 0x455bf6
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x455c02
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x6e
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x455c3f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00496ace
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0045edc0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x14], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00496ace
add esp, 0x1c
ret 4
Function at 0x455c90
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x18]
push eax
call fcn.0045eab0
add esp, 4
push 0
push 1
push 2
mov dword [edi + 0x18], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x455d4c
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], 0xffffffff
je 0x455d16
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455cf7
sub eax, edx
mov dword [esp + 0x10], eax
je 0x455d16
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x455d22
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
push 0x1f90
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x455d62
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00496ace
add esp, 0x1c
ret 4
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push 4
call fcn.0045edc0
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [edi + 0x18], esi
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00496ace
add esp, 0x1c
ret 4
Function at 0x4566f0
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x49c22b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0046ed00
test esi, esi
je 0x456728
lea eax, [esi + 4]
jmp 0x45672a
xor eax, eax
push 0
push eax
push 1
call fcn.0045ed00
mov dword [esi + 0x84], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
add esp, 0xc
test eax, eax
mov word [esp + 0xc], 2
jne 0x456812
mov eax, dword [0x4bd2c0]
mov ecx, dword [eax + 0x4d0]
shr ecx, 0xb
and cl, 1
mov byte [esp + 7], cl
je 0x456812
mov cl, byte [eax + 0x6cc]
test cl, cl
jne 0x456812
mov ecx, dword [esi + 0x98]
test ecx, ecx
jne 0x4567d5
push 0x58
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x4567ba
push 2
mov ecx, eax
call fcn.0045df90
jmp 0x4567bc
xor eax, eax
mov dword [esi + 0x98], eax
lea ecx, [esi + 0x10]
mov dword [eax + 0x54], ecx
mov eax, dword [0x4bd2c0]
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edx
push ecx
mov ecx, dword [esi + 0x98]
add eax, 0x6d0
push eax
call fcn.0045da90
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00496ace
add esp, 0x28
ret 0x10
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x84]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x456856
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push 1
call dword [eax + 4]
jmp 0x4567f0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4567f0
xor eax, eax
jmp 0x4567f5
Function at 0x4580f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea esp, [esp]
push 0x41c
call sub.MFC71.DLL_operator_new_1
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x45814d
mov dword [esi], 0x4a99bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x418], eax
mov eax, 1
mov dword [esi + 0x408], edi
mov dword [esi + 0x40c], eax
mov dword [esi + 0x414], edi
mov dword [esi + 0x410], eax
mov dword [esi + 4], 0xffffffff
jmp 0x45814f
xor esi, esi
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.0045ef10
add esp, 8
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x458198
mov edi, dword [ebp + 0x2c]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], esi
lea esi, [ebp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00430ca0
push 1
mov ecx, esi
mov ebx, eax
call fcn.004249d0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
jmp 0x458100
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x10], ebx
je 0x45825c
lea ebx, [ebx]
mov edi, dword [esi + 8]
mov edx, dword [edi + 0x418]
mov eax, dword [esi]
mov ecx, ebx
sub ecx, edx
cmp ecx, 0x1d4c0
mov dword [esp + 0x14], eax
jbe 0x458251
mov eax, dword [edi + 4]
test eax, eax
je 0x4581f0
cmp eax, 0xffffffff
je 0x4581f0
push eax
call fcn.0045eab0
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp esi, dword [ebp + 0x2c]
je 0x45821b
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push esi
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp + 0x30]
add esp, 4
dec eax
mov dword [ebp + 0x30], eax
lea esi, [ebp + 0x34]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 4]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00430ca0
push 1
mov ecx, esi
mov ebx, eax
call fcn.004249d0
mov eax, dword [esp + 0x14]
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebp + 0x2c]
mov esi, eax
jne 0x4581c0
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4582ae
mov edi, dword [eax + 8]
mov edx, dword [edi + 0x418]
mov esi, dword [eax]
mov ecx, ebx
sub ecx, edx
cmp ecx, 0x493e0
jbe 0x4582a7
cmp eax, dword [ebp + 0x38]
je 0x45829e
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp + 0x3c]
add esp, 4
dec eax
mov dword [ebp + 0x3c], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x10]
cmp esi, dword [ebp + 0x38]
mov eax, esi
jne 0x458265
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8