joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5180
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x537fcc]
mov esi, ecx
cmp eax, 3
jne 0x4a530b
cmp ebp, 0x17f
ja 0x4a531c
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call fcn.004e4d00
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x4a51e5
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x4a527f
inc edx
cmp eax, edx
jne 0x4a51d0
jmp 0x4a52d5
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x4a5218
je 0x4a5218
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x4a527f
inc edx
cmp ecx, edx
jne 0x4a5200
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x4a5220
jmp 0x4a525e
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x4ee3a0]
movdqa xmm1, xmmword [0x4ee3b0]
movq xmm2, qword [esp + ecx + 0x28]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd ebx, xmm2
or ebx, edi
jne 0x4a525e
add ecx, 8
cmp ecx, edx
jbe 0x4a5230
mov ebx, dword [esp]
sub eax, ecx
je 0x4a52d5
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x4a527d
inc edx
cmp eax, edx
jne 0x4a5270
jmp 0x4a52d5
add edx, ecx
cmp edx, ebp
jne 0x4a52d5
pxor xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
lea ecx, [esp + 8]
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], 1
push eax
push ecx
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4a52ee
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4a52fe
mov eax, dword [0x528cb8]
mov ecx, dword [0x528cbc]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4a5300
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bx
mov dword [esi], eax
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ec7e0
cmp ebp, 0x17f
jbe 0x4a51af
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.004ec830
add esp, 0x1b0
jmp 0x4a5306
Function at 0x4ac3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.0049b090
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edx, 0x80000000
jne 0x4ac42e
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0x80000000
jmp 0x4ac450
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004ac320
mov ebx, dword [esp]
cmp ebx, 0x80000000
jne 0x4ac465
mov ecx, esp
call fcn.0049b250
mov dword [esi], 0x80000000
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ac483
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
jmp 0x4ac45d
test ebx, ebx
mov dword [esi], 0x80000000
je 0x4ac45d
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ac45d
Function at 0x4ae220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c3cd0
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x538038]
call fcn.004018b0
test eax, eax
je 0x4ae316
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4ae3e0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4ae29d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4ae305
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x4ae2ea
cmp dword [eax + 8], 9
jae 0x4ae2d5
mov eax, dword [ebp - 0x20]
jmp 0x4ae2db
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.004e8800
ud2
Function at 0x4ae850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.004e4190
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c3d00
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.004e4ba0
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4a6090
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4ae9a4
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4ae8da
cmp dword [ebp - 0x2c], 0
jne 0x4ae9b5
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4ae9b5
cmp esi, 0x1000
ja 0x4ae9f1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4ae9d7
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4a6090
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x4ae9ac
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4ae950
cmp dword [ebp - 0x2c], 0
jne 0x4ae9b2
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4ae910
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4a6090
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4ae8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4ae9b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x52990c
call fcn.004e8e30
add esp, 4
jmp 0x4aea0c
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x52990c
call fcn.004e8c40
add esp, 4
ud2
Function at 0x4aeb00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x4c3d20
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4aeb7e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x529a38
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x529a64
mov dword [esi + 0x2c], fcn.004a0190
mov dword [esi + 0x3c], 1
call fcn.004e8b50
ud2

Function at 0x4b0310
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x4b03d6
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x4b033d
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x4b03c1
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x4b03ae
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0374
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x4b0392
jmp 0x4b0386
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b038d
cmp eax, 0x6d
jne 0x4b03a3
mov word [esi], 4
jmp 0x4b039c
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4b039c
mov ecx, ebx
push 1
call fcn.004ec680
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x4b0344
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.004ec680
add esp, 4
mov edx, dword [ebx]
jmp 0x4b033d
mov edx, esp
mov ecx, edi
mov dword [esp], 0
call fcn.004ec900
int3
Function at 0x4b3370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c3e20
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4b33d1
js 0x4b343d
movzx eax, byte [0x538038]
mov ecx, edi
mov edx, 1
call fcn.004018b0
test eax, eax
jne 0x4b33d6
mov ecx, 1
mov edx, edi
call fcn.004e8800
mov eax, 1
push edi
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.004e4d00
add esp, 0xc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x28]
jne 0x4b3407
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.004b3480
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
mov byte [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004019f0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x4b346e
push dword [ebp - 0x20]
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0xc
pop ebp
ret
Function at 0x4b35e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x4b3654
mov ebp, dword [edx + 4]
mov eax, dword [0x537fcc]
cmp eax, 3
jne 0x4b3751
cmp word [ebp], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x4b3670
cmp word [ebp], 0
je 0x4b36ca
movups xmm0, xmmword [ebp + 4]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov eax, 0x1c
mov bx, 0x17
jmp 0x4b36dc
movzx ecx, byte [edx + 3]
movzx edi, word [edx + 1]
mov edx, dword [edx + 4]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x4b3749
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x4b3688
cmp eax, 0x2726
jne 0x4b3739
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4b3733
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x4b362e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x4b3739
lea ecx, [ebp + 2]
add ebp, 6
mov eax, 0x10
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
mov ecx, dword [ecx]
mov word [esp], bx
rol bp, 8
mov word [esp + 2], bp
mov dword [esp + 4], ecx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], edx
mov ecx, esp
push eax
push ecx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4b3714
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4b3749
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4b3749
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ec7e0
jmp 0x4b3601
Function at 0x4b3780
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x537088]
test eax, eax
je 0x4b3865
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4b37b1
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4b385a
mov eax, dword [0x537088]
test eax, eax
je 0x4b3874
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4b3837
mov esi, eax
test eax, eax
jne 0x4b3817
movzx eax, byte [0x538038]
mov ecx, 0x20
mov edx, 8
call fcn.004018b0
test eax, eax
je 0x4b388f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x537088
mov esi, eax
mov eax, dword [0x537088]
test eax, eax
je 0x4b3883
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4b383b
movaps xmm0, xmmword [esp]
jmp 0x4b3849
xor esi, esi
jmp 0x4b385d
lea ecx, [esp + 0x10]
call fcn.004aeb00
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x537088
call fcn.004ec360
jmp 0x4b3798
mov ecx, 0x537088
call fcn.004ec360
jmp 0x4b37bf
mov ecx, 0x537088
call fcn.004ec360
jmp 0x4b380f
mov ecx, 8
mov edx, 0x20
call fcn.004e8800
int3

Function at 0x4b5161
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4b5163
test al, 1
je 0x4b517a
test al, 2
jne 0x4b518e
xor eax, 3
ret
mov ecx, str.assertion_failed:_prev.is_running__
mov edx, 0x23
push 0x52ab2c
call fcn.004e8ca0
mov ecx, 0x52ab3c
mov edx, 0x25
push 0x52ab64
call fcn.004e8ca0
Function at 0x4b6f09
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
cmp edx, 0xffffffff
je 0x4b6f4c
movzx eax, byte [esp + 0xc]
mov esi, ecx
mov ecx, esp
mov dword [ecx], eax
push 4
push ecx
push 1
push 6
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4b6f45
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 4
pop esi
ret
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x52b444
call fcn.004e8ca0
Function at 0x4b719e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
mov esi, 0x7fffffff
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
cmp eax, esi
cmovb esi, eax
mov dword [esp + 0x24], esi
lea eax, [edx + 0x40]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 8]
push 1
push dword [esp + 0x54]
call fcn.004b98ce
add esp, 8
mov edx, dword [esp + 8]
cmp edx, 2
je 0x4b72ef
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test edx, edx
jne 0x4b72f8
cmp edi, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
je 0x4b731a
push 0
push dword [esp + 0x28]
push dword [esp + 0x5c]
push edi
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4b7233
mov dword [esp + 4], eax
mov byte [esp], 4
jmp 0x4b729d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
mov ecx, esp
mov byte [esp], al
mov byte [esp + 3], al
mov word [esp + 1], 0
mov dword [esp + 4], esi
call fcn.0040baa4
cmp al, 0xd
jne 0x4b729d
test ebp, ebp
mov dword [esp + 0x1c], esi
je 0x4b729d
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov esi, ebp
lock inc dword [eax]
jle 0x4b732e
add edx, 8
lea ecx, [esp + 8]
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call fcn.0043927c
add esp, 0xc
cmp byte [esp + 8], 4
je 0x4b729d
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x1c]
cmp bl, 4
jne 0x4b72da
mov ebx, dword [esp]
mov esi, dword [esp + 4]
cmp bl, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
je 0x4b7300
lea ecx, [esp + 0x14]
call fcn.0040baa4
cmp al, 0xd
jne 0x4b7309
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
call fcn.004b4b87
movzx ecx, bl
mov edx, esi
call fcn.0042ab64
jmp 0x4b71cf
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call fcn.0042ab64
jmp 0x4b72b1
mov eax, dword [esp + 0x48]
mov byte [eax], 5
jmp 0x4b7312
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
jmp 0x4b730f
mov eax, dword [esp + 0x48]
mov byte [eax], 4
jmp 0x4b730f
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x52b474
call fcn.004e8ca0
ud2
Function at 0x4b7330
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x4c]
mov ebx, esp
lea edi, [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
lea eax, [ecx + 0x40]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x28]
mov ecx, ebx
push 1
push dword [esp + 0x54]
call fcn.004b98ce
add esp, 8
mov edx, dword [esp]
cmp edx, 2
je 0x4b7486
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
test edx, edx
jne 0x4b748f
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
cmp eax, 0xffffffff
je 0x4b74b1
xor ecx, ecx
mov dword [esp], ecx
push ecx
push ecx
push ecx
push ebx
push dword [esp + 0x68]
push dword [esp + 0x68]
push eax
call dword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x4b73d9
mov byte [esp + 0x14], 4
mov esi, dword [esp]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
cmp bl, 4
mov dword [esp + 0xc], ebx
jne 0x4b743f
jmp 0x4b749f
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call fcn.0040baa4
cmp al, 0xd
jne 0x4b7431
test ebp, ebp
je 0x4b7431
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov ebx, ebp
lock inc dword [eax]
jle 0x4b74c5
add edx, 8
mov ecx, esp
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
call fcn.0043927c
add esp, 0xc
cmp byte [esp], 4
je 0x4b7431
mov ebx, dword [esp]
cmp bl, 4
jne 0x4b7467
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov ecx, edi
call fcn.0040baa4
cmp al, 0xd
jne 0x4b7497
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
call fcn.004b4b87
push edi
call fcn.004b915f
add esp, 4
mov ebx, esp
jmp 0x4b7359
mov eax, dword [esp + 4]
xor ecx, ecx
mov edx, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
call fcn.0042ab64
mov esi, dword [esp + 0x1c]
jmp 0x4b743f
mov eax, dword [esp + 0x48]
mov byte [eax], 5
jmp 0x4b74a9
mov eax, dword [esp + 0x48]
mov dword [eax], ecx
jmp 0x4b74a6
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
jmp 0x4b74a6
mov eax, dword [esp + 0x48]
mov byte [eax], 4
mov dword [eax + 4], esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x52c654
call fcn.004e8ca0
ud2
Function at 0x4b91c6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x5370c0]
test eax, eax
je 0x4b926d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4b91ef
cmp dword [eax + 4], 0
mov edi, eax
je 0x4b91ef
add edi, 4
jmp 0x4b9268
mov eax, dword [0x5370c0]
test eax, eax
je 0x4b927c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4b9266
mov esi, eax
test eax, eax
jne 0x4b9248
mov al, byte [0x538038]
mov ecx, 8
mov edx, 4
call fcn.004018b0
test eax, eax
je 0x4b9297
mov dword [eax], 0x5370c0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5370c0]
test eax, eax
je 0x4b928b
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edi, [esi + 4]
call fcn.004b7566
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
test ecx, ecx
je 0x4b9268
lock dec dword [ecx]
jne 0x4b9268
call fcn.004224e0
jmp 0x4b9268
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x5370c0
call fcn.004ec360
jmp 0x4b91d6
mov ecx, 0x5370c0
call fcn.004ec360
jmp 0x4b91fd
mov ecx, 0x5370c0
call fcn.004ec360
jmp 0x4b9240
mov ecx, 4
mov edx, 8
call fcn.004e8800