joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a60
Capabilities:
Get process image filename

Disassembly:
push ebp
mov eax, 0x114c
push edi
push esi
push ebx
call fcn.0041a2f0
sub esp, eax
mov dword [esp + 4], 0
mov ebp, dword [esp + 0x1160]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
mov ecx, 0x4a
sub esp, 8
mov ebx, eax
xor eax, eax
lea esi, [esp + 0x18]
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], 0x128
lea edi, [esp + 0x3c]
jmp 0x404ac7
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x404b90
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._strcmp
test eax, eax
jne 0x404ab0
mov esi, dword [esp + 0x20]
mov dword [esp], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
sub esp, 4
mov eax, dword [esp + 0x1164]
test eax, eax
je 0x404b80
mov eax, dword [esp + 0x1164]
mov byte [eax], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x404b80
lea esi, [esp + 0x140]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._GetProcessImageFileNameA_12
sub esp, 0xc
test eax, eax
je 0x404b78
mov edx, dword [esp + 0x1164]
mov eax, esi
call sym.DosPathToNtPath_char__char___clone_.part.0_
mov dword [esp], ebx
mov esi, eax
test eax, eax
je 0x404ba0
call edi
mov esi, 1
sub esp, 4
mov eax, esi
add esp, 0x114c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call edi
sub esp, 4
add esp, 0x114c
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x404adb
call edi
mov eax, esi
sub esp, 4
add esp, 0x114c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405aa0
Capabilities:
Enumerate processes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x140
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
cmp eax, 0xffffffff
je 0x405b59
lea esi, [esp + 0x18]
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp + 0x18], 0x128
call sym._Process32First_8
sub esp, 8
lea edi, [esp + 0x20]
test eax, eax
je 0x405b4d
nop
mov eax, dword [0x50a028]
test eax, eax
je 0x405b2a
mov edx, dword [esp + 0x20]
mov ecx, 0x50a024
jmp 0x405b11
mov ecx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x405b1d
cmp dword [eax + 0x10], edx
jae 0x405b08
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x405b11
cmp ecx, 0x50a024
je 0x405b2a
cmp edx, dword [ecx + 0x10]
jae 0x405b3a
mov dword [esp], edi
mov ecx, 0x50a020
call method.std::pair_std::_Rb_tree_iterator_unsigned_long___bool__std::_Rb_tree_unsigned_long__unsigned_long__std::_Identity_unsigned_long___std::less_unsigned_long___std::allocator_unsigned_long___._M_insert_unique_unsigned_long_const__unsigned_long_const_
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x405af0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esp, 0x140
pop ebx
pop esi
pop edi
ret

Function at 0x405b70
Capabilities:
Enumerate processes

Disassembly:
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x140
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
cmp eax, 0xffffffff
je 0x405c21
lea esi, [esp + 0x18]
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp + 0x18], 0x128
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x405c61
mov eax, dword [0x50a028]
test eax, eax
je 0x405bfa
mov edx, dword [esp + 0x20]
mov ecx, 0x50a024
jmp 0x405be1
mov ecx, eax
mov eax, dword [eax + 8]
test eax, eax
je 0x405bed
cmp dword [eax + 0x10], edx
jae 0x405bd8
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x405be1
cmp ecx, 0x50a024
je 0x405bfa
cmp edx, dword [ecx + 0x10]
jae 0x405c30
mov edi, dword [esp + 0x150]
mov ecx, 0x4a
lea eax, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [esp], eax
mov ecx, 0x50a020
mov edi, 1
call method.std::pair_std::_Rb_tree_iterator_unsigned_long___bool__std::_Rb_tree_unsigned_long__unsigned_long__std::_Identity_unsigned_long___std::less_unsigned_long___std::allocator_unsigned_long___._M_insert_unique_unsigned_long_const__unsigned_long_const_
sub esp, 4
add esp, 0x140
mov eax, edi
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x405bc0
mov dword [esp], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
sub esp, 4
add esp, 0x140
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
sub esp, 4
add esp, 0x140
pop ebx
pop esi
pop edi
ret
Function at 0x406020
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov dword [esp + 4], 0
mov ebp, dword [esp + 0x180]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
mov ebx, eax
sub esp, 8
xor eax, eax
cmp ebx, 0xffffffff
je 0x406171
lea edi, [esp + 0x38]
xor eax, eax
mov ecx, 0x4a
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x38], 0x128
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x406160
lea esi, [esp + 0x28]
lea edi, [esp + 0x5c]
jmp 0x4060b7
cmp edx, esi
je 0x40609c
mov dword [esp], edx
call sym.operator_delete_void_
lea eax, [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x406160
mov dword [esp + 0x20], esi
mov edx, edi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x4060bd
mov ecx, eax
mov byte [esp + 8], 0
shr ecx, 0x10
test eax, 0x8080
mov dword [esp], edi
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
mov ecx, eax
add cl, al
lea ecx, [esp + 0x20]
sbb edx, 3
mov dword [esp + 4], edx
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
mov eax, dword [ebp + 4]
sub esp, 0xc
mov edx, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
jne 0x406090
test eax, eax
je 0x406090
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call sym._memcmp
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x406090
mov dword [esp], 0x4f61b3
mov ecx, ebp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
jne 0x406180
mov edx, dword [esp + 0x20]
jmp 0x406090
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
sub esp, 4
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x4f61b5
mov ecx, ebp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
je 0x406156
mov dword [esp], 0x4f61b7
mov ecx, ebp
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
sub esp, 4
test eax, eax
je 0x406156
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4061ba
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x40609c
Function at 0x406200
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push ebx
sub esp, 0x434
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov ebx, dword [esp + 0x440]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x448]
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x444]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x406280
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov byte [esp + 8], 0
mov dword [esp + 4], 0x4f61b7
mov dword [esp], 0x4f61b7
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
mov eax, ebx
sub esp, 0xc
add esp, 0x434
pop ebx
pop esi
ret
lea eax, [esp + 0x2c]
lea esi, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44c]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], 0x400
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
je 0x4062f8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
sub esp, 4
mov dword [esp], 0x4f61b7
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov eax, ebx
sub esp, 4
add esp, 0x434
pop ebx
pop esi
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
sub esp, 4
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.0_
mov eax, ebx
sub esp, 4
add esp, 0x434
pop ebx
pop esi
ret
Function at 0x40ec70
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov dword [esp], str.Hide_main_window...
call sym.void_log_char__20___char_const_____20__
mov dword [esp + 4], 0x4f609b
mov dword [esp], 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
mov dword [0x50a074], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp], str.Main_window_is_hidden__You_can_use__Ctrl__Alt__C__to_wake_up_the_window_
call sym.void_log_char__75___char_const_____75__
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.CSafe
mov dword [esp + 4], 0x4f75ec
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x10
jmp 0x40ed0c
mov dword [esp], 0x40
call esi
sub esp, 4
mov dword [esp], 0x11
call ebx
sub esp, 4
test ax, ax
jns 0x40ed00
mov dword [esp], 0x12
call ebx
sub esp, 4
test ax, ax
jns 0x40ed00
mov dword [esp], 0x43
call ebx
sub esp, 4
test ax, ax
jns 0x40ed00
mov dword [esp], str.Wake_up_main_window...
call sym.void_log_char__23___char_const_____23__
mov eax, dword [0x50a074]
mov dword [esp + 4], 5
mov dword [esp], eax
call edi
sub esp, 8
call sym.MainUI__
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x50a3fc]
test esi, esi
jle 0x419800
mov eax, dword [0x50a400]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x419730
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4197af
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x419720
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x419827
mov eax, dword [0x50a400]
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 [0x50a400]
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 0x419807
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4197a8
sub eax, 4
and eax, 0xfffffffb
jne 0x4197b6
add dword [0x50a3fc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x50a400]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4197a8
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
xor esi, esi
jmp 0x41973a
mov eax, dword [0x50a400]
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 0x419ce0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x50a418
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x50a410]
sub esp, 4
test ebx, ebx
je 0x419d35
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 0x419d2e
test esi, esi
je 0x419d2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x419d10
mov dword [esp], 0x50a418
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41b780
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x41]
lea ecx, [ebx + 0x31]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.0041a2f0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x41b874
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x41b8c0
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call dbg.get_ptr_from_atom
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x41b8e6
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x41b8d8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x41b8fd
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call dbg.get_ptr_from_atom
mov ebx, eax
cmp esi, eax
je 0x41b923
mov dword [esp], esi
call sym._free
jmp 0x41b89a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41b89a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41b89a
Function at 0x4291b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x50ae54]
test ebx, ebx
je 0x4291e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x50ae54]
test eax, eax
je 0x429208
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae54], eax
mov ebx, eax
jmp 0x4291be
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae54], eax
jmp 0x4291cf

Function at 0x4296b0
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x4296e0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x4296e1
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
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
mov eax, 0x27
jne 0x429735
jmp 0x429743
cmp eax, 0x6a
je 0x42974d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x429730
cmp eax, 0x6a
je 0x42974d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
lea esi, [esi]
Function at 0x429760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x50ae58]
test eax, eax
je 0x4298c8
cmp dword [eax], 1
je 0x42977e
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x50ae54]
test eax, eax
je 0x4298f0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4297b0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x42979f
test esi, esi
je 0x42979f
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 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 [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
call sym._replace_spin_keys.constprop.0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 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], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x50ae54]
test eax, eax
je 0x429920
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae58], eax
jmp 0x429774
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae54], eax
jmp 0x42978b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae54], eax
jmp 0x42989e
Function at 0x42b3c0
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 0x42b3e2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x42b444
mov eax, dword [0x50ae54]
test eax, eax
je 0x42b4cb
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42b43b
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x42b49b
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x42b42e
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x42b458
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x14], 0
je 0x42b4c2
mov eax, dword [0x50ae54]
test eax, eax
je 0x42b4f1
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x42b43b
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42b4af
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
jne 0x42b47b
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x42b47b
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae54], eax
jmp 0x42b3f5
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x50ae54], eax
jmp 0x42b484