joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5061b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d01ab
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 4], 0xffffffff
je 0x50629b
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x50627d
cmp dword [ebp + 8], 0
je 0x506275
lea ecx, [ebp - 0x9c]
call fcn.004d39d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.004d5be0
lea ecx, [ebp - 0x9c]
call fcn.004aeda0
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
push str.Failed_to_get_file_size__64_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004d3b20
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x5062cc
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.005062f0
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x5062cc
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 8], 0
je 0x5062c6
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 8]
push edx
call fcn.00504910
add esp, 4
push eax
call sub.MSVCR90.dll__filelengthi64
add esp, 4
jmp 0x5062cc
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret 4

Function at 0x50fd00
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d10f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6a7c78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jge 0x50fd32
xor al, al
jmp 0x50fdbf
cmp dword [ebp + 0x10], 0
jne 0x50fd3f
xor al, al
jmp 0x50fdbf
push str.getEntropy
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00505810
mov dword [ebp - 4], 0
mov byte [ebp - 0x1d], 0
call fcn.00504880
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x50fd81
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x1e]
jmp 0x50fdbf
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x50fd9b
mov byte [ebp - 0x1d], 1
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dl, byte [ebp - 0x1d]
mov byte [ebp - 0x1f], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x5109c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00504090
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.Sha2.0
cmp dword [ebp + 8], 0
jle 0x510b82
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x180
jg 0x510a18
cmp dword [ebp - 0x18], 0x180
je 0x510ab8
cmp dword [ebp - 0x18], 0xa0
je 0x510a2a
cmp dword [ebp - 0x18], 0x100
je 0x510a71
jmp 0x510b82
cmp dword [ebp - 0x18], 0x200
je 0x510b1e
jmp 0x510b82
mov dword [ebp - 4], 0
jmp 0x510a3c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x510a58
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x658f40]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x510a33
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x510b82
mov dword [ebp - 8], 0
jmp 0x510a83
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x510a9f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x659058]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x510a7a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x510b82
mov dword [ebp - 0xc], 0
jmp 0x510aca
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x510af1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x659078]
mov edx, dword [eax*8 + 0x65907c]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x510ac1
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
jmp 0x510b82
mov dword [ebp - 0x10], 0
jmp 0x510b30
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x510b57
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x659338]
mov edx, dword [eax*8 + 0x65933c]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x510b27
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5112d0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x180
jg 0x511310
cmp dword [ebp - 0x18], 0x180
je 0x5113b0
cmp dword [ebp - 0x18], 0xa0
je 0x511322
cmp dword [ebp - 0x18], 0x100
je 0x511369
jmp 0x51147a
cmp dword [ebp - 0x18], 0x200
je 0x511416
jmp 0x51147a
mov dword [ebp - 4], 0
jmp 0x511334
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jge 0x511350
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx*4 + 0x658f40]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x51132b
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x51147a
mov dword [ebp - 8], 0
jmp 0x51137b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x511397
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x659058]
mov dword [ecx + eax*4 + 0xc], edx
jmp 0x511372
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
jmp 0x51147a
mov dword [ebp - 0xc], 0
jmp 0x5113c2
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x5113e9
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax*8 + 0x659078]
mov edx, dword [eax*8 + 0x65907c]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x5113b9
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
jmp 0x51147a
mov dword [ebp - 0x10], 0
jmp 0x511428
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 8
jge 0x51144f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*8 + 0x659338]
mov edx, dword [eax*8 + 0x65933c]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [esi + eax*8 + 0x34], ecx
mov dword [esi + eax*8 + 0x38], edx
jmp 0x51141f
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x80], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x51d140
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], 0xc3d2e1f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov esp, ebp
pop ebp
ret
Function at 0x51ed10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x527030
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 0x527048
jmp 0x527156
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x5270cf
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0x1000
jb 0x5270cf
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x800000
ja 0x5270cf
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 0x5270ac
push 0x65a8f4
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 0x65a90c
mov ecx, dword [ebp + 8]
call fcn.005054d0
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 0x527156
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0x1000
jb 0x527156
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0x800000
ja 0x527156
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 0x527133
push 0x65a918
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 0x65a930
mov ecx, dword [ebp + 8]
call fcn.005054d0
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 0x527160
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 0x527177
jmp 0x527206
cmp dword [ebp + 8], 0x1000
jae 0x527185
jmp 0x527206
cmp dword [ebp + 8], 0x800000
jbe 0x527195
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 0x5271b2
jmp 0x527206
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x48]
test eax, eax
je 0x5271e3
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.005054d0
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 0x527210
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 0x527227
jmp 0x5272b6
cmp dword [ebp + 8], 0x1000
jae 0x527235
jmp 0x5272b6
cmp dword [ebp + 8], 0x800000
jbe 0x527245
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 0x527262
jmp 0x5272b6
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x48]
test eax, eax
je 0x527293
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.005054d0
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 0x5274f0
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 0x527507
jmp 0x527527
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 0x527530
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 0x527547
jmp 0x527567
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 0x527570
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 0x52758a
jmp 0x527610
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x5275d9
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x48]
test eax, eax
je 0x5275bd
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 0x527610
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x5275f6
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 0x527620
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 0x527639
xor al, al
jmp 0x52768d
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x52766e
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 0x52768b
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
Function at 0x528810
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1428
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push str.ck_getsockname_ipv4
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00505810
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004d1870
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0xa4], 0xffffffff
je 0x528920
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x5288a2
cmp dword [ebp - 0x1c], 0
jge 0x5288da
push str.Failed_to_getsockname
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call fcn.005280d0
add esp, 8
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x35]
jmp 0x528959
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
call fcn.004d52c0
movzx ecx, word [ebp - 0x32]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x3d]
jmp 0x528959
push 0x65b74c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x3e]
jmp 0x528959
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x528980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1458
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
push str.ck_getsockname_ipv6
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00505810
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004d1870
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xa4], 0xffffffff
je 0x528a94
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x528a12
cmp dword [ebp - 0x1c], 0
jge 0x528a4d
push str.Failed_to_getsockname_ipv6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call fcn.005280d0
add esp, 8
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x41]
jmp 0x528acd
mov ecx, dword [ebp + 8]
call fcn.004d1870
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x38]
push eax
push 0x17
call fcn.00525fd0
add esp, 0xc
movzx ecx, word [ebp - 0x3e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x42], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x42]
jmp 0x528acd
push str.Cannot_get_socket_name:_INVALID_SOCKET.
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x43], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005058c0
mov al, byte [ebp - 0x43]
jmp 0x528acd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x52bdb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6a7c78]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xa4], 0xffffffff
jne 0x52bdd9
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0xa0], 0
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0xa0]
test eax, eax
jne 0x52bdee
xor al, al
jmp 0x52bf50
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x250
call fcn.00526fd0
mov dword [ebp - 0x14], 0
jmp 0x52be1c
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x258]
jae 0x52be46
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 0x25c]
cmp ecx, dword [eax + 0xa4]
jne 0x52be44
jmp 0x52be46
jmp 0x52be13
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x258]
jne 0x52be8e
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x258], 0x200
jae 0x52be8e
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 0xa4]
mov dword [eax + edx*4 + 0x25c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x258]
add eax, 1
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x258], eax
xor edx, edx
jne 0x52be0a
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x258
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x52bf34
push 2
push 1
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52bef5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0052bf80
xor al, al
jmp 0x52bf50
cmp dword [ebp - 0x18], 0xffffffff
jne 0x52bf2e
mov ecx, dword [ebp + 8]
push ecx
push 0
call fcn.005280d0
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2746
je 0x52bf24
cmp dword [ebp - 0x28], 0x2745
jne 0x52bf28
xor al, al
jmp 0x52bf50
mov al, 1
jmp 0x52bf50
mov al, 1
jmp 0x52bf50
cmp dword [ebp - 4], 0
jge 0x52bf4e
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.005280d0
add esp, 8
mov al, 1
jmp 0x52bf50
mov al, 1
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004adf6a
mov esp, ebp
pop ebp
ret 4