joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4322d0]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40d65a
xor eax, eax
cmp ecx, ebp
je 0x40d642
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40d668
cmp ecx, ebp
je 0x40d6fb
push ecx
jmp 0x40d6f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40d6ca
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040d5e0
mov ebx, eax
cmp ebx, ebp
jne 0x40d718
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x40d690
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d6dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040d4d0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d6fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412dd0
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d727
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40d6fd
Function at 0x412dd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4322d0]
jne 0x412dda
repz ret
jmp fcn.00418136

Function at 0x42130a
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.004184ca
and dword [ebp - 4], 0
cmp dword [0x4348f0], 0
mov ebx, eax
jne 0x4213bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42146c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42146c
push eax
call fcn.00418458
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4348f0], eax
call esi
push eax
call fcn.00418458
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4348f4], eax
call esi
push eax
call fcn.00418458
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4348f8], eax
call esi
push eax
call fcn.00418458
pop ecx
mov dword [0x434900], eax
test eax, eax
je 0x4213bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418458
pop ecx
mov dword [0x4348fc], eax
mov eax, dword [0x4348fc]
cmp eax, ebx
je 0x421413
cmp dword [0x434900], ebx
je 0x421413
push eax
call fcn.004184d3
push dword [0x434900]
mov esi, eax
call fcn.004184d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421413
test edi, edi
je 0x421413
call esi
test eax, eax
je 0x42140a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42140a
test byte [ebp - 0xc], 1
jne 0x421413
or dword [ebp + 0x10], 0x200000
jmp 0x42144c
mov eax, dword [0x4348f4]
cmp eax, ebx
je 0x42144c
push eax
call fcn.004184d3
pop ecx
test eax, eax
je 0x42144c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42144c
mov eax, dword [0x4348f8]
cmp eax, ebx
je 0x42144c
push eax
call fcn.004184d3
pop ecx
test eax, eax
je 0x42144c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4348f0]
call fcn.004184d3
pop ecx
test eax, eax
je 0x42146c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42146e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418b00
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.00418b60

Function at 0x418b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4ad054]
test esi, esi
jle 0x418c4d
mov edi, dword [0x4ad058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x418b94
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x418c46
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x418b80
mov dword [esp], eax
mov ebx, eax
call fcn.004194a0
test eax, eax
mov edi, eax
je 0x418c8a
lea ebx, [esi + esi*2]
mov esi, dword [0x4ad058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004195a0
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 [0x4ad058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x418c6a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x418c3f
sub eax, 0x40
and eax, 0xffffffbf
je 0x418c3f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4ad058]
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 0x418c54
add dword [0x4ad054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x418b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00418b00
mov eax, dword [0x4ad058]
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.00418b00
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00418b00
lea esi, [esi]
Function at 0x419150
Capabilities:
Get thread local storage value

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

Function at 0x4193c0
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 0x4193f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4193ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4193fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4193e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41a830
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.004196d0
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 0x41a91f
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 0x41a9c3
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 0x41a95a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x41a952
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x41a9c0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0041a7b0
cmp eax, ebx
mov esi, eax
je 0x41a9da
mov dword [esp], ebx
call fcn.004253a8
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.0041a7b0
mov esi, eax
jmp 0x41a994
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 0x41a994
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41a994
Function at 0x426280
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4ade40]
test ebx, ebx
je 0x4262b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4ade40]
test eax, eax
je 0x4262d5
cmp dword [eax], 0xffffffff
je 0x4262f8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov ebx, eax
mov dword [0x4ade40], eax
jmp 0x42628e
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x42629f
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x426790
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 [0x4ade44]
test eax, eax
je 0x4268e4
call fcn.00426710
mov eax, dword [0x4ade40]
test eax, eax
je 0x426910
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4267d0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004260d0
test eax, eax
mov ebx, eax
je 0x42695c
mov eax, dword [entry3]
test eax, eax
je 0x42695c
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 0x426963
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 [0x4ade40]
test eax, eax
je 0x426936
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 0x426963
mov eax, ebx
jmp 0x4267c8
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.0042b850
mov dword [0x4ade44], eax
jmp 0x4267a4
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x4267b6
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x4268c3
xor eax, eax
jmp 0x4267c8
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.0042b850
add esp, 0x1c
ret
Function at 0x426ed0
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 0x426ef0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x4ade40]
test eax, eax
je 0x427060
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x426edc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x426edc
test byte [eax + 0x20], 0x30
je 0x426fb0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x427050
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x426f60
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 0x426f52
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.0042a3c0
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x4270b6
mov eax, dword [0x4ade40]
test eax, eax
je 0x427090
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 0x427010
test eax, eax
je 0x426fca
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 0x427040
test byte [ebx + 0x24], 4
je 0x427027
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x426f59
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x426f59
test eax, eax
je 0x427020
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.0042a3c0
mov dword [ebx + 0x34], 0xffffffff
jmp 0x426edc
call fcn.00426ce0
jmp 0x426fe2
call fcn.00426ce0
jmp 0x426f2e
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x426efd
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x426f8d
mov eax, ebx
call fcn.00426300
jmp 0x426f80
Function at 0x428250
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.00426790
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x4282cb
test byte [ebx + 0x20], 0x30
je 0x4282d2
mov eax, dword [0x4ade40]
test eax, eax
je 0x42835b
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 0x4282c2
cmp dword [eax + 0x14], 0
je 0x4282e5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4282b5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x42832f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.00426ce0
jmp 0x42826d
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 0x4282fc
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 0x428352
mov eax, dword [0x4ade40]
test eax, eax
je 0x428381
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 0x4282c2
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 0x42830f
mov eax, ebx
call fcn.00426300
jmp 0x42830f
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x428280
mov dword [esp + 8], 0x425710
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042b850
mov dword [0x4ade40], eax
jmp 0x428318
Function at 0x42b850
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.004196d0
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 0x42b93f
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x42b9e3
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 0x42b978
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x42b970
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x42b9e0
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0042b7d0
cmp eax, ebx
mov esi, eax
je 0x42b9fa
mov dword [esp], ebx
call fcn.004253a8
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.0042b7d0
mov esi, eax
jmp 0x42b9b2
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 0x42b9b2
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x42b9b2
Function at 0x10002500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002524
xor eax, eax
jmp 0x100025a4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000253b
xor eax, eax
jmp 0x100025a4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10002587
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10002587
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x1000255e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10002593
xor eax, eax
jmp 0x100025a4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x100025a1
xor eax, eax
jmp 0x100025a4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100034a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010901c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x10], 0x73
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x10], 0x63
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x10], 0x6f
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x10], 0x6d
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x10], 0x73
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x10], 0x70
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x10], 0x6d
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x10], 0x61
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x10], 0x2e
mov eax, 1
imul ecx, eax, 0xa
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xb
jae 0x1000353e
jmp 0x10003543
call fcn.100494f1
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x10], 0
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x10], 0x6f
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10013ec0
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10049199
mov esp, ebp
pop ebp
ret