joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x412312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412308
mov eax, 1
add ebx, ebx
jne 0x41232b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41233c
jne 0x41235b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41235b
dec eax
add ebx, ebx
jne 0x412348
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x412320
add ebx, ebx
jne 0x412357
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4123ad
xor ecx, ecx
sub eax, 3
jb 0x412373
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4123e2
sar eax, 1
mov ebp, eax
jmp 0x41237e
add ebx, ebx
jne 0x41237e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41234c
inc ecx
add ebx, ebx
jne 0x41238c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41234c
add ebx, ebx
jne 0x412399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41238e
jne 0x4123aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41238e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4123cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4123be
jmp 0x41230e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4123cc
add edi, ecx
jmp 0x41230e
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412434
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x127e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12820]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4123e9
mov ecx, edi
jns 0x412418
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12824]
or eax, eax
je 0x41242e
mov dword [ebx], eax
add ebx, 4
jmp 0x412406
call dword [esi + 0x12834]
mov ebp, dword [esi + 0x12828]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412468
sub esp, 0xffffff80
jmp 0x4010d8
Function at 0x4302cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4302db
pop dword [ebp - 0x18]
mov eax, 0x4302db
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x7acdc7d9
sub dword [ebp - 0x28], 0x2c7b828e
mov dword [ebp - 0x24], 0xa1202d61
sub dword [ebp - 0x24], 0x6eece11c
mov dword [ebp - 0x20], 0xd344dc49
sub dword [ebp - 0x20], 0x86f8981b
mov dword [ebp - 0x1c], 0xb36f5a46
add dword [ebp - 0x1c], 0x4c90a5ba
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x66be1b9
sub dword [ebp - 0x28], 0x91f97863
mov dword [ebp - 0x24], 0x5c527d84
add dword [ebp - 0x24], 0xe519e3f1
mov dword [ebp - 0x20], 0xb0506523
sub dword [ebp - 0x20], 0x4ce0f8b7
mov dword [ebp - 0x1c], 0x781f62ba
sub dword [ebp - 0x1c], 0x781f62ba
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x2e41dd8b
sub eax, 0x2dfe0a97
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x45684
push 0
call eax
mov ecx, 0x5ced0764
sub ecx, 0x5cecc252
xor edx, edx
add edx, eax
mov ebx, 0x960173c
sub ebx, 0x918a33c
add ebx, dword [ebp - 0x18]
mov esi, 0xda51ae2
sub esi, 0xbc899a78
add dword [ebp - 8], 0x40129363
mov edi, dword [ebx]
xor dword [ebp - 0x10], eax
sub edi, esi
mov dword [edx], edi
mov dword [ebp - 8], 0xd4a5b9de
add edx, 0x3cea249b
add edx, 0xc315db69
add ebx, 0x50d36bd5
sub ebx, 0x50d36bd1
loop 0x4303f5
add eax, 0x1071b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445030]
jne 0x401116
repz ret
jmp fcn.00401d31

Function at 0x409100
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.0040587e
and dword [ebp - 4], 0
cmp dword [0x447790], 0
mov ebx, eax
jne 0x4091b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409262
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409262
push eax
call fcn.0040580c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x447790], eax
call esi
push eax
call fcn.0040580c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x447794], eax
call esi
push eax
call fcn.0040580c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x447798], eax
call esi
push eax
call fcn.0040580c
pop ecx
mov dword [0x4477a0], eax
test eax, eax
je 0x4091b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040580c
pop ecx
mov dword [0x44779c], eax
mov eax, dword [0x44779c]
cmp eax, ebx
je 0x409209
cmp dword [0x4477a0], ebx
je 0x409209
push eax
call fcn.00405887
push dword [0x4477a0]
mov esi, eax
call fcn.00405887
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409209
test edi, edi
je 0x409209
call esi
test eax, eax
je 0x409200
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409200
test byte [ebp - 0xc], 1
jne 0x409209
or dword [ebp + 0x10], 0x200000
jmp 0x409242
mov eax, dword [0x447794]
cmp eax, ebx
je 0x409242
push eax
call fcn.00405887
pop ecx
test eax, eax
je 0x409242
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409242
mov eax, dword [0x447798]
cmp eax, ebx
je 0x409242
push eax
call fcn.00405887
pop ecx
test eax, eax
je 0x409242
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447790]
call fcn.00405887
pop ecx
test eax, eax
je 0x409262
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409264
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b170
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x445030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2b001cc]
push ebx
mov ebx, dword [0x2affeec]
push esi
mov esi, dword [0x445f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b1b1
push str.tirasumocatum
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b001cc]
mov dword [0x2affee8], esi
cmp eax, 0x114e
jne 0x40b1d6
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2b001cc]
cmp eax, 0x2f
jne 0x40b204
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push ebx
call fcn.0040b060
mov ecx, dword [esp + 0x434]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x40cf80
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 sub.msvcrt.dll_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 sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040cfe0

Function at 0x40cfe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x495050]
test esi, esi
jle 0x40d0cd
mov edi, dword [0x495054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d014
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d0c6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d000
mov dword [esp], eax
mov ebx, eax
call fcn.0040d920
test eax, eax
mov edi, eax
je 0x40d10a
lea ebx, [esi + esi*2]
mov esi, dword [0x495054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.0040da20
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 [0x495054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d0ea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d0bf
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d0bf
mov eax, dword [esp + 0x20]
add ebx, dword [0x495054]
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 0x40d0d4
add dword [0x495050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d01e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040cf80
mov eax, dword [0x495054]
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 fcn.0040cf80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040cf80
lea esi, [esi]
Function at 0x40d5d0
Capabilities:
Get thread local storage value

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

Function at 0x40d840
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 0x40d878
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40d86e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40d87a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40d860
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40ef20
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 sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040db50
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 sub.msvcrt.dll_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 0x40f00f
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 0x40f0b3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x40f04a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f042
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f0b0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0040eea0
cmp eax, ebx
mov esi, eax
je 0x40f0ca
mov dword [esp], ebx
call sub.msvcrt.dll_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 fcn.0040eea0
mov esi, eax
jmp 0x40f084
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f084
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f084
Function at 0x41b070
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x495e50]
test ebx, ebx
je 0x41b0a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x495e50]
test eax, eax
je 0x41b0c5
cmp dword [eax], 0xffffffff
je 0x41b0e8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov ebx, eax
mov dword [0x495e50], eax
jmp 0x41b07e
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41b08f
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x41b580
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 [0x495e54]
test eax, eax
je 0x41b6d4
call fcn.0041b500
mov eax, dword [0x495e50]
test eax, eax
je 0x41b700
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b5c0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041aec0
test eax, eax
mov ebx, eax
je 0x41b74c
mov eax, dword [entry3]
test eax, eax
je 0x41b74c
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 0x41b753
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 [0x495e50]
test eax, eax
je 0x41b726
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 0x41b753
mov eax, ebx
jmp 0x41b5b8
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.0041f9f0
mov dword [0x495e54], eax
jmp 0x41b594
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41b5a6
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41b6b3
xor eax, eax
jmp 0x41b5b8
call sub.msvcrt.dll_abort
nop
lea esi, [esi]
sub esp, 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_key_dest_shmem
call fcn.0041f9f0
add esp, 0x1c
ret
Function at 0x41bcc0
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 0x41bce0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x495e50]
test eax, eax
je 0x41be50
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41bccc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41bccc
test byte [eax + 0x20], 0x30
je 0x41bda0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41be40
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41bd50
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 0x41bd42
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 fcn.0041a2b0
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x41bea6
mov eax, dword [0x495e50]
test eax, eax
je 0x41be80
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 0x41be00
test eax, eax
je 0x41bdba
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 0x41be30
test byte [ebx + 0x24], 4
je 0x41be17
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41bd49
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41bd49
test eax, eax
je 0x41be10
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 fcn.0041a2b0
mov dword [ebx + 0x34], 0xffffffff
jmp 0x41bccc
call fcn.0041bad0
jmp 0x41bdd2
call fcn.0041bad0
jmp 0x41bd1e
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41bced
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41bd7d
mov eax, ebx
call fcn.0041b0f0
jmp 0x41bd70
Function at 0x41d040
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 fcn.0041b580
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41d0bb
test byte [ebx + 0x20], 0x30
je 0x41d0c2
mov eax, dword [0x495e50]
test eax, eax
je 0x41d14b
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 0x41d0b2
cmp dword [eax + 0x14], 0
je 0x41d0d5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41d0a5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41d11f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0041bad0
jmp 0x41d05d
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41d0ec
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 0x41d142
mov eax, dword [0x495e50]
test eax, eax
je 0x41d171
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 0x41d0b2
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 0x41d0ff
mov eax, ebx
call fcn.0041b0f0
jmp 0x41d0ff
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41d070
mov dword [esp + 8], 0x41a500
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f9f0
mov dword [0x495e50], eax
jmp 0x41d108
Function at 0x41f9f0
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 sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040db50
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 sub.msvcrt.dll_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 0x41fadf
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x41fb83
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x41fb18
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x41fb10
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x41fb80
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0041f970
cmp eax, ebx
mov esi, eax
je 0x41fb9a
mov dword [esp], ebx
call sub.msvcrt.dll_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 fcn.0041f970
mov esi, eax
jmp 0x41fb52
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41fb52
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41fb52