joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
movsx eax, byte [esi + 0x12d]
push edi
mov edi, dword [esi + 0xc8]
shl eax, 6
cmp dword [edi + 0x338], 0
lea ebp, [eax + edi + 0x1c]
jne 0x42005a
pop edi
pop esi
xor eax, eax
pop ebp
ret
movsx eax, byte [esi + 0x126]
sub eax, 6
je 0x42018c
sub eax, 1
jne 0x420054
mov ecx, dword [edi + 0x16c]
push ecx
call fcn.00427a40
add esp, 4
mov dword [esi + 0xf4], eax
test eax, eax
jne 0x4200ca
push eax
push eax
push eax
call fcn.004285a0
add esp, 8
push eax
call fcn.0044d180
push eax
push str.SSL_new_failed:__s_n
push 1
call fcn.0041dc50
add esp, 0x14
call fcn.0041fa50
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420288
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov eax, 1
pop ebp
ret
mov edx, dword [0x70c474]
push edi
push edx
push eax
call fcn.00427850
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xf4]
push eax
push ecx
call fcn.00426370
mov edx, dword [esi + 0xf4]
push 0
push 2
push 0x21
push edx
call fcn.00428000
mov eax, dword [esi + 0xf4]
push eax
call fcn.0044b210
add esp, 0x28
test eax, eax
je 0x42011f
push 0
push 1
push 0x66
push eax
call fcn.0044e2f0
add esp, 0x10
jmp 0x42012e
push str.NULL_rbio_n
push 4
call fcn.0041dc50
add esp, 8
mov ecx, dword [esi + 0xf4]
push ecx
call fcn.0046f6e0
add esp, 4
test eax, eax
je 0x420152
push 0
push 1
push 0x66
push eax
call fcn.0044e2f0
add esp, 0x10
jmp 0x420161
push str.NULL_rbio_n
push 4
call fcn.0041dc50
add esp, 8
push esi
push edi
mov byte [esi + 0x126], 6
call fcn.0041d4c0
add esp, 8
test eax, eax
jne 0x420288
mov edx, dword [edi + 0x31c]
push edx
push 9
push esi
call fcn.0041d930
add esp, 0xc
push 0
push 2
push esi
call fcn.0041d760
add esp, 0xc
test eax, eax
jne 0x420288
mov eax, dword [ebp + 0x30]
mov ecx, dword [esi + 0x104]
push 2
push 0x1000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [edi + 0x33c], 0
je 0x420222
cmp eax, 1
jl 0x420200
mov edx, dword [ebp + 0x30]
cmp byte [edx], 0x20
jb 0x420200
mov eax, dword [esi + 0xf4]
and dword [esi + 0x120], 0xffffff3f
push eax
call fcn.00427fb0
mov ecx, dword [esi + 0xf4]
push ecx
call fcn.00427d00
add esp, 8
mov dword [esi + 0xf4], 0
jmp 0x420236
test eax, eax
je 0x420054
jge 0x420222
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebp
cmp eax, 0x2733
je 0x42026a
call ebp
cmp eax, 0x2733
je 0x42026a
mov edx, dword [esi + 0xf4]
push edx
call fcn.004287c0
add esp, 4
cmp eax, 1
jne 0x420255
mov eax, dword [edi + 0x31c]
push eax
push 3
push esi
call fcn.0041d930
add esp, 0xc
pop edi
mov byte [esi + 0x126], 0
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0xf4]
push eax
push ecx
call fcn.004285a0
add esp, 8
cmp eax, 2
jne 0x42026e
push 9
jmp 0x420275
cmp eax, 3
jne 0x420288
push 2
push 0
push esi
call fcn.0041d760
add esp, 0xc
test eax, eax
je 0x420054
pop edi
pop esi
mov eax, 1
pop ebp
ret
Function at 0x424450
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
test byte [eax + 0x38], 4
jne 0x42447f
push esi
mov esi, dword [esp + 8]
push 0x7f
add esi, 0x278
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
push str._canonical_hostname___s_n
push 4
call fcn.0041dc50
add esp, 0xc
pop esi
ret

Function at 0x424480
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x424569
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 4
lea esp, [esp]
xor edi, edi
xor ecx, ecx
test ebp, ebp
je 0x4244c3
mov bl, byte [eax]
inc eax
inc edi
mov byte [esp + ecx + 0x20], bl
dec ebp
jmp 0x4244c8
mov byte [esp + ecx + 0x20], 0
inc ecx
cmp ecx, 3
jl 0x4244b4
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x28]
jge 0x42457d
movzx ecx, byte [esp + 0x20]
mov esi, ecx
shr esi, 2
movzx ebx, byte [esi + 0x61d108]
movzx esi, byte [esp + 0x21]
mov byte [edx], bl
and ecx, 3
mov ebx, esi
shr ebx, 4
shl ecx, 4
or ebx, ecx
mov cl, byte [ebx + 0x61d108]
mov bl, byte [esp + 0x22]
inc edx
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x42452c
and esi, 0xf
movzx ecx, bl
add esi, esi
shr ecx, 6
add esi, esi
or ecx, esi
movsx ecx, byte [ecx + 0x61d108]
jmp 0x424531
mov ecx, 0x3d
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x424548
movzx ecx, bl
and ecx, 0x3f
movsx ecx, byte [ecx + 0x61d108]
jmp 0x42454d
mov ecx, 0x3d
mov byte [edx], cl
mov ecx, 4
add dword [esp + 0x14], ecx
add dword [esp + 0x10], ecx
inc edx
test ebp, ebp
jne 0x4244b0
mov eax, dword [esp + 0x14]
lea ecx, [eax + 1]
cmp ecx, dword [esp + 0x28]
jge 0x42457d
pop edi
pop esi
pop ebp
mov byte [edx], 0
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x425cb0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x6c
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x78]
push 0x68
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], 0xc3d2e1f0
call fcn.00425b50
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00425c10
mov ecx, dword [esp + 0x90]
add esp, 0x20
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00606c9e
add esp, 0x6c
ret
Function at 0x44efd0
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.00607520
cmp dword [0x70813c], 0
jne 0x44f079
push esi
push str.OPENSSL_ia32cap
mov dword [0x70813c], 1
call sub.MSVCR90.dll_getenv
add esp, 4
test eax, eax
je 0x44f063
xor ecx, ecx
cmp byte [eax], 0x7e
push edi
sete cl
lea edx, [esp + 8]
push edx
push str._I64i
mov edi, ecx
lea esi, [edi + eax]
push esi
call sub.MSVCR90.dll_sscanf
add esp, 0xc
test eax, eax
jne 0x44f03f
push eax
push eax
push esi
call sub.MSVCR90.dll_strtoul
add esp, 0xc
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x44f047
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test edi, edi
pop edi
je 0x44f068
call fcn.0045c840
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
not ecx
not esi
and eax, ecx
and edx, esi
jmp 0x44f068
call fcn.0045c840
or eax, 0x400
mov dword [0x70c480], eax
mov dword [0x70c484], edx
pop esi
add esp, 8
ret

Function at 0x44f1c0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00607520
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x44f225
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x44f225
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR90.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR90.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call sub.MSVCR90.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x44f2b4
call fcn.0044f080
test eax, eax
jle 0x44f2b4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00606c9e
add esp, 0x108
ret

Function at 0x44f310
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x44f334
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x44f326
pop esi
movzx eax, cl
pop edi
ret
Function at 0x45ffc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00607520
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x46000f
mov eax, 1
mov dword [esi], ebp
jmp 0x460011
mov ebp, dword [esi]
test ecx, ecx
je 0x4600f4
push ebp
call fcn.0045ee30
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x460040
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.0044f2e0
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x460097
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.00454ba0
add esp, 0xc
test eax, eax
je 0x460196
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.00454d50
add esp, 0xc
test eax, eax
je 0x460196
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00454d60
add esp, 0xc
test eax, eax
je 0x460196
jmp 0x4600d1
cmp edi, 0x80
jbe 0x4600b3
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.0044f2e0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x4600fc
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x4600fc
test eax, eax
je 0x460182
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x460100
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.00454ba0
add esp, 0xc
test eax, eax
je 0x460196
push ebp
call fcn.0045ee30
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00454d50
add esp, 0x10
test eax, eax
je 0x460196
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x460144
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.00454ba0
add esp, 0xc
test eax, eax
je 0x460196
push ebp
call fcn.0045ee30
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00454d50
add esp, 0x10
test eax, eax
je 0x460196
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.00454ef0
add esp, 8
test eax, eax
jne 0x46019a
xor eax, eax
jmp 0x46019f
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00606c9e
add esp, 0x8c
ret
Function at 0x4ab660
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4ab679
mov esi, edi
mov edi, eax
jmp 0x4ab67b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4ab68b
mov eax, ebx
jmp 0x4ab695
push eax
push ebx
call fcn.00455db0
add esp, 8
test eax, eax
jne 0x4ab69d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4ab6b9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4ab6a4
cmp eax, dword [esi + 4]
jge 0x4ab6d0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4ab6c0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4ab6f1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4ab6ee
dec eax
test eax, eax
jg 0x4ab6e0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4b3db7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00607520
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x4b3f24
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.0048a380
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0048a400
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00488a80
push ebp
call fcn.0048a380
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.0048a400
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00488a80
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4b3dd3
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00606c9e
add esp, 0xa0
ret
Function at 0x4f3f50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a85b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x70635c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004ea9a0
movzx eax, byte [0x709469]
test eax, eax
jne 0x4f3fe8
push 0x200
push 0
push 0x7090b0
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x100
lea ecx, [ebp - 0x134]
push ecx
push 0x7090b0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x4f3fe1
push 0xa
push str.Win32
push 0x7090b0
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [0x709469], 1
lea ecx, [ebp - 0x12c]
call fcn.004dd740
mov dword [ebp - 4], 0
push 0x7090b0
lea ecx, [ebp - 0x12c]
call fcn.004dfd40
lea ecx, [ebp - 0x12c]
call fcn.004e0730
push eax
mov ecx, dword [ebp + 8]
call fcn.004ec420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004dd800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606c9e
mov esp, ebp
pop ebp
ret
Function at 0x517b10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x517b28
jmp 0x517c36
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x517baf
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0x1000
jb 0x517baf
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x800000
ja 0x517baf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
shr edx, 0xc
shl edx, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x517b8c
push 0x6980dc
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
push 0x6980f4
mov ecx, dword [ebp + 8]
call fcn.004f50b0
push 4
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x517c36
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0x1000
jb 0x517c36
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0x800000
ja 0x517c36
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
shr ecx, 0xc
shl ecx, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x48]
test ecx, ecx
je 0x517c13
push 0x698100
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
push 0x698118
mov ecx, dword [ebp + 8]
call fcn.004f50b0
push 4
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 4

Function at 0x517c40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x517c57
jmp 0x517ce6
cmp dword [ebp + 8], 0x1000
jae 0x517c65
jmp 0x517ce6
cmp dword [ebp + 8], 0x800000
jbe 0x517c75
mov dword [ebp + 8], 0x800000
mov edx, dword [ebp + 8]
shr edx, 0xc
shl edx, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xa4], 0xffffffff
jne 0x517c92
jmp 0x517ce6
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x48]
test eax, eax
je 0x517cc3
push str.Setting_SO_SNDBUF_size
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
push str.sendBufSize
mov ecx, dword [ebp + 0xc]
call fcn.004f50b0
push 4
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 8
Function at 0x517cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp + 8]
jne 0x517d07
jmp 0x517d96
cmp dword [ebp + 8], 0x1000
jae 0x517d15
jmp 0x517d96
cmp dword [ebp + 8], 0x800000
jbe 0x517d25
mov dword [ebp + 8], 0x800000
mov edx, dword [ebp + 8]
shr edx, 0xc
shl edx, 0xc
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xa4], 0xffffffff
jne 0x517d42
jmp 0x517d96
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x48]
test eax, eax
je 0x517d73
push str.Setting_SO_RCVBUF_size
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
push str.recvBufSize
mov ecx, dword [ebp + 0xc]
call fcn.004f50b0
push 4
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 8

Function at 0x517fd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x517fe7
jmp 0x518007
mov dword [ebp - 4], 1
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esp, ebp
pop ebp
ret

Function at 0x518010
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x518027
jmp 0x518047
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esp, ebp
pop ebp
ret

Function at 0x518050
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x51806a
jmp 0x5180f0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x5180b9
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x48]
test eax, eax
je 0x51809d
push str.Turning_on_TCP_NODELAY.
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
call eax
push 4
lea ecx, [ebp - 8]
push ecx
push 1
push 6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x5180f0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x5180d6
push str.Turning_off_TCP_NODELAY.
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
call eax
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 8
Function at 0x518100
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x518119
xor al, al
jmp 0x51816d
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x51814e
push 4
lea edx, [ebp - 8]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x51816b
push 4
lea edx, [ebp - 4]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xa4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov esp, ebp
pop ebp
ret 8