joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e3e
Capabilities:
Check mutex on windows
Create mailslot
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
xor esi, esi
cmp dword [0x463bfb4], 0x598
push edi
jne 0x404e69
push esi
push esi
call fcn.00405070
pop ecx
pop ecx
call fcn.004050de
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [esp + 0xc], esi
cmp dword [0x463bfb4], 0x57c
jne 0x404ee3
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
lea eax, [esp + 0x18]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCPInfoExW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMailslotW]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
xor eax, eax
mov word [esp + 0x10], ax
lea edi, [esp + 0x12]
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteConsoleOutputCharacterA]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeaps]
push esi
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [esp + 0xc], 0xa23d8
jne 0x404ef9
push 0x402c48
call ebx
mov dword [0x463bfa0], eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xa4808
jl 0x404e73
mov eax, dword [0x429014]
add eax, 0xb2d3b
push 0x463bfb8
mov dword [0x463bfb4], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 0x14f7
jne 0x404f77
cmp dword [0x463bfb4], 0x18
jne 0x404f5b
push esi
call sub.KERNEL32.DLL_GetSystemPowerStatus
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
call dword [sym.imp.KERNEL32.DLL_GetOEMCP]
cmp dword [0x463bfb4], 0x6ad
jne 0x404f6e
push esi
call dword [sym.imp.KERNEL32.DLL_HeapLock]
push esi
push esi
call fcn.00405030
pop ecx
pop ecx
call fcn.00403712
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409138
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4254c0]
jne 0x409142
repz ret
jmp fcn.0040cfca
Function at 0x40bbb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405cc5
and dword [ebp - 4], 0
cmp dword [0x42a7cc], 0
mov ebx, eax
jne 0x40bc61
push 0x401a84
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bd12
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x401a78
push edi
call esi
test eax, eax
je 0x40bd12
push eax
call fcn.00405c53
mov dword [esp], 0x401a68
push edi
mov dword [0x42a7cc], eax
call esi
push eax
call fcn.00405c53
mov dword [esp], 0x401a54
push edi
mov dword [0x42a7d0], eax
call esi
push eax
call fcn.00405c53
mov dword [esp], 0x401a38
push edi
mov dword [0x42a7d4], eax
call esi
push eax
call fcn.00405c53
pop ecx
mov dword [0x42a7dc], eax
test eax, eax
je 0x40bc61
push 0x401a20
push edi
call esi
push eax
call fcn.00405c53
pop ecx
mov dword [0x42a7d8], eax
mov eax, dword [0x42a7d8]
cmp eax, ebx
je 0x40bcb9
cmp dword [0x42a7dc], ebx
je 0x40bcb9
push eax
call fcn.00405cce
push dword [0x42a7dc]
mov esi, eax
call fcn.00405cce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bcb9
test edi, edi
je 0x40bcb9
call esi
test eax, eax
je 0x40bcb0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bcb0
test byte [ebp - 0xc], 1
jne 0x40bcb9
or dword [ebp + 0x10], 0x200000
jmp 0x40bcf2
mov eax, dword [0x42a7d0]
cmp eax, ebx
je 0x40bcf2
push eax
call fcn.00405cce
pop ecx
test eax, eax
je 0x40bcf2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bcf2
mov eax, dword [0x42a7d4]
cmp eax, ebx
je 0x40bcf2
push eax
call fcn.00405cce
pop ecx
test eax, eax
je 0x40bcf2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a7cc]
call fcn.00405cce
pop ecx
test eax, eax
je 0x40bd12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bd14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422254], 0
push esi
jne 0x405f39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f13
mov dword [ecx*4 + 0x422250], eax
inc ecx
cmp ecx, 0x100
jl 0x405f0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422250]
xor eax, esi
inc ecx
dec edx
jne 0x405f4c
pop edi
not eax
pop esi
ret 0xc

Function at 0x412b48
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x412bdf
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x412bf8
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412be6
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41f364
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41f3c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x41f3ae
push 3
push 0x41f3d0
push 0x41f3d0
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41f3d4
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f3cb
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret
Function at 0x424900
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp], edi
call sym._lseek64
test edx, edx
js 0x424990
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ebx
xor ebp, ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sym._backtrace_alloc
mov dword [esi + 4], eax
test eax, eax
je 0x424982
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._read
test eax, eax
js 0x4249f2
mov ebp, 1
cmp eax, ebx
jb 0x4249c0
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
xor ebp, ebp
mov eax, dword [eax]
mov dword [esp + 4], str.lseek
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [esp + 0x44]
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0
xor ebp, ebp
mov dword [esp + 4], str.file_too_short
mov dword [esp], eax
call dword [esp + 0x44]
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._free
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], str.read
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [esp + 0x44]
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._free
jmp 0x424982
Function at 0x429720
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x2089f80]
test esi, esi
jle 0x429830
mov edi, dword [0x2089f84]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x429754
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4297d5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x429740
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x429857
mov eax, dword [0x2089f84]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x2089f84]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x429837
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4297ce
sub eax, 4
and eax, 0xfffffffb
jne 0x4297e0
add dword [0x2089f80], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x2089f84]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
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 0x4297ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x42975e
mov eax, dword [0x2089f84]
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 sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x429c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x2089f98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x2089f90]
sub esp, 4
test ebx, ebx
je 0x429ce5
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 0x429cde
test esi, esi
je 0x429cde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x429cc0
mov dword [esp], 0x2089f98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x442c00
Capabilities:
Allocate thread local storage

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

Function at 0x443110
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x443140
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 0x443142
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
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 0x443195
jmp 0x4431b2
cmp eax, 0x6a
je 0x4431a3
add eax, 1
cmp byte [ebx + eax], 0
jne 0x443190
cmp eax, 0x6a
jne 0x4431b2
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
jmp 0x4431a3
Function at 0x443250
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 [0x208a9c8], 1
je 0x443265
call sym.__pthread_once_raw.part.5.constprop.11
mov eax, dword [0x4674a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x443290
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 0x44327c
test esi, esi
je 0x44327c
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 + 0x18], eax
lea eax, [esi + 0x38]
sub esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
call sym._replace_spin_keys.constprop.10
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
lea edx, [esi + 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 0x443392
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
mov dword [esi + 0x68], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4674a8]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x443392
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._abort
mov esi, esi
lea edi, [edi]
Function at 0x4434d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x443500
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4435a1
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4435d0
cmp eax, 3
jne 0x4434ea
mov eax, dword [0x4674a8]
cmp eax, 0xffffffff
je 0x4434ea
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4434ea
test byte [eax + 0x20], 0x30
je 0x4435f2
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4436f4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x443574
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 0x443566
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]
call sym._replace_spin_keys.constprop.10
mov esi, dword [ebx + 0xb0]
test esi, esi
jne 0x443679
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x443679
mov eax, dword [0x208a9a4]
test eax, eax
je 0x4434ea
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x208a9a4], 0
sub esp, 4
jmp 0x4434ea
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x208a9a4], eax
jmp 0x4434ea
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4436a0
test eax, eax
je 0x443610
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 0x4436d0
test byte [ebx + 0x24], 4
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
je 0x4436e0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x443655
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
mov ecx, dword [ebx + 0xb0]
test ecx, ecx
je 0x443595
mov eax, dword [0x4674a8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x4434ea
test eax, eax
je 0x4436b0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
jmp 0x4434ea
call sym.__pthread_cleanup_dest.part.8
jmp 0x44362c
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
jmp 0x4434ea
call sym.__pthread_cleanup_dest.part.8
jmp 0x443542
Function at 0x44370a
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], 0x4674a0
mov esi, eax
mov dword [ebp - 0x1c], eax
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
cmp dword [0x208a9c8], 1
je 0x443740
call sym.__pthread_once_raw.part.5.constprop.11
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x4674a8]
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 sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
je 0x443813
mov dword [esp], 0x4674a0
call sym._pthread_mutex_lock
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 0x4437b3
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 0x44385d
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 ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4437fa
mov dword [esp], 0
call ebx
push eax
mov dword [esp], 0x4674a0
call sym._pthread_mutex_unlock
test eax, eax
je 0x4437f0
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov dword [esp], 0x4674a0
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x4438a8
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x4674a0
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x44378f
call sym.__pthread_cleanup_dest.part.8
jmp 0x44378f
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
test edi, edi
je 0x44388b
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb0], 0
jne 0x44388b
call sym._push_pthread_mem.part.2
mov eax, dword [0x4674a8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x4437e8
mov ebx, pe_nt_image_headers32
jmp 0x443833
Function at 0x444070
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 ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4440f2
test byte [ebx + 0x20], 0x30
jne 0x4440a6
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [0x4674a8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
push edx
mov ebx, eax
je 0x4440e9
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x444136
test eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
je 0x4440dc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x4440f9
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.8
jmp 0x44408d
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 0x44415d
mov eax, dword [0x4674a8]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x4440e9
test eax, eax
mov dword [ebx], 0xdeadbeef
je 0x44414a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb0], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x44411c
mov eax, ebx
call sym._push_pthread_mem.part.2
jmp 0x44411c
Function at 0x449160
Capabilities:
Delete file

Disassembly:
push edi
mov edi, 2
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
call sym.__gfortrani_library_start
mov eax, dword [ebx]
test al, 0x80
jne 0x4491e1
test al, 3
je 0x449190
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.__gfortrani_find_unit
mov esi, eax
test eax, eax
je 0x449181
mov dword [esp], eax
call sym.__gfortrani_close_share
test eax, eax
js 0x449250
cmp dword [esi + 0x48], 3
je 0x449210
test edi, edi
jne 0x4491d2
mov eax, dword [esi + 0x74]
test eax, eax
je 0x449215
mov dword [esp + 4], str.STATUS_set_to_DELETE_on_CLOSE_but_file_protected_by_READONLY_specifier
mov dword [esp], ebx
call sym.__gfortrani_generate_warning
mov dword [esp + 0x30], esi
add esp, 0x20
pop ebx
pop esi
pop edi
jmp sym.__gfortrani_close_unit
mov dword [esp + 0x10], str.Bad_STATUS_parameter_in_CLOSE_statement
mov dword [esp + 0xc], 0x4743e4
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.__gfortrani_find_option
mov edi, eax
mov eax, dword [ebx]
jmp 0x44917d
cmp edi, 1
je 0x449270
mov eax, dword [esi + 0xd8]
mov dword [esp], eax
call sym._strdup
mov dword [esp], esi
mov ebx, eax
call sym.__gfortrani_close_unit
test ebx, ebx
je 0x449181
mov dword [esp], ebx
call sym._remove
mov dword [esp + 0x30], ebx
add esp, 0x20
pop ebx
pop esi
pop edi
jmp sym._free
mov dword [esp + 8], str.Problem_in_CLOSE
mov dword [esp + 4], 0x1388
mov dword [esp], ebx
call sym.__gfortran_generate_error
jmp 0x4491b1
mov dword [esp + 8], str.Cant_KEEP_a_scratch_file_on_CLOSE
mov dword [esp + 4], 0x138a
mov dword [esp], ebx
call sym.__gfortran_generate_error
jmp 0x449215