joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a6f0
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 0x43a733
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call sym._strchr
test eax, eax
je 0x43a733
mov byte [eax], 0
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x4406f0
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 0x440760
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 0x440738
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 0x440812
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 0x440820
add esp, 0xac
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x198]
cmp eax, 0xffffffff
jne 0x440840
mov byte [ebx + 0x266], 0
mov eax, 0x2a
jmp 0x44074d
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._Curl_closesocket
mov dword [ebx + 0x198], 0xffffffff
jmp 0x44082b

Function at 0x440860
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 0x440897
mov ecx, dword [ebx + 0x470]
test ecx, ecx
je 0x440897
cmp byte [eax + 0x4cb], 0
movsx ecx, byte [ebx + 0x488]
je 0x4408a8
cmp ecx, 0x41
jne 0x4408f8
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
jmp sym._ftp_state_size
cmp ecx, 0x49
je 0x440897
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 0x4408ee
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 0x4408b7
Function at 0x440910
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 0x44092b
mov eax, dword [eax + 0x3c8]
test eax, eax
je 0x440968
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x440968
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 0x44095d
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 0x440cc0
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 0x440d50
cmp byte [eax + 0x4ce], 0
jne 0x440d38
cmp byte [eax + 0x4e6], 0
je 0x440d90
mov edx, dword [ebx + 0x470]
lea ecx, [ebx + 0x428]
test edx, edx
je 0x440da0
cmp byte [eax + 0x4d9], 0
mov dword [esp + 8], edx
jne 0x440d70
mov dword [esp + 4], str.PRET_RETR__s
mov dword [esp], ecx
call sym._Curl_pp_sendf
test eax, eax
jne 0x440d84
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
mov dword [esp], ecx
call sym._Curl_pp_sendf
test eax, eax
je 0x440d21
mov esi, eax
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
jmp sym._ftp_state_use_pasv
mov edx, dword [eax + 0x528]
test edx, edx
je 0x440dd0
mov dword [esp + 8], edx
mov dword [esp + 4], str.PRET__s
mov dword [esp], ecx
call sym._Curl_pp_sendf
test eax, eax
je 0x440d21
mov esi, eax
jmp 0x440d86
cmp byte [eax + 0x4cd], 0
mov edx, str.LIST
mov eax, str.NLST
cmovne edx, eax
jmp 0x440daa

Function at 0x440df0
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 0x440e40
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x440e40
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 0x440e3b
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 0x440e50
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 0x440ea0
mov eax, dword [ebx + 0x470]
test eax, eax
je 0x440ea0
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 0x440e96
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 0x444fd0
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 [0x45bc94]
mov ebp, eax
test eax, eax
je 0x4450ca
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 0x4450d8
mov dword [esp], ecx
call dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call dword [ebx]
test esi, esi
je 0x4450c5
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]
cmp dword [esp + 0x1c], edi
jne 0x445038
cmp esi, dword [ebx + 0x10]
jae 0x4450ca
lea esi, [esi]
mov dword [esp + 8], 1
add esi, 1
mov dword [esp + 4], 0x4664b9
mov edx, dword [ebp + 4]
mov dword [esp], edx
call dword [ebx + 4]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4664b8
mov edx, dword [ebp + 8]
mov dword [esp], edx
call dword [ebx + 4]
cmp esi, dword [ebx + 0x10]
jb 0x445090
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 0x445019

Function at 0x445db0
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 0x445e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4761b4]
test esi, esi
jle 0x445f30
mov eax, dword [0x4761b8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x445e44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x445ec7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x445e30
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x445f57
mov eax, dword [0x4761b8]
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 [0x4761b8]
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 0x445f37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x445ec0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x445ed0
add dword [0x4761b4], 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 [0x4761b8]
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 0x445ec0
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, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x445e4e
mov eax, dword [0x4761b8]
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, [esi]
nop

Function at 0x446470
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4761d0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4761c8]
sub esp, 4
test ebx, ebx
je 0x4464c5
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
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4464be
test esi, esi
je 0x4464be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4464a0
mov dword [esp], 0x4761d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x446800
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x446825
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x446830
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x446825
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 0x446878
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x44686e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x44687a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x446860
xor eax, eax
pop ebx
pop esi
ret
Function at 0x454400
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x4544db
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4544ad
cmp eax, 0x6a
je 0x4544ca
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4544a8
cmp eax, 0x6a
je 0x4544ca
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sym._abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4544c0

Function at 0x454860
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x476ce8], 1
je 0x454918
push edi
mov eax, 0x476ce8
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 [0x476ce8]
test edi, edi
jne 0x4548d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x45bd64], eax
cmp eax, 0xffffffff
je sym.__pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x476ce8], 1
mov dword [esp], esi
call dbg.pthread_mutex_unlock
test ebx, ebx
je 0x45490a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp sym._leaveOnceObject.part.0
cmp edi, 1
je 0x4548b2
mov dword [esp], 2
call dword [0x45bd4c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x476ce8
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sym._fprintf_1
mov dword [esp], esi
call dbg.pthread_mutex_unlock
test ebx, ebx
jne 0x4548be
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x454920
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._pop_pthread_mem
mov edx, dword [entry3]
test edx, edx
je 0x454a50
mov ebx, eax
test eax, eax
je 0x454a50
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 0x454a5c
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 [0x45bd64]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x454a61
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._replace_spin_keys.part.0
jmp sym.___pthread_self_lite.part.0.cold

Function at 0x454a70
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 [0x45bd64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x454a98
add esp, 0x1c
ret
add esp, 0x1c
jmp sym.___pthread_self_lite.part.0
Function at 0x454bda
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], 0x45bd5c
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 [0x45bd64]
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 [ebp - 0x1c], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
mov dword [esp], 0x45bd5c
test eax, eax
jne 0x454d01
call dbg.pthread_mutex_unlock
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
test eax, eax
je 0x454d08
mov edx, dword [esi + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x45bd5c
call dbg.pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x454c90
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 0x454cb4
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 0x454d1b
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], 0x45bd5c
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x454d12
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edx
jmp 0x454ce3
call dbg.pthread_mutex_lock
jmp 0x454c90
mov ebx, pe_nt_image_headers32
jmp 0x454c6f
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 [0x45bd64]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ebx
jmp 0x454ce3
Function at 0x454d60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x454d90
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x454e60
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x454e90
cmp eax, 3
jne 0x454d7b
mov eax, dword [0x45bd64]
cmp eax, 0xffffffff
je 0x454d7b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x454d7b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x454ec0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x454dd9
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x454e0b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x454dfd
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call dbg.pthread_mutex_destroy
mov dword [esp], edi
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x454f86
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x454f7a
mov eax, dword [0x45bd64]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x454d7b
mov eax, dword [0x476cc4]
test eax, eax
je 0x454d7b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x476cc4], 0
sub esp, 4
jmp 0x454d7b
mov dword [esp + 4], dbg.SetThreadName_VEH
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x476cc4], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x454f30
test eax, eax
je 0x454eda
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 0x454ef7
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x24], 4
je 0x454f70
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x454e0b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call dbg.pthread_mutex_destroy
jmp 0x454e13
test eax, eax
je 0x454f70
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call dbg.pthread_mutex_destroy
mov dword [esp], edi
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x454f86
mov dword [ebx + 0x38], 0xffffffff
jmp 0x454d7b
mov dword [esp], esi
call dbg.pthread_mutex_destroy
jmp 0x454f4f
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x454e39
call sym._replace_spin_keys.part.0
lea esi, [esi]
nop