joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1d242a3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
dec eax
dec edi
dec esp
lea edi, [ebp*2 - 0xe7c614c]
xor edx, 0x72043fa8
inc ecx
and al, 0x8a
call fcn.0104a704

Function at 0x1d52f7b
Capabilities:
Encode data using xor

Disassembly:
dec ebx
mov dword [esi + ebp - 0x61a64db0], ebp
dec eax
lea ebx, [ebx + ecx - 0x61a64db4]
inc esp
mov edi, dword [ebx + ecx - 0x61a64db0]
call fcn.01d1eb7e
js 0x1d52fda
cld
jmp dword [edi + 0x78]
fdivrp st(4)
and byte [eax + 0x43f15646], bl
lcall 0xb103, 0xdda3d761
outsb dx, byte [esi]
xor cl, byte [eax + 0x13]
jle 0x1d52f96
mov bl, 0x54
clc
popal
imul ecx, esp, 0x9348c562
leave
pop edi
xchg edi, eax
sub bl, ch
invalid
sbb dword [ebp + 0x7536244d], edx
adc dword [edi + 0x6810e0ef], esp
invalid
add al, al
cmp al, 0xd9
jns 0x1d53007
fidiv word [ecx - 4]
jne 0x1d52fc5
mov bh, 0xd8
push ds
or byte [0x781b3af7], bl
clc
pop ss
xchg byte [edx - 0x20406d5f], ch
mul esp
mov dh, 0x6a
jb 0x1d5302e
cmp ebx, edx
push esi
pop ebp
hlt
rcr byte [edi], 1
neg ebx
jo 0x1d53048
cmp eax, 0x2c767c71
or al, 0xd4
jae 0x1d53054
ret 0xfd9a
aam 0xd9
pushfd
push edi
sub bh, byte [esi + 0x7a]
push esi
cmp dword [eax + 0x7e], ebp
invalid
inc ebp
test al, 1
stosd dword es:[edi], eax
dec ecx
lahf
dec eax
inc edi
retf 0xa545
xchg ebx, eax
aam 0x8d
mov ebp, 0xf791b6b5
xchg dword [ecx - 0x5a], ebx
mov ah, 0x71
jne 0x1d530d2
xor dword [eax], edi
mov al, 0xb8
int 0x5b
mov edi, 0x5094e4c1
inc edi
mov gs, word [ebx + 0x55]
sub ah, byte [eax + 7]
cmp ah, dl
mov esi, 0x33b8af7a
int3
ror dword [eax], 1
push edi
ficomp word [edi - 0x406e384c]
ljmp 0x3ea0

Function at 0x1d54d97
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esp
inc ecx
pop esp
inc ecx
pop eax
inc ecx
pop edx
pop edx
ja fcn.01bf2c54
mov ecx, 0x1bbffb2a
mov edx, ecx
sub cl, 0x32
mov edx, dword [ecx + ebp - 0x1bbffbf8]
lea ebp, [ebp + ecx - 0x1bbffbf4]
or byte [eax + eax*2], al
in al, 0x8d
lodsb al, byte [esi]
or eax, 0xe440040c
adc ecx, 0x123a8284
xor edx, ebx
ror cl, 0x26
sar ecx, cl
push ecx
rol edx, 1
sub cx, cx
movsx eax, cx
call fcn.01c8d8e1
stosd dword es:[edi], eax
sbb dword [esi + 0x32], edx
mov esp, 0x391475e
and eax, 0x3c19884e
sahf
or dword [esi], ecx
sahf
sub ecx, dword [ebp - 0x3d48ccc1]
test byte [edx], al
popal
aad 0x6f
jecxz 0x1d54db3
salc
adc byte [edx - 0x244437a0], dl
dec edi
sub bh, ah
pop eax
test byte [ecx - 0x2c7132a7], 0xa4
jmp 0x1d54e57
or byte [ebx + 0x14b4d7e3], ch
fnstsw word [edi - 0x4f]
salc
pop ecx
mov dword [0x36ead615], eax
adc al, 0x4b
aam 0x2e
insd dword es:[edi], dx
and bl, byte ss:[edx - 0x2d9f0b59]
ljmp 0x42d1
Function at 0x1d59815
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xf33a7317
fadd qword [esi]
mov dword [esp], ecx
mov ecx, dword [ebp]
pop eax
add ebp, 4
add byte [eax], al
movzx edx, al
xor ecx, ebx
shr eax, 0xf1
ror dx, 0x84
lea ecx, [ecx + eax + 0x6d8f48f2]
call fcn.01057300
inc ecx
mov eax, 0xf6a75989
push eax
inc ebp
xor edx, ecx
inc ecx
dec edx
call fcn.01be0e17
stosd dword es:[edi], eax
inc ebp
sub dl, byte [esi - 0x7f5286c9]
fist dword [esi + 0x4d]
fcomp qword [eax - 0x21]
movsb byte es:[edi], byte [esi]
inc esp
test al, 0xb5
rol dword [esi], cl
cmpsb byte [esi], byte es:[edi]
das
fsubr dword [ecx - 0xd21619]
sub cl, bl
jnp 0x1d59828
das
xchg ecx, eax
cmp edx, dword [edx + 0x2b19e0a4]
add ebx, esp
sahf
cmp esi, dword [esi - 0x2b]
pop ebx
mov bh, 0xf9
dec edi
call 0x67b16d95
adc dh, 0x94
je 0x1d5990e
in al, 0x1c
add byte [edi + 5], dl
adc ebp, edi
jmp 0xe31b11fd
mov byte [0x72fe6159], al
outsb dx, byte [esi]
adc eax, 0x6ee378aa
fnstcw word [ebp - 3]
outsb dx, byte [esi]
wait
pop ss
movsb byte es:[edi], byte [esi]
or dword [eax + 0x7f], ebp
daa
wait
push cs
push edi
xchg dword [esi - 0x45bc8c98], ebx
pop es
insb byte es:[edi], dx
adc eax, 0xd8a17a2
mov bl, 0x2d
test dword [edx - 0x3a], edi
pop ds
pop edi
loopne 0x1d598e5
xor al, 0x36
iretd
sahf
sti
jecxz 0x1d59928
leave
outsb dx, byte [esi]
xchg esi, eax
mov dl, 0xab
stosd dword es:[edi], eax
ret
jp 0x1d598c6
in eax, 0xa5
jno 0x1d59932
arpl word [eax - 0x14], di
xor ebp, esi
mov eax, dword [edi]
mov dh, 0x95
mov byte [eax], cl
mov ch, 0xd
mov bl, 0xa0
xor dword [esi - 0x19425e0], esi
nop
or al, 0x24
sbb byte [edx + edi - 0x5d], ch
mov ecx, ecx
xchg ebx, eax
sbb eax, 0x48ed32fe
dec edx
ljmp 0x6624

Function at 0x1d5f1ff
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edx + 0x3c]
add eax, edx
clc
cmp cx, 0x7f9b
cmp dword [eax], 0x4550
jne 0x1d315d6
mov ecx, dword [eax + 0x78]
jmp 0x1cd37b9
ret
mov dword [ebp - 4], ecx
cmp esi, 0x4028cd24
test ecx, ecx
je 0x1d315d6
mov eax, dword [eax + 0x7c]
stc
push ebx
cmp esp, 0x6934438c
jmp 0x1cc8398
push esi
clc
test edx, edx
jmp 0x1d7552d
je 0x1d315d6
mov eax, 0x5a4d
test eax, esi
clc
cmp word [edx], ax
jmp 0x1d315d0
je 0x1b63b46
xor eax, eax
pop esi
mov esp, ebp
pop ebp
jmp 0x1beeeef
test esi, esi
jmp 0x1cedad5
push ebp
shl ebp, 0x13
cmovns edx, esi
rcl bp, 0x3d
mov ebp, esp
shl dh, 0x8f
movzx edx, dx
mov edx, dword [ebp + 8]
test edi, edi
lea esp, [esp - 0x114]
jmp 0x1cd382b
je 0x1d315d6
mov esi, dword [ebp + 0xc]
clc
jmp 0x1d3ecd6
Function at 0x401b31
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x94
mov dword [ebp - 0x1c], 0x6c6f6f43
mov dword [ebp - 0x18], 0x646e6957
mov dword [ebp - 0x14], 0x6c43776f
mov dword [ebp - 0x10], 0x737361
lea edx, [ebp - 0x68]
mov eax, 0
mov ecx, 0xc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x30
mov dword [ebp - 0x64], 3
mov dword [ebp - 0x60], sym.__Z10WindowProcP6HWND__jjl_16
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadCursorA]
call eax
sub esp, 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassExA]
call eax
sub esp, 4
test ax, ax
sete al
test al, al
je 0x401bf2
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.NOOOOOO_
mov dword [esp + 4], str.WINDOW_BAD____
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x401d0f
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc8
mov dword [esp + 0x18], 0x190
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.CrYP70NYMS_CRACKME
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jmp 0x401c92
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_UpdateWindow]
call eax
sub esp, 4
jmp 0x401cdb
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
jmp 0x401cbb
mov edi, dword [ebp - 4]
leave
ret 0x10

Function at 0x40d800
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 0x40d860
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x46f054]
test esi, esi
jle 0x40d94d
mov edi, dword [0x46f058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d894
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d946
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d880
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d98a
lea ebx, [esi + esi*2]
mov esi, dword [0x46f058]
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 [0x46f058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d96a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d93f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d93f
mov eax, dword [esp + 0x20]
add ebx, dword [0x46f058]
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 0x40d954
add dword [0x46f054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d89e
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 [0x46f058]
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 0x40de50
Capabilities:
Get thread local storage value

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

Function at 0x40e0c0
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 0x40e0f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40e0ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40e0fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40e0e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41a910
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x46fe40]
test ebx, ebx
je 0x41a940
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x46fe40]
test eax, eax
je 0x41a965
cmp dword [eax], 0xffffffff
je 0x41a988
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 [0x46fe40], eax
jmp 0x41a91e
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 [0x46fe40], eax
jmp 0x41a92f
call sym._abort
lea esi, [esi]
Function at 0x41ae20
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 [0x46fe44]
test eax, eax
je 0x41af74
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x46fe40]
test eax, eax
je 0x41afa0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ae60
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41afec
mov eax, dword [entry3]
test eax, eax
je 0x41afec
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 0x41aff3
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 [0x46fe40]
test eax, eax
je 0x41afc6
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 0x41aff3
mov eax, ebx
jmp 0x41ae58
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 [0x46fe44], eax
jmp 0x41ae34
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 [0x46fe40], eax
jmp 0x41ae46
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 [0x46fe40], eax
jmp 0x41af53
xor eax, eax
jmp 0x41ae58
call sym._abort
nop
lea esi, [esi]
Function at 0x41b560
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 0x41b580
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x46fe40]
test eax, eax
je 0x41b6f0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b56c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41b56c
test byte [eax + 0x20], 0x30
je 0x41b640
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41b6e0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41b5f0
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 0x41b5e2
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 0x41b746
mov eax, dword [0x46fe40]
test eax, eax
je 0x41b720
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 0x41b6a0
test eax, eax
je 0x41b65a
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 0x41b6d0
test byte [ebx + 0x24], 4
je 0x41b6b7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41b5e9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41b5e9
test eax, eax
je 0x41b6b0
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 0x41b56c
call sym.__pthread_cleanup_dest.part.3
jmp 0x41b672
call sym.__pthread_cleanup_dest.part.3
jmp 0x41b5be
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 [0x46fe40], eax
jmp 0x41b58d
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 [0x46fe40], eax
jmp 0x41b61d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41b610
Function at 0x41c8e0
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 + 0xb0]
test eax, eax
jne 0x41c95b
test byte [ebx + 0x20], 0x30
je 0x41c962
mov eax, dword [0x46fe40]
test eax, eax
je 0x41c9eb
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41c952
cmp dword [eax + 0x14], 0
je 0x41c975
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41c945
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41c9bf
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c8fd
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41c98c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
je 0x41c9e2
mov eax, dword [0x46fe40]
test eax, eax
je 0x41ca11
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41c952
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
jne 0x41c99f
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41c99f
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 [0x46fe40], eax
jmp 0x41c910
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 [0x46fe40], eax
jmp 0x41c9a8
Function at 0x41fee0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040e3d0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [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, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x41ffcf
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x420073
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x420008
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x420000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x420070
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x42008a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
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
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x420042
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 0x420042
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x420042