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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7000
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
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 0x1000f4e9
mov ecx, esi
call fcn.1000f640
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10228880]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1022c6ac]
cmp eax, dword [ecx + 4]
jle 0x1000f4c0
push 0x1022c6ac
call fcn.1016792e
add esp, 4
cmp dword [0x1022c6ac], 0xffffffff
jne 0x1000f4c0
call fcn.10005060
push 0x1022c6ac
call fcn.101678ef
add esp, 4
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x1022c6d0
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
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
call fcn.1016ab43
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x1022daec]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.1000f6b0
test eax, eax
je 0x1000f581
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.1000f6b0
test eax, eax
jne 0x1000f565
push dword [ebp - 0x10]
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x3c]
test eax, eax
je 0x1000f5b1
push eax
call fcn.100317aa
add esp, 4
inc esi
cmp esi, 3
jl 0x1000f5a0
lea eax, [ebp - 0x2c]
push eax
call fcn.1016ab83
add esp, 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 4
Function at 0x10010e90
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, edx
lea ebx, [esi + 3]
shr ebx, 2
test ecx, ecx
je 0x10010da2
mov eax, dword [ecx]
test eax, eax
je 0x10010da2
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x10010d99
mov byte [eax + esi], dl
pop esi
pop ebx
ret
push eax
call fcn.100317aa
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.1003176a
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x10010dc7
movzx eax, bl
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
xor eax, eax
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
push ebp
mov ebp, esp
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010eaf
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
pop ebp
jmp 0x10010d70
xor ecx, ecx
mov edx, dword [ebp + 8]
pop ebp
jmp 0x10010d70

Function at 0x10010ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10010ed8
mov edx, dword [eax + 4]
jmp 0x10010eda
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x10010ef9
test edx, edx
je 0x10010ef9
cmp dword [edx], 0
jne 0x10010ef9
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.100317aa
add esp, 4
pop ebp
ret

Function at 0x10011540
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1022daec]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001156b
nop dword [eax]
cmp dword [eax], esi
je 0x1001156d
mov eax, dword [eax + 8]
test eax, eax
jne 0x10011560
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1001156b
pop esi
jmp fcn.10010de0
Function at 0x10011a40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
cmp dword [esi], 0x40
jne 0x10011a73
mov edx, 0x2745
lea ecx, [ebp - 0x20]
call fcn.10010b30
mov edx, dword [ebp - 4]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
cmp byte [esi + 4], 0
jne 0x10011b4f
cmp dword [ebp + 0xc], 0
je 0x10011afe
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10011afd
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp + 0x18], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edx
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi]
jbe 0x10011ae9
mov edx, 0x2726
lea ecx, [ebp - 0x20]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
jmp 0x10011afd
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.1016d730
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [edi], eax
pop edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x10011b2c
mov edx, 0x2719
lea ecx, [ebp - 0x20]
call fcn.10010b30
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 4
lea ecx, [ebp - 0x14]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.10011930
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp ebx, 0xffffffff
je 0x10011ca5
cmp byte [ebp + 8], 0
je 0x10011bb4
test byte [edi], 8
je 0x10011bb4
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.100050a0
or byte [edi], 8
lea eax, [ebp - 4]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x10]
setne dl
call fcn.10011930
push esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.10011930
test esi, esi
je 0x10011c53
mov edx, 0x2733
lea ecx, [ebp - 0x1c]
call fcn.10010b30
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
movq qword [ebp - 0x10], xmm0
cmp eax, dword [ebp - 0x10]
jne 0x10011c1c
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
jne 0x10011c0c
cmp ecx, edx
sete al
test al, al
jne 0x10011c6c
jmp 0x10011c1c
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x10011c1c
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x10011c6c
mov edx, 0x4d5
lea ecx, [ebp - 0x1c]
call fcn.10010b30
mov ecx, dword [ebp + 0xc]
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
movq qword [ebp - 0x10], xmm0
cmp eax, dword [ebp - 0x10]
jne 0x10011c53
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
jne 0x10011c5c
cmp ecx, edx
sete al
test al, al
jne 0x10011c6c
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x10011c53
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
jne 0x10011c53
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [edi], 0xfc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.10011930
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011cb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, dword [ebp + 0x10]
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.10011930
mov ecx, dword [esi]
cmp ecx, 0x40
jne 0x10011cef
mov edx, 0x2746
jmp 0x10011cfc
cmp ecx, 0x4d2
jne 0x10011d12
mov edx, 0x274d
lea ecx, [ebp - 0x10]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test edi, edi
je 0x10011d1f
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 0x10011d3d
cmp eax, 0x8fafd21e
je 0x10011d4c
cmp ecx, 0x257edf0d
jne 0x10011d5d
cmp eax, 0xb2ab117a
jne 0x10011d5d
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 0x100124d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7368
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0xffffffff
je 0x10012548
mov edx, 1
lea ecx, [ebp - 0x1c]
call fcn.10010be0
mov edx, dword [ebp + 0x1c]
mov esi, eax
mov eax, dword [ebp + 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]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 1
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, dword [ebp + 0x1c]
mov esi, eax
cmp esi, 0xffffffff
mov ecx, ebx
sete dl
call fcn.10011930
cmp esi, 0xffffffff
jne 0x10012578
or esi, esi
jmp 0x10012596
cmp dword [ebp + 0x10], 0x17
jne 0x10012596
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp + 0x1c], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x100125ae
movq xmm0, qword [ebx]
mov ecx, dword [ebx + 8]
jmp 0x10012614
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push ebx
push esi
push eax
mov ecx, dword [ecx + 4]
call fcn.10011400
cmp byte [eax + 4], 0
jne 0x100125a5
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x1c], 0xffffffff
mov dword [edi], esi
sub eax, 1
je 0x100125e7
sub eax, 1
je 0x100125e1
mov byte [edi + 4], 0
jmp 0x100125eb
mov byte [edi + 4], 0x20
jmp 0x100125eb
mov byte [edi + 4], 0x10
push dword [ebp + 8]
push ecx
lea ecx, [edi + 8]
call fcn.100159c0
lea ecx, [ebp - 0x1c]
call fcn.100050a0
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 8]
movq qword [esi], xmm0
mov dword [esi + 8], ecx
lea ecx, [ebp + 0x1c]
call fcn.10011ed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10012720
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x1001275e
mov ecx, dword [edi + 4]
push 0
push 0x2719
push dword [ebp + 0x28]
call fcn.100115f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp byte [ebp + 0xc], 0
je 0x1001277c
mov ecx, dword [edi + 4]
push 0
push 1
push dword [ebp + 0x28]
call fcn.100115f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [esp + 0x14]
call fcn.100050a0
mov esi, dword [ebp + 0x14]
push 1
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
lea ecx, [esp + 0x14]
cmp ebx, 0xffffffff
sete dl
call fcn.10011930
cmp ebx, 0xffffffff
jne 0x100127b5
or ebx, ebx
jmp 0x100127d4
cmp esi, 0x17
jne 0x100127d4
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.10011f50
mov dword [esi], ebx
cmp ebx, 0xffffffff
jne 0x100127ff
push ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0x28]
call fcn.100116b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push dword [ebp + 0x28]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, dword [ebp + 0x24]
push eax
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0x20]
push ebx
push dword [eax]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1001284f
cmp eax, 0x3e5
je 0x1001284f
mov ecx, dword [edi + 4]
push esi
push eax
mov eax, dword [ebp + 0x28]
push eax
call fcn.100115f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x28]
mov ecx, dword [edi + 4]
push eax
call fcn.10011580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10012870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.10011f50
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10228880]
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1022c6ac]
cmp eax, dword [ecx + 4]
jle 0x100128e6
push 0x1022c6ac
call fcn.1016792e
add esp, 4
cmp dword [0x1022c6ac], 0xffffffff
jne 0x100128e6
call fcn.10005060
push 0x1022c6ac
call fcn.101678ef
add esp, 4
push 1
push 0
push 0
push dword [ebp + 0x18]
mov dword [esp + 0x2c], 0x1022c6d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
lea ecx, [esp + 0x14]
cmp esi, 0xffffffff
sete dl
call fcn.10011930
cmp esi, 0xffffffff
jne 0x1001291d
or esi, esi
jmp 0x1001293d
cmp dword [ebp + 0x10], 0x17
jne 0x1001293d
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, ebx
call fcn.10011f50
mov dword [ebx], esi
cmp esi, 0xffffffff
jne 0x10012965
push ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0x24]
call fcn.100116b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [ebp + 0x24]
lea eax, [esp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 0x20]
push eax
push eax
push 0
push dword [ebp + 0x1c]
mov dword [esp + 0x28], 0
push esi
push dword [ebp + 8]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x100129b1
cmp eax, 0x3e5
je 0x100129b1
mov ecx, dword [edi + 4]
push esi
push eax
push ebx
call fcn.100115f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [edi + 4]
push ebx
call fcn.10011580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x10015a70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x2c]
mov edx, dword [0x10228880]
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
mov edx, dword [eax + edx*4]
mov eax, dword [0x1022c6ac]
cmp eax, dword [edx + 4]
jle 0x10015ac8
push 0x1022c6ac
call fcn.1016792e
add esp, 4
cmp dword [0x1022c6ac], 0xffffffff
jne 0x10015ac8
call fcn.10005060
push 0x1022c6ac
call fcn.101678ef
add esp, 4
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0x1022c6d0
pop esi
cmp eax, 0xffffffff
jne 0x10015af6
mov edx, 0x2719
lea ecx, [ebp - 0x18]
call fcn.10010b30
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 4], eax
jmp 0x10015b16
push 4
push dword [ebp + 8]
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0xc]
setne dl
call fcn.10011930
cmp byte [ebp - 8], 0
jne 0x10015b22
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [ebp - 0xc]
call fcn.10005d10
int3
Function at 0x10019550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7ec9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
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 0x100195b1
mov eax, dword [edi]
push dword [0x1022daec]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x100195b1
cmp dword [eax], esi
je 0x100195f4
mov eax, dword [eax + 8]
test eax, eax
jne 0x100195a6
push dword [0x1022daec]
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x10019675
mov eax, dword [eax + 4]
test eax, eax
je 0x10019675
mov edx, dword [eax]
test edx, edx
je 0x10019675
mov dword [eax], 0
mov al, byte [edx]
cmp al, 0xa
jb 0x1001966c
mov byte [edx + 0x28], al
jmp 0x10019685
cmp dword [eax + 4], 0
je 0x100195b1
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.1001a3f0
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x100196f7
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.100317aa
add esp, 4
push 0x29
call fcn.1003176a
mov edx, eax
add esp, 4
mov byte [edx + 0x28], 0xa
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x100196d3
mov ecx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x1001a0b0
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 0x100196d5
xor edx, edx
push ecx
mov ecx, dword [edi]
push edx
mov ecx, dword [ecx + 8]
call fcn.10011330
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.10019ae0
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 0x10019710
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7ef5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1021bfec]
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 0x10019771
mov eax, dword [edi]
push dword [0x1022daec]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x10019771
cmp dword [eax], esi
je 0x100197ae
mov eax, dword [eax + 8]
test eax, eax
jne 0x10019766
mov dword [ebp - 4], 0xffffffff
push dword [0x1022daec]
call ebx
test eax, eax
je 0x1001981d
mov eax, dword [eax + 4]
test eax, eax
je 0x1001981d
mov ecx, dword [eax]
test ecx, ecx
je 0x1001981d
mov dword [eax], 0
mov al, byte [ecx]
cmp al, 0xb
jb 0x10019814
mov byte [ecx + 0x2c], al
jmp 0x1001982d
cmp dword [eax + 4], 0
je 0x10019771
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], fcn.1001a410
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.1001a410
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.100317aa
add esp, 4
push 0x2d
call fcn.1003176a
mov ecx, eax
add esp, 4
mov byte [ecx + 0x2c], 0xb
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1001987a
mov eax, dword [ebp + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0x1001a000
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.1001a410
mov dword [ecx + 0x24], eax
jmp 0x1001987c
xor ecx, ecx
push ecx
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 8]
call fcn.10011330
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 0x10019ae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6d26
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1021bfec]
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 0x10019b2c
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10019b25
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 0x10019b68
push dword [0x1022daec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10019b58
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10019b58
cmp dword [ecx], 0
jne 0x10019b58
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x10019b61
push esi
call fcn.100317aa
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