joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f200
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 sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040de30
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 sym._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 0x40f2ef
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 0x40f393
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x40f32a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f322
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f390
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x40f3aa
mov dword [esp], ebx
call sym._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 dbg.get_ptr_from_atom
mov esi, eax
jmp 0x40f364
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f364
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f364
Function at 0x41c390
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x492e50]
test ebx, ebx
je 0x41c3c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x492e50]
test eax, eax
je 0x41c3e5
cmp dword [eax], 0xffffffff
je 0x41c408
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x492e50], eax
jmp 0x41c39e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41c3af
call sym._abort
lea esi, [esi]
Function at 0x41c8a0
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 [0x492e54]
test eax, eax
je 0x41c9f4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x492e50]
test eax, eax
je 0x41ca20
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41c8e0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41ca6c
mov eax, dword [entry3]
test eax, eax
je 0x41ca6c
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 0x41ca73
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 [0x492e50]
test eax, eax
je 0x41ca46
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 0x41ca73
mov eax, ebx
jmp 0x41c8d8
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e54], eax
jmp 0x41c8b4
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41c8c6
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41c9d3
xor eax, eax
jmp 0x41c8d8
call sym._abort
nop
lea esi, [esi]
Function at 0x41cfe0
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 0x41d000
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x492e50]
test eax, eax
je 0x41d170
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41cfec
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41cfec
test byte [eax + 0x20], 0x30
je 0x41d0c0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41d160
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41d070
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 0x41d062
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x41d1c6
mov eax, dword [0x492e50]
test eax, eax
je 0x41d1a0
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 0x41d120
test eax, eax
je 0x41d0da
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 0x41d150
test byte [ebx + 0x24], 4
je 0x41d137
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41d069
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41d069
test eax, eax
je 0x41d130
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov dword [ebx + 0x34], 0xffffffff
jmp 0x41cfec
call sym.__pthread_cleanup_dest.part.3
jmp 0x41d0f2
call sym.__pthread_cleanup_dest.part.3
jmp 0x41d03e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41d00d
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41d09d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41d090
Function at 0x41e360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41e3db
test byte [ebx + 0x20], 0x30
je 0x41e3e2
mov eax, dword [0x492e50]
test eax, eax
je 0x41e46b
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 0x41e3d2
cmp dword [eax + 0x14], 0
je 0x41e3f5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41e3c5
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41e43f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.3
jmp 0x41e37d
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41e40c
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 0x41e462
mov eax, dword [0x492e50]
test eax, eax
je 0x41e491
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 0x41e3d2
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 0x41e41f
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41e41f
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41e390
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e50], eax
jmp 0x41e428
Function at 0x420d10
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040de30
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x420dff
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x420ea3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x420e38
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x420e30
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x420ea0
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x420eba
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x420e72
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x420e72
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x420e72
Function at 0x40659e
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x5c25d6
call fcn.0053aab1
mov ebx, ecx
mov ecx, dword [ebx + 0x558]
test ecx, ecx
je 0x406745
mov edx, dword [ebx + 0x564]
test edx, edx
je 0x406745
xor esi, esi
cmp dword [ebx + 0x5d0], esi
je 0x406745
cmp dword [ebx + 0x580], esi
je 0x406745
mov eax, dword [ecx]
push 1
push edx
call dword [eax + 0x298]
mov ecx, dword [ebx + 0x580]
push esi
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push ecx
mov eax, esp
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x18]
mov dword [eax], str.APP.7Z
mov eax, esp
mov dword [eax], 0x5fd0e8
call fcn.00409cf9
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x14]
push dword [0x62a260]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test esi, esi
je 0x40664d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
xor edx, edx
mov ecx, edi
call fcn.0053b220
mulsd xmm0, qword [0x6059e0]
divsd xmm0, qword [0x605a28]
call fcn.0053b0f1
mov esi, eax
call fcn.00408bc2
mov edi, dword [eax]
test edi, edi
je 0x406699
mov eax, dword [edi + 8]
mov edx, str.global_install_progress_elapse
movd xmm0, esi
mov ecx, edi
cvtdq2pd xmm0, xmm0
movsd qword [eax], xmm0
add eax, 8
mov dword [edi + 8], eax
call fcn.004320b0
xor eax, eax
push eax
push eax
push dword [ebx + 4]
push 0x40675e
push eax
push eax
call fcn.00594c1f
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x5d0]
push 0
call fcn.00482320
mov ecx, dword [ebx + 0x5d0]
push 0xc8
push 0x7c6
call fcn.00486f60
mov edx, str.global_app_id
mov ecx, edi
call fcn.00431e30
push 0
or edx, 0xffffffff
mov ecx, edi
call fcn.00431770
pop ecx
push 0xfffffffffffffffe
pop edx
mov ecx, edi
call fcn.00431120
mov edi, dword [ebx + 0x564]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x12c]
push eax
push 0x7c5
mov ecx, edi
call fcn.00486f60
mov ecx, dword [ebx + 0x564]
push 0
mov eax, dword [ecx]
call dword [eax + 0x130]
test esi, esi
je 0x406735
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406758
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x406758
call fcn.004174b7
mov ecx, eax
call fcn.004175fc
mov ecx, ebx
call fcn.00406782
call fcn.0053aa7a
ret
Function at 0x4085e2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40864e
cmp edi, 0xffffffff
je 0x40864e
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40864e
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x408643
cmp edi, dword [ebp - 0x228]
je 0x40865e
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40862d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053a175
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x408650
Function at 0x40bce9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x4bc
mov eax, 0x5c2af5
call fcn.0053aae5
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x354]
mov ebx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x4c8], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push 0
push eax
call fcn.0058dad0
movzx eax, word [ebp - 0x34e]
push eax
movzx eax, word [ebp - 0x352]
push eax
movzx eax, word [ebp - 0x354]
push eax
push ebx
lea eax, [ebp - 0x11c]
push str._s__d__02d__02d.log
push eax
call fcn.0040bccc
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x358], 0xf
add esp, 0x24
mov byte [ebp - 0x36c], 0
and dword [ebp - 0x35c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd73
sub ecx, edx
lea eax, [ebp - 0x11c]
push ecx
push eax
lea ecx, [ebp - 0x36c]
call fcn.00416f58
and dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push edi
push 0
push eax
call fcn.0058dad0
push edi
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.0058dad0
push esi
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.005970e5
push 0x5fe220
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0059707c
add esp, 0x30
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bdff
push 0x5fe228
call fcn.0040bbf0
pop ecx
jmp 0x40bf7c
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x40bf6a
lea eax, [ebp - 0x498]
push 0x5fe234
push eax
call fcn.00596ff0
pop ecx
pop ecx
test eax, eax
je 0x40bf6a
lea eax, [ebp - 0x498]
push 0x5fe238
push eax
call fcn.00596ff0
pop ecx
pop ecx
test eax, eax
je 0x40bf6a
and dword [ebp - 0x334], 0
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x330], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x344], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be61
sub ecx, edx
lea eax, [ebp - 0x498]
push ecx
push eax
lea ecx, [ebp - 0x344]
call fcn.00416f58
lea eax, [ebp - 0x344]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0040e85a
pop ecx
pop ecx
test al, al
jne 0x40bf5b
cmp dword [ebp - 0x330], 0x10
lea eax, [ebp - 0x344]
push 1
cmovae eax, dword [ebp - 0x344]
push 0x5fe23c
push 0
push dword [ebp - 0x334]
push eax
call fcn.0040bc1a
add esp, 0x14
lea ecx, [ebp - 0x344]
push eax
push 0
lea eax, [ebp - 0x384]
push eax
call fcn.0040c73b
push eax
lea ecx, [ebp - 0x344]
call fcn.00410e92
lea ecx, [ebp - 0x384]
call fcn.00416fe0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40befb
sub ecx, edx
lea eax, [ebp - 0x344]
cmp dword [ebp - 0x330], 0x10
push ecx
cmovae eax, dword [ebp - 0x344]
push ebx
push dword [ebp - 0x334]
push eax
call fcn.0040bc99
add esp, 0x10
test eax, eax
jne 0x40bf5b
lea eax, [ebp - 0x498]
push eax
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x32c]
push str._s_s
push eax
call fcn.0040bccc
add esp, 0x10
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 0
call fcn.00416fe0
lea eax, [ebp - 0x4c4]
push eax
push edi
call esi
test eax, eax
jne 0x40be0a
lea ecx, [ebp - 0x36c]
call fcn.00416fe0
call fcn.0053aa8f
ret 8
Function at 0x40c1a3
Capabilities:
Write file on windows

Disassembly:
push 0x2a4
mov eax, 0x5c2b8e
call fcn.0053aae5
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x60]
mov dword [ebp - 0x284], ecx
mov eax, dword [ecx + 0xc]
cmp eax, dword [edi + 0x64]
jl 0x40c221
jg 0x40c1cf
cmp dword [ecx + 8], edx
jb 0x40c221
mov bl, byte [edi + 0x8c]
push eax
push dword [ecx + 8]
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040ca5b
push eax
lea edx, [edi + 0x3c]
lea ecx, [ebp - 0x28]
call fcn.0040c94d
pop ecx
and dword [ebp - 4], 0
lea ecx, [edi + 0x68]
push ebx
push eax
call fcn.0040c5a5
lea ecx, [ebp - 0x28]
call fcn.00416fe0
lea eax, [ebp - 0x28c]
mov ecx, edi
push eax
call fcn.0040caa1
mov ecx, dword [eax]
mov dword [edi + 0x60], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x64], eax
and dword [ebp - 0x278], 0
lea eax, [ebp - 0x270]
mov dword [ebp - method.fmt::v5::basic_memory_buffer_char__128__class_std::allocator_char__.virtual_0], vtable.fmt::v5::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x274], 0x1f4
xor ebx, ebx
lea edx, [ebp - 0x280]
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 8]
push edx
push dword [ebp - 0x284]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x70]
mov esi, dword [ebp - 0x278]
push esi
push ebx
push dword [ebp - 0x27c]
call fcn.005963e1
add esp, 0x10
cmp eax, esi
jne 0x40c293
lea ecx, [ebp - 0x280]
call fcn.004142d9
call fcn.0053aa8f
ret 4
call fcn.00591718
lea edx, [edi + 0x74]
lea ecx, [ebp - 0x64]
mov esi, dword [eax]
call fcn.0040c58a
push eax
mov edx, str.Failed_writing_to_file
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.0040c558
pop ecx
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00410ef7
push 0x61fc70
lea eax, [ebp - 0x4c]
push eax
call fcn.0058e27a
int3

Function at 0x40dbac
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov esi, 0x811c9dc5
mov eax, dword [eax]
mov dword [ebp + 8], eax
movzx eax, byte [ebp + edx + 8]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x40dbbf
mov eax, dword [ecx + 0x18]
and eax, esi
pop esi
pop ebp
ret 4
Function at 0x40e25f
Capabilities:
Write file on windows

Disassembly:
push 8
push 0x240
mov eax, 0x5c2fb4
call fcn.005bf8df
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40e289
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
mov ecx, eax
mov dword [ebp - 0x28], edx
cmp dword [eax + 0x14], 0x10
jb 0x40e29f
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x250], 0xbba
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - method.fmt::v5::basic_memory_buffer_char__128__class_std::allocator_char__.virtual_0], vtable.fmt::v5::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], 0x1f4
sub esp, 0x10
mov dword [ebp - 4], ecx
mov edi, esp
lea esi, [ebp - 0x250]
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x240]
push 0x21
movsd dword es:[edi], dword [esi]
push str.__LOG_ERROR__________n
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041579b
push dword [ebp - 0x23c]
push dword [ebp - 0x230]
push 1
push dword [ebp - 0x234]
call fcn.005963e1
add esp, 0x28
lea ecx, [ebp - 0x238]
call fcn.004142d9
mov ecx, dword [ebp - 0x14]
call fcn.005bf8ba
ret