joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401070
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov cl, byte [0x4161c0]
mov byte [ebp - 0x70], cl
push 0x31
push 0
lea edx, [ebp - 0x6f]
push edx
call fcn.00402bf0
add esp, 0xc
mov dword [ebp - 0x10], 0x10
mov eax, dword [str.0123456789ABCDEF]
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x4161c8]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x4161cc]
mov dword [ebp - 0x34], edx
mov eax, dword [0x4161d0]
mov dword [ebp - 0x30], eax
mov cl, byte [0x4161d4]
mov byte [ebp - 0x2c], cl
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401106
jmp 0x4011de
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40112b
jmp 0x4011de
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40114d
jmp 0x4011de
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4011de
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 0
jmp 0x401180
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jae 0x4011de
push 0x32
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.00402bf0
add esp, 0xc
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0x28]
and eax, 0xf
movsx ecx, byte [ebp + eax - 0x3c]
push ecx
mov edx, dword [ebp - 8]
movzx eax, byte [ebp + edx - 0x28]
sar eax, 4
movsx ecx, byte [ebp + eax - 0x3c]
push ecx
push str._c_c
push 0x32
lea edx, [ebp - 0x70]
push edx
call fcn.00401d90
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
nop
jmp 0x401177
cmp dword [ebp - 4], 0
je 0x4011f5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x40120e
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push 0x80
push 0
lea eax, [ebp - 0xb8]
push eax
call fcn.00402bf0
add esp, 0xc
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401266
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], 0
jmp 0x4012c9
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x14]
jae 0x401361
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
push 0x80
push 0
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00402bf0
add esp, 0xc
lea edx, [ebp - 0xb8]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00401070
add esp, 8
test eax, eax
jne 0x401329
jmp 0x4012c0
lea ecx, [ebp - 0xb8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40135c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x401361
jmp 0x4012c0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x402634
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402673
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402673
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402673
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402673
cmp dword [ecx + 0x74], 0xe
jbe 0x402673
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ae53
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417ad4
push 0x417acc
push str.FlsAlloc
push 0x1f
call fcn.0040ad8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ae87
push dword [ebp + 8]
mov ecx, esi
call dword [0x41616c]
call esi
jmp 0x40ae8d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40aed1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417ae4
push 0x417adc
push str.FlsGetValue
push 0x21
call fcn.0040ad8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af08
push dword [ebp + 8]
mov ecx, esi
call dword [0x41616c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40af10
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417aec
push 0x417ae4
push str.FlsSetValue
push 0x22
call fcn.0040ad8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40af4a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41616c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x40d34e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40d399
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040d56b
test al, al
jne 0x40d393
sub edx, 2
cmp edx, edi
jne 0x40d379
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40d3bb
lea eax, [edi + 2]
cmp edx, eax
je 0x40d3bb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040d29a
add esp, 0x10
jmp 0x40d4b5
push esi
lea ecx, [ebp - 0x255]
call fcn.0040d56b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d3fe
push dword [ebp - 0x25c]
jmp 0x40d3ab
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40d43b
cmp word [ebp - 0x226], 0
je 0x40d45c
cmp word [ebp - 0x226], ax
jne 0x40d43b
cmp word [ebp - 0x224], 0
je 0x40d45c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040d29a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40d4a8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40d415
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40d490
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40d4b5
push 0x40d0ca
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004124b0
add esp, 0x10
jmp 0x40d485
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402abe
leave
ret
Function at 0x415780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4157ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4157ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401b80
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 0x401be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x492054]
test esi, esi
jle 0x401ccd
mov edi, dword [0x492058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401c14
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401cc6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401c00
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401d0a
lea ebx, [esi + esi*2]
mov esi, dword [0x492058]
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 [0x492058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401cea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401cbf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401cbf
mov eax, dword [esp + 0x20]
add ebx, dword [0x492058]
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 0x401cd4
add dword [0x492054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401c1e
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 [0x492058]
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 0x4021d0
Capabilities:
Get thread local storage value

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

Function at 0x402440
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 0x402478
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40246e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40247a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402460
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402750
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
sub esp, 8
test eax, eax
je 0x40285f
mov edi, eax
mov eax, dword [esp + 0x2c]
lea ebx, [eax*4 + 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x14], eax
call eax
mov dword [esp + 8], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 4], 8
mov dword [esp + 0x1c], eax
call eax
sub esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x40285f
mov edx, dword [esp + 0x2c]
test edx, edx
jle 0x402897
xor ebp, ebp
jmp 0x402827
mov dword [esp], eax
call sym._SDL_strlen
mov ebx, eax
mov eax, dword [esp + 0x14]
call eax
lea ecx, [ebx + 1]
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call eax
sub esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [edx + ebp*4], eax
test eax, eax
je 0x40285f
mov dword [esp + 8], ebx
add ebp, 1
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SDL_memcpy
mov dword [esp], esi
call sym._SDL_free
cmp dword [esp + 0x2c], ebp
jle 0x402890
mov eax, dword [edi + ebp*4]
mov dword [esp], eax
call sym._SDL_wcslen
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], eax
mov eax, dword [edi + ebp*4]
mov dword [esp + 4], str.UTF_16LE
mov dword [esp + 8], eax
mov dword [esp], str.UTF_8
call sym._SDL_iconv_string
mov esi, eax
test eax, eax
jne 0x4027d0
mov dword [esp + 0xc], 0
xor edi, edi
mov dword [esp + 8], str.Out_of_memory___aborting
mov dword [esp + 4], str.Fatal_Error
mov dword [esp], 0x10
call sym._SDL_ShowSimpleMessageBox
add esp, 0x3c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
lea eax, [eax + ebp*4]
mov dword [eax], 0
xor ebx, ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
call sym._SDL_SetMainReady
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._SDL_main
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x40290b
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], edi
mov edi, ebx
nop
mov ebx, dword [ebp + edi*4]
mov eax, dword [esp + 0x14]
add edi, 1
call eax
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call esi
sub esp, 0xc
cmp dword [esp + 0x2c], edi
jg 0x4028e0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call esi
mov eax, edi
sub esp, 0xc
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f3e0
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.0040e010
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 0x40f4cf
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 0x40f573
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 0x40f50a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f502
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f570
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 0x40f58a
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 0x40f544
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 0x40f544
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f544
Function at 0x41bb50
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x492e50]
test ebx, ebx
je 0x41bb80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x492e50]
test eax, eax
je 0x41bba5
cmp dword [eax], 0xffffffff
je 0x41bbc8
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 [0x492e50], eax
jmp 0x41bb5e
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 [0x492e50], eax
jmp 0x41bb6f
call sym._abort
lea esi, [esi]
Function at 0x41c060
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 [0x492e54]
test eax, eax
je 0x41c1b4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x492e50]
test eax, eax
je 0x41c1e0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41c0a0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41c22c
mov eax, dword [entry3]
test eax, eax
je 0x41c22c
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 0x41c233
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 [0x492e50]
test eax, eax
je 0x41c206
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 0x41c233
mov eax, ebx
jmp 0x41c098
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 [0x492e54], eax
jmp 0x41c074
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 [0x492e50], eax
jmp 0x41c086
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 [0x492e50], eax
jmp 0x41c193
xor eax, eax
jmp 0x41c098
call sym._abort
nop
lea esi, [esi]
Function at 0x41c7a0
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 0x41c7c0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x492e50]
test eax, eax
je 0x41c930
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41c7ac
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41c7ac
test byte [eax + 0x20], 0x30
je 0x41c880
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41c920
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41c830
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 0x41c822
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 0x41c986
mov eax, dword [0x492e50]
test eax, eax
je 0x41c960
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 0x41c8e0
test eax, eax
je 0x41c89a
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 0x41c910
test byte [ebx + 0x24], 4
je 0x41c8f7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41c829
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41c829
test eax, eax
je 0x41c8f0
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 0x41c7ac
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c8b2
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c7fe
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 [0x492e50], eax
jmp 0x41c7cd
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 [0x492e50], eax
jmp 0x41c85d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41c850