joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409798
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
push edi
push str._Windows_Subsystem__Fixing__s_n
call fcn.00409575
push 0x4433c8
push edi
call fcn.004194a6
add esp, 0x10
mov esi, eax
test esi, esi
mov byte [ebp - 4], 0x50
mov byte [ebp - 3], 0x45
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
push edi
jne 0x4097e6
push str._Windows_Subsystem__Could_not_open_file__s_n
call fcn.00409575
pop ecx
pop ecx
push 1
call fcn.0041907e
push str._Windows_Subsystem__Opened__s_n
call fcn.00409575
pop ecx
xor ebx, ebx
pop ecx
xor edi, edi
push esi
call fcn.0041af2f
pop ecx
push esi
mov dword [ebp - 8], eax
inc ebx
call fcn.0041bb4e
test eax, eax
pop ecx
jne 0x4098b9
mov al, byte [ebp - 8]
cmp al, byte [ebp + edi - 4]
jne 0x40981c
inc edi
jmp 0x40981e
xor edi, edi
cmp edi, 4
jne 0x4097f6
cmp ebx, 0xffffffff
mov dword [0x454e54], ebx
je 0x4097df
lea edi, [ebx + 0x58]
push edi
push 0x58
push ebx
push str._Windows_Subsystem__Found_marker_OK_at__d___d___d__n
call fcn.00409575
xor ebx, ebx
push ebx
push edi
push esi
call fcn.0041c4c0
add esp, 0x1c
push edi
push str._Windows_Subsystem__Skipped_to_relevant_spot__d_n
call fcn.00409575
push esi
call fcn.0041af2f
add esp, 0xc
push eax
push str._Windows_Subsystem__Was__02X_n
call fcn.00409575
push ebx
push edi
push esi
call fcn.0041c4c0
add esp, 0x14
push esi
push 2
call fcn.0041bff7
push esi
call fcn.00419346
add esp, 0xc
push ebx
push edi
push esi
call fcn.0041c4c0
add esp, 0xc
push esi
call fcn.0041af2f
pop ecx
push eax
push str._Windows_Subsystem__Now__02X_n
call fcn.00409575
push esi
call fcn.00419346
add esp, 0xc
push esi
call fcn.0041aeb3
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push str.SS_edit___PE_sig
push str.Could_not_find_marker:__s_n
jmp 0x4097d8

Function at 0x4099a8
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x445504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push str.perm_all
push esi
call fcn.00419940
test eax, eax
pop ecx
pop ecx
jne 0x409a47
push str.Permanent_install_for_all_users_n
call fcn.00409575
pop ecx
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409a0c
cmp dword [ebp - 0x9c], 5
jbe 0x409a0c
push str.PROGRAMDATA
call fcn.0041adbd
pop ecx
jmp 0x409a6f
push str.ALLUSERSPROFILE
call fcn.0041adbd
mov edi, eax
mov dword [esp], 0x1388
call fcn.00418210
pop ecx
mov esi, eax
push edi
push esi
mov byte [esi], 0
call fcn.00418440
push str.Application_Data
call fcn.00409498
add esp, 0xc
push esi
call fcn.00409479
pop ecx
jmp 0x409a71
push str.perm_user
push esi
call fcn.00419940
test eax, eax
pop ecx
pop ecx
jne 0x409a5f
push str.Permanent_install_for_current_user_n
jmp 0x409a64
push str.Temporary_install_n
call fcn.00409575
pop ecx
call fcn.004092b3
mov esi, eax
test esi, esi
jne 0x409a87
push str.ERROR:_Unable_to_get_shared_dir_
call fcn.00409575
pop ecx
push 1
call fcn.0041907e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418124
leave
ret
Function at 0x40b980
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40b9a0
push 0xd0
push str.._srchashes_sha2_sha256.c
push 0x4364a8
call fcn.0040db00
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0x6a09e667
mov dword [esi + 0x284], 0xbb67ae85
mov dword [esi + 0x288], 0x3c6ef372
mov dword [esi + 0x28c], 0xa54ff53a
mov dword [esi + 0x290], 0x510e527f
mov dword [esi + 0x294], 0x9b05688c
mov dword [esi + 0x298], 0x1f83d9ab
mov dword [esi + 0x29c], 0x5be0cd19
xor eax, eax
pop esi
ret

Function at 0x40bf20
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40bf3d
push 0x2a
push str.c:users_simplehelpworkspace_runner_nativelibtomlibtomcrypt_srchashes_sha2_sha224.c
push 0x4364a8
call fcn.0040db00
add esp, 0xc
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x278], 0
mov dword [esi + 0x27c], 0
mov dword [esi + 0x280], 0xc1059ed8
mov dword [esi + 0x284], 0x367cd507
mov dword [esi + 0x288], 0x3070dd17
mov dword [esi + 0x28c], 0xf70e5939
mov dword [esi + 0x290], 0xffc00b31
mov dword [esi + 0x294], 0x68581511
mov dword [esi + 0x298], 0x64f98fa7
mov dword [esi + 0x29c], 0xbefa4fa4
xor eax, eax
pop esi
ret
Function at 0x418124
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445504]
jne 0x41812e
repz ret
jmp fcn.0041d1a5

Function at 0x41c1de
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41c20b
call fcn.0041864c
mov dword [eax], esi
call fcn.00418639
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041efff
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41c1e7
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c23a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041865f
pop ecx
call fcn.00418639
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41c261
test al, 1
je 0x41c261
test byte [esp + 0xc], 2
je 0x41c261
call fcn.0041864c
mov dword [eax], 5
call fcn.00418639
mov dword [eax], 0xd
jmp 0x41c231
xor eax, eax
pop esi
ret
Function at 0x425e82
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041f086
xor ebx, ebx
cmp dword [0x4489e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x425f57
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x425ec2
xor eax, eax
jmp 0x42601b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x425ebb
push eax
call fcn.0041f023
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4489e8], eax
call esi
push eax
call fcn.0041f023
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4489ec], eax
call esi
push eax
call fcn.0041f023
mov dword [0x4489f0], eax
lea eax, [ebp - 8]
push eax
call fcn.00418eab
test eax, eax
pop ecx
pop ecx
je 0x425f25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ef03
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x425f57
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041f023
cmp eax, ebx
pop ecx
mov dword [0x4489f8], eax
je 0x425f57
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f023
pop ecx
mov dword [0x4489f4], eax
mov eax, dword [0x4489f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x425fd0
cmp dword [0x4489f8], esi
je 0x425fd0
push eax
call fcn.0041f08f
pop ecx
call eax
cmp eax, ebx
je 0x425f9d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4489f8]
call fcn.0041f08f
pop ecx
call eax
test eax, eax
je 0x425f9d
test byte [ebp - 0x18], 1
jne 0x425fd0
lea eax, [ebp - 0xc]
push eax
call fcn.00418ee2
test eax, eax
pop ecx
je 0x425fb8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ef03
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x425fc7
or dword [ebp + 0x10], 0x200000
jmp 0x426001
or dword [ebp + 0x10], 0x40000
jmp 0x426001
mov eax, dword [0x4489ec]
cmp eax, esi
je 0x426001
push eax
call fcn.0041f08f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x426001
mov eax, dword [0x4489f0]
cmp eax, esi
je 0x426001
push dword [ebp - 4]
push eax
call fcn.0041f08f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4489e8]
call fcn.0041f08f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
not eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 8
jbe 0x432a1f
test bl, 7
je 0x432989
nop
movzx ecx, byte [ebx]
dec esi
movzx edx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x438038]
test bl, 7
jne 0x432970
mov edi, esi
and esi, 7
and edi, 0xfffffff8
add edi, ebx
cmp ebx, edi
jae 0x432a1f
nop dword [eax + eax]
xor eax, dword [ebx]
add ebx, 4
mov dword [ebp + 0x10], ebx
add dword [ebp + 0x10], 4
mov ebx, dword [ebx]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x438438]
xor edx, dword [ecx*4 + 0x438838]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x439438]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x439838]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x438038]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x439038]
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
xor edx, dword [ecx*4 + 0x438c38]
xor edx, dword [eax*4 + 0x439c38]
mov eax, edx
cmp ebx, edi
jb 0x4329a0
test esi, esi
je 0x432a3d
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x438038]
sub esi, 1
jne 0x432a23
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x432a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
not eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
not esi
cmp edi, 4
jbe 0x432b4a
mov dword [ebp + 0x14], ebx
test bl, 3
je 0x432aa7
nop word [eax + eax]
movzx ecx, byte [ebx]
dec edi
movzx edx, al
inc ebx
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x43a038]
xor esi, dword [edx*8 + 0x43a03c]
test bl, 3
jne 0x432a80
mov dword [ebp + 0x14], ebx
mov edx, edi
mov dword [ebp - 8], 0
and edx, 0xfffffffc
mov dword [ebp - 4], 0
and edi, 3
mov dword [ebp + 0xc], edi
lea ecx, [edx + ebx]
add edx, 3
shr edx, 2
cmp ebx, ecx
cmova edx, dword [ebp - 8]
mov dword [ebp - 8], edx
test edx, edx
je 0x432b4a
mov edi, edx
mov ebx, dword [ebx]
xor ebx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*8 + 0x43a838]
mov edx, dword [edx*8 + 0x43a83c]
xor eax, dword [ecx*8 + 0x43b038]
xor edx, dword [ecx*8 + 0x43b03c]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*8 + 0x43a038]
xor edx, dword [ecx*8 + 0x43a03c]
movzx ecx, bl
mov ebx, dword [ebp + 0x14]
add ebx, 4
mov dword [ebp + 0x14], ebx
xor eax, dword [ecx*8 + 0x43b838]
xor edx, dword [ecx*8 + 0x43b83c]
xor eax, esi
mov ecx, dword [ebp - 4]
xor edx, 0
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
cmp ecx, edi
jb 0x432ad8
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x432b75
nop
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
movzx edx, al
shrd eax, esi, 8
xor edx, ecx
shr esi, 8
xor eax, dword [edx*8 + 0x43a038]
xor esi, dword [edx*8 + 0x43a03c]
sub edi, 1
jne 0x432b50
not esi
not eax
pop edi
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d290
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x40d2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x493054]
test esi, esi
jle 0x40d3dd
mov edi, dword [0x493058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d324
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d3d6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d310
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d41a
lea ebx, [esi + esi*2]
mov esi, dword [0x493058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x493058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d3fa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d3cf
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d3cf
mov eax, dword [esp + 0x20]
add ebx, dword [0x493058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d3e4
add dword [0x493054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d32e
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
mov eax, dword [0x493058]
mov eax, dword [eax + ebx + 4]
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]
Function at 0x40d8e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x493408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x493400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40d935
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 0x40d92e
test esi, esi
je 0x40d92e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d910
mov dword [esp], 0x493408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40db50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40db88
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40db7e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40db8a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40db70
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40efc0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040de60
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x40f0af
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x40f153
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x40f0ea
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f0e2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f150
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x40f16a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
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]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x40f124
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 0x40f124
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f124
Function at 0x41aa10
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x493e40]
test ebx, ebx
je 0x41aa40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x493e40]
test eax, eax
je 0x41aa65
cmp dword [eax], 0xffffffff
je 0x41aa88
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 ebx, eax
mov dword [0x493e40], eax
jmp 0x41aa1e
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 [0x493e40], eax
jmp 0x41aa2f
call sym._abort
lea esi, [esi]
Function at 0x41af20
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 [0x493e44]
test eax, eax
je 0x41b074
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x493e40]
test eax, eax
je 0x41b0a0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41af60
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41b0ec
mov eax, dword [entry3]
test eax, eax
je 0x41b0ec
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], 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 esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x41b0f3
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x64], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x493e40]
test eax, eax
je 0x41b0c6
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41b0f3
mov eax, ebx
jmp 0x41af58
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 [0x493e44], eax
jmp 0x41af34
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 [0x493e40], eax
jmp 0x41af46
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 [0x493e40], eax
jmp 0x41b053
xor eax, eax
jmp 0x41af58
call sym._abort
nop
lea esi, [esi]
Function at 0x41b660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
cmp dword [esp + 0x24], 3
je 0x41b680
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x493e40]
test eax, eax
je 0x41b7f0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b66c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41b66c
test byte [eax + 0x20], 0x30
je 0x41b740
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41b7e0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41b6f0
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 0x41b6e2
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
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x41b846
mov eax, dword [0x493e40]
test eax, eax
je 0x41b820
mov dword [esp + 4], 0
mov eax, dword [eax]
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 [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x41b7a0
test eax, eax
je 0x41b75a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x41b7d0
test byte [ebx + 0x24], 4
je 0x41b7b7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41b6e9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41b6e9
test eax, eax
je 0x41b7b0
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 sym._pthread_mutex_destroy
mov dword [ebx + 0x34], 0xffffffff
jmp 0x41b66c
call sym.__pthread_cleanup_dest.part.3
jmp 0x41b772
call sym.__pthread_cleanup_dest.part.3
jmp 0x41b6be
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 [0x493e40], eax
jmp 0x41b68d
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 [0x493e40], eax
jmp 0x41b71d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41b710