joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push str.___Checking_mutex..._n
call fcn.00406020
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax + 0x17c], 0
je 0x4049c9
mov dword [ebp + 8], str.____Skip_mutex_check_by__nomutex_param._n
pop ebp
jmp fcn.00406020
push esi
add eax, 0x3042
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop esi
je 0x4049ee
cmp eax, 0xb7
jne 0x404a03
push str.____Exiting_by_mutext_check_n
call fcn.00406020
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret
Function at 0x404aa0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx]
cmp esi, dword [ebp + 0x14]
jl 0x404ac0
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x4000
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
mov edi, eax
test edi, edi
je 0x404b46
push edi
push str.____WnetOpenEnumA_failed_with_error__d_n
call fcn.00406020
add esp, 8
cmp edi, 0x4b8
jne 0x404b3d
push 0x100
lea eax, [ebp - 0x114]
push eax
push 0x100
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp + 0x14]
push eax
call sub.MPR.dll_WNetGetLastErrorA
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
push dword [ebp + 0x14]
push str.____WnetOpenEnumA_extended_error_code:__d___d__n_Description:__s_nProvider:__s_n
call fcn.00406020
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.00406260
add esp, 4
mov edi, eax
push dword [ebp - 4]
push 0
push edi
call fcn.0040f640
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x404c06
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], eax
jbe 0x404b53
mov ebx, edi
mov dword [ebp - 0x10], edi
cmp dword [edi + 4], 1
mov ecx, dword [ebp + 0x14]
jne 0x404bce
cmp dword [edi + 8], 3
jne 0x404bce
cmp esi, ecx
jge 0x404bce
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dl, byte [ecx]
test dl, dl
je 0x404bc7
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
mov ecx, dword [ebx + esi*4]
lea eax, [eax + 1]
mov byte [eax + ecx - 1], dl
mov ecx, dword [edi + 0x14]
mov dl, byte [eax + ecx]
test dl, dl
jne 0x404bb0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
inc esi
mov ecx, dword [ebp + 0x14]
test dword [ebx + 0xc], 2
je 0x404bf2
mov eax, dword [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp + 8]
mov dword [eax], esi
call fcn.00404aa0
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov eax, dword [ebp - 8]
mov esi, dword [esi]
inc eax
add ebx, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
cmp eax, dword [ebp - 0xc]
jb 0x404b87
jmp 0x404b53
cmp eax, 0x103
je 0x404c1b
push eax
push str.____WNetEnumResource_failed_with_error__d_n
call fcn.00406020
add esp, 8
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], esi
call fcn.004062b0
add esp, 4
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
test eax, eax
je 0x404c4c
push eax
push str.WNetCloseEnum_failed_with_error__d_n
call fcn.00406020
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404d70
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.0040f640
push 0x105
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040f640
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 0x404ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_FindFirstVolumeA____code:__d_n
call fcn.00406020
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 0x404dfb
nop
inc eax
cmp byte [ebp + eax - 0x110], 0
jne 0x404df0
dec eax
cmp cl, 0x5c
jne 0x404f2d
cmp ch, cl
jne 0x404f2d
cmp byte [ebp - 0x10e], 0x3f
jne 0x404f2d
cmp byte [ebp - 0x10d], cl
jne 0x404f2d
lea esi, [ebp - 0x110]
add esi, eax
cmp byte [esi], cl
jne 0x404f2d
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 0x404f1f
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 0x404ef1
mov bh, byte [ebp - 0x320]
lea eax, [ebp - 0x320]
test bh, bh
je 0x404eee
mov dl, bh
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x404ea5
add dl, 0xe0
add dl, 0xbf
movsx ecx, dl
imul ecx, ecx, 0x105
add ecx, 0x15c0
add ecx, edi
cmp byte [ecx], 0
jne 0x404edc
mov edx, dword [ebp - 0x218]
test dl, dl
je 0x404edc
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 0x404ed0
test bh, bh
je 0x404ee6
inc eax
cmp byte [eax], 0
jne 0x404ee0
mov bh, byte [eax + 1]
inc eax
test bh, bh
jne 0x404e98
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 0x404de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x404f41
push eax
push str.____error_call_FindNextVolumeA____code__d_n
jmp 0x404f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_QueryDosDeviceA____code:__d_n
jmp 0x404f39
lea eax, [ebp - 0x110]
push eax
push str.____FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call fcn.00406020
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 0x404f50
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.00406020
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.0040f640
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.0040f640
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x68
lea eax, [ebp - 0x100]
push eax
push 0
push 0x200
call fcn.00406860
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.00406860
inc esi
add esp, 0x18
cmp esi, 0x2000
jl 0x405030
push 0x2c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0040f640
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 0x407060
push 0
push 0
call edi
mov dword [ebp + esi*4 - 0x20], eax
inc esi
cmp esi, 8
jl 0x4050b0
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 0x4050e5
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 0x405fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
call fcn.00407630
mov esi, eax
cmp dword [esi + 0x184], 0
je 0x40600a
mov eax, dword [esi + 0x39c]
test eax, eax
je 0x40600a
cmp eax, 0xffffffff
je 0x40600a
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 0x4060d0
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 0x406194
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 0x406380
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push 0x100
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 0x4063c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CryptEncrypt___error__code:__d_n
call fcn.00406020
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 0x4063e0
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 0x406433
call esi
cmp eax, 0x80090016
jne 0x406433
push 8
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x406433
call esi
push eax
push str.____CryptAcquireContextA_error__code:__d_n
call fcn.00406020
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 0x40646c
call esi
push eax
push str.____CryptImportKey_Public__error__code:__d_n
call fcn.00406020
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 0x406b40
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 0x406ba1
test esi, esi
je 0x406b92
push esi
call fcn.004062b0
add esp, 4
push 0x1000
call fcn.00406220
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.00406860
add esp, 0x18
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc ebx
cmp ebx, 0x400
jl 0x406b80
push dword [0x418030]
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 0x406c4e
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 0x406cc4
nop
test bl, 0xf
jne 0x406c81
test esi, esi
je 0x406c72
push esi
call fcn.004062b0
add esp, 4
push 0x1000
call fcn.00406220
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.00406860
add esp, 0x18
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x406c60
push esi
call fcn.004062b0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d60
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.00406020
push 0x40
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0040f640
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 [0x410c38]
movq qword [ebp - 0x48], xmm0
movq xmm0, qword [str.System32]
mov word [ebp - 0x40], ax
mov al, byte [0x410c44]
movq qword [ebp - 0x2c], xmm0
mov byte [ebp - 0x24], al
call fcn.00407000
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.0040f640
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 0x406e3d
inc eax
cmp byte [ebp + eax - 0x20], 0
jne 0x406e23
test eax, eax
je 0x406e3d
cmp byte [ebp + eax - 0x21], 0x5c
je 0x406e3d
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.00406020
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 0x406ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CreateProcessA_vssadmin__error__code__d_n
call fcn.00406020
add esp, 8
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
test eax, eax
je 0x406ec7
push eax
push str.____SHEmptyRecycleBinA___call_error__code__d_n
call fcn.00406020
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 0x406f70
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x418030]
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 0x406fc2
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.00406860
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x407000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x41802c]
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 [0x418c98], eax
test eax, eax
je 0x407056
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x418c98]
test eax, eax
jne 0x407056
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____IsWow64Process___call_error__code__d_n
call fcn.00406020
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x407140
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 0x407173
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____call_CreateToolhelp32Snapshot___failed__code__d_n
call fcn.00406020
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0040f640
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 0x4071c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____call_Process32First___failed__code__d_n
call fcn.00406020
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 0x40725c
xor esi, esi
cmp dword [edi + 0x3bc], esi
jle 0x40725c
nop dword [eax + eax]
mov eax, dword [edi + 0x3c0]
push dword [eax + esi*4]
lea eax, [ebp - 0x108]
push eax
call fcn.00407490
add esp, 8
test eax, eax
jne 0x407217
inc esi
cmp esi, dword [edi + 0x3bc]
jl 0x4071f0
jmp 0x40725c
push dword [ebp - 0x124]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407241
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x407262
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.00406020
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 0x4071d2
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401840
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, 0xffffffff
sub esp, 0x18
mov esi, dword [ebp + 8]
lock xadd dword [esi + 0x18], ebx
dec ebx
test byte [section..data], 8
jne 0x4018a8
test ebx, ebx
jne 0x401899
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x401875
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p____lu_n
mov dword [esp + 8], str.factory_Release
mov dword [esp + 4], 0x404000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40185f
Function at 0x402140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402198
cmp byte [esi + ebx - 1], 0xa
je 0x40216c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret