joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7ec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], 0x35
mov byte [ebp - 0x23], 0x76
mov byte [ebp - 0x22], 0xf
mov byte [ebp - 0x21], 0x69
mov byte [ebp - 0x20], 0x62
mov byte [ebp - 0x1f], 0x5c
mov byte [ebp - 0x1e], 0x5b
mov byte [ebp - 0x1d], 0x51
mov byte [ebp - 0x1c], 0x5a
mov byte [ebp - 0x1b], 0x42
mov byte [ebp - 0x1a], 0x46
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x47
mov byte [ebp - 0x16], 0x50
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x50
mov byte [ebp - 0x13], 0x41
mov byte [ebp - 0x12], 0x56
mov byte [ebp - 0x11], 0x5d
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x79
mov byte [ebp - 0xe], 0x54
mov byte [ebp - 0xd], 0x4c
mov byte [ebp - 0xc], 0x5a
mov byte [ebp - 0xb], 0x40
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x1b
mov byte [ebp - 8], 0x5c
mov byte [ebp - 7], 0x5b
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
mov ecx, 8
lea esi, [ebp - 0x24]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7fe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x3b
mov byte [ebp - 0xe], 0x37
mov byte [ebp - 0xd], 0x2a
mov byte [ebp - 0xc], 0x22
mov byte [ebp - 0xb], 0x3e
mov byte [ebp - 0xa], 0x3d
mov byte [ebp - 9], 0x20
mov byte [ebp - 8], 0x37
mov byte [ebp - 7], 0x20
mov byte [ebp - 6], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov cx, word [ebp - 8]
mov word [eax + 8], cx
mov dl, byte [ebp - 6]
mov byte [eax + 0xa], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret 4

Function at 0x4b8050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x34
mov byte [ebp - 0xe], 0x2b
mov byte [ebp - 0xd], 0x22
mov byte [ebp - 0xc], 0x37
mov byte [ebp - 0xb], 0x30
mov byte [ebp - 0xa], 0x22
mov byte [ebp - 9], 0x33
mov byte [ebp - 8], 0x33
mov byte [ebp - 7], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov cx, word [ebp - 8]
mov word [eax + 8], cx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret 4

Function at 0x4c6130
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
Function at 0x4e58e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x4e58fe
mov ecx, dword [ebp - 8]
call fcn.004e9de0
jmp 0x4e5911
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x4e5911
mov ecx, dword [ebp - 8]
call fcn.004e9c40
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4e9c40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x4e9c69
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x4e9cd5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x4e9cad
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x4e9cb4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4e9c60
mov dword [ebp - 0xc], 0xe3
jmp 0x4e9ce7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x4e9d53
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x4e9d2b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x4e9d32
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4e9cde
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x4e9d9c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x4e9da3
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x4e9de0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x4e9dfb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x4e9e67
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x4e9e3f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x4e9e46
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4e9df2
mov esp, ebp
pop ebp
ret

Function at 0x4ede00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
je 0x4edf3c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4ede62
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
and edx, 8
je 0x4ede62
xor eax, eax
mov word [ebp - 0xc], ax
xor ecx, ecx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0x1c]
call fcn.004d90a0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00500be0
add esp, 0x1c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ede7b
mov byte [ebp - 1], 1
jmp 0x4ede7f
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004f6ce0
add esp, 8
cmp dword [ebp - 8], 0
je 0x4edf3c
push 0
push 0x2733
lea ecx, [ebp - 0x28]
call fcn.004b9fd0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004e0950
add esp, 8
movzx edx, al
test edx, edx
jne 0x4edee6
push 0
push 0x4d5
lea ecx, [ebp - 0x34]
call fcn.004b9fd0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004e0950
add esp, 8
movzx edx, al
test edx, edx
je 0x4edf3c
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
and eax, 0xfffffffc
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4edf27
mov byte [ebp - 2], 1
jmp 0x4edf2b
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004f6ce0
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4f6e70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x4f6e8e
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4f6e8e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jmp 0x4f6e95
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x4f6eb3
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x4f6eb3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x4f6eba
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], ecx
call fcn.004ed550
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00504540
add esp, 8
mov edx, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4f8420
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00503a00
movzx ecx, al
test ecx, ecx
je 0x4f8475
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4f8498
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 0x4eb4d0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x4fc420
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x4fc44e
push 0x2719
mov ecx, dword [ebp + 0x10]
call fcn.004ba2a0
or eax, 0xffffffff
jmp 0x4fc5f7
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x214], 0
jmp 0x4fc473
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp - 0x20c]
jae 0x4fc497
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + edx*4 - 0x208]
cmp eax, dword [ebp + 8]
jne 0x4fc495
jmp 0x4fc497
jmp 0x4fc464
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp - 0x20c]
jne 0x4fc4cd
cmp dword [ebp - 0x20c], 0x40
jae 0x4fc4cd
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x208], eax
mov ecx, dword [ebp - 0x20c]
add ecx, 1
mov dword [ebp - 0x20c], ecx
xor edx, edx
jne 0x4fc458
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x218], 0
jmp 0x4fc4f6
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [ebp - 0x108]
jae 0x4fc51a
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x4fc518
jmp 0x4fc51a
jmp 0x4fc4e7
mov ecx, dword [ebp - 0x218]
cmp ecx, dword [ebp - 0x108]
jne 0x4fc550
cmp dword [ebp - 0x108], 0x40
jae 0x4fc550
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x4fc4db
cmp dword [ebp + 0xc], 0
jl 0x4fc590
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], eax
jmp 0x4fc59a
mov dword [ebp - 0x21c], 0
mov ecx, dword [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jge 0x4fc5d6
mov byte [ebp - 0x20d], 1
jmp 0x4fc5dd
mov byte [ebp - 0x20d], 0
movzx edx, byte [ebp - 0x20d]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004f6ce0
add esp, 8
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x4fc610
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x4fc63e
push 0x2719
mov ecx, dword [ebp + 0x14]
call fcn.004ba2a0
or eax, 0xffffffff
jmp 0x4fc7a9
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 0
jmp 0x4fc663
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [ebp - 0x108]
jae 0x4fc687
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x4fc685
jmp 0x4fc687
jmp 0x4fc654
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [ebp - 0x108]
jne 0x4fc6bd
cmp dword [ebp - 0x108], 0x40
jae 0x4fc6bd
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x4fc648
movzx eax, byte [ebp + 0xc]
and eax, 1
je 0x4fc6ec
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x114], ecx
jmp 0x4fc732
cmp dword [ebp + 0x10], 0
jl 0x4fc728
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x114], eax
jmp 0x4fc732
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp - 0x114]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jge 0x4fc769
mov byte [ebp - 0x109], 1
jmp 0x4fc770
mov byte [ebp - 0x109], 0
movzx ecx, byte [ebp - 0x109]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004f6ce0
add esp, 8
cmp dword [ebp - 0x118], 0
jne 0x4fc7a3
movzx eax, byte [ebp + 0xc]
and eax, 1
je 0x4fc7a3
push 0x2733
mov ecx, dword [ebp + 0x14]
call fcn.004ba2a0
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x4fc7c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x4fc7ee
push 0x2719
mov ecx, dword [ebp + 0x14]
call fcn.004ba2a0
or eax, 0xffffffff
jmp 0x4fc959
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x110], 0
jmp 0x4fc813
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [ebp - 0x108]
jae 0x4fc837
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x4fc835
jmp 0x4fc837
jmp 0x4fc804
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [ebp - 0x108]
jne 0x4fc86d
cmp dword [ebp - 0x108], 0x40
jae 0x4fc86d
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x4fc7f8
movzx eax, byte [ebp + 0xc]
and eax, 1
je 0x4fc89c
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x114], ecx
jmp 0x4fc8e2
cmp dword [ebp + 0x10], 0
jl 0x4fc8d8
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x114], eax
jmp 0x4fc8e2
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp - 0x114]
push ecx
push 0
lea edx, [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 8]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jge 0x4fc919
mov byte [ebp - 0x109], 1
jmp 0x4fc920
mov byte [ebp - 0x109], 0
movzx ecx, byte [ebp - 0x109]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004f6ce0
add esp, 8
cmp dword [ebp - 0x118], 0
jne 0x4fc953
movzx eax, byte [ebp + 0xc]
and eax, 1
je 0x4fc953
push 0x2733
mov ecx, dword [ebp + 0x14]
call fcn.004ba2a0
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x4fed30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
push 0
push 0
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004f6ce0
add esp, 8
mov ecx, dword [ebp + 0x18]
call fcn.00505050
cmp eax, 0x40
jne 0x4fed94
push 0x2746
mov ecx, dword [ebp + 0x18]
call fcn.004ba2a0
jmp 0x4fedd7
mov ecx, dword [ebp + 0x18]
call fcn.00505050
cmp eax, 0x4d2
jne 0x4fedb2
push 0x274d
mov ecx, dword [ebp + 0x18]
call fcn.004ba2a0
jmp 0x4fedd7
mov ecx, dword [ebp + 0x18]
call fcn.00505050
cmp eax, 0x2738
je 0x4fedd0
mov ecx, dword [ebp + 0x18]
call fcn.00505050
cmp eax, 0xea
jne 0x4fedd7
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4fede2
or eax, 0xffffffff
jmp 0x4fedf1
mov edx, dword [ebp + 0x18]
push edx
call fcn.004ed3e0
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004f6ce0
add esp, 8
mov ecx, dword [ebp + 0x18]
call fcn.00505050
cmp eax, 0x40
jne 0x5006d4
push 0x2746
mov ecx, dword [ebp + 0x18]
call fcn.004ba2a0
jmp 0x5006f0
mov ecx, dword [ebp + 0x18]
call fcn.00505050
cmp eax, 0x4d2
jne 0x5006f0
push 0x274d
mov ecx, dword [ebp + 0x18]
call fcn.004ba2a0
cmp dword [ebp - 0x10], 0
je 0x5006fb
or eax, 0xffffffff
jmp 0x50070a
mov edx, dword [ebp + 0x18]
push edx
call fcn.004ed3e0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x501d50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 1
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x501d7d
mov byte [ebp - 1], 1
jmp 0x501d81
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004f6ce0
add esp, 8
cmp dword [ebp - 8], 0xffffffff
jne 0x501d9d
mov eax, dword [ebp - 8]
jmp 0x501dc1
cmp dword [ebp + 8], 0x17
jne 0x501dbe
mov dword [ebp - 0xc], 0
push 4
lea edx, [ebp - 0xc]
push edx
push 0x1b
push 0x29
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret