joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a680
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov byte [esi], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x43a6c3
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call sym._strchr
test eax, eax
je 0x43a6c3
mov byte [eax], 0
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x440730
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xac
mov ebp, dword [eax + 0x198]
mov esi, dword [eax]
lea edx, [esp + 0x1c]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
je 0x4407a0
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sym._Curl_closesocket
mov dword [esp + 4], str.Error_accept__ing_server_connect
mov dword [esp], esi
call sym._Curl_failf
mov eax, 0x1e
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 8], edx
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_accept]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sym._Curl_closesocket
cmp edi, 0xffffffff
je 0x440778
mov dword [esp + 4], str.Connection_accepted_from_server_n
mov dword [esp], esi
call sym._Curl_infof
mov byte [ebx + 0x264], 0
mov dword [ebx + 0x198], edi
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._curlx_nonblock
mov eax, dword [esi + 0x1b0]
mov byte [ebx + 0x1a5], 1
test eax, eax
je 0x440852
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._Curl_set_in_callback
mov dword [esp + 4], edi
mov dword [esp + 8], 1
mov eax, dword [esi + 0x1b4]
mov dword [esp], eax
call dword [esi + 0x1b0]
mov dword [esp + 4], 0
mov dword [esp], esi
mov edi, eax
call sym._Curl_set_in_callback
test edi, edi
jne 0x440860
add esp, 0xac
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x198]
cmp eax, 0xffffffff
jne 0x440880
mov byte [ebx + 0x266], 0
mov eax, 0x2a
jmp 0x44078d
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._Curl_closesocket
mov dword [ebx + 0x198], 0xffffffff
jmp 0x44086b

Function at 0x4408a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax]
cmp byte [eax + 0x4d8], 0
mov edx, dword [eax + 0x12c]
je 0x4408d7
mov ecx, dword [ebx + 0x470]
test ecx, ecx
je 0x4408d7
cmp byte [eax + 0x4cb], 0
movsx ecx, byte [ebx + 0x488]
je 0x4408e8
cmp ecx, 0x41
jne 0x440938
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
jmp sym._ftp_state_size
cmp ecx, 0x49
je 0x4408d7
mov eax, 0x49
mov esi, 0x49
mov dword [edx + 0xc], 1
mov dword [esp + 8], eax
lea eax, [ebx + 0x428]
mov dword [esp + 4], str.TYPE__c
mov dword [esp], eax
call sym._Curl_pp_sendf
test eax, eax
jne 0x44092e
mov dword [ebx + 0x498], 0x13
mov ecx, esi
mov byte [ebx + 0x488], cl
add esp, 0x14
pop ebx
pop esi
ret
mov eax, 0x41
mov esi, 0x41
jmp 0x4408f7
Function at 0x440950
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [eax]
cmp byte [eax + 0x4c9], 0
jne 0x44096b
mov eax, dword [eax + 0x3c8]
test eax, eax
je 0x4409a8
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x4409a8
mov dword [esp + 8], eax
lea eax, [ebx + 0x428]
mov dword [esp + 4], str.MDTM__s
mov dword [esp], eax
call sym._Curl_pp_sendf
test eax, eax
jne 0x44099d
mov dword [ebx + 0x498], 0x12
add esp, 0x18
pop ebx
ret
add esp, 0x18
mov eax, ebx
pop ebx
jmp sym._ftp_state_type
Function at 0x440d00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax]
mov edx, dword [eax + 0x12c]
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x440d90
cmp byte [eax + 0x4ce], 0
jne 0x440d78
cmp byte [eax + 0x4e6], 0
je 0x440dc0
mov edx, dword [ebx + 0x470]
test edx, edx
je 0x440de0
cmp byte [eax + 0x4d9], 0
mov dword [esp + 8], edx
jne 0x440db0
mov dword [esp + 4], str.PRET_RETR__s
lea eax, [ebx + 0x428]
mov dword [esp], eax
call sym._Curl_pp_sendf
test eax, eax
jne 0x440dd0
mov dword [ebx + 0x498], 0x1d
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
add esp, 0x14
mov eax, ebx
xor edx, edx
pop ebx
pop esi
jmp sym._ftp_state_use_port
mov eax, ebx
mov ecx, 0xd
mov edx, 1
mov dword [ebx + 0x498], 0xd
add esp, 0x14
pop ebx
pop esi
jmp sym._ftp_state_quote
mov dword [esp + 4], str.PRET_STOR__s
jmp 0x440d4f
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
jmp sym._ftp_state_use_pasv
mov esi, eax
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
mov edx, dword [eax + 0x528]
test edx, edx
je 0x440e00
mov dword [esp + 8], edx
mov dword [esp + 4], str.PRET__s
jmp 0x440d4f
cmp byte [eax + 0x4cd], 0
mov edx, str.LIST
mov eax, str.NLST
cmovne edx, eax
jmp 0x440dea

Function at 0x440e20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [eax]
mov eax, dword [eax + 0x12c]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x440e70
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x440e70
lea eax, [ebx + 0x428]
mov dword [esp + 8], 0
mov dword [esp + 4], str.REST__d
mov dword [esp], eax
call sym._Curl_pp_sendf
test eax, eax
jne 0x440e6b
mov dword [ebx + 0x498], 0x1a
add esp, 0x18
pop ebx
ret
add esp, 0x18
mov eax, ebx
pop ebx
jmp sym._ftp_state_prepare_transfer

Function at 0x440e80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [eax]
mov eax, dword [eax + 0x12c]
cmp dword [eax + 0xc], 1
jne 0x440ed0
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x440ed0
mov dword [esp + 8], eax
lea eax, [ebx + 0x428]
mov dword [esp + 4], str.SIZE__s
mov dword [esp], eax
call sym._Curl_pp_sendf
test eax, eax
jne 0x440ec6
mov dword [ebx + 0x498], 0x17
add esp, 0x18
pop ebx
ret
add esp, 0x18
mov eax, ebx
pop ebx
jmp sym._ftp_state_rest
Function at 0x445160
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2 + 0xc]
mov dword [esp], eax
call dword [0x45e814]
mov ebp, eax
test eax, eax
je 0x44525a
lea ecx, [eax + 0xc]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [ebp + 8], eax
cmp dword [ebx + 0x10], esi
jb 0x445268
mov dword [esp], ecx
call dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call dword [ebx]
test esi, esi
je 0x445255
lea eax, [edi + esi]
mov dword [esp + 0x1c], eax
lea esi, [esi]
movzx ecx, byte [edi]
lea eax, [esp + 0x2f]
mov dword [esp + 8], 1
add edi, 1
mov dword [esp + 4], eax
xor ecx, 0x36
mov byte [esp + 0x2f], cl
mov ecx, dword [ebp + 4]
mov dword [esp], ecx
call dword [ebx + 4]
movzx ecx, byte [edi - 1]
lea eax, [esp + 0x2f]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
xor ecx, 0x5c
mov byte [esp + 0x2f], cl
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call dword [ebx + 4]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x4451c8
cmp esi, dword [ebx + 0x10]
jae 0x44525a
nop
mov dword [esp + 8], 1
add esi, 1
mov dword [esp + 4], 0x4694b9
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4694b8
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebx + 4]
cmp esi, dword [ebx + 0x10]
jb 0x445220
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
call dword [ebx]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov ecx, dword [ebp + 4]
mov edx, dword [ebx + 0xc]
add edx, dword [ebp + 8]
mov dword [esp], edx
mov edi, edx
mov dword [esp + 4], ecx
call dword [ebx + 8]
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebp + 4]
jmp 0x4451a9

Function at 0x445f20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x445f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x47a1b4]
test esi, esi
jle 0x4460a0
mov eax, dword [0x47a1b8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x445fb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x446037
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x445fa0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4460c7
mov eax, dword [0x47a1b8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x47a1b8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4460a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x446030
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x446040
add dword [0x47a1b4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x47a1b8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x446030
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x445fbe
mov eax, dword [0x47a1b8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x4465f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x47a1d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x47a1c8]
sub esp, 4
test ebx, ebx
je 0x446645
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x44663e
test eax, eax
jne 0x44663e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x446620
mov dword [esp], 0x47a1d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x446980
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4469a5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4469b0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4469a5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4469f8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4469ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4469fa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4469e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x455440
Capabilities:
Print debug messages

Disassembly:
push ebx
sub esp, 0x58
lea ebx, [esp + 0x1b]
mov dword [esp + 0x1b], 0
mov dword [esp + 0x1f], 0
mov dword [esp + 0x23], 0
mov dword [esp + 0x27], 0
mov dword [esp + 0x2b], 0
mov dword [esp + 0x2f], 0
mov dword [esp + 0x33], 0
mov dword [esp + 0x37], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 0x3f], 0
mov dword [esp + 0x43], 0
mov dword [esp + 0x47], 0
mov dword [esp + 0x4b], 0
mov byte [esp + 0x4f], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call sym._snprintf.constprop.0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sym._abort
lea esi, cs:[esi]

Function at 0x4556b0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x47abf0], 1
je 0x455768
push edi
mov eax, 0x47abf0
push esi
push ebx
sub esp, 0x10
call dbg.enterOnceObject
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call dbg.pthread_mutex_lock
mov edi, dword [0x47abf0]
test edi, edi
jne 0x455720
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x45ea60], eax
cmp eax, 0xffffffff
je sym.__pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x47abf0], 1
mov dword [esp], esi
call dbg.pthread_mutex_unlock
test ebx, ebx
je 0x45575a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp sym._leaveOnceObject.part.0
cmp edi, 1
je 0x455702
mov dword [esp], 2
call dword [0x45ea48]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x47abf0
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sym._fprintf_1
mov dword [esp], esi
call dbg.pthread_mutex_unlock
test ebx, ebx
jne 0x45570e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x455770
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._pop_pthread_mem
mov ebx, eax
test eax, eax
je 0x455883
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x45588d
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.part.0.cold
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x45ea60]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.part.0.cold
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._replace_spin_keys.part.0
lea esi, cs:[esi]
lea esi, [esi]

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

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x45ea60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4558c8
add esp, 0x1c
ret
add esp, 0x1c
jmp sym.___pthread_self_lite.part.0
Function at 0x455a0a
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov esi, dword [ecx]
call dbg._fpreset
mov dword [esp], 0x45ea58
lea ebx, [esi + 0x1c]
call dbg.pthread_mutex_lock
mov dword [esp], ebx
call dbg.pthread_mutex_lock
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x45ea60]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call dbg.pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], esi
call sym.__setjmp3
mov dword [esp], 0x45ea58
test eax, eax
jne 0x455b31
call dbg.pthread_mutex_unlock
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
test eax, eax
je 0x455b38
mov edx, dword [esi + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x45ea58
call dbg.pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x455ac0
call sym.__pthread_cleanup_dest.part.0
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call dbg.pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x455ae4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], edx
je 0x455b4b
mov dword [esp], ebx
call dbg.pthread_mutex_unlock
mov dword [esp], ebx
call dbg.pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov dword [esp], 0x45ea58
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x455b42
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edx
jmp 0x455b13
call dbg.pthread_mutex_lock
jmp 0x455ac0
mov ebx, pe_nt_image_headers32
jmp 0x455a9f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call dbg.pthread_mutex_unlock
mov dword [esp], ebx
call dbg.pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x45ea60]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ebx
jmp 0x455b13
Function at 0x455b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x455bb8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x455cb0
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x455c80
cmp eax, 3
jne 0x455ba9
mov eax, dword [0x45ea60]
cmp eax, 0xffffffff
je 0x455ba9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x455ba9
test byte [eax + 0x20], 0x30
je 0x455ce0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x455bfb
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x455c2d
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x455c1f
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dbg.pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x455d99
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x455d8d
mov eax, dword [0x45ea60]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x455ba9
mov eax, dword [0x47abc8]
test eax, eax
je 0x455ccc
mov dword [esp + 4], dbg.SetThreadName_VEH
mov dword [esp], 1
call eax
mov dword [0x47abcc], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x47abcc]
test eax, eax
je 0x455ba9
mov edx, dword [0x47abc4]
test edx, edx
je 0x455ccc
mov dword [esp], eax
call edx
mov dword [0x47abcc], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x455d3f
test eax, eax
je 0x455cfa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x455d17
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x24], 4
je 0x455d7d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x455c2d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x455c26
test eax, eax
je 0x455d7d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call dbg.pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x455d99
mov dword [ebx + 0x38], 0xffffffff
jmp 0x455ba9
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dbg.pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x455d64
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x455c61
call sym._replace_spin_keys.part.0
nop
Function at 0x456620
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x45ea60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x456648
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x45663d
add esp, 0x1c
ret

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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x456732
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
jne 0x45674c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x45ea60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x45678d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4567cd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x456782
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x456796
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call sym._push_pthread_mem
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x45ea60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x45678d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4567e1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x4567ae

Function at 0x4567f0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x47abf8]
test eax, eax
jne 0x456800
xor eax, eax
ret
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x45ea60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x456840
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x456830
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x456824
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x456826
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x45681d
jmp 0x456824

Function at 0x456850
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x45ea60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x456890
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x456880
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x45686d
add esp, 0x1c
ret