joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffe51
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x13c], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], 0x61690c
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
push 0x11c
lea eax, [ebp - 0x12c]
mov dword [edi + 0x18], 0
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.005bc550
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
mov dword [ebp - 0x128], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.0048bce0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
test esi, esi
mov dword [edi + 0x5c], esi
cmovns eax, esi
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4c56fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x693538]
mov edx, eax
test cl, 1
jne 0x4c56c2
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov eax, 0x615d34
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], eax
jmp 0x4c56c7
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
mov ecx, 0x693528
push edx
mov dword [ebp - 0x138], edx
call eax
mov byte [ebp - 0x134], al
mov dword [ebp - 0x130], 0x693528
test al, al
je 0x4c56fd
push 0x616918
lea eax, [ebp - 0x138]
push eax
call fcn.0048cef0
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.005ba7b4
mov esp, ebp
pop ebp
ret 8
Function at 0x4d6e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d6e69
mov eax, dword [eax + 4]
jmp 0x4d6e6b
xor eax, eax
push dword [ebp + 8]
mov byte [ebp - 4], 0
push eax
push dword [ebp - 4]
call fcn.00496460
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4d6e90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d6ea8
mov edx, dword [eax + 4]
jmp 0x4d6eaa
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x4d6ec9
test edx, edx
je 0x4d6ec9
cmp dword [edx], 0
jne 0x4d6ec9
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.005ba02a
add esp, 4
pop ebp
ret

Function at 0x4d8a30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x14]
cmp ebx, 0xffffffff
je 0x4d8b5e
cmp byte [ebp + 0x10], 0
je 0x4d8aa0
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x4d8aa0
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.0048ba00
or byte [esi], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4d8aa0
lea ecx, [ebp - 0xc]
call fcn.0048ba00
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.004a8700
mov esi, eax
add esp, 8
test esi, esi
je 0x4d8b5e
push 0
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.0048fc20
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jne 0x4d8b02
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x4d8af2
cmp ecx, edx
sete al
test al, al
jne 0x4d8b22
jmp 0x4d8b02
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x4d8b02
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x4d8b22
push 0
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.0048fc20
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004caa30
add esp, 8
test al, al
je 0x4d8b5a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.004a8700
add esp, 8
mov esi, eax
test esi, esi
jne 0x4d8ba8
mov eax, dword [0x693538]
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
test al, 1
jne 0x4d8b98
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
movq xmm0, qword [ebp - 0xc]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d8fa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x4d8fd6
je 0x4d8fcf
cmp eax, 0x79
je 0x4d8fc8
cmp eax, 0x4c9
jne 0x4d8fe9
push 0x274d
jmp 0x4d8fe2
push 0x274c
jmp 0x4d8fe2
push 0x2743
jmp 0x4d8fe2
cmp eax, 0x4d0
jne 0x4d8fe9
push 0x2751
mov ecx, esi
call fcn.0048fde0
cmp byte [esi + 4], 0
jne 0x4d9049
cmp dword [ebp + 8], 0xffffffff
jne 0x4d9006
push 0x2719
mov ecx, esi
call fcn.0048fde0
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4d9049
lea ecx, [ebp - 0xc]
call fcn.0048ba00
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

Function at 0x4d91e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x4d9203
mov ecx, dword [ebp + 0x14]
push 0x2719
call fcn.0048fde0
or eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0x14]
push esi
push eax
call fcn.004a8700
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d9242
lea ecx, [ebp - 0xc]
call fcn.0048ba00
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d9820
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x69364c]
sub esp, 0x400
push esi
push edi
test al, 1
jne 0x4d9880
or eax, 1
mov dword [0x69364c], eax
mov eax, dword [0x693a50]
test al, 1
jne 0x4d9873
push 1
or eax, 1
push 0x4c11db7
mov dword [0x693a50], eax
lea eax, [ebp - 0x400]
push 0x20
push eax
call fcn.004aed80
mov ecx, 0x100
mov esi, eax
mov edi, 0x693650
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, 0x693650
mov dword [0x693648], edi
jmp 0x4d9886
mov edi, dword [0x693648]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test edx, edx
je 0x4d98a6
mov esi, dword [ebp + 0xc]
mov cl, byte [esi]
lea esi, [esi + 1]
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [edi + ecx*4]
dec edx
jne 0x4d9893
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e2c90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x4e2ca4
cmp byte [esi], 0
jne 0x4e2ca6
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4e2cb2
cmp byte [edi], 0
jne 0x4e2cb4
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f6bc0
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 8
movq xmm0, qword [esi]
movq qword [edx], xmm0
mov ecx, dword [esi + 8]
mov dword [edx + 8], ecx
movq xmm0, qword [esi]
mov ecx, dword [esi + 8]
pop edi
movq qword [eax], xmm0
mov dword [eax + 8], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4e2de3
mov ecx, dword [ebp + 0x14]
push 0x2719
call fcn.0048fde0
or eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0x14]
push esi
push eax
call fcn.004a8700
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e2e30
lea ecx, [ebp - 0xc]
call fcn.0048ba00
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4e4a70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x693624
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x4e4abf
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.00421580
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e4f50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x4e4fa2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x4e4fba
mov ecx, esi
jmp 0x4e4fbf
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4e4fec
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x4e4fce
mov eax, dword [eax]
jmp 0x4e4fb2
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x4e4fde
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e5000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 4], edi
cmp ecx, 0x10
jb 0x4e5023
mov esi, dword [eax]
jmp 0x4e5025
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4e5041
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4e5030
mov ecx, dword [ebx + 0x14]
mov edi, ecx
and edi, edx
cmp dword [ebx + 0x18], edi
ja 0x4e5056
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 8]
lea eax, [edi + edi]
mov edx, dword [ebx]
lea eax, [eax + 1]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov esi, dword [ecx + edi*8]
mov edi, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp edi, edx
jne 0x4e507f
mov eax, edx
jmp 0x4e5083
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4e51a3
cmp dword [ebp - 8], 0x10
lea ecx, [esi + 8]
jb 0x4e509b
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x4e509e
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
jb 0x4e50ac
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x4e5113
sub edx, 4
jb 0x4e50d1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4e50d6
add ecx, 4
add edi, 4
sub edx, 4
jae 0x4e50c0
cmp edx, 0xfffffffc
je 0x4e510a
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x4e5103
cmp edx, 0xfffffffd
je 0x4e510a
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x4e5103
cmp edx, 0xfffffffe
je 0x4e510a
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x4e5103
cmp edx, 0xffffffff
je 0x4e510a
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x4e510a
sbb eax, eax
or eax, 1
jmp 0x4e510c
xor eax, eax
test eax, eax
jne 0x4e5123
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x4e5123
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
test eax, eax
je 0x4e5133
mov esi, dword [esi]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x4e5077
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x10]
jb 0x4e5141
mov ecx, dword [ecx]
cmp dword [ebp - 8], 0x10
jb 0x4e514f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.004232c0
add esp, 0xc
test eax, eax
jne 0x4e518a
cmp ebx, edi
jb 0x4e518a
cmp ebx, edi
setne al
test eax, eax
jne 0x4e518a
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ebc10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x4ebc4e
push 0x2719
mov ecx, edi
call fcn.0048fde0
pop edi
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
push ebx
test ecx, ecx
js 0x4ebca9
mov eax, 0x10624dd3
lea ebx, [ebp - 0x220]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x220], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x21c], eax
jmp 0x4ebcab
xor ebx, ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x693538]
mov esi, eax
pop ebx
test cl, 1
jne 0x4ebd03
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x218], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x214], al
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
test esi, esi
js 0x4ebd8f
mov eax, dword [0x693538]
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
test al, 1
jne 0x4ebd7c
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
Function at 0x4ebdb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602f10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4ebe52
mov ecx, edi
call fcn.004f5640
mov eax, dword [0x693538]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4ebe2a
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x4ebe70
lea eax, [edi + 0x14]
jmp 0x4ebe72
xor eax, eax
push dword [0x69356c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x69356c]
call esi
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 1
push 0
call fcn.004dfd60
push dword [ebp - 0x18]
mov edi, eax
push dword [0x69356c]
call esi
xor esi, esi
jmp 0x4ebec0
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4ebed1
push eax
call fcn.005ba02a
add esp, 4
inc esi
cmp esi, 2
jl 0x4ebec0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ee780
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push edi
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
push eax
call fcn.004a8700
mov ecx, dword [edi]
add esp, 8
mov ebx, eax
cmp ecx, 0x40
jne 0x4ee7dc
push 0x2746
mov ecx, edi
call fcn.0048fde0
jmp 0x4ee81e
cmp ecx, 0x4d2
jne 0x4ee7f2
push 0x274d
mov ecx, edi
call fcn.0048fde0
jmp 0x4ee81e
cmp ecx, 0x2738
je 0x4ee802
cmp ecx, 0xea
jne 0x4ee81e
push esi
mov esi, dword [edi + 8]
mov ecx, esi
mov dword [edi], 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
mov dword [edi + 8], esi
mov byte [edi + 4], al
pop esi
test ebx, ebx
je 0x4ee82b
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x693538]
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
test al, 1
jne 0x4ee865
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 4]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f02b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4f02f6
mov esi, dword [esi + 0x30]
test esi, esi
je 0x4f02ef
push ebx
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4f02ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x4f02ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4f033a
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f032a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f032a
cmp dword [ecx], 0
jne 0x4f032a
mov al, byte [esi + 0x44]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.005ba02a
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4f0340
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4f035a
add ecx, 0x30
call fcn.004c7560
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4f03a1
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f0391
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f0391
cmp dword [ecx], 0
jne 0x4f0391
mov al, byte [esi + 0x80]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.005ba02a
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x4f03b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4f03ca
add ecx, 0x28
call fcn.004c6ff0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4f0411
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f0401
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f0401
cmp dword [ecx], 0
jne 0x4f0401
mov al, byte [esi + 0xa0]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
push esi
call fcn.005ba02a
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x4f26b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6034f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4f2754
mov ecx, esi
call fcn.004f5640
mov eax, dword [0x693538]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4f272b
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d34
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
xor eax, eax
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
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x4f2772
lea eax, [esi + 0x14]
jmp 0x4f2774
xor eax, eax
push dword [0x69356c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
push 0xffffffffffffffff
mov byte [ebp - 4], 1
xor edi, edi
call fcn.004dfd60
test eax, eax
je 0x4f27c7
cmp edi, 0xffffffff
je 0x4f27b9
inc edi
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.004dfd60
test eax, eax
jne 0x4f27b3
push dword [ebp - 0x18]
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4f27e9
push eax
call fcn.005ba02a
add esp, 4
inc esi
cmp esi, 2
jl 0x4f27d8
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 4