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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c625c], 0
push esi
push edi
mov esi, ecx
je 0x412b9c
cmp byte [esi + 0x5ce], 7
jne 0x412b9c
push ecx
call fcn.00419380
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.004117a0
mov ebx, dword [esi + 0x48a]
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
test ebx, ebx
je 0x412c15
mov edi, dword [ebx]
cmp edi, 0xffffffff
je 0x412c0f
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 0x412c60
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x412c50
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 0x412caf
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x412c9f
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 0x412cc3
mov dword [esi + 0x514], 0
mov eax, dword [0x4c60cc]
test eax, eax
je 0x412cd2
dec eax
mov dword [0x4c60cc], 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 0x412d61
mov eax, dword [esi + 0x1206]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x412d47
push eax
call edi
add esp, 4
mov dword [esi + 0x1206], 0
mov eax, dword [esi + 0x120e]
test eax, eax
je 0x412d61
push eax
call edi
add esp, 4
mov dword [esi + 0x120e], 0
mov ecx, dword [esi + 0x1202]
call dword [sym.imp.mfc140u.dll_CByteArray::FreeExtra]
mov ecx, dword [esi + 0x1202]
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.0044632d
mov esp, ebp
pop ebp
ret 4
Function at 0x416f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4c3014]
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 0x4b79d8
push eax
call fcn.0041fb60
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
cmp di, 0x61
je 0x41701a
cmp di, 0x7d
jne 0x4170d3
push ebx
lea eax, [ebp - 0x804]
push 0x4b6e04
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 0x4170d2
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 0x4170c8
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.0041fb60
lea eax, [ebp - 0x404]
push eax
push 0x4b6e08
push ebx
call fcn.0041fe80
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 0x417060
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.0044632d
mov esp, ebp
pop ebp
ret 8
Function at 0x4183c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c3014]
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.00417e10
cmp dword [0x4c622c], 0
mov ebx, dword [edi + 0x48a]
mov dword [edi + 0x492], ebx
jne 0x418458
mov byte [edi + 0x5f6], 0
test ebx, ebx
je 0x418458
mov esi, dword [ebx]
cmp esi, 0xffffffff
je 0x418452
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 0x41847a
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], 0xffffffff
jmp 0x41847c
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.004209a0
test eax, eax
je 0x4184b2
test esi, esi
je 0x4184b0
push 0x10
push esi
mov dword [esi], 0xffffffff
call fcn.004467a8
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 0x4184d6
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.004182d0
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00417e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0x18

Function at 0x418be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4c3014]
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 0x4b6f58
push eax
call fcn.0041fb60
push dword [esi + 8]
lea eax, [ebp - 0x24]
push 0x4b6b74
push eax
call fcn.0041fba0
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
push edi
push ebx
push 0x4b6f04
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044632d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a520
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a32b3
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x4c3014]
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 0x4b7a30
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0xa10]
push 0x4b7a40
push eax
call fcn.0041fb60
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 0x4b7db0
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__4]
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 0x4b7a48
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 0x4b7a54
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.0044632d
mov esp, ebp
pop ebp
ret
Function at 0x41e6b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a33a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4c3014]
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 0x41e891
dec eax
add eax, ecx
cmp ecx, eax
je 0x41e891
cmp dword [eax], 0x1001700
je 0x41e708
dec eax
cmp ecx, eax
jne 0x41e6f6
jmp 0x41e891
movzx ebx, byte [eax - 1]
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x41e891
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 [0x4c34ce]
jb 0x41e7d5
mov al, byte [esi + 0x575]
cmp al, 0x11
jne 0x41e763
cmp byte [esi + 0x577], bl
je 0x41e782
cmp al, 0x13
jne 0x41e76f
cmp byte [esi + 0x577], bl
je 0x41e78e
mov eax, dword [ebp - 0x14]
add edi, 0x17
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jb 0x41e720
jmp 0x41e891
mov byte [esi + 0x570], 1
jmp 0x41e891
push 1
mov ecx, esi
mov byte [esi + 0x56e], 1
call fcn.00412b70
cmp dword [0x4c6250], 0
mov dword [esi + 0x416], 1
je 0x41e891
cmp byte [esi + 0x5fd], 0
je 0x41e891
mov ecx, esi
call fcn.00414030
mov ecx, esi
call fcn.00414030
jmp 0x41e891
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 0x41e858
cmp al, 5
je 0x41e858
cmp al, 0xa
je 0x41e858
cmp al, 0xb
je 0x41e858
cmp al, 0xc
je 0x41e858
cmp al, 0x10
je 0x41e858
cmp al, 0x14
je 0x41e858
cmp al, 0x15
je 0x41e858
cmp al, 0x16
je 0x41e858
cmp al, 0x17
je 0x41e858
cmp al, 0x1a
je 0x41e858
cmp al, 0x1b
je 0x41e858
cmp al, 0x1c
je 0x41e858
cmp al, 0x1d
jne 0x41e85d
mov ecx, 2
push ecx
movzx eax, al
mov ecx, esi
push eax
movzx eax, byte [esi + 0x575]
push eax
call fcn.0041d990
movzx eax, byte [esi + 0x575]
mov ecx, esi
push eax
movzx eax, byte [esi + 0x577]
push eax
call fcn.0041d840
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.0044632d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420090
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 0x4201fb
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 0x4200e0
add cl, 0x41
jmp 0x42010e
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x4200ec
add cl, 0x47
jmp 0x42010e
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x4200f8
sub cl, 4
jmp 0x42010e
cmp cl, 0x3e
jne 0x420101
mov cl, 0x2b
jmp 0x42010e
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 0x42012c
add cl, 0x41
jmp 0x42015a
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x420138
add cl, 0x47
jmp 0x42015a
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x420144
sub cl, 4
jmp 0x42015a
cmp cl, 0x3e
jne 0x42014d
mov cl, 0x2b
jmp 0x42015a
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 0x420174
add al, 0x41
jmp 0x4201a0
lea ecx, [eax - 0x1a]
cmp cl, 0x19
ja 0x420180
add al, 0x47
jmp 0x4201a0
lea ecx, [eax - 0x34]
cmp cl, 9
ja 0x42018c
sub al, 4
jmp 0x4201a0
cmp al, 0x3e
jne 0x420194
mov al, 0x2b
jmp 0x4201a0
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 0x4201b1
add cl, 0x41
jmp 0x4201df
lea eax, [ecx - 0x1a]
cmp al, 0x19
ja 0x4201bd
add cl, 0x47
jmp 0x4201df
lea eax, [ecx - 0x34]
cmp al, 9
ja 0x4201c9
sub cl, 4
jmp 0x4201df
cmp cl, 0x3e
jne 0x4201d2
mov cl, 0x2b
jmp 0x4201df
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 0x4200d0
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 0x420211
mov eax, dword [ebp + 8]
mov word [eax + edi*4 + 2], 0x3d3d
jmp 0x42021e
cmp ebx, 2
jne 0x420220
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 0x4204c0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
call fcn.00420240
test eax, eax
je 0x4204f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
mov ecx, edi
call fcn.00420240
test eax, eax
jne 0x4204e7
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 [0x4c52a0]
cmp byte [ebp + 8], 0
je 0x4205da
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 [0x4c52a0]
mov edi, dword [esi + 0x1c]
cmp edi, 0xffffffff
je 0x42069b
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 0x42069b
mov dword [esi + 0x18], 2
cmp dword [edi + 0x20], 0
je 0x42061f
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 0x42062a
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4c3720]
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 0x4206c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x4206c0
cmp eax, 0x3e5
je 0x4206c0
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 [0x4c52a0]
mov ecx, dword [esi + 0x1c]
call fcn.00421980
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.004467a8
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044632d
mov esp, ebp
pop ebp
ret 8
Function at 0x420900
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
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.004467a8
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x420980
cmp edi, 0xffffffff
je 0x42096f
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 [0x4c52a0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044632d
mov esp, ebp
pop ebp
ret 8
Function at 0x420ea0
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 [0x4c5298]
cmp byte [ebp + 8], 0
je 0x420ee1
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.00421130
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 0x420f08
push 4
call dword [sym.imp.mfc140u.dll_operator]
mov dword [esi + 0x28], 4
jmp 0x420f1a
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.00421090
cmp eax, 1
jne 0x420f44
push esi
push ecx
mov ecx, edi
call fcn.00421130
pop esi
pop edi
pop ebp
ret 8

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

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

Function at 0x421130
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x421193
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call ebx
test eax, eax
jne 0x421192
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x421192
push 1
push eax
call ebx
test eax, eax
jne 0x421192
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 0x421192
push 0x30
push esi
call fcn.004467a8
add esp, 8
pop ebx
push 0
push 0
push 3
push dword [edi]
push edi
call dword [0x4c5298]
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x4211d7
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.0044632d
mov esp, ebp
pop ebp
ret 8