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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c5124], 0
push esi
push edi
mov esi, ecx
je 0x41322c
cmp byte [esi + 0x5ce], 7
jne 0x41322c
push ecx
call fcn.00419ac0
push ebx
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 0x6500
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
mov ecx, esi
mov word [ebp - 0xc], 0x400
mov dword [ebp - 8], 0
call fcn.00411330
mov ebx, dword [esi + 0x48a]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test ebx, ebx
je 0x4132a5
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x41329f
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 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 + 0x48e]
test edi, edi
je 0x4132f0
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x4132e0
push 4
lea ecx, [ebp - 8]
mov dword [ebp - 8], 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 + 0x48e], 0
mov edi, dword [esi + 0x492]
test edi, edi
je 0x41333f
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x41332f
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 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 + 0x492], 0
cmp dword [esi + 0x514], 0
pop ebx
je 0x413353
mov dword [esi + 0x514], 0
mov eax, dword [0x4c4b98]
test eax, eax
je 0x413362
dec eax
mov dword [0x4c4b98], eax
xor eax, eax
mov dword [esi + 0x48a], 0
mov dword [esi + 0x46a], 0
mov byte [esi + 0x5f6], 0
mov dword [esi + 0x47e], 0
mov dword [esi + 0x482], 0
mov word [esi + 0x5ea], ax
mov byte [esi + 0x5cc], al
mov dword [esi + 0x534], eax
mov byte [esi + 0x5d2], al
mov byte [esi + 0x5e0], al
cmp dword [ebp + 8], eax
je 0x4133f1
mov eax, dword [esi + 0x1205]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x4133d7
push eax
call edi
add esp, 4
mov dword [esi + 0x1205], 0
mov eax, dword [esi + 0x120d]
test eax, eax
je 0x4133f1
push eax
call edi
add esp, 4
mov dword [esi + 0x120d], 0
mov ecx, dword [esi + 0x1201]
call dword [sym.imp.mfc140u.dll_CByteArray::FreeExtra]
mov ecx, dword [esi + 0x1201]
push 0xffffffffffffffff
push 0
call dword [sym.imp.mfc140u.dll_CByteArray::SetSize]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044612d
mov esp, ebp
pop ebp
ret 4
Function at 0x4176b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4c2014]
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 0x4b6a00
push eax
call fcn.00420240
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
cmp di, 0x61
je 0x41775a
cmp di, 0x7d
jne 0x417813
push ebx
lea eax, [ebp - 0x804]
push 0x4b5db8
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 0x417812
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 0x417808
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.00420240
lea eax, [ebp - 0x404]
push eax
push 0x4b5dbc
push ebx
call fcn.00420560
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 0x4177a0
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.0044612d
mov esp, ebp
pop ebp
ret 8
Function at 0x418b00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c2014]
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.00418550
cmp dword [0x4c50f4], 0
mov ebx, dword [edi + 0x48a]
mov dword [edi + 0x492], ebx
jne 0x418b98
mov byte [edi + 0x5f6], 0
test ebx, ebx
je 0x418b98
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x418b92
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 0x418bba
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], 0xffffffff
jmp 0x418bbc
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.00421190
test eax, eax
je 0x418bf2
test esi, esi
je 0x418bf0
push 0x10
push esi
mov dword [esi], 0xffffffff
call fcn.004465a8
add esp, 8
xor esi, esi
push 0x50
mov dword [edi + 0x48a], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x48a], 0
je 0x418c16
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.00418a10
push dword [ebp + 0x14]
mov ecx, edi
call fcn.004185d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044612d
mov esp, ebp
pop ebp
ret 0x18

Function at 0x419320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x424]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x824]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov byte [ebp - 7], 0
movups xmmword [ebp - 0x23], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x13], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x824]
push 0x4b5ef8
push eax
call fcn.00420240
push dword [esi + 8]
lea eax, [ebp - 0x24]
push 0x4b5b64
push eax
call fcn.00420280
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
push edi
push ebx
push 0x4b5ea4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044612d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ad90
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3103
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x4c2014]
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 0x4b6a58
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0xa10]
push 0x4b6a68
push eax
call fcn.00420240
push esi
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
lea eax, [ebp - 0xa14]
push 0x4b6db8
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__7]
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 0x4b6a70
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 0x4b6a7c
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.0044612d
mov esp, ebp
pop ebp
ret
Function at 0x41ee00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a31f9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x41efe1
dec eax
add eax, ecx
cmp ecx, eax
je 0x41efe1
cmp dword [eax], 0x1001700
je 0x41ee58
dec eax
cmp ecx, eax
jne 0x41ee46
jmp 0x41efe1
movzx ebx, byte [eax - 1]
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x41efe1
lea edi, [eax + 4]
nop
movzx eax, word [edi - 2]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov byte [esi + 0x577], al
push dword [edi]
call dword [sym.imp.WS2_32.dll_htonl]
mov byte [esi + 0x576], al
mov cl, byte [edi + 8]
mov byte [ebp - 0x15], cl
cmp al, byte [0x4c24ce]
jb 0x41ef25
mov al, byte [esi + 0x575]
cmp al, 0x11
jne 0x41eeb3
cmp byte [esi + 0x577], bl
je 0x41eed2
cmp al, 0x13
jne 0x41eebf
cmp byte [esi + 0x577], bl
je 0x41eede
mov eax, dword [ebp - 0x14]
add edi, 0x17
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jb 0x41ee70
jmp 0x41efe1
mov byte [esi + 0x570], 1
jmp 0x41efe1
push 1
mov ecx, esi
mov byte [esi + 0x56e], 1
call fcn.00413200
cmp dword [0x4c5118], 0
mov dword [esi + 0x416], 1
je 0x41efe1
cmp byte [esi + 0x5fc], 0
je 0x41efe1
mov ecx, esi
call fcn.004146c0
mov ecx, esi
call fcn.004146c0
jmp 0x41efe1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
movzx eax, byte [esi + 0x576]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [esi + 0x577]
push eax
lea eax, [ebp - 0x14]
push str._d__d__d_n
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x14
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, byte [esi + 0x577]
mov ecx, 1
cmp al, 3
je 0x41efa8
cmp al, 5
je 0x41efa8
cmp al, 0xa
je 0x41efa8
cmp al, 0xb
je 0x41efa8
cmp al, 0xc
je 0x41efa8
cmp al, 0x10
je 0x41efa8
cmp al, 0x14
je 0x41efa8
cmp al, 0x15
je 0x41efa8
cmp al, 0x16
je 0x41efa8
cmp al, 0x17
je 0x41efa8
cmp al, 0x1a
je 0x41efa8
cmp al, 0x1b
je 0x41efa8
cmp al, 0x1c
je 0x41efa8
cmp al, 0x1d
jne 0x41efad
mov ecx, 2
push ecx
movzx eax, al
mov ecx, esi
push eax
movzx eax, byte [esi + 0x575]
push eax
call fcn.0041e0e0
movzx eax, byte [esi + 0x575]
mov ecx, esi
push eax
movzx eax, byte [esi + 0x577]
push eax
call fcn.0041df90
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044612d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420880
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 0x4209eb
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 0x4208d0
add cl, 0x41
jmp 0x4208fe
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x4208dc
add cl, 0x47
jmp 0x4208fe
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x4208e8
sub cl, 4
jmp 0x4208fe
cmp cl, 0x3e
jne 0x4208f1
mov cl, 0x2b
jmp 0x4208fe
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 0x42091c
add cl, 0x41
jmp 0x42094a
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x420928
add cl, 0x47
jmp 0x42094a
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x420934
sub cl, 4
jmp 0x42094a
cmp cl, 0x3e
jne 0x42093d
mov cl, 0x2b
jmp 0x42094a
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 0x420964
add al, 0x41
jmp 0x420990
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x420970
add al, 0x47
jmp 0x420990
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x42097c
sub al, 4
jmp 0x420990
cmp al, 0x3e
jne 0x420984
mov al, 0x2b
jmp 0x420990
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 0x4209a1
add cl, 0x41
jmp 0x4209cf
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x4209ad
add cl, 0x47
jmp 0x4209cf
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x4209b9
sub cl, 4
jmp 0x4209cf
cmp cl, 0x3e
jne 0x4209c2
mov cl, 0x2b
jmp 0x4209cf
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 0x4208c0
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 0x420a01
mov eax, dword [ebp + 8]
mov word [eax + edi*4 + 2], 0x3d3d
jmp 0x420a0e
cmp ebx, 2
jne 0x420a10
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 0x420cb0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
call fcn.00420a30
test eax, eax
je 0x420ce6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
mov ecx, edi
call fcn.00420a30
test eax, eax
jne 0x420cd7
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 [0x4c42a0]
cmp byte [ebp + 8], 0
je 0x420dca
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 [0x4c42a0]
mov edi, dword [esi + 0x1c]
cmp edi, 0xffffffff
je 0x420e8b
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 0x420e8b
mov dword [esi + 0x18], 2
cmp dword [edi + 0x20], 0
je 0x420e0f
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 0x420e1a
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4c2720]
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 0x420eb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x420eb0
cmp eax, 0x3e5
je 0x420eb0
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 [0x4c42a0]
mov ecx, dword [esi + 0x1c]
call fcn.00422170
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.004465a8
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044612d
mov esp, ebp
pop ebp
ret 8
Function at 0x4210f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c2014]
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.004465a8
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x421170
cmp edi, 0xffffffff
je 0x42115f
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 [0x4c42a0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044612d
mov esp, ebp
pop ebp
ret 8
Function at 0x421690
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 [0x4c4298]
cmp byte [ebp + 8], 0
je 0x4216d1
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.00421920
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 0x4216f8
push 4
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x28], 4
jmp 0x42170a
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.00421880
cmp eax, 1
jne 0x421734
push esi
push ecx
mov ecx, edi
call fcn.00421920
pop esi
pop edi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c2014]
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 0x4218fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x4218fe
cmp eax, 0x3e5
je 0x4218fe
mov eax, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044612d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0044612d
mov esp, ebp
pop ebp
ret 4

Function at 0x421920
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x421983
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call ebx
test eax, eax
jne 0x421982
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x421982
push 1
push eax
call ebx
test eax, eax
jne 0x421982
push dword [esi + 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
add esp, 4
mov dword [esi + 0x1c], 0
push 4
push esi
call ebx
test eax, eax
jne 0x421982
push 0x30
push esi
call fcn.004465a8
add esp, 8
pop ebx
push 0
push 0
push 3
push dword [edi]
push edi
call dword [0x4c4298]
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x4219c7
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.0044612d
mov esp, ebp
pop ebp
ret 8