joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b57a9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x41f921
mov eax, dword [edi]
push dword [0x63f244]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x41f921
cmp dword [eax], esi
je 0x41f964
mov eax, dword [eax + 8]
test eax, eax
jne 0x41f916
push dword [0x63f244]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x41f9e5
mov eax, dword [eax + 4]
test eax, eax
je 0x41f9e5
mov edx, dword [eax]
test edx, edx
je 0x41f9e5
mov dword [eax], 0
mov al, byte [edx]
cmp al, 0xa
jb 0x41f9dc
mov byte [edx + 0x28], al
jmp 0x41f9f5
cmp dword [eax + 4], 0
je 0x41f921
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.00420660
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fa67
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
call fcn.0043ada7
add esp, 4
push 0x29
call fcn.0043ad67
mov edx, eax
add esp, 4
mov byte [edx + 0x28], 0xa
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x41fa43
mov ecx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x420360
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ecx]
mov dword [edx + 0x20], eax
mov dword [ecx], 0
jmp 0x41fa45
xor edx, edx
push ecx
mov ecx, dword [edi]
push edx
mov ecx, dword [ecx + 8]
call fcn.004177d0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0041fe50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41fa80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b57d5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x41fae1
mov eax, dword [edi]
push dword [0x63f244]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x41fae1
cmp dword [eax], esi
je 0x41fb1e
mov eax, dword [eax + 8]
test eax, eax
jne 0x41fad6
mov dword [ebp - 4], 0xffffffff
push dword [0x63f244]
call ebx
test eax, eax
je 0x41fb8d
mov eax, dword [eax + 4]
test eax, eax
je 0x41fb8d
mov ecx, dword [eax]
test ecx, ecx
je 0x41fb8d
mov dword [eax], 0
mov al, byte [ecx]
cmp al, 0xb
jb 0x41fb84
mov byte [ecx + 0x2c], al
jmp 0x41fb9d
cmp dword [eax + 4], 0
je 0x41fae1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], fcn.00420680
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.00420680
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.0043ada7
add esp, 4
push 0x2d
call fcn.0043ad67
mov ecx, eax
add esp, 4
mov byte [ecx + 0x2c], 0xb
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x41fbea
mov eax, dword [ebp + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0x4202b0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], fcn.00420680
mov dword [ecx + 0x24], eax
jmp 0x41fbec
xor ecx, ecx
push ecx
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 8]
call fcn.004177d0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41fe50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3826
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x41fe9c
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x41fe95
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x41fed8
push dword [0x63f244]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41fec8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41fec8
cmp dword [ecx], 0
jne 0x41fec8
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x41fed1
push esi
call fcn.0043ada7
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b593e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], 0
push dword [0x63f244]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4207e0
mov eax, dword [eax + 4]
test eax, eax
je 0x4207e0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4207e0
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 8
jb 0x4207d7
mov byte [ecx + 0x20], al
jmp 0x4207f0
push ecx
call fcn.0043ada7
add esp, 4
push 0x21
call fcn.0043ad67
mov ecx, eax
add esp, 4
mov byte [ecx + 0x20], 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x420836
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
movq xmm0, qword [ebp + 0x14]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
movq qword [ecx + 0x10], xmm0
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov dword [ecx], 0x420d40
jmp 0x420838
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00420a50
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x420878
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x420878
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x420878
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x420890
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5968
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 4], 0
push dword [0x63f244]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4208fe
mov eax, dword [eax + 4]
test eax, eax
je 0x4208fe
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4208fe
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xa
jb 0x4208f5
mov byte [ecx + 0x28], al
jmp 0x42090e
push ecx
call fcn.0043ada7
add esp, 4
push 0x29
call fcn.0043ad67
mov ecx, eax
add esp, 4
mov byte [ecx + 0x28], 0xa
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x42096e
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
movq xmm0, qword [ebp + 0x1c]
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
movq qword [ecx + 0x18], xmm0
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
mov dword [ecx], 0x420e20
jmp 0x420970
xor ecx, ecx
mov dword [esi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.00420b10
lea ecx, [ebp + 0xc]
call fcn.004196f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x24

Function at 0x420a50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b51b6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x420ab4
mov dword [ebp - 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x420aad
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x420aad
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x420aad
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x420af2
push dword [0x63f244]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420ae2
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x420ae2
cmp dword [ecx + 8], 0
jne 0x420ae2
mov al, byte [esi + 0x20]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x420aeb
push esi
call fcn.0043ada7
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420b10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x420b2a
add ecx, 8
call fcn.004196f0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x420b70
push dword [0x63f244]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420b60
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x420b60
cmp dword [ecx + 8], 0
jne 0x420b60
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx + 8], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.0043ada7
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x424160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
movups xmmword [ebp - 0x20], xmm0
mov eax, dword [eax]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0
push edi
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4241c0
mov edx, 0x2719
lea ecx, [ebp - 0x34]
call fcn.00416fd0
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
jmp 0x4241f0
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1c
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
mov ecx, ebx
mov eax, dword [ebp - 0x24]
test esi, esi
mov dword [ebp - 0x28], eax
setne dl
call fcn.00417db0
test esi, esi
pop esi
je 0x424223
xorps xmm0, xmm0
mov eax, edi
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
mov dword [edi], 2
mov dword [edi + 4], 0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x28], 0x80
jbe 0x42424e
mov edx, 0x2726
lea ecx, [ebp - 0x40]
call fcn.00416fd0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x34], xmm0
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
jne 0x424279
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movups xmmword [edi], xmm0
xor ecx, ebp
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], eax
mov eax, edi
pop edi
pop ebx
call fcn.00570e5f
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x34]
call fcn.00414120
int3
Function at 0x425980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b60b3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [edi + 8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jne 0x4259e1
mov eax, dword [edi]
push dword [0x63f244]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x4259e1
cmp dword [eax], esi
je 0x425a25
mov eax, dword [eax + 8]
test eax, eax
jne 0x4259d6
push dword [0x63f244]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x425aec
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x425aec
mov eax, dword [ecx]
test eax, eax
je 0x425aec
mov dword [ecx], 0
mov cl, byte [eax]
cmp cl, 0xc
jb 0x425ae3
mov byte [eax + 0x30], cl
jmp 0x425afa
cmp dword [eax + 4], 0
je 0x4259e1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.0041fc20
add esp, 8
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x425b32
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x425b32
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x425b32
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.0043ada7
add esp, 4
push 0x31
call fcn.0043ad67
add esp, 4
mov byte [eax + 0x30], 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x425b0e
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.00425cf0
jmp 0x425b10
xor eax, eax
push ecx
mov ecx, dword [edi]
push eax
mov ecx, dword [ecx + 8]
call fcn.004177d0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.00425c30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b51b6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x62cfe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x425c94
mov dword [ebp - 4], 0
mov esi, dword [esi + 0x28]
test esi, esi
je 0x425c8d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x425c8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x425c8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x425cd0
push dword [0x63f244]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425cc0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x425cc0
cmp dword [ecx], 0
jne 0x425cc0
mov al, byte [esi + 0x30]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x425cc9
push esi
call fcn.0043ada7
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426270
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, edx
cmp ecx, 0xffffffff
jne 0x4262a3
mov edx, 0x2719
lea ecx, [ebp - 0x10]
call fcn.00416fd0
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
sets dl
call fcn.00417db0
test esi, esi
pop esi
js 0x42629c
or byte [edi], 2
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4262e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x426318
je 0x426311
cmp eax, 0x79
je 0x42630a
cmp eax, 0x4c9
jne 0x42633a
mov edx, 0x274d
jmp 0x426324
mov edx, 0x274c
jmp 0x426324
mov edx, 0x2743
jmp 0x426324
cmp eax, 0x4d0
jne 0x42633a
mov edx, 0x2751
lea ecx, [ebp - 0xc]
call fcn.00416fd0
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
cmp byte [esi + 4], 0
jne 0x426387
cmp edi, 0xffffffff
jne 0x426366
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.00416fd0
pop edi
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x7010
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.00417db0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426390
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x62cfe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x20c], 1
push eax
mov esi, ecx
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x104], esi
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x21c], 0
push eax
mov edi, edx
mov dword [ebp - 0x218], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x426414
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x210], 0
cmp esi, 0xffffffff
jne 0x426453
mov edx, 0x2719
lea ecx, [ebp - 0x228]
call fcn.00416fd0
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.00417db0
test esi, esi
jne 0x426596
mov edx, dword [ebp - 0x210]
test edx, edx
je 0x426554
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x63de00]
cmp eax, dword [ecx + 4]
jle 0x4264e3
push 0x63de00
call fcn.00570fc1
add esp, 4
cmp dword [0x63de00], 0xffffffff
jne 0x4264dd
call fcn.00404b60
push 0x63de00
call fcn.00570f82
add esp, 4
mov edx, dword [ebp - 0x210]
mov ecx, dword [0x63de28]
mov eax, dword [0x63de2c]
mov dword [ebp - 0x228], edx
cmp ecx, 0x25c5e09b
jne 0x426503
cmp eax, 0x8fafd21e
je 0x426512
cmp ecx, 0x257edf0d
jne 0x426519
cmp eax, 0xb2ab117a
jne 0x426519
test edx, edx
setne al
jmp 0x426529
mov eax, dword [0x63de20]
mov ecx, 0x63de20
push edx
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x224], al
mov al, 1
movq xmm0, qword [ebp - 0x228]
movq qword [edi], xmm0
mov dword [edi + 8], 0x63de20
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 8]
mov dword [edi], 0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x426572
cmp eax, 0x8fafd21e
je 0x426581
cmp ecx, 0x257edf0d
jne 0x426585
cmp eax, 0xb2ab117a
jne 0x426585
xor al, al
jmp 0x426590
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 0x18]
call eax
mov byte [edi + 4], al
mov dword [edi + 8], esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00570e5f
mov esp, ebp
pop ebp
ret
Function at 0x4265b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 1
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, dword [ebp + 0x10]
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.00417db0
mov ecx, dword [esi]
cmp ecx, 0x40
jne 0x4265f8
mov edx, 0x2746
jmp 0x426605
cmp ecx, 0x4d2
jne 0x42661d
mov edx, 0x274d
lea ecx, [ebp - 0x14]
call fcn.00416fd0
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x42662d
cmp ecx, 0x2738
je 0x42663a
cmp ecx, 0xea
je 0x42663a
test edi, edi
je 0x42663a
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
mov dword [esi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x426658
cmp eax, 0x8fafd21e
je 0x426667
cmp ecx, 0x257edf0d
jne 0x426678
cmp eax, 0xb2ab117a
jne 0x426678
xor al, al
mov dword [esi + 8], edi
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 0
mov eax, dword [eax + 0x18]
call eax
mov dword [esi + 8], edi
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426740
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
cmp ecx, 0xffffffff
jne 0x426774
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.00416fd0
mov ecx, dword [ebp + 0x10]
pop esi
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0x10]
mov edi, eax
test edi, edi
sets dl
call fcn.00417db0
test edi, edi
js 0x4267ad
cmp dword [ebx], 0
je 0x4267aa
or byte [esi], 1
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
and byte [esi], 0xfc
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4267c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
test edx, edx
jne 0x426819
test ecx, ecx
jne 0x426819
cmp dword [ebp + 0xc], ecx
jne 0x426819
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42683a
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x14]
push dword [ecx + 8]
push ecx
call fcn.00416f30
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42683a
cmp dword [esi], 0
jne 0x42683a
mov eax, dword [esi + 4]
test eax, eax
jle 0x42683a
cmp eax, 0x3e8
jge 0x42683a
mov dword [esi + 4], 0x3e8
push esi
push dword [ebp + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x14]
mov esi, eax
test esi, esi
sets dl
call fcn.00417db0
mov eax, esi
pop esi
pop ebx
pop ebp
ret