joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422c86
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x38], 0x4b
mov byte [ebp - 0x37], 0x45
mov byte [ebp - 0x36], 0x52
mov byte [ebp - 0x35], 0x4e
mov byte [ebp - 0x34], 0x45
mov byte [ebp - 0x33], 0x4c
mov byte [ebp - 0x32], 0x33
mov byte [ebp - 0x31], 0x32
mov byte [ebp - 0x30], 0x2e
mov byte [ebp - 0x2f], 0x64
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x6c
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x20], 0x56
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x41
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0
call fcn.0042264a
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
xor eax, eax
mov ax, word [ecx + 0x14]
lea ecx, [edx + eax + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], 0
jmp 0x422d44
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x28], eax
jge 0x422df1
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
jne 0x422da8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x422da6
push 4
push 0x1000
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
add eax, dword [edx + 0xc]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x422d32
push 4
push 0x1000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
jmp 0x422d32
mov esp, ebp
pop ebp
ret
Function at 0x4237a5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440544
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x4237ec
mov dword [ebp - 0x1c], 0x1b
push 0x443b30
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x42380b
mov dword [ebp - 4], 0xffffffff
push 0x44754c
call fcn.004229aa
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42382a
jmp 0x423889
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00423363
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x423851
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00423458
add esp, 4
jmp 0x423889
sub esp, 0x34c
mov ecx, 0xd3
mov esi, 0x447200
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x423881
mov edx, dword [ebp - 0x18]
push edx
call fcn.00423458
add esp, 4
mov dword [ebp - 0x18], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x42d390
push esi
call fcn.004314f0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x42d389
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x42d413
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x42d3ff
mov eax, dword [esi + 8]
test eax, eax
je 0x42d3b4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x42d3fb
cmp eax, 2
je 0x42d3ff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42d3a7
cmp eax, 3
je 0x42d3da
cmp eax, 1
jne 0x42d3a7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x42d3a7
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x42d3a7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0042d440
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x42d433
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0042d440
add esp, 4
pop esi
ret
Function at 0x430590
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.004323a0
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.00432360
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4305d4
push edi
call fcn.004323b0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.004306d0
mov dword [esi + 4], fcn.00430820
mov dword [esi + 8], fcn.004308d0
mov dword [esi + 0xc], fcn.00430980
mov dword [esi + 0x10], 0x430a30
mov dword [esi + 0x14], 0x430aa0
mov dword [esi + 0x18], 0x430b10
mov dword [esi + 0x1c], 0x430c90
mov dword [esi + 0x20], 0x430e80
mov dword [esi + 0x24], fcn.00431070
mov dword [esi + 0x28], 0x431170
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x43062f
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x4306bf
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x4306bf
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x430688
cmp al, 0x4d
jne 0x4306ac
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x409520
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
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.00409580
Function at 0x409f20
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 0x409f58
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x409f4e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x409f5a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x409f40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40b350
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.0040a220
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
lea edi, [esp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sub.msvcrt.dll_memcpy
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
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]
mov byte [edi + esi + 0xf], 0x2d
sub esp, 0xc
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 0x40b438
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x40b4d3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [edi + eax]
mov eax, 0x20
bt ebx, eax
jae 0x40b46d
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40b465
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40b4d0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0040b2e0
cmp eax, ebx
mov esi, eax
je 0x40b4ea
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]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0040b2e0
mov esi, eax
jmp 0x40b4a7
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 0x40b4a7
mov dword [esp], ebx
call dword [ebp + 0x10]
nop
jmp 0x40b4a7
Function at 0x40c3d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x41e40c]
test ebx, ebx
je 0x40c400
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x41e40c]
test eax, eax
je 0x40c425
cmp dword [eax], 0xffffffff
je 0x40c448
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x40b650
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a60
mov dword [0x41e40c], eax
mov ebx, eax
jmp 0x40c3de
mov dword [esp + 8], 0x40b650
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a60
mov dword [0x41e40c], eax
jmp 0x40c3ef
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40ca20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41e410]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0xfeedbab1
mov dword [ebp - 0x24], 0
test eax, eax
mov dword [ebp - 0x1c], 1
je 0x40cba2
cmp dword [eax], 1
je 0x40ca5c
call fcn.0040c9b0
mov eax, dword [0x41e40c]
test eax, eax
je 0x40cbc8
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 0x40ca87
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040c230
mov esi, eax
mov eax, dword [0x420028]
test eax, eax
je 0x40ca7d
test esi, esi
je 0x40ca7d
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x44], 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 ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x6c], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x28]
sub esp, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x40], eax
call ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call ebx
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x40cc14
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x41e40c]
test eax, eax
je 0x40cbee
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x40cc14
mov ebx, esi
jmp 0x40ca7d
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.00410a60
mov dword [0x41e410], eax
jmp 0x40ca52
mov dword [esp + 8], 0x40b650
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a60
mov dword [0x41e40c], eax
jmp 0x40ca69
mov dword [esp + 8], 0x40b650
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a60
mov dword [0x41e40c], eax
jmp 0x40cb85
call sub.msvcrt.dll_abort
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.00410a60
add esp, 0x1c
ret
Function at 0x40e640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
call fcn.0040ca20
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xbc]
test eax, eax
jne 0x40e6c1
test byte [ebx + 0x20], 0x30
je 0x40e6c8
mov eax, dword [0x41e40c]
test eax, eax
je 0x40e751
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 0x40e6b8
cmp dword [eax + 0x14], 0
je 0x40e71e
mov esi, dword [eax + 4]
mov dword [eax + 0x70], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40e6ab
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x40e6db
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0040cf90
jmp 0x40e65f
add ebx, 0x78
mov dword [esp + 4], 1
mov dword [esp], ebx
call 0x413545
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0x14], 0
je 0x40e748
mov eax, dword [0x41e40c]
test eax, eax
je 0x40e777
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x40e6b8
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40e735
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xb8], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jne 0x40e6fe
mov eax, ebx
call fcn.0040c450
jmp 0x40e6fe
mov dword [esp + 8], 0x40b650
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a60
mov dword [0x41e40c], eax
jmp 0x40e672
mov dword [esp + 8], 0x40b650
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00410a60
mov dword [0x41e40c], eax
jmp 0x40e707
Function at 0x410a60
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.0040a220
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
lea esi, [esp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
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 edx, [esi + eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x30]
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 - 0x20], 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]
mov byte [esi + ebx + 0xf], 0x2d
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x410b4e
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x410be7
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edx, [esi + eax]
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x410b88
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x410b80
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x410be4
mov ecx, dword [ebp - 0x1c]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004109f0
cmp eax, ebx
mov esi, eax
je 0x410bfe
mov dword [esp], ebx
call sub.msvcrt.dll_free
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]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x1c]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004109f0
mov esi, eax
jmp 0x410bc2
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 0x410bc2
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x410bc2
Function at 0x1000f220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009f58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100946f6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000f2a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100925e6
mov eax, dword [eax]
push 0x100c1b70
push eax
call fcn.1007b7d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10094981
test bl, bl
je 0x1000f2a2
push 0x100c1b70
lea ecx, [esp + 0xc]
call fcn.10094d11
push 0x100c1b7c
lea ecx, [esp + 0xc]
call fcn.10094d11
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000f2de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10094981
jmp 0x1000f3a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1000f362
lea edx, [esp + 0x7c]
push 0x100c1b78
push edx
call fcn.1007b7d4
add esp, 8
test eax, eax
je 0x1000f362
lea eax, [esp + 0x7c]
push 0x100c1b74
push eax
call fcn.1007b7d4
add esp, 8
test eax, eax
je 0x1000f362
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000f2f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10094981
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1000fba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000fc02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc