joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x4a6178
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x4a6188
mov dword [esi + 4], 0
jmp 0x4a6199
cmp eax, 0x103
je 0x4a61b1
test eax, eax
js 0x4a61a3
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4a619c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x56bdfc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
push ecx
push edx
call fcn.00482790
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00482890
mov ecx, 7
int 0x29
ud2

Function at 0x4a96b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x541108]
test eax, eax
je 0x4a9769
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4a96de
cmp dword [eax + 4], 0
mov edi, eax
je 0x4a96de
add edi, 8
jmp 0x4a9763
mov eax, dword [0x541108]
test eax, eax
je 0x4a9778
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4a9761
mov esi, eax
test eax, eax
jne 0x4a9737
movzx eax, byte [0x5c91e8]
mov ecx, 0xc
mov edx, 4
call fcn.0041aa20
test eax, eax
je 0x4a9793
mov dword [eax], 0x541108
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x541108]
test eax, eax
je 0x4a9787
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4a9763
test ecx, ecx
je 0x4a9763
lock dec dword [ecx]
jne 0x4a9763
call fcn.004a97b0
jmp 0x4a9763
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x541108
call fcn.004832d0
jmp 0x4a96c3
mov ecx, 0x541108
call fcn.004832d0
jmp 0x4a96ec
mov ecx, 0x541108
call fcn.004832d0
jmp 0x4a9730
mov ecx, 4
mov edx, 0xc
call fcn.0041b1c0
ud2
Function at 0x4aa110
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1ac
movzx eax, word [edx + 8]
mov edi, dword [edx]
mov ebx, dword [edx + 4]
mov esi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x5c912c]
cmp eax, 3
jne 0x4aa2aa
cmp ebx, 0x17f
ja 0x4aa2bb
lea eax, [ebp - 0x1b8]
push ebx
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1b8], 0
ja 0x4aa188
xor edx, edx
nop word [eax + eax]
cmp byte [ebp + edx - 0x1b8], 0
je 0x4aa223
inc edx
cmp eax, edx
jne 0x4aa170
jmp 0x4aa272
mov dl, 1
xor ecx, ecx
test dl, dl
jne 0x4aa1b8
jne 0x4aa1b8
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [ebp + edx - 0x1b8], 0
je 0x4aa223
inc edx
jne 0x4aa1a0
xor edx, edx
mov dword [ebp - 0x10], esi
test dl, dl
je 0x4aa1bb
jmp 0x4aa1fd
mov dword [ebp - 0x10], esi
lea edx, [ebx - 7]
nop
mov edi, dword [ebp + ecx - 0x1b8]
mov esi, edi
add edi, 0xfefefeff
not esi
and edi, esi
test edi, 0x80808080
jne 0x4aa1fd
mov esi, dword [ebp + ecx - 0x1b4]
mov edi, esi
add esi, 0xfefefeff
not edi
and esi, edi
test esi, 0x80808080
jne 0x4aa1fd
add ecx, 8
cmp ecx, edx
jbe 0x4aa1c0
mov esi, dword [ebp - 0x10]
cmp eax, ecx
je 0x4aa272
nop word cs:[eax + eax]
nop
cmp byte [ebp + ecx - 0x1b8], 0
je 0x4aa221
inc ecx
cmp eax, ecx
jne 0x4aa210
jmp 0x4aa272
mov edx, ecx
cmp edx, ebx
jne 0x4aa272
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1b8]
push eax
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x4aa294
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4aa289
mov eax, dword [0x56b468]
mov ecx, dword [0x56b46c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
add esp, 0x1ac
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x4aa289
call fcn.004aa770
cmp ebx, 0x17f
jbe 0x4aa144
mov ecx, esi
mov edx, edi
push dword [ebp - 0x14]
push ebx
call fcn.004aa7c0
add esp, 0x1b4
jmp 0x4aa28f
Function at 0x4aa7c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.0041b690
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4aa801
mov ecx, dword [0x56b468]
mov edx, dword [0x56b46c]
cmp dword [ebp - 0x1c], 0
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x4aa874
push eax
jmp 0x4aa867
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x4aa84a
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4aa85d
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4aa874
push edi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4aab00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
movzx eax, byte [ebp + 8]
mov esi, ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push edx
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x4aab27
mov byte [esi], 4
jmp 0x4aab35
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 4
pop esi
pop ebp
ret
Function at 0x4b0180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.004854f0
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
test edx, edx
je 0x4b01e2
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.004b02b0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4b01ef
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4b0205
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x4b01fd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.00485680
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x4b01fd
push edi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
jmp 0x4b01fd
Function at 0x4b1850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x5c91e8]
mov ebx, edx
mov esi, ecx
mov ecx, 8
mov edx, 4
call fcn.0041aa20
test eax, eax
je 0x4b18fd
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push 0x4b1b90
push ebx
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x4b18a7
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4b18f5
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x4b18dc
cmp dword [ebx + 8], 9
jae 0x4b18c8
mov eax, dword [ebp - 0x10]
jmp 0x4b18ce
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 4
mov edx, 8
call fcn.0041b1c0
ud2
Function at 0x4b1e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.0053ec40
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x4aaf40
push eax
push 0x1000
push ebx
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x4b1f26
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x4b1e5e
cmp dword [ebp - 0x18], 0
jne 0x4b1f35
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b1f35
cmp ebx, 0x1000
ja 0x4b1f5f
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x4b1f4c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x4aaf40
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x4b1f2d
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x4b1ed0
cmp dword [ebp - 0x18], 0
jne 0x4b1f32
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x4b1e90
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x4aaf40
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x4b1e5e
call sub.kernel32.dll_GetLastError
jmp 0x4b1f35
call sub.kernel32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
mov ecx, edi
push 0x56c06c
call fcn.00446290
add esp, 4
jmp 0x4b1f73
mov edx, 0x1000
mov ecx, ebx
push 0x56c06c
call fcn.00445020
add esp, 4
ud2

Function at 0x4b1fc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4b2005
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x56c180
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], fcn.004a42a0
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x28]
mov edx, 0x56c1ac
call fcn.00444350
ud2
Function at 0x4b3740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ebx, edx
mov esi, ecx
push 1
push edx
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4b375c
mov byte [esi], 4
jmp 0x4b379d
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp eax, 5
jne 0x4b3797
push 0
push ebx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4b377d
cmp eax, 0x102
je 0x4b3757
jmp 0x4b3792
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4b3757
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b37b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x5410f8]
test eax, eax
je 0x4b3835
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b37d1
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4b3829
mov eax, dword [0x5410f8]
test eax, eax
je 0x4b3844
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4b382e
mov esi, eax
test eax, eax
jne 0x4b3823
movzx eax, byte [0x5c91e8]
mov ecx, 8
mov edx, 4
call fcn.0041aa20
test eax, eax
je 0x4b385c
mov dword [eax], 0x5410f8
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x5410f8]
test eax, eax
je 0x4b3850
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov word [esi + 4], 1
add esi, 5
jmp 0x4b3830
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x5410f8
call fcn.004832d0
jmp 0x4b37be
mov ecx, 0x5410f8
call fcn.004832d0
jmp 0x4b37db
mov ecx, 0x5410f8
call fcn.004832d0
jmp 0x4b381c
mov ecx, 4
mov edx, 8
call fcn.0041b1c0
ud2
Function at 0x4b99d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x4b9a44
mov ebx, dword [edx + 4]
mov eax, dword [0x5c912c]
cmp eax, 3
jne 0x4b9b20
cmp word [ebx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
push 0x81
push 0
push 0
push 0
push 2
push edi
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4b9a60
cmp word [ebx], 0
je 0x4b9ab1
mov eax, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
lea ecx, [ebx + 0x14]
add ebx, 0x1c
mov di, 0x17
mov dword [ebp - 0x14], eax
mov eax, 0x1c
jmp 0x4b9ac3
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 0x4b9b49
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x4b9a77
cmp eax, 0x2726
jne 0x4b9b39
push 1
push 0
push 0
push 0
push 2
push edi
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x4b9b19
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x4b9b2a
mov dword [ebp - 0x10], edi
cmp word [ebx], 0
jne 0x4b9a29
lea ecx, [ebx + 2]
add ebx, 6
mov eax, 0x10
mov di, 2
xorps xmm0, xmm0
movzx ebx, word [ebx]
mov ecx, dword [ecx]
mov word [ebp - 0x30], di
rol bx, 8
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x30]
push eax
push ecx
mov edi, dword [ebp - 0x10]
push edi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x4b9afc
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4b9b49
call sub.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 sub.ws2_32.dll_closesocket
jmp 0x4b9b49
call sub.ws2_32.dll_WSAGetLastError
jmp 0x4b9b39
call fcn.004aa770
jmp 0x4b99f3
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call sub.ws2_32.dll_closesocket
mov eax, ebx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b9b60
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov esi, ecx
movzx ecx, byte [eax]
cmp cl, 4
jne 0x4b9b9a
mov eax, dword [eax + 4]
cmp word [eax], 0
je 0x4b9bb3
mov ecx, dword [eax + 0x18]
movups xmm0, xmmword [eax + 4]
lea edi, [eax + 0x14]
add eax, 0x1c
mov bx, 0x17
mov dword [ebp - 0x10], ecx
mov ecx, 0x1c
jmp 0x4b9bc5
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x4b9c06
lea edi, [eax + 2]
add eax, 6
mov bx, 2
xorps xmm0, xmm0
mov ecx, 0x10
movzx eax, word [eax]
mov edi, dword [edi]
mov word [ebp - 0x2c], bx
rol ax, 8
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], edi
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push ecx
push eax
push edx
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x4b9bf8
mov byte [esi], 4
jmp 0x4b9c06
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b9c40
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 [0x541118]
test eax, eax
je 0x4b9d21
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b9c70
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4b9d16
mov eax, dword [0x541118]
test eax, eax
je 0x4b9d30
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4b9cf3
mov esi, eax
test eax, eax
jne 0x4b9cd4
movzx eax, byte [0x5c91e8]
mov ecx, 0x20
mov edx, 8
call fcn.0041aa20
test eax, eax
je 0x4b9d4b
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x541118
mov esi, eax
mov eax, dword [0x541118]
test eax, eax
je 0x4b9d3f
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x4b9cf7
movaps xmm0, xmmword [esp]
jmp 0x4b9d05
xor esi, esi
jmp 0x4b9d19
lea ecx, [esp + 0x10]
call fcn.004b1fc0
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, 0x541118
call fcn.004832d0
jmp 0x4b9c58
mov ecx, 0x541118
call fcn.004832d0
jmp 0x4b9c7e
mov ecx, 0x541118
call fcn.004832d0
jmp 0x4b9ccd
mov ecx, 8
mov edx, 0x20
call fcn.0041b1c0
ud2
Function at 0x4bcbc4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x541138]
mov esi, ecx
test eax, eax
je 0x4bcc90
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4bcbf3
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4bcbf3
add eax, 8
jmp 0x4bcc8c
mov eax, dword [0x541138]
test eax, eax
je 0x4bcc9f
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4bcc6e
mov edi, eax
test eax, eax
jne 0x4bcc4f
mov al, byte [0x5c91e8]
mov ecx, 0x18
mov edx, 8
call fcn.0041aa20
test eax, eax
je 0x4bccba
mov edi, eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 0x10], 0x541138
mov eax, dword [0x541138]
test eax, eax
je 0x4bccae
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x4bcc72
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], ecx
or eax, dword [esi + 4]
mov dword [esi + 4], ecx
je 0x4bcc76
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
jmp 0x4bcc76
xor eax, eax
jmp 0x4bcc8c
xor edx, edx
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], 0
mov dword [edi], 1
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x541138
call fcn.004832d0
jmp 0x4bcbd9
mov ecx, 0x541138
call fcn.004832d0
jmp 0x4bcc01
mov ecx, 0x541138
call fcn.004832d0
jmp 0x4bcc48
mov ecx, 8
mov edx, 0x18
call fcn.0041b1c0
ud2
Function at 0x4bcccb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x541128]
mov esi, ecx
test eax, eax
je 0x4bcdd1
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4bcd01
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4bcd01
add eax, 8
jmp 0x4bcdc9
mov eax, dword [0x541128]
test eax, eax
je 0x4bcde0
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4bcd8f
mov edi, eax
test eax, eax
jne 0x4bcd61
mov al, byte [0x5c91e8]
mov ecx, 0x28
mov edx, 8
call fcn.0041aa20
test eax, eax
je 0x4bcdfe
mov edi, eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 0x20], 0x541128
mov eax, dword [0x541128]
test eax, eax
je 0x4bcdef
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x4bcd93
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi], ecx
or eax, dword [esi + 4]
mov dword [esi + 4], ecx
je 0x4bcd9b
mov eax, dword [esi + 0x18]
movsd xmm0, qword [esi + 0x10]
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x1c]
mov dword [esp + 8], eax
movsd qword [esp], xmm0
jmp 0x4bcd9f
xor eax, eax
jmp 0x4bcdc9
xor edx, edx
xor ebx, ebx
xor ecx, ecx
jmp 0x4bcd9f
xor edx, edx
xor ebx, ebx
mov dword [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
lea eax, [edi + 8]
mov ecx, dword [esp + 8]
mov dword [edi + 0x18], ecx
movsd xmm0, qword [esp]
movsd qword [edi + 0x10], xmm0
mov dword [edi + 0x1c], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x541128
call fcn.004832d0
jmp 0x4bcce7
mov ecx, 0x541128
call fcn.004832d0
jmp 0x4bcd0f
mov ecx, 0x541128
call fcn.004832d0
jmp 0x4bcd5a
mov ecx, 8
mov edx, 0x28
call fcn.0041b1c0
ud2

Function at 0x4bcf24
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x541148]
mov esi, ecx
test eax, eax
je 0x4bcfc6
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4bcf4f
cmp byte [eax + 4], 0
je 0x4bcf4f
add eax, 5
jmp 0x4bcfc2
mov eax, dword [0x541148]
test eax, eax
je 0x4bcfd5
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4bcfc0
mov edi, eax
test eax, eax
jne 0x4bcf9f
mov al, byte [0x5c91e8]
mov ecx, 8
mov edx, 4
call fcn.0041aa20
test eax, eax
je 0x4bcff0
mov dword [eax], 0x541148
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x541148]
test eax, eax
je 0x4bcfe4
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x4bcfb4
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
jmp 0x4bcfc2
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov ecx, 0x541148
call fcn.004832d0
jmp 0x4bcf39
mov ecx, 0x541148
call fcn.004832d0
jmp 0x4bcf59
mov ecx, 0x541148
call fcn.004832d0
jmp 0x4bcf98
mov ecx, 4
mov edx, 8
call fcn.0041b1c0
ud2
Function at 0x4bd0d3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x541158]
mov esi, ecx
test eax, eax
je 0x4bd193
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4bd101
cmp dword [eax + 4], 0
je 0x4bd101
add eax, 8
jmp 0x4bd18f
mov eax, dword [0x541158]
test eax, eax
je 0x4bd1a2
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4bd18d
mov edi, eax
test eax, eax
jne 0x4bd15c
mov al, byte [0x5c91e8]
mov ecx, 0x14
mov edx, 4
call fcn.0041aa20
test eax, eax
je 0x4bd1bd
mov dword [eax], 0x541158
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x541158]
test eax, eax
je 0x4bd1b1
dec eax
push edi
push eax
call sub.kernel32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x4bd178
cmp dword [esi], 0
mov dword [esi], 0
je 0x4bd178
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov esi, dword [esi + 0xc]
jmp 0x4bd178
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
lea eax, [edi + 8]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], esi
jmp 0x4bd18f
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov ecx, 0x541158
call fcn.004832d0
jmp 0x4bd0e8
mov ecx, 0x541158
call fcn.004832d0
jmp 0x4bd10f
mov ecx, 0x541158
call fcn.004832d0
jmp 0x4bd155
mov ecx, 4
mov edx, 0x14
call fcn.0041b1c0
ud2