joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4245f0
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005eb280
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
cmp dword [eax + 0x14], 8
push edi
mov edi, ecx
jb 0x424619
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4246cb
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4246c4
jmp 0x424670
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x4246c2
push 0
lea ecx, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4246c4
lea eax, [ebp - 0x1008]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x424670
jmp 0x4246c4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005e9734
mov esp, ebp
pop ebp
ret 4

Function at 0x425d80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x623f48
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6bae70]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
movq xmm0, qword [ecx]
lea eax, [esp + 8]
mov esi, dword [ecx + 8]
lea ecx, [esp + 0x18]
push eax
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], edx
call fcn.005eb9b2
movq xmm0, qword [esp + 0xc]
mov dword [esp + 0x18], vtable.boost::system::system_error.0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00426ec0
int3

Function at 0x425ee0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425f3d
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x6c9a40]
mov edi, eax
test dl, 1
jne 0x425f1b
or edx, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], edx
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push edi
mov dword [ebp - 0xc], edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x6c9a30
pop edi
test al, al
jne 0x425f44
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x68e2fc
lea ecx, [ebp - 0xc]
call fcn.00425d80
int3
Function at 0x4260b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x6bae70]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x6c9a6c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4260f2
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x6c9a70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.005e9734
mov esp, ebp
pop ebp
ret

Function at 0x427110
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6240e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005eb9f2
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.boost::system::system_error.0
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00422880
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x42719e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
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 0x427370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6240e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.005eb9f2
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.boost::system::system_error.0
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00422880
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x427404
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
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 0x429230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623f78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.005eb9f2
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
mov dword [edi], vtable.boost::system::system_error.0
movq xmm0, qword [esi + 0xc]
movq qword [edi + 0xc], xmm0
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00422880
mov dword [edi + 0x30], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
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 0x4292f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623f78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.005eb9f2
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
mov dword [edi], vtable.boost::system::system_error.0
movq xmm0, qword [esi + 0xc]
movq qword [edi + 0xc], xmm0
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [esi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00422880
mov dword [edi + 0x30], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov dword [edi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
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 0x429bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x623f48
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6bae70]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
movq xmm0, qword [ecx]
lea eax, [esp + 8]
mov esi, dword [ecx + 8]
lea ecx, [esp + 0x18]
push eax
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x68fbcc
call fcn.005eb9b2
movq xmm0, qword [esp + 0xc]
mov dword [esp + 0x18], vtable.boost::system::system_error.0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0
call fcn.00426ec0
int3

Function at 0x429c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429c69
mov ecx, dword [eax + 4]
jmp 0x429c6b
xor ecx, ecx
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 0
push dword [ebp - 4]
call fcn.0044a6c0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x429c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429ca8
mov edx, dword [eax + 4]
jmp 0x429caa
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x429cc9
test edx, edx
je 0x429cc9
cmp dword [edx], 0
jne 0x429cc9
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.005e8fa6
add esp, 4
pop ebp
ret
Function at 0x42a020
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 0x6c9ab8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x42a06f
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.004225c0
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 0x42a090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
mov ebx, ecx
push 0
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x42a10f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp + 8], eax
call dword [edx]
mov ecx, dword [0x6c9a40]
test cl, 1
jne 0x42a0e7
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
mov eax, dword [ebp + 8]
mov ecx, 0x6c9a30
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov dword [ebp - 0xc], 0x6c9a30
test al, al
jne 0x42a22a
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x42a180
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp + 8], eax
call dword [edx]
mov ecx, dword [0x6c9a40]
test cl, 1
jne 0x42a158
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
mov eax, dword [ebp + 8]
mov ecx, 0x6c9a30
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov dword [ebp - 0xc], 0x6c9a30
test al, al
jne 0x42a237
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push 0x42a260
push dword [ebp + 0xc]
push 0
call fcn.005f0764
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42a211
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp + 8], eax
call dword [edx]
test esi, esi
je 0x42a1c5
push esi
call ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x42a1d2
push eax
call ebx
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42a1ed
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [ebp + 8]
mov ecx, 0x6c9a30
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov dword [ebp - 0xc], 0x6c9a30
test al, al
jne 0x42a244
test esi, esi
je 0x42a221
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x14]
call fcn.00425d80
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x14]
call fcn.00425d80
mov edx, str.thread
lea ecx, [ebp - 0x14]
call fcn.00425d80
int3
Function at 0x42a4d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6245ff
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0042b290
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00425f70
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
test ecx, ecx
mov byte [ebp - 4], 5
mov dword [esi + 0x5c], ecx
cmovns eax, ecx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x42a5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x6c9a40]
mov edi, eax
test dl, 1
jne 0x42a5d1
or edx, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], edx
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push edi
mov dword [ebp - 0x1c], edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], 0x6c9a30
test al, al
je 0x42a5ff
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.00425d80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x42a9c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6246b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
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 0x42aa58
mov ecx, esi
call fcn.0042ac80
mov eax, dword [0x6c9a40]
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
test al, 1
jne 0x42aa2d
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [ebp + 8]
movq xmm0, qword [esp + 0x18]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
test esi, esi
je 0x42aa79
lea eax, [esi + 0x14]
jmp 0x42aa7b
xor eax, eax
push dword [0x6c9ad8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
push 0xffffffffffffffff
mov byte [esp + 0x38], 1
xor edi, edi
call fcn.0042af20
test eax, eax
je 0x42aad4
cmp edi, 0xffffffff
je 0x42aac6
inc edi
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042af20
test eax, eax
jne 0x42aac0
push dword [esp + 0x20]
push dword [0x6c9ad8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [esp + esi*4 + 0x10]
test eax, eax
je 0x42aaf7
push eax
call fcn.005e8fa6
add esp, 4
inc esi
cmp esi, 2
jl 0x42aae6
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ab40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6246b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, esp
push eax
lea eax, [esp + 0x28]
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 0x42abd6
mov ecx, edi
call fcn.0042ac80
mov eax, dword [0x6c9a40]
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
test al, 1
jne 0x42abac
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [ebp + 8]
movq xmm0, qword [esp + 0x18]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
test edi, edi
je 0x42abf7
lea eax, [edi + 0x14]
jmp 0x42abf9
xor eax, eax
push dword [0x6c9ad8]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push dword [0x6c9ad8]
call esi
push dword [ebp + 8]
mov ecx, edi
mov byte [esp + 0x34], 1
push 0
call fcn.0042af20
push dword [esp + 0x20]
mov edi, eax
push dword [0x6c9ad8]
call esi
xor esi, esi
lea esp, [esp]
mov eax, dword [esp + esi*4 + 0x10]
test eax, eax
je 0x42ac61
push eax
call fcn.005e8fa6
add esp, 4
inc esi
cmp esi, 2
jl 0x42ac50
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42bbe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov eax, edx
xor esi, esi
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x42bd54
cmp byte [ebp + 8], 0
je 0x42bc37
test byte [eax], 8
je 0x42bc37
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.00424da0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push 0x80
push 0xffff
call fcn.0042cc30
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42bc63
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
movq xmm0, qword [ebp - 0x14]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6c9a30
test esi, esi
je 0x42bd54
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42bcb2
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2733
call dword [eax + 0x18]
cmp dword [edi], 0x2733
jne 0x42bcfd
mov edx, dword [0x6c9a38]
mov eax, edx
or eax, dword [0x6c9a3c]
mov ecx, dword [edi + 8]
jne 0x42bcee
cmp ecx, 0x6c9a30
sete al
test al, al
jne 0x42bd19
jmp 0x42bcfd
cmp dword [ecx + 8], edx
jne 0x42bcfd
mov eax, dword [0x6c9a3c]
cmp dword [ecx + 0xc], eax
je 0x42bd19
push ecx
push 0x4d5
lea ecx, [ebp - 0x14]
call fcn.0044a720
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00429a80
test al, al
je 0x42bd50
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, edi
mov ecx, eax
call fcn.0044a7e0
mov esi, eax
test esi, esi
jne 0x42bd8a
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
test al, 1
jne 0x42bd7a
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x14]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6c9a30
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret