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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x495000]
push edi
or ebp, 0xffffffff
jmp 0xa43292
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa43299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa43288
mov eax, 1
add ebx, ebx
jne 0xa432ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa432bc
jne 0xa432db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa432db
dec eax
add ebx, ebx
jne 0xa432c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa432a0
add ebx, ebx
jne 0xa432d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa4332d
xor ecx, ecx
sub eax, 3
jb 0xa432f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa43362
sar eax, 1
mov ebp, eax
jmp 0xa432fe
add ebx, ebx
jne 0xa432fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa432cc
inc ecx
add ebx, ebx
jne 0xa4330c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa432cc
add ebx, ebx
jne 0xa43319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa4330e
jne 0xa4332a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa4330e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa4334c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa4333e
jmp 0xa4328e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa4334c
add edi, ecx
jmp 0xa4328e
pop esi
mov edi, esi
mov ecx, 0x12faf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa4336a
cmp byte [edi], 0x9d
jne 0xa4336a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa4336f
lea edi, [esi + 0x61a000]
mov eax, dword [edi]
or eax, eax
je 0xa433de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x65e844]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65e9a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa4339c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65e9ac]
or eax, eax
je 0xa433d8
mov dword [ebx], eax
add ebx, 4
jmp 0xa433b9
call dword [esi + 0x65e9a8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xa4340f
cmp al, 0xef
ja 0xa43402
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xa433e4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xa433f1
mov ebp, dword [esi + 0x65e9b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xa43443
sub esp, 0xffffff80
jmp 0x7846ec
Function at 0x6434efe0
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], 0x64367ec4
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.6434f040

Function at 0x6434f040
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6436fdac]
test esi, esi
jle 0x6434f12d
mov edi, dword [0x6436fdb0]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6434f074
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6434f126
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6434f060
mov dword [esp], eax
mov ebx, eax
call fcn.6434f970
test eax, eax
mov edi, eax
je 0x6434f16a
lea ebx, [esi + esi*2]
mov esi, dword [0x6436fdb0]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6434fa70
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 [0x6436fdb0]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6434f14a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6434f11f
sub eax, 0x40
and eax, 0xffffffbf
je 0x6434f11f
mov eax, dword [esp + 0x20]
add ebx, dword [0x6436fdb0]
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 0x6434f134
add dword [0x6436fdac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x6434f07e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6434efe0
mov eax, dword [0x6436fdb0]
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.6434efe0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6434efe0
lea esi, [esi]
Function at 0x6434f620
Capabilities:
Get thread local storage value

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

Function at 0x6434f890
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 0x6434f8c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x6434f8be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6434f8ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6434f8b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x64350cd0
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.64350ea0
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 0x64350dbf
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 0x64350e63
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 0x64350dfa
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x64350df2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x64350e60
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.64350c50
cmp eax, ebx
mov esi, eax
je 0x64350e7a
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.64350c50
mov esi, eax
jmp 0x64350e34
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 0x64350e34
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x64350e34
Function at 0x64356ba0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x64370b7c]
test ebx, ebx
je 0x64356bd0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x64370b7c]
test eax, eax
je 0x64356bf5
cmp dword [eax], 0xffffffff
je 0x64356c18
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov ebx, eax
mov dword [0x64370b7c], eax
jmp 0x64356bae
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x64356bbf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x643570b0
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 [0x64370b80]
test eax, eax
je 0x64357204
call fcn.64357030
mov eax, dword [0x64370b7c]
test eax, eax
je 0x64357230
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x643570f0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.643569f0
test eax, eax
mov ebx, eax
je 0x6435727c
mov eax, dword [entry3]
test eax, eax
je 0x6435727c
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 0x64357283
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 [0x64370b7c]
test eax, eax
je 0x64357256
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 0x64357283
mov eax, ebx
jmp 0x643570e8
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.6435afb0
mov dword [0x64370b80], eax
jmp 0x643570c4
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x643570d6
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x643571e3
xor eax, eax
jmp 0x643570e8
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.6435afb0
add esp, 0x1c
ret
Function at 0x643577f0
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 0x64357810
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x64370b7c]
test eax, eax
je 0x64357980
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x643577fc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x643577fc
test byte [eax + 0x20], 0x30
je 0x643578d0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x64357970
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x64357880
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 0x64357872
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.6435ace0
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x643579d6
mov eax, dword [0x64370b7c]
test eax, eax
je 0x643579b0
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 0x64357930
test eax, eax
je 0x643578ea
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 0x64357960
test byte [ebx + 0x24], 4
je 0x64357947
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x64357879
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x64357879
test eax, eax
je 0x64357940
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.6435ace0
mov dword [ebx + 0x34], 0xffffffff
jmp 0x643577fc
call fcn.64357600
jmp 0x64357902
call fcn.64357600
jmp 0x6435784e
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x6435781d
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x643578ad
mov eax, ebx
call fcn.64356c20
jmp 0x643578a0
Function at 0x64358b70
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.643570b0
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x64358beb
test byte [ebx + 0x20], 0x30
je 0x64358bf2
mov eax, dword [0x64370b7c]
test eax, eax
je 0x64358c7b
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 0x64358be2
cmp dword [eax + 0x14], 0
je 0x64358c05
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x64358bd5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x64358c4f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.64357600
jmp 0x64358b8d
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 0x64358c1c
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 0x64358c72
mov eax, dword [0x64370b7c]
test eax, eax
je 0x64358ca1
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 0x64358be2
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 0x64358c2f
mov eax, ebx
call fcn.64356c20
jmp 0x64358c2f
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x64358ba0
mov dword [esp + 8], 0x64356030
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.6435afb0
mov dword [0x64370b7c], eax
jmp 0x64358c38
Function at 0x6435afb0
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.64350ea0
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 0x6435b09f
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x6435b143
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 0x6435b0d8
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x6435b0d0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x6435b140
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.6435af30
cmp eax, ebx
mov esi, eax
je 0x6435b15a
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.6435af30
mov esi, eax
jmp 0x6435b112
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 0x6435b112
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x6435b112
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
jmp loc.0045c61c
Function at 0x1002a17
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov esi, 0x100145c
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, eax
xor eax, eax
cmp dword [ebp + 8], eax
je 0x1002a4e
cmp dword [ebp + 0xc], eax
je 0x1002a53
lea ecx, [edi - 1]
cmp ebx, ecx
je 0x1002a5a
cmp dword [ebp + 0xc], eax
jne 0x1002a5f
add edi, 0xfffffffe
cmp ebx, edi
jne 0x1002a5f
push 0xfffffffffffffffe
pop ebx
jmp 0x1002a70
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1002a70
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14

Function at 0x1002db3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0x1001443
xor esi, esi
push esi
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x104], 0
je 0x1002e07
lea eax, [ebp - 0x104]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp + esi - 0x104]
cmp byte [eax], 0
jne 0x1002def
mov eax, edi
pop edi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.010031f0
push dword [ebp + 8]
mov esi, eax
push dword [ebp + 0xc]
call fcn.0100f496
test esi, esi
je 0x1003260
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1003260
xor eax, eax
jmp 0x1003262
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x100366f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, 0x1014400
push edi
call fcn.01002a79
mov esi, 0x1012434
push esi
mov ebx, eax
call fcn.01002a79
cmp eax, ebx
jbe 0x100369a
push esi
jmp 0x100369b
push edi
call fcn.01002a79
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x10036c7
push eax
push 0x10
push eax
push eax
push 0x44c
push eax
call fcn.01003267
xor eax, eax
jmp 0x1003732
push edi
push ebx
push esi
mov ebx, 0x1001443
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x1003724
mov edi, 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push edi
push eax
push ebx
push esi
push dword [ebp + 8]
call fcn.010035e3
cmp eax, 0xffffffff
je 0x1003739
push 0
push edi
lea eax, [ebp - 0x108]
push eax
push esi
push dword [ebp + 8]
call fcn.01002afe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x10036e7
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
xor esi, esi
jmp 0x1003727