joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454670
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x6500
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
mov esi, ecx
mov word [ebp - 8], 0x400
mov dword [ebp - 0x14], 0
call fcn.00452b90
mov ebx, dword [esi + 0x40e]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test ebx, ebx
je 0x4546fb
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x4546f5
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
push 0x80
push 0xffff
push edi
call eax
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebx], 0xffffffff
mov edi, dword [esi + 0x412]
test edi, edi
je 0x454746
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x454736
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
push 0x80
push 0xffff
push ebx
call eax
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x412], 0
mov edi, dword [esi + 0x416]
test edi, edi
je 0x454795
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x454785
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov dword [esi + 0x416], 0
mov eax, dword [esi + 0x47e]
test eax, eax
je 0x4547b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x47e], 0
mov eax, dword [0x496a7c]
test eax, eax
je 0x4547bf
dec eax
mov dword [0x496a7c], eax
xor eax, eax
mov dword [esi + 0x40e], 0
mov dword [esi + 0x3f2], 0
mov byte [esi + 0x4d7], 0
mov dword [esi + 0x3ee], 0
mov dword [esi + 0x402], 0
mov dword [esi + 0x406], 0
mov word [esi + 0x4cc], ax
mov dword [esi + 0x3f6], eax
mov byte [esi + 0x4b4], al
mov byte [esi + 0x4b7], al
cmp byte [esi + 0x4c3], al
jne 0x45482a
mov ecx, dword [esi + 0x17c6]
push 0xffffffffffffffff
push eax
call dword [sym.imp.mfc140u.dll_CByteArray::SetSize]
cmp dword [ebp + 8], 0
je 0x454874
mov eax, dword [esi + 0x17ca]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x454858
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x17ca], 0
mov eax, dword [esi + 0x17d2]
test eax, eax
je 0x454874
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x17d2], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047724d
mov esp, ebp
pop ebp
ret 4
Function at 0x458140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push edi
push 0x400
push 0
push eax
mov dword [ebp - 0x80c], esi
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x404]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
movzx eax, word [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx edi, ax
movsx eax, di
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push 0x47c0b8
push eax
call fcn.0045dc60
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
cmp di, 0x61
je 0x4581ea
cmp di, 0x7d
jne 0x4582a3
push ebx
lea eax, [ebp - 0x804]
push 0x47c040
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4582a2
xor ecx, ecx
mov dword [ebp - 0x808], ecx
movzx ecx, word [esi + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
cmp cx, ax
jae 0x458298
mov edi, dword [sym.imp.WS2_32.dll_htonl]
add esi, 0x60
nop dword [eax]
push dword [esi - 0x31]
call edi
push eax
push dword [esi]
call edi
push eax
push dword [esi - 0x46]
call edi
push eax
push dword [esi - 0x26]
call edi
push eax
push dword [esi - 0x2a]
call edi
push eax
lea eax, [ebp - 0x404]
push str._u_____u_____d_____d___d__n
push eax
call fcn.0045dc60
lea eax, [ebp - 0x404]
push eax
push 0x47c044
push ebx
call fcn.0045dd90
mov eax, dword [ebp - 0x80c]
lea esi, [esi + 0x50]
inc dword [ebp - 0x808]
add esp, 0x28
movzx eax, word [eax + 0x16]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
cmp dword [ebp - 0x808], eax
jb 0x458230
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047724d
mov esp, ebp
pop ebp
ret 8
Function at 0x459610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov byte [ebp - 0x18], 0
mov edi, ecx
mov word [ebp - 7], 0
movups xmmword [ebp - 0x17], xmm0
mov byte [ebp - 5], 0
call dword [sym.imp.WS2_32.dll_htonl]
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.00458f00
cmp dword [0x496a80], 0
mov ebx, dword [edi + 0x40e]
mov dword [edi + 0x416], ebx
jne 0x4596a8
mov byte [edi + 0x4d7], 0
test ebx, ebx
je 0x4596a8
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x4596a2
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
push 0x10
call dword [sym.imp.mfc140u.dll_operator_2]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4596ca
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], 0xffffffff
jmp 0x4596cc
xor esi, esi
push 5
push 0
push 0
push 0
push 0
push 0
push ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0045e900
test eax, eax
je 0x459702
test esi, esi
je 0x459700
push 0x10
push esi
mov dword [esi], 0xffffffff
call fcn.004776c8
add esp, 8
xor esi, esi
push 0x32
mov dword [edi + 0x40e], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x40e], 0
je 0x459726
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.00459520
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00458f80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047724d
mov esp, ebp
pop ebp
ret 0x18
Function at 0x45ab80
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478933
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xa18], edi
push 0x400
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa28], edi
push 0
push eax
mov dword [ebp - 0xa24], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xa1c]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x400
lea eax, [ebp - 0x610]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x610]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x47c0fc
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0xa10]
push 0x47c10c
push eax
call fcn.0045dc60
push esi
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
lea eax, [ebp - 0xa14]
push 0x47c244
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0xa10]
lea ecx, [ebp - 0xa20]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa14]
push dword [eax]
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x47c114
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa20]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x210]
mov dword [ebp - 0xa24], 1
push eax
push 0x47c120
push edi
call esi
add esp, 0xc
lea ecx, [ebp - 0xa14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret
Function at 0x45d690
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4785f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0x7b00
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0x300
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
call dword [sym.imp.mfc140u.dll_CByteArray::CByteArray]
push 0
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 3
push dword [esi + 4]
call edi
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00450370
add esp, 8
push 0
push 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00450370
add esp, 8
push dword [esi + 4]
call edi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [edx + ecx - 0x41], eax
push dword [esi + 4]
call edi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [edx + ecx - 0x1a], eax
cmp dword [esi + 0x472], 0
jne 0x45d76c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call edi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [esi + 0x472], eax
mov eax, dword [esi + 0x472]
mov dword [edx + ecx - 9], eax
mov eax, dword [esi + 0x472]
mov dword [edx + ecx - 0x39], eax
push edx
mov edx, ecx
lea ecx, [ebp - 0x30]
push 4
call fcn.00450370
movzx eax, word [esi + 0x4d0]
add esp, 8
mov ecx, esi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004536d0
lea ecx, [ebp - 0x30]
call dword [0x47a7a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret 8
Function at 0x45dff0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov eax, 0x55555556
imul ebx
push edi
mov edi, edx
mov dword [ebp - 0xc], ebx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 8], edi
lea edx, [edi + 1]
mov dword [ebp - 4], edx
test edx, edx
jle 0x45e15b
mov eax, dword [ebp + 8]
lea edx, [ecx + 2]
mov ebx, dword [ebp - 4]
mov edi, 0x2f
push esi
lea esi, [eax + 2]
nop
mov cl, byte [edx - 2]
shr cl, 2
cmp cl, 0x19
ja 0x45e040
add cl, 0x41
jmp 0x45e06e
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x45e04c
add cl, 0x47
jmp 0x45e06e
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x45e058
sub cl, 4
jmp 0x45e06e
cmp cl, 0x3e
jne 0x45e061
mov cl, 0x2b
jmp 0x45e06e
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 2], cl
mov cl, byte [edx - 2]
mov al, byte [edx - 1]
and cl, 3
shl cl, 4
shr al, 4
add cl, al
cmp cl, 0x19
ja 0x45e08c
add cl, 0x41
jmp 0x45e0ba
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x45e098
add cl, 0x47
jmp 0x45e0ba
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x45e0a4
sub cl, 4
jmp 0x45e0ba
cmp cl, 0x3e
jne 0x45e0ad
mov cl, 0x2b
jmp 0x45e0ba
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi - 1], cl
mov al, byte [edx - 1]
mov cl, byte [edx]
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
cmp al, 0x19
ja 0x45e0d4
add al, 0x41
jmp 0x45e100
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x45e0e0
add al, 0x47
jmp 0x45e100
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x45e0ec
sub al, 4
jmp 0x45e100
cmp al, 0x3e
jne 0x45e0f4
mov al, 0x2b
jmp 0x45e100
cmp al, 0x3f
mov ecx, 0x3d
cmove ecx, edi
mov al, cl
mov byte [esi], al
mov cl, byte [edx]
and cl, 0x3f
cmp cl, 0x19
ja 0x45e111
add cl, 0x41
jmp 0x45e13f
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x45e11d
add cl, 0x47
jmp 0x45e13f
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x45e129
sub cl, 4
jmp 0x45e13f
cmp cl, 0x3e
jne 0x45e132
mov cl, 0x2b
jmp 0x45e13f
cmp cl, 0x3f
mov eax, 0x3d
cmove eax, edi
mov cl, al
mov byte [esi + 1], cl
add edx, 3
add esi, 4
sub ebx, 1
jne 0x45e030
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
pop esi
lea eax, [edi + edi*2]
sub ebx, eax
cmp ebx, 1
jne 0x45e171
mov eax, dword [ebp + 8]
mov word [eax + edi*4 + 2], 0x3d3d
jmp 0x45e17e
cmp ebx, 2
jne 0x45e180
mov eax, dword [ebp + 8]
mov byte [eax + edi*4 + 3], 0x3d
mov edi, edx
mov ecx, dword [ebp + 8]
lea eax, [edi*4]
pop edi
pop ebx
mov byte [eax + ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x45e420
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
call fcn.0045e1a0
test eax, eax
je 0x45e456
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
mov ecx, edi
call fcn.0045e1a0
test eax, eax
jne 0x45e447
push 4
push edi
push 0x700b
push 0xffff
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x98000004
push dword [esi + 0x1c]
mov dword [ebp - 0x18], 0x7530
mov dword [ebp - 0x14], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 4]
push 0
push 0
push 1
push dword [esi + 0x1c]
push edi
call dword [0x496a1c]
cmp byte [ebp + 8], 0
je 0x45e53a
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 4]
push ebx
call eax
push dword [edi + 4]
push 0
push 0
push 3
push dword [esi + 0x1c]
push edi
call dword [0x496a1c]
mov edi, dword [esi + 0x1c]
cmp edi, 0xffffffff
je 0x45e5fb
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x45e5fb
mov dword [esi + 0x18], 2
cmp dword [edi + 0x20], 0
je 0x45e57f
push dword [esi + 0x20]
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [esi + 0x30], 0
push 4
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x20], eax
add esp, 4
add eax, dword [esi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, 4
sub eax, dword [esi + 0x30]
mov dword [esi + 0x2c], 4
jmp 0x45e58a
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [0x495a1c]
push 0
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 8], 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x45e620
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x45e620
cmp eax, 0x3e5
je 0x45e620
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [edi + 4]
push ebx
call eax
push dword [edi + 4]
push 0
push 0
push 3
push dword [esi + 0x1c]
push edi
call dword [0x496a1c]
mov ecx, dword [esi + 0x1c]
call fcn.0045f8b0
push dword [esi + 0x20]
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [esi + 0x20], 0
push 0x34
push esi
call fcn.004776c8
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047724d
mov esp, ebp
pop ebp
ret 8
Function at 0x45e860
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
push 0x34
push esi
mov dword [esi + 0x20], 0
call fcn.004776c8
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x45e8e0
cmp edi, 0xffffffff
je 0x45e8cf
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx + 4]
push 0
push 0
push 5
push edi
push ebx
call dword [0x496a1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047724d
mov esp, ebp
pop ebp
ret 8
Function at 0x45ee00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0
mov edi, ecx
push 0x7010
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push 1
push dword [edi]
push edi
call dword [0x496a14]
cmp byte [ebp + 8], 0
je 0x45ee41
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.0045f090
pop edi
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
cmp dword [edi + 4], 0
je 0x45ee68
push 4
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x28], 4
jmp 0x45ee7a
push 0xffff
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x28], 0xffff
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, edi
mov dword [esi + 0x18], 2
mov dword [esi + 0x2c], 0
push esi
call fcn.0045eff0
cmp eax, 1
jne 0x45eea4
push esi
push ecx
mov ecx, edi
call fcn.0045f090
pop esi
pop edi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
mov dword [ebp - 0xc], 0
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x24]
mov dword [esi + 0x14], ecx
push eax
push 1
lea eax, [ebp - 0x14]
mov dword [esi + 0x18], 2
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x45f06e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x45f06e
cmp eax, 0x3e5
je 0x45f06e
mov eax, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0047724d
mov esp, ebp
pop ebp
ret 4

Function at 0x45f090
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
push dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
push 0x30
push esi
mov dword [esi + 0x1c], 0
call fcn.004776c8
add esp, 0xc
push 0
push 0
push 3
push dword [edi]
push edi
call dword [0x496a14]
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x45f106
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov dword [edi], 0xffffffff
xor ecx, ebp
pop edi
pop esi
call fcn.0047724d
mov esp, ebp
pop ebp
ret 8
Function at 0x45f120
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
cmp edi, 0xffffffff
je 0x45f169
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi], 0xffffffff
xor ecx, ebp
pop esi
call fcn.0047724d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
push edi
mov edi, ecx
cmp esi, 0x3e80000
jbe 0x45f1cc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0x30
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.mfc140u.dll_operator_2]
push 0x30
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], 4
cmp dword [edi + 4], 0
je 0x45f235
add esi, 4
push esi
call dword [sym.imp.mfc140u.dll_operator]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
push ecx
push dword [ebp - 0x10]
add eax, 4
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
jmp 0x45f247
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x28], esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0xc], eax
push 0
push ebx
push 0
lea eax, [ebx + 0x24]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x45f292
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x45f292
push 0x30
push ebx
call fcn.004776c8
add esp, 8
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret 0x14
xor esi, esi
cmp dword [edi + 8], 1
jne 0x45f2c3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x7d0
jg 0x45f2b5
push 1
call ebx
cmp dword [edi + 8], 1
je 0x45f2a0
jmp 0x45f2c3
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0047724d
mov esp, ebp
pop ebp
ret 0x14