joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416df0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], str.msvcrt.dll
mov esi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 4
mov dword [esp + 4], str.rand_s
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x416e38
mov dword [esp + 0x20], esi
mov dword [sym._init_rand_s], eax
add esp, 0x14
pop ebx
pop esi
jmp eax
mov dword [esp], str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
call ebx
mov dword [0x4e2b64], eax
sub esp, 8
mov eax, sym._mingw_rand_s
jmp 0x416e23

Function at 0x4195a0
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 0x41967b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41964d
cmp eax, 0x6a
je 0x41966a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x419648
cmp eax, 0x6a
je 0x41966a
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 0x419660

Function at 0x419a00
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4e2bb4], 1
je 0x419ab8
push edi
mov eax, 0x4e2bb4
push esi
push ebx
sub esp, 0x10
call sym._enterOnceObject
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call sym._pthread_mutex_lock
mov edi, dword [0x4e2bb4]
test edi, edi
jne 0x419a70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4d40ac], eax
cmp eax, 0xffffffff
je 0x419ab9
mov dword [0x4e2bb4], 1
mov dword [esp], esi
call sym._pthread_mutex_unlock
test ebx, ebx
je 0x419aaa
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp sym._leaveOnceObject.part.0
cmp edi, 1
je 0x419a4e
mov dword [esp], 2
call dword [0x4d4098]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4e2bb4
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sym._fprintf
mov dword [esp], esi
call sym._pthread_mutex_unlock
test ebx, ebx
jne 0x419a5a
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sym._abort
nop
Function at 0x419ac0
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 0x419be8
mov ebx, eax
test eax, eax
je 0x419be8
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 sym._pthread_spin_destroy
cmp eax, 1
je 0x419bf4
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 0x419bf9
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 [0x4d40ac]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x419bf9
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
call sym._abort
nop

Function at 0x419c00
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 [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x419c28
add esp, 0x1c
ret
add esp, 0x1c
jmp sym.___pthread_self_lite.part.0
Function at 0x419d6a
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 sym.__fpreset
mov dword [esp], 0x4d40a4
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
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 sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], esi
call sym.__setjmp3
mov dword [esp], 0x4d40a4
test eax, eax
jne 0x419e91
call sym._pthread_mutex_unlock
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
test eax, eax
je 0x419e98
mov edx, dword [esi + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x4d40a4
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x419e20
call sym.__pthread_cleanup_dest.part.0
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x419e44
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 0x419eab
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov dword [esp], 0x4d40a4
call sym._pthread_mutex_unlock
test eax, eax
jne 0x419ea2
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edx
jmp 0x419e73
call sym._pthread_mutex_lock
jmp 0x419e20
mov ebx, pe_nt_image_headers32
jmp 0x419dff
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 sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x4d40ac]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ebx
jmp 0x419e73
Function at 0x419ef0
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 0x419f20
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x419ff0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x41a020
cmp eax, 3
jne 0x419f09
mov eax, dword [0x4d40ac]
cmp eax, 0xffffffff
je 0x419f09
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x419f09
test byte [eax + 0x20], 0x30
je 0x41a050
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x419f63
call sym.__pthread_cleanup_dest.part.0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x419f95
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 0x419f87
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 sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41a10c
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41a100
mov eax, dword [0x4d40ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x419f09
mov eax, dword [0x4e2b90]
test eax, eax
je 0x419f09
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x4e2b90], 0
sub esp, 4
jmp 0x419f09
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x4e2b90], eax
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41a0b0
test eax, eax
je 0x41a06a
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 0x41a087
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x24], 4
je 0x41a0f0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x419f95
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x419f8e
test eax, eax
je 0x41a0f0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41a10c
mov dword [ebx + 0x38], 0xffffffff
jmp 0x419f09
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x41a0d5
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x419fc9
call sym._replace_spin_keys.part.0
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x41a3b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x41a4d0
cmp eax, 1
je 0x41a404
mov eax, ebx
call sym._enterOnceObject
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call sym._pthread_mutex_lock
mov ebp, dword [ebx]
test ebp, ebp
je 0x41a410
cmp ebp, 1
jne 0x41a4a0
mov dword [esp], edi
call sym._pthread_mutex_unlock
test esi, esi
je 0x41a404
mov eax, esi
call sym._leaveOnceObject.part.0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], sym.__pthread_once_cleanup
mov dword [esp + 0x18], esi
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a510
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a4f8
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41a4e0
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41a3f1
mov dword [esp], 2
call dword [0x4d4098]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sym._fprintf
jmp 0x41a3f1
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41a488
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41a462
lea eax, [esp + 0x14]
mov dword [0], eax
ud2
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41a43c
mov eax, dword [class.std]
ud2

Function at 0x41a770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41a7e8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call sym._pthread_spin_lock
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41a7c4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41a7c4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call sym._pthread_spin_unlock
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.___pthread_self_lite.part.0
mov ebx, eax
jmp 0x41a79b
Function at 0x41a800
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41a920
lea edi, [ebx + 0x38]
mov dword [esp], edi
call sym._pthread_spin_lock
cmp esi, dword [ebx + 0x28]
jae 0x41a880
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call sym._pthread_spin_unlock
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym._realloc
test eax, eax
je 0x41a92c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sym._realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41a92c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x41a848
call sym.___pthread_self_lite.part.0
mov ebx, eax
jmp 0x41a835
mov dword [esp], edi
call sym._pthread_spin_unlock
mov eax, 0xc
jmp 0x41a870

Function at 0x41a9b0
Capabilities:
Get thread local storage value

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

Function at 0x41aa40
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41aa68
add eax, 0xc
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41aa5d
jmp 0x41aa60
Function at 0x41aaa0
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 0x41aac2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
jne 0x41aadc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41ab1d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41ab5d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41ab12
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41ab26
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call sym._push_pthread_mem
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41ab1d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41ab71
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41ab3e

Function at 0x41ab80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4e2bbc]
test eax, eax
jne 0x41ab90
xor eax, eax
ret
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41abd0
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41abc0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41abb4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41abb6
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41abad
jmp 0x41abb4

Function at 0x41abe0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ac20
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41ac10
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call sym.___pthread_self_lite.part.0
test eax, eax
jne 0x41abfd
add esp, 0x1c
ret
Function at 0x41ad20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym.__pthread_once_raw.constprop.0.isra.0
mov eax, dword [0x4d40ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41ad90
test byte [ebx + 0x20], 0xc
jne 0x41ad50
mov eax, dword [0x4e2bbc]
test eax, eax
jne 0x41ad60
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call sym._pthread_mutex_lock
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41ad82
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41ad82
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41ada1
mov dword [esp], esi
call sym._pthread_mutex_unlock
add esp, 0x14
pop ebx
pop esi
ret
call sym.___pthread_self_lite.part.0
mov ebx, eax
test eax, eax
jne 0x41ad41
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41adc1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call sym._pthread_mutex_unlock
call sym.__pthread_invoke_cancel
nop

Function at 0x420b00
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [ecx + 0x20]
mov esi, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._fread
mov edx, 0xffffffff
test eax, eax
jle 0x420b38
movzx edx, byte [esi + eax - 1]
mov dword [ebx + 0x24], edx
add esp, 0x14
pop ebx
pop esi
ret 8

Function at 0x420b50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._fwrite
add esp, 0x1c
ret 8
Function at 0x423578
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov byte [ebp - 8], al
movzx eax, byte [ebp - 8]
shr al, 4
movzx eax, al
movzx edx, byte [ebp - 8]
and edx, 0xf
shl eax, 4
add eax, edx
add eax, str.cw
movzx eax, byte [eax]
leave
ret 4

Function at 0x428a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x54
lea ebx, [esp + 0x40]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
movzx ebx, byte [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call sym.__ZNSt13__facet_shims11__money_getIcEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb1EEPKNSt6locale5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x428ae0
fld xword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
fstp xword [ecx]
add esp, 0x54
pop ebx
pop esi
ret 0x20
mov ebx, dword [esp + 0x78]
mov dword [ebx], ecx
add esp, 0x54
pop ebx
pop esi
ret 0x20

Function at 0x428af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x54
lea ebx, [esp + 0x40]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
movzx ebx, byte [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx + 8]
mov byte [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call sym.__ZNSt13__facet_shims11__money_getIcEESt19istreambuf_iteratorIT_St11char_traitsIS2_EESt17integral_constantIbLb0EEPKNSt6locale5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x428b70
fld xword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
fstp xword [ecx]
add esp, 0x54
pop ebx
pop esi
ret 0x20
mov ebx, dword [esp + 0x78]
mov dword [ebx], ecx
add esp, 0x54
pop ebx
pop esi
ret 0x20