joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53fda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
lea eax, [ebx + 0xd0]
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 0
mov dword [ebx + 0xd8], 0
mov dword [ebx + 0xdc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [ebx + 0x200]
mov dword [esp], eax
call dword [edx + 0x24]
call dbg._gcry_get_hw_features
test ah, 2
jne 0x53ffac
lea eax, [ebx + 0xe4]
mov dword [ebx + 0xe0], dbg.ghash_internal
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xd0]
mov dword [ebx + 0xf0], 0
mov dword [esp + 0x28], 3
mov dword [esp + 0x10], 4
mov dword [esp + 0x2c], ebx
bswap eax
mov dword [ebx + 0x164], eax
mov eax, dword [ebx + 0xd4]
bswap eax
mov dword [ebx + 0x168], eax
mov eax, dword [ebx + 0xd8]
bswap eax
mov dword [ebx + 0x16c], eax
mov eax, dword [ebx + 0xdc]
bswap eax
mov dword [ebx + 0x170], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov edx, ecx
shl ecx, 5
shl edx, 4
mov ebx, dword [eax + edx*2]
lea edi, [eax + edx]
lea esi, [eax + edx + 4]
mov dword [esp + 0x18], edi
mov ebp, esi
mov dword [edi], ebx
mov ebx, dword [eax + ecx + 4]
lea edi, [eax + edx + 8]
mov dword [esp + 0x1c], ebp
mov dword [esi], ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [eax + ecx + 8]
mov dword [edi], ebx
mov ecx, dword [eax + ecx + 0xc]
mov esi, dword [esi]
mov ebx, dword [ebp]
mov ebp, ecx
mov dword [esp + 0x20], esi
mov esi, dword [edi]
and ebp, 1
mov dword [esp + 0x24], ebx
mov ebx, 0xe1000000
cmove ebx, ebp
shr ecx, 1
sar dword [esp + 0x10], 1
mov ebp, ebx
mov ebx, esi
shr esi, 1
shl ebx, 0x1f
xor ecx, ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + edx + 0xc], ecx
mov edx, ebx
shr ebx, 1
shl edx, 0x1f
xor esi, edx
mov dword [edi], esi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, esi
shl edx, 0x1f
xor ebx, edx
mov edx, esi
shr edx, 1
mov dword [edi], ebx
mov edi, dword [esp + 0x18]
xor edx, ebp
sub dword [esp + 0x28], 1
mov dword [edi], edx
jne 0x53fe8a
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], 3
mov dword [esp + 0x10], 2
lea eax, [ebx + 0xf4]
mov dword [esp + 0x1c], eax
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
shl eax, 4
lea ebx, [esi + eax]
lea ebp, [esi + eax + 4]
lea edi, [esi + eax + 8]
lea esi, [esi + eax + 0xc]
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov ecx, dword [ebx]
xor ecx, dword [eax]
add eax, 0x10
add edx, 0x10
mov dword [edx], ecx
mov ecx, dword [ebp]
xor ecx, dword [eax - 0xc]
mov dword [edx + 4], ecx
mov ecx, dword [edi]
xor ecx, dword [eax - 8]
mov dword [edx + 8], ecx
mov ecx, dword [esi]
xor ecx, dword [eax - 4]
mov dword [edx + 0xc], ecx
cmp ebx, eax
jne 0x53ff70
shl dword [esp + 0x10], 1
sub dword [esp + 0x18], 1
jne 0x53ff50
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0xe0], dbg._gcry_ghash_intel_pclmul
mov dword [esp + 0x50], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg._gcry_ghash_setup_intel_pclmul
Function at 0x540560
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
cmp dword [esp + 0x18], 3
jbe 0x5405df
mov edi, dword [esp + 0x18]
mov ebp, ecx
lea ebx, [edi - 4]
shr ebx, 2
lea edi, [ebx*4 + 4]
mov dword [esp], edi
lea ebx, [eax + edi]
mov edi, edx
lea esi, [esi]
add edi, 4
add ebp, 4
mov esi, dword [edi - 4]
xor esi, dword [ebp - 4]
add eax, 4
cmp eax, ebx
mov dword [eax - 4], esi
jne 0x540590
mov eax, dword [esp]
and dword [esp + 0x18], 3
add edx, eax
add ecx, eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add esi, ebx
test eax, eax
je 0x5405d7
add edx, 1
add ecx, 1
movzx eax, byte [edx - 1]
xor al, byte [ecx - 1]
add ebx, 1
cmp ebx, esi
mov byte [ebx - 1], al
jne 0x5405c0
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
jmp 0x5405b2

Function at 0x5405f0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x54061a
push esi
push ebx
lea esi, [esi]
lea edi, [edi]
xor ebx, ebx
mov esi, dword [edx + ebx]
xor dword [eax + ebx], esi
add ebx, 4
cmp ebx, 0x10
jne 0x540602
add edx, 0x10
sub ecx, 1
jne 0x540600
pop ebx
pop esi
repz ret

Function at 0x5416a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], edx
mov edx, 1
mov dword [esp + 0xc], ebx
pop ebx
jmp dbg.ocb_crypt
Function at 0x5431b0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
xor ebx, ebx
mov esi, dword [edx + ebx]
xor esi, dword [ecx + ebx]
mov dword [eax + ebx], esi
add ebx, 4
cmp ebx, 0x10
jne 0x5431b4
pop ebx
pop esi
ret
Function at 0x5500e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x1e0]
lea ebx, [eax + 0xf0]
shl edx, 4
mov ecx, dword [eax + edx]
mov dword [eax + 0xf0], ecx
mov ecx, dword [eax + edx + 4]
mov dword [eax + 0xf4], ecx
mov ecx, dword [eax + edx + 8]
mov dword [eax + 0xf8], ecx
mov ecx, dword [eax + edx + 0xc]
mov dword [eax + 0xfc], ecx
movdqa xmm1, xmmword [eax + edx - 0x10]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x100], xmm1
movdqa xmm1, xmmword [eax + edx - 0x20]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x110], xmm1
movdqa xmm1, xmmword [eax + edx - 0x30]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x120], xmm1
movdqa xmm1, xmmword [eax + edx - 0x40]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x130], xmm1
movdqa xmm1, xmmword [eax + edx - 0x50]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x140], xmm1
movdqa xmm1, xmmword [eax + edx - 0x60]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x150], xmm1
movdqa xmm1, xmmword [eax + edx - 0x70]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x160], xmm1
movdqa xmm1, xmmword [eax + edx - 0x80]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x170], xmm1
movdqa xmm1, xmmword [eax + edx - 0x90]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x180], xmm1
cmp dword [eax + 0x1e0], 0xa
mov ecx, 0xa0
jle 0x550242
movdqa xmm1, xmmword [eax + edx - 0xa0]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x190], xmm1
movdqa xmm1, xmmword [eax + edx - 0xb0]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x1a0], xmm1
cmp dword [eax + 0x1e0], 0xc
mov ecx, 0xc0
jle 0x550242
movdqa xmm1, xmmword [eax + edx - 0xc0]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x1b0], xmm1
movdqa xmm1, xmmword [eax + edx - 0xd0]
aesimc xmm1, xmm1
movdqa xmmword [eax + 0x1c0], xmm1
mov ecx, 0xe0
mov edx, dword [eax]
mov dword [eax + ecx + 0xf0], edx
mov edx, dword [eax + 4]
mov dword [ebx + ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ebx + ecx + 0xc], eax
pxor xmm0, xmm0
pxor xmm1, xmm1
pop ebx
ret
Function at 0x5564f0
Capabilities:
Get session user name

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [esp + 0x1c]
lea eax, [esp + 0x1b]
mov dword [esp + 0x1c], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym.__gpgrt_malloc
test eax, eax
mov ebx, eax
je 0x55653a
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x556543
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
xor ebx, ebx
call sym.__gpgrt_free
jmp 0x55653a
Function at 0x55e1b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], 0
jmp dbg.do_gettext

Function at 0x55e1d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 4], 0
jmp dbg.do_gettext
Function at 0x55f1f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x5bffe4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x55f212
add esp, 0x18
mov eax, ebx
pop ebx
ret
mov dword [esp + 4], 4
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
sub esp, 8
test eax, eax
mov ebx, eax
je 0x55f252
mov dword [eax], 0
mov dword [esp + 4], eax
mov eax, dword [0x5bffe4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, ebx
add esp, 0x18
pop ebx
ret
call dbg._gpgrt_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x560400
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov edx, dword [edi]
test edx, edx
je 0x560480
call dbg._gpgrt_pre_syscall
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5604a0
test ebx, ebx
je 0x5604a0
xor ebp, ebp
jmp 0x560436
add ebp, esi
cmp ebx, ebp
jbe 0x56046d
mov eax, dword [edi]
mov edx, ebx
mov esi, 0x8000
sub edx, ebp
mov dword [esp + 8], 1
cmp edx, 0x8000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
cmovbe esi, edx
mov dword [esp + 4], esi
add eax, ebp
mov dword [esp], eax
call sym._fwrite
cmp eax, 1
je 0x560430
mov eax, dword [edi]
mov dword [esp], eax
call sym._fflush
call dbg._gpgrt_post_syscall
cmp ebp, ebx
jne 0x560490
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x560482
mov eax, dword [edi]
mov dword [esp], eax
call sym._fflush
call dbg._gpgrt_post_syscall
jmp 0x560480

Function at 0x5604c0
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x560530
mov eax, dword [esi]
test eax, eax
je 0x560512
call dbg._gpgrt_pre_syscall
mov eax, dword [esi]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._fread
mov ebx, eax
call dbg._gpgrt_post_syscall
test ebx, ebx
mov eax, ebx
je 0x560510
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [esi]
mov dword [esp], eax
call sym._ferror
test eax, eax
setne al
add esp, 0x14
movzx eax, al
neg eax
pop ebx
pop esi
ret
mov eax, 0xffffffff
jmp 0x560507

Function at 0x560b90
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
test esi, esi
je 0x560c01
cmp dword [edi], 0xffffffff
je 0x560bf0
call dbg._gpgrt_pre_syscall
jmp 0x560bbe
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x560bd7
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov eax, dword [edi]
mov dword [esp], eax
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
je 0x560bb3
call dbg._gpgrt_post_syscall
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg._gpgrt_yield
xor ebx, ebx
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0xffffffff
jmp 0x560bdc
Function at 0x5650f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._fwrite
cmp eax, 1
setne al
add esp, 0x1c
movzx eax, al
neg eax
ret
Function at 0x567890
Capabilities:
Create thread

Disassembly:
push edi
push esi
mov edi, eax
push ebx
sub esp, 0x30
mov dword [esp + 4], 0x2048
mov dword [esp], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0xc
call sym._calloc
test eax, eax
je 0x567a12
lea esi, [esp + 0x24]
mov dword [eax], edi
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call edi
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x34], eax
je 0x567a05
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x38], eax
je 0x5679c0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call edi
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x34]
sub esp, 0x10
test eax, eax
je 0x5679d3
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x5679c7
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x5679c7
lea edi, [ebx + 8]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], dbg.reader
mov dword [esp + 4], 0
mov dword [esp + 0x14], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
test eax, eax
mov dword [ebx + 4], eax
je 0x567a16
mov eax, ebx
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x5679e6
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x5679e6
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x5679f9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], ebx
call sym.__gpgrt_free
xor eax, eax
jmp 0x5679b0
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x567930
jmp 0x5679e6
xor eax, eax
jmp 0x5679b0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebx + 0x34]
sub esp, 4
test eax, eax
jne 0x5679c7
jmp 0x5679d3
Function at 0x567a30
Capabilities:
Create thread

Disassembly:
push edi
push esi
mov edi, eax
push ebx
sub esp, 0x30
mov dword [esp + 4], 0x203c
mov dword [esp], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0xc
call sym._calloc
test eax, eax
je 0x567bb2
lea esi, [esp + 0x24]
mov dword [eax], edi
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call edi
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x567ba5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], esi
call edi
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x30], eax
je 0x567b60
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call edi
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x2c]
sub esp, 0x10
test eax, eax
je 0x567b73
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x567b67
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x567b67
lea edi, [ebx + 8]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], dbg.writer
mov dword [esp + 4], 0
mov dword [esp + 0x14], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
test eax, eax
mov dword [ebx + 4], eax
je 0x567bb6
mov eax, ebx
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x567b86
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x567b86
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x567b99
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], ebx
call sym.__gpgrt_free
xor eax, eax
jmp 0x567b50
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x567ad0
jmp 0x567b86
xor eax, eax
jmp 0x567b50
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebx + 0x2c]
sub esp, 4
test eax, eax
jne 0x567b67
jmp 0x567b73
Function at 0x587bb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
test edx, edx
je 0x587bc5
jmp sym._crc32_little
xor eax, eax
ret
Function at 0x58b040
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x5c0070], eax
je 0x58b057
add esp, 0xc
ret
call sym._abort
lea esi, [esi]

Function at 0x58b460
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x58b485
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x58b487
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
repz ret
lea ebx, [esp + 0x15]
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
xor eax, eax
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], eax
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x58b4d8
jmp 0x58b4e6
cmp eax, 0x6a
je 0x58b4f0
add eax, 1
cmp byte [ebx + eax], 0
jne 0x58b4d3
cmp eax, 0x6a
je 0x58b4f0
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
nop
Function at 0x58b590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x743af8], 1
je 0x58b5a5
call sym.__pthread_once_raw.part.3.constprop.9
mov eax, dword [0x5c0070]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x58b5c2
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov ebx, eax
mov eax, dword [entry3]
test eax, eax
je 0x58b6c7
test ebx, ebx
je 0x58b6c7
mov dword [ebx + 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 + 0x18], eax
lea eax, [ebx + 0x38]
sub esp, 0x10
mov dword [ebx + 0x1c], 0xffffffff
call sym._replace_spin_keys.constprop.8
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x58b6ce
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x5c0070]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x58b6ce
mov eax, ebx
jmp 0x58b5ba
xor eax, eax
jmp 0x58b5ba
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x58b820
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 0x58b850
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x58b910
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x58b9d0
cmp eax, 3
jne 0x58b839
mov eax, dword [0x5c0070]
cmp eax, 0xffffffff
je 0x58b839
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x58b839
test byte [eax + 0x20], 0x30
je 0x58b940
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x58b9f2
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x58b8c4
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 0x58b8b6
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]
call sym._replace_spin_keys.constprop.8
mov edx, dword [ebx + 0xb0]
test edx, edx
je 0x58ba10
mov eax, dword [0x5c0070]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x743ad4]
test eax, eax
je 0x58b839
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x743ad4], 0
sub esp, 4
jmp 0x58b839
mov eax, dword [eax + 0x68]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x58b9a0
test eax, eax
je 0x58b95a
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
jne 0x58ba00
test byte [ebx + 0x24], 4
je 0x58b9b7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x58b8bd
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x58b8bd
test eax, eax
je 0x58b9b0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call dbg.pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.8
jmp 0x58b839
mov dword [esp + 4], dbg.SetThreadName_VEH
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x743ad4], eax
jmp 0x58b839
call sym.__pthread_cleanup_dest.part.6
jmp 0x58b892
call sym.__pthread_cleanup_dest.part.6
jmp 0x58b976
mov eax, ebx
call sym._push_pthread_mem.part.1
jmp 0x58b8e5
Function at 0x58ba2a
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 eax, dword [ecx]
mov dword [esp], 0x5c0068
mov esi, eax
mov dword [ebp - 0x1c], eax
lea ebx, [esi + 0x1c]
call dbg.pthread_mutex_lock
mov dword [esp], ebx
call dbg.pthread_mutex_lock
cmp dword [0x743af8], 1
je 0x58ba60
call sym.__pthread_once_raw.part.3.constprop.9
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x5c0070]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
push edi
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
call sym.__setjmp3
test eax, eax
je 0x58bb31
mov dword [esp], 0x5c0068
call dbg.pthread_mutex_lock
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 0x58bad3
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x58bb7b
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
jmp 0x58bb18
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
mov dword [esp], 0x5c0068
call dbg.pthread_mutex_unlock
test eax, eax
je 0x58bb0a
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [esp], 0x5c0068
call dbg.pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x58bbc6
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x5c0068
call dbg.pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x58baaf
call sym.__pthread_cleanup_dest.part.6
jmp 0x58baaf
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
test edi, edi
je 0x58bba9
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb0], 0
jne 0x58bba9
call sym._push_pthread_mem.part.1
mov eax, dword [0x5c0070]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x58bb18
mov ebx, pe_nt_image_headers32
jmp 0x58bb51