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

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x10057c0c
mov esi, dword [esi + 8]
test esi, esi
je 0x10057c05
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10057c04
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10057c04
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057c4f
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057c3f
mov edx, dword [eax + 4]
test edx, edx
je 0x10057c3f
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057c52
inc eax
cmp eax, 6
jl 0x10057c30
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x1c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10057df0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10057e0b
add ecx, 4
call fcn.1004fe10
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057e4f
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057e3f
mov edx, dword [eax + 4]
test edx, edx
je 0x10057e3f
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057e53
inc eax
cmp eax, 6
jl 0x10057e30
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
mov al, byte [esi + 0x7c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret

Function at 0x10057e70
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10057e8b
add ecx, 4
call fcn.1004fee0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057ecf
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057ebf
mov edx, dword [eax + 4]
test edx, edx
je 0x10057ebf
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057ed3
inc eax
cmp eax, 6
jl 0x10057eb0
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
mov al, byte [esi + 0x5c]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
Function at 0x10057ef0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10057f0b
add ecx, 4
call fcn.1004ffb0
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057f4f
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057f3f
mov edx, dword [eax + 4]
test edx, edx
je 0x10057f3f
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057f53
inc eax
cmp eax, 6
jl 0x10057f30
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
mov al, byte [esi + 0x54]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret

Function at 0x10057f70
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10057f8b
add ecx, 4
call fcn.10050080
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10057fcf
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10057fbf
mov edx, dword [eax + 4]
test edx, edx
je 0x10057fbf
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10057fd3
inc eax
cmp eax, 6
jl 0x10057fb0
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
mov al, byte [esi + 0x58]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret

Function at 0x10057ff0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x1005800b
add ecx, 4
call fcn.10050150
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1005804f
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1005803f
mov edx, dword [eax + 4]
test edx, edx
je 0x1005803f
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10058053
inc eax
cmp eax, 6
jl 0x10058030
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
mov al, byte [esi + 0x60]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
pop ecx
ret
Function at 0x1005a3c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x114], eax
mov bl, dl
push edi
mov edi, dword [ebp + 0x18]
cmp esi, 0xffffffff
jne 0x1005a40c
call fcn.10008d10
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x1005a430
test bl, 0x10
je 0x1005a430
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
push edi
push ecx
push dword [ebp + 0xc]
mov edx, eax
call fcn.10028e40
add esp, 0xc
test eax, eax
jns 0x1005a4f1
test bl, 1
jne 0x1005a4ef
mov ebx, dword [ebp - 0x114]
call fcn.10008d10
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x1005a46e
cmp dword [edi], 0x2733
je 0x1005a486
call fcn.10008d10
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x1005a4ef
cmp dword [edi], 0x4d5
jne 0x1005a4ef
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], esi
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x110], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1005a4dd
push edi
push ecx
push dword [ebp + 0xc]
mov edx, ebx
mov dword [edi], 0
mov ecx, esi
call fcn.10028e40
add esp, 0xc
test eax, eax
js 0x1005a456
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
call fcn.10008d10
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b8868
mov esp, ebp
pop ebp
ret
Function at 0x1005aa30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x10163164]
xor eax, esp
mov dword [esp + 0x280], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, ecx
movlpd qword [esp + 0x2c], xmm0
mov ecx, dword [ebp + 0x10]
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov ebx, dword [ebp + 0x1c]
cmp dword [ecx + 0x14], 0x10
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 2
mov edx, dword [eax]
mov esi, dword [eax + 4]
movzx eax, word [ecx + 0x10]
mov word [esp + 0x2a], ax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov word [esp + 0x28], bx
movups xmm0, xmmword [eax]
mov dword [esp + 0x6c], 0x50
movups xmmword [esp + 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x44], eax
mov eax, 2
mov word [esp + 0x48], ax
mov ax, word [ebp + 0x24]
mov word [esp + 0x4a], ax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x10]
movq qword [esp + 0x3c], xmm0
jb 0x1005ab04
mov ecx, dword [ecx]
or edx, esi
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
jne 0x1005ab2f
push 0x49
push str.E:workOpenNetfilterproxyudpUdpCoroProxy.cpp
push str.s.nfid___0
call fcn.100cb42e
add esp, 0xc
xor esi, esi
mov dword [esp + 0x10], 0
xor ecx, ecx
mov dword [esp + 0x14], 0x10163ad8
mov dword [esp + 0x280], esi
lea eax, [esp + 0x68]
mov dword [esp + 0x284], ecx
cmp esi, 0x40
jae 0x1005ab9a
mov edx, dword [eax + 4]
mov ecx, dword [eax]
add eax, 8
mov dword [esp + esi*8 + 0x84], ecx
mov dword [esp + esi*8 + 0x80], edx
mov ecx, dword [esp + 0x284]
mov esi, dword [esp + 0x280]
add ecx, edx
inc esi
mov dword [esp + 0x284], ecx
lea edx, [esp + 0x80]
mov dword [esp + 0x280], esi
cmp eax, edx
jne 0x1005ab55
mov dl, byte [edi + 0x10018]
lea eax, [esp + 0x10]
push eax
test ecx, ecx
sete al
movzx eax, al
push eax
push ecx
mov ecx, dword [edi + 0x10014]
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.1005a3c0
mov esi, dword [ebp + 0xc]
add esp, 0x14
test esi, esi
je 0x1005abee
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1005abee
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1005abee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b8868
mov esp, ebp
pop ebp
ret 0x20
Function at 0x1005ac10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10163164]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x10110], 0
je 0x1005ad20
cmp byte [esi + 0x201c0], 0
je 0x1005ad20
lea eax, [esi + 0x201c4]
push eax
mov dword [esp + 0x24], eax
call fcn.100b7375
add esp, 4
cmp byte [esi + 0x201c0], 0
je 0x1005ad14
mov eax, dword [esi + 0x20118]
lea ecx, [esp + 0x18]
mov edx, edi
push dword [eax + 0x30]
push dword [ebp + 0x10]
push ebx
call fcn.10059bd0
add esp, 0xc
mov eax, 2
mov word [esp + 0x24], ax
mov ax, word [ebp + 0x18]
mov word [esp + 0x26], ax
mov eax, dword [ebp + 0x14]
push 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
movzx eax, word [esp + 0x20]
push 0
push eax
push dword [esp + 0x2c]
push dword [esi + 0x20184]
call dword [sym.imp.WS2_32.dll_sendto]
lock inc dword [esi + 0x201a4]
movq xmm0, qword [esi + 0x201b0]
lea eax, [esi + 0x201b0]
movq qword [esp + 0x10], xmm0
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov ebx, edi
mov ecx, esi
add ebx, dword [ebp + 0x10]
mov edx, esi
mov esi, dword [esp + 0x18]
mov eax, edi
adc ecx, 0
lock cmpxchg8b qword [esi]
mov esi, dword [esp + 0x10]
cmp eax, edi
jne 0x1005ad0a
cmp edx, esi
je 0x1005ad14
mov esi, edx
mov edi, eax
mov dword [esp + 0x10], esi
jmp 0x1005ace8
push dword [esp + 0x20]
call fcn.100b7391
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b8868
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1005bc50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101116a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.1005c0f0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005bd13
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 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 8
cmp dword [edi + 8], 0xaaaaaaa
je 0x1005be56
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x10], 0
call fcn.100b887b
mov ecx, dword [ebx]
mov esi, eax
mov edx, dword [ebx + 4]
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x1014b760]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x1014b760]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1005bdf8
divss xmm0, xmm3
call fcn.100209c0
call fcn.1010c0b0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1005bdda
cmp ebx, 0x200
jae 0x1005bdd8
shl ebx, 3
cmp ebx, ecx
jae 0x1005bdda
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.1005bf90
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1005c0f0
mov edx, dword [eax]
jmp 0x1005bdfb
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x1005be26
mov dword [ecx + eax*8], esi
jmp 0x1005be35
cmp edi, edx
jne 0x1005be2f
mov dword [ecx + eax*8], esi
jmp 0x1005be39
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1005be39
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.100b62ed
int3
Function at 0x1005be70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101117cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x18]
push esi
push 0x6c
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x3c]
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x10], eax
call fcn.10027780
mov edx, eax
add esp, 8
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
cmp dword [esi + 0xc], 0
je 0x1005cde3
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
lock inc dword [eax + 8]
mov ecx, edx
call fcn.1005cef0
cmp dword [ebp + 0x18], 0
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp + 0x1c], edi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
je 0x1005ce18
lea eax, [ebp + 0x1c]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1002b150
mov edi, eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x18]
add ecx, 0x18
movzx eax, word [edx]
mov dword [ebp + 0x18], eax
lock inc dword [ecx]
mov ecx, dword [esi]
push 0
cmp ecx, 0xffffffff
jne 0x1005ce43
mov ecx, dword [ebx + 0x18]
push 0x2719
push edi
call fcn.100287e0
jmp 0x1005ceab
cmp word [ebp + 0x18], 2
mov eax, 0x10
push edi
mov esi, 0x1c
mov dword [ebp + 0xc], 0
cmovne eax, esi
push eax
push edx
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x1005cea2
cmp eax, 0x3e5
je 0x1005cea2
push dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
push eax
push edi
call fcn.100287e0
jmp 0x1005ceab
mov ecx, dword [ebx + 0x18]
push edi
call fcn.10028770
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call fcn.1005cfa0
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 0x1005ed20
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111a9d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x1005ed8a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x30]
push esi
push ecx
call eax
add esp, 8
jmp 0x1005ed9f
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [edi + 4]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 0
je 0x1005eed5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1005edeb
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x30]
push fcn.10036130
push ecx
call eax
add esp, 0xc
jmp 0x1005ee90
mov edi, dword [ecx + 8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100b7ca6
add esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x31]
push dword [0x1017537c]
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1005ee1d
mov ecx, dword [eax + 4]
jmp 0x1005ee1f
xor ecx, ecx
push ecx
push dword [ebp - 0x38]
mov edx, 0x14
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 8]
push ecx
call fcn.100b7ca6
add esp, 0x10
mov dword [esi], 0x100362b0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], 0
call fcn.10035e70
lea eax, [ebp - 0x44]
push eax
call fcn.100b7dce
add esp, 4
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
push eax
call edi
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1005ee90
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
lea eax, [ebp - 0x5c]
push eax
call fcn.100b7dce
add esp, 4
mov dword [ebp - 4], 7
cmp dword [ebp - 0x20], 0
je 0x1005eeb7
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x48]
call fcn.10027870
mov byte [ebp - 4], 6
call fcn.10029eb0
int3
Function at 0x1005f980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1005f9af
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1005f9af
mov eax, 8
nop
cmp dword [ecx + eax*4], 0
lea edx, [ecx + eax*4]
je 0x1005f9be
inc eax
cmp eax, 0xa
jl 0x1005f9a0
push dword [ebp + 8]
call fcn.100b88ab
add esp, 4
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x6c]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret 8

Function at 0x10060300
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x10060311
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10060353
push dword [0x1017537c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10060343
mov edx, dword [eax + 4]
test edx, edx
je 0x10060343
mov eax, 4
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x10060356
inc eax
cmp eax, 6
jl 0x10060334
push esi
call fcn.100b88ab
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 8]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10060bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111ce3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 8]
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x10060c2e
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x30]
push esi
push ecx
call eax
add esp, 8
jmp 0x10060c43
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 1
call fcn.100612e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 0
je 0x10060d77
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10060c88
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x30]
push 0x10061400
push ecx
call eax
add esp, 0xc
jmp 0x10060d36
mov edi, dword [ecx + 8]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0xd0]
call fcn.100612e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x75]
push dword [0x1017537c]
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10060cbc
mov ecx, dword [eax + 4]
jmp 0x10060cbe
xor ecx, ecx
push ecx
push dword [ebp - 0x7c]
mov edx, 0x4c
call fcn.1002b430
mov esi, eax
mov dword [ebp - 0x80], 0
add esp, 8
lea eax, [ebp - 0xd0]
lea ecx, [esi + 4]
push eax
call fcn.100612e0
mov dword [esi], 0x100616b0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], 0
call fcn.10061380
lea ecx, [ebp - 0xd0]
call fcn.1005fda0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
push eax
call edi
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x10060d36
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.1005fda0
mov dword [ebp - 4], 7
cmp dword [ebp - 0x20], 0
je 0x10060d59
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x88]
call fcn.10027870
mov byte [ebp - 4], 6
call fcn.10029eb0
int3