joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a7d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a751
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42a94d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42a94d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42a8fc
jg 0x42a82e
test eax, eax
je 0x42a8f2
push 1
push 0x1000
call fcn.0041c61f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42a854
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42a8e9
push 0x8000
push ebx
call fcn.004197ed
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42a880
jg 0x42a87b
cmp ecx, 0x1000
jb 0x42a880
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e05a
add esp, 0x10
cmp eax, 0xffffffff
je 0x42a8c5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42a87b
jl 0x42a8ac
test ecx, ecx
jne 0x42a86d
push dword [ebp - 0xc]
push ebx
call fcn.004197ed
push esi
call fcn.0041c67c
add esp, 0xc
xor edi, edi
jmp 0x42a95e
cmp byte [edi + 0x24], 0
je 0x42a8dc
cmp dword [edi + 0x20], 5
jne 0x42a8dc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42a8e7
mov edi, dword [edi + 0x18]
jmp 0x42a8e9
xor edi, edi
push esi
call fcn.0041c67c
pop ecx
jmp 0x42a95e
test ecx, ecx
jg 0x42a8be
jl 0x42a8fc
test eax, eax
jae 0x42a8be
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fbab
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42a91f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a8be
jmp 0x42a956
push ebx
call fcn.0042388a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a8be
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42a95e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a95b
mov edi, dword [edi + 0x18]
jmp 0x42a95e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041fbab
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b48d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b48d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4039c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4039d0
pop dword [ebp - 0x24]
mov eax, 0xcaba6e42
add eax, 0x3585cb8e
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x69ea0a41
sub dword [ebp - 0x34], 0x1b97c4f6
mov dword [ebp - 0x30], 0xc71e777a
sub dword [ebp - 0x30], 0x94eb2b35
mov dword [ebp - 0x2c], 0xf4578590
sub dword [ebp - 0x2c], 0xa80b4162
mov dword [ebp - 0x28], 0x2e4fde79
sub dword [ebp - 0x28], 0x2e4fde79
lea eax, [ebp - 0x34]
push eax
mov eax, 0x150a25dd
add eax, 0xeb361aa7
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xcab9fdec
add dword [ebp - 0x34], 0xa9b86b6a
mov dword [ebp - 0x30], 0xa5d4de4d
sub dword [ebp - 0x30], 0x64687cd8
mov dword [ebp - 0x2c], 0xd1c9b459
sub dword [ebp - 0x2c], 0x6e5a47ed
mov dword [ebp - 0x28], 0x38051102
add dword [ebp - 0x28], 0xc7faeefe
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x14f505be
sub eax, 0x14b4c536
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3b264
push 0
call eax
mov ecx, 0x6f25545a
add ecx, 0x90db0566
xor edx, edx
add edx, eax
mov ebx, 0x528a1a58
add ebx, 0xadb66da8
add ebx, dword [ebp - 0x24]
mov edi, 0x138ebcac
add edi, 0x66ca2235
add dword [ebp - 0x1c], esi
mov esi, dword [ebx]
add dword [ebp - 4], 0x473d4585
sub esi, edi
xor dword [ebp - 0xc], 0x8f886f61
mov dword [edx], esi
xor dword [ebp - 0x18], 0x4d2b97c6
add edx, 0xcefee0b2
add edx, 0x31011f52
add ebx, 4
loop 0x403af4
add eax, 0x9529a4d6
sub eax, 0x95284b03
mov ebx, eax
add eax, 0xbeeb7751
sub eax, 0xbeeb774c
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40611c
pop dword [ebp - 0xc]
mov eax, 0xc42ff1be
add eax, 0x3c106f5e
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xad55c2a5
add dword [ebp - 0x1c], 0xa0fc82a6
mov dword [ebp - 0x18], 0xb6d70ce4
sub dword [ebp - 0x18], 0x84a3c09f
mov dword [ebp - 0x14], 0x61c5230e
add dword [ebp - 0x14], 0xea872120
mov dword [ebp - 0x10], 0xa39dbc7d
sub dword [ebp - 0x10], 0xa39dbc7d
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xef55eb2d
sub dword [ebp - 0x1c], 0x7ae381d7
mov dword [ebp - 0x18], 0x65d7ddf
add dword [ebp - 0x18], 0x3b0ee396
mov dword [ebp - 0x14], 0xa8a89d81
add dword [ebp - 0x14], 0xbac6ceeb
mov dword [ebp - 0x10], 0x305ea884
sub dword [ebp - 0x10], 0x305ea884
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xc0372a29
sub eax, 0xbff6b929
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x387db
push 0
call eax
mov ecx, 0x2cfcd6b2
sub ecx, 0x2cfc872a
xor edi, edi
add edi, eax
mov edx, 0xf2da853a
sub edx, 0xf299853a
add edx, dword [ebp - 0xc]
mov esi, 0x58fb3354
add esi, 0xf20ddb5e
xor dword [ebp - 4], 0xdfed2abc
mov ebx, dword [edx]
xor dword [ebp - 4], edi
sub ebx, esi
xor dword [ebp - 8], 0x24e29eac
mov dword [edi], ebx
sub dword [ebp - 4], 0xd2d3e9fa
add edi, 0x4799a58a
sub edi, 0x4799a586
add edx, 0x71d9ca4e
sub edx, 0x71d9ca4a
loop 0x40623b
add eax, 0x87dca171
sub eax, 0x87db707e
mov ebx, eax
add eax, 0xa66564ed
add eax, 0x599a9b18
mov ecx, 0xfc4247b6
add ecx, 0x3fdb84a
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040610d
jmp 0x406676

Function at 0x103a9c60
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a9c6a
pushal
call 0x103a9c70
pop ebp
sub ebp, 0x10
sub ebp, 0x3a9c60
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a9c94
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a9c9d
mov eax, 0x3a9c60
add eax, ebp
add eax, 0x63
mov ecx, 0x60a
add byte [ecx + 0x60a], bh
mov edx, 0xb0b0e5dc
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a9cb4
jmp 0x103a9cc7
push edi
adc dword [edi + 0x55], edx
loopne 0x103a9ca9
invalid
Function at 0x402228
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
xor ebx, ebx
mov esi, esi
mov eax, edx
xor ecx, ecx
and eax, 1
test al, al
je 0x402254
nop
lea esi, [esi]
shr edx, 1
inc ecx
mov eax, edx
and eax, 1
test al, al
jne 0x402248
mov dword [esi + ebx*4], ecx
inc ebx
test edx, edx
je 0x40227b
mov al, dl
xor ecx, ecx
xor al, 1
and al, 1
test al, al
je 0x402275
shr edx, 1
inc ecx
mov al, dl
xor al, 1
and al, 1
test al, al
jne 0x402268
mov dword [esi + ebx*4], ecx
inc ebx
jmp 0x402238
mov edx, 0x10
sub edx, ecx
mov dword [esi + ebx*4], edx
inc ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4e3b9c]
test esi, esi
jle 0x4130e0
mov eax, dword [0x4e3ba0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x413010
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x41308f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x413000
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x413107
mov eax, dword [0x4e3ba0]
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 [0x4e3ba0]
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 0x4130e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x413088
sub eax, 4
and eax, 0xfffffffb
jne 0x413096
add dword [0x4e3b9c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4e3ba0]
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 0x413088
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 0x41301a
mov eax, dword [0x4e3ba0]
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 0x4135c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e3bb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e3bb0]
sub esp, 4
test ebx, ebx
je 0x413615
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 0x41360e
test esi, esi
je 0x41360e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4135f0
mov dword [esp], 0x4e3bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x414f10
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.00413bd0
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 0x415004
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x415050
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 0x415076
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x415068
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x41508d
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 0x4150b3
mov dword [esp], esi
call sym._free
jmp 0x41502a
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 0x41502a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41502a
Function at 0x422a50
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4e45f4]
test ebx, ebx
je 0x422a80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4e45f4]
test eax, eax
je 0x422aa8
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 [0x4e45f4], eax
mov ebx, eax
jmp 0x422a5e
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 [0x4e45f4], eax
jmp 0x422a6f

Function at 0x422f50
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x422f80
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 0x422f81
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 0x422fd5
jmp 0x422fe3
cmp eax, 0x6a
je 0x422fed
add eax, 1
cmp byte [ebx + eax], 0
jne 0x422fd0
cmp eax, 0x6a
je 0x422fed
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 0x423000
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 [0x4e45f8]
test eax, eax
je 0x423168
cmp dword [eax], 1
je 0x42301e
call sym.__pthread_once_raw.part.0.constprop.0
mov eax, dword [0x4e45f4]
test eax, eax
je 0x423190
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 0x423050
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 0x42303f
test esi, esi
je 0x42303f
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 [0x4e45f4]
test eax, eax
je 0x4231c0
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 [0x4e45f8], eax
jmp 0x423014
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 [0x4e45f4], eax
jmp 0x42302b
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 [0x4e45f4], eax
jmp 0x42313e
Function at 0x424c60
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 0x424c82
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x424ce4
mov eax, dword [0x4e45f4]
test eax, eax
je 0x424d6b
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 0x424cdb
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x424d3b
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x424cce
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x424cf8
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 0x424d62
mov eax, dword [0x4e45f4]
test eax, eax
je 0x424d91
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 0x424cdb
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x424d4f
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 0x424d1b
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x424d1b
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 [0x4e45f4], eax
jmp 0x424c95
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 [0x4e45f4], eax
jmp 0x424d24