joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107dac7
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.0107d3b7
xor esi, esi
sub eax, esi
je 0x107db79
dec eax
jne 0x107db95
mov eax, dword [0x10db9cc]
xor edi, edi
cmp eax, 0xffffffff
je 0x107db6d
cmp dword [0x10dba0c], esi
jne 0x107db6d
cmp dword [0x10dba10], esi
jne 0x107db0d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x107db98
cmp dword [ebp + 0x10], esi
je 0x107db98
call fcn.0107da3a
push esi
lea eax, [ebp + 8]
push eax
push dword [0x10cf168]
push 0x10d99c8
push dword [0x10db9cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x10cf168]
cmp dword [ebp + 8], eax
jne 0x107db60
xor edx, edx
div eax
sub dword [0x10dba04], eax
sub dword [0x10dba00], eax
add dword [0x10dba10], eax
dec dword [ebp + 0x10]
jne 0x107db16
jmp 0x107db98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10d95c0], eax
jmp 0x107db98
mov dword [0x10d95c0], 0x13
jmp 0x107db98
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0107d3d5
push eax
call dword [sym.imp.KERNEL32.dll_WriteTapemark]
mov edi, eax
jmp 0x107db98
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x107de83
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x10c1bb6
call fcn.0106f6c0
push ecx
push ecx
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0107d3b7
dec eax
jne 0x107e0a4
cmp dword [0x10dba24], ebx
jne 0x107e0a4
push esi
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
mov esi, 0x10d91c0
push esi
mov dword [0x10dba0c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10db9cc], eax
jne 0x107e042
push edi
mov edi, 0x10d95c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [0x10d95c0], eax
mov dword [ebp - 0x10], eax
jne 0x107dfd2
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_3
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x107e01f
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
push 0x2805
lea ecx, [ebp + 8]
mov word [eax], bx
call sub.MFC42u.DLL_CString::LoadStringW
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
call fcn.010207aa
cmp word [eax + 0xb88], 2
je 0x107df87
push 1
push ebx
push 0x40
push 4
push dword [ebp - 0x14]
push 0x2806
call fcn.0104f8aa
cmp eax, 6
jne 0x107e017
push edi
call fcn.0103131b
test eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
je 0x107e01b
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10db9cc], eax
je 0x107dee6
jmp 0x107e041
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10db9cc], eax
jne 0x107e002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10d95c0], eax
mov dword [ebp - 0x10], eax
jmp 0x107e041
mov dword [0x10d95c0], ebx
mov dword [ebp - 0x10], ebx
mov dword [0x10dba0c], 1
jmp 0x107e041
push 3
jmp 0x107e021
push 0x57
jmp 0x107e027
push 0x57
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
pop eax
mov dword [0x10d95c0], eax
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
pop edi
cmp dword [0x10d95c0], 0xb7
jne 0x107e054
mov dword [0x10d95c0], ebx
cmp dword [0x10db9cc], 0xffffffff
je 0x107e0a3
push 0x2000
push esi
mov dword [0x10dba24], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.0107d1b4
push ebx
push dword [0x10dba1c]
push dword [0x10dba18]
push dword [0x10db9cc]
call fcn.0107d438
push ebx
push dword [0x10cf168]
push edx
push eax
call fcn.0106f9d0
mov dword [0x10dba10], eax
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x107e0b6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0107d3b7
dec eax
jne 0x107e1d5
cmp dword [0x10dba24], edi
je 0x107e1d5
push ebx
push esi
push 1
push edi
push edi
push dword [0x10db9cc]
call fcn.0107d438
push 2
push edi
push edi
push dword [0x10db9cc]
mov dword [0x10dba18], eax
mov dword [0x10dba1c], edx
call fcn.0107d438
push dword [0x10db9cc]
mov esi, eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x107e129
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [0x10db9cc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
or dword [0x10db9cc], 0xffffffff
or esi, dword [ebp - 8]
jne 0x107e14e
push 0x10d91c0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x10db9d0], edi
je 0x107e1cd
lea eax, [ebp - 0x40c]
push 0x10106a4
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x40c]
push 0x10d8d98
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x107e1cd
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x107e1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call ebx
pop esi
mov dword [0x10dba24], edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x107e270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0107d3b7
xor esi, esi
sub eax, esi
je 0x107e37d
dec eax
jne 0x107e39c
push dword [ebp + 0x10]
call fcn.0107e1dd
mov ecx, dword [0x10db9cc]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x107e2ae
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x107e351
cmp word [0x10dba38], si
je 0x107e2e2
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, bl
mov dl, al
mov dh, dl
push 0x3f
pop ecx
mov eax, edx
shl eax, 0x10
mov ax, dx
xor esi, esi
mov dword [0x10d95c0], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x107e39f
mov eax, ebx
xor edx, edx
div dword [0x10cf168]
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
sub ebx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x107e309
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x10d95c0], eax
jne 0x107e322
and dword [0x10d95c0], 0
mov eax, dword [edi]
mov ecx, dword [0x10cf168]
cmp eax, ecx
jb 0x107e35d
sub eax, ecx
add eax, ebx
mov edx, dword [eax]
mov ecx, 0x10106f8
cmp edx, dword [ecx]
jne 0x107e35d
push 0x1a
push eax
call fcn.01091d75
test ax, ax
jne 0x107e35d
mov eax, dword [0x10cf168]
sub dword [edi], eax
mov dword [0x10d95c0], 0x44d
jmp 0x107e39f
test esi, esi
jne 0x107e39f
cmp dword [0x10d95c0], 0x44d
je 0x107e39f
cmp dword [edi], esi
jne 0x107e39f
mov dword [0x10d95c0], 0x450
jmp 0x107e39f
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0107d3d5
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x107e39f
mov esi, dword [ebp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x107edd1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x10cf178], ebx
je 0x107ef1a
cmp dword [0x10dba40], ebx
mov dword [0x10cf178], ebx
jne 0x107ef1a
push edi
push 0x10107d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x107ef19
push 1
push 0x24
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10dba40], eax
je 0x107ef19
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10107b4
push edi
call esi
mov ecx, dword [0x10dba40]
push 0x1010798
push edi
mov dword [ecx + 4], eax
call esi
mov ecx, dword [0x10dba40]
push 0x1010780
push edi
mov dword [ecx + 8], eax
call esi
mov ecx, dword [0x10dba40]
push 0x1010764
push edi
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [0x10dba40]
push 0x1010754
push edi
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [0x10dba40]
push 0x1010738
push edi
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [0x10dba40]
push 0x1010720
push edi
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [0x10dba40]
push 0x1010708
push edi
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [0x10dba40]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10dba40]
cmp dword [eax + 4], ebx
pop esi
je 0x107eede
cmp dword [eax + 8], ebx
je 0x107eede
cmp dword [eax + 0xc], ebx
je 0x107eede
cmp dword [eax + 0x10], ebx
je 0x107eede
cmp dword [eax + 0x14], ebx
je 0x107eede
cmp dword [eax + 0x18], ebx
je 0x107eede
cmp dword [eax + 0x1c], ebx
je 0x107eede
cmp dword [eax + 0x20], ebx
jne 0x107ef19
mov dword [eax + 4], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 8], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 0xc], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 0x10], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 0x14], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 0x18], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 0x1c], ebx
mov eax, dword [0x10dba40]
mov dword [eax + 0x20], ebx
pop edi
pop ebx
ret
Function at 0x107ef27
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
mov esi, eax
test esi, esi
je 0x107f066
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
push edi
mov edi, dword [eax + 0x5c]
lea eax, [ebp - 0x434]
push esi
push eax
call ebx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
cmp word [esi + eax*2 - 2], 0x5c
je 0x107ef79
lea eax, [ebp - 0x434]
push 0x1004284
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0x200
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x107efa8
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x234]
push eax
call ebx
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x107f062
cmp eax, 2
je 0x107f062
mov esi, dword [edi + 0x54]
jmp 0x107efe9
lea eax, [ebp - 0x234]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x107f062
mov esi, dword [esi + 0x404]
test esi, esi
jne 0x107efcc
push 1
push 0x408
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x107f062
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x107f011
mov dword [eax + 0x404], esi
jmp 0x107f014
mov dword [edi + 0x54], esi
lea eax, [ebp - 0x234]
push eax
lea edi, [esi + 4]
push edi
call ebx
pop ecx
pop ecx
push 0
push 0x2000000
push 3
push 0
push 3
push 0x20080
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x107f05e
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x107f057
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x107f064
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x107f06b
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
add ebx, 4
lea eax, [ebp - 0x204]
push ebx
push eax
call edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x204]
push eax
call esi
shl eax, 1
mov ecx, 0x1fe
sub ecx, eax
add esp, 0xc
push ecx
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
test eax, eax
mov dword [ebp - 4], eax
je 0x107f134
cmp eax, 0xffffffff
je 0x107f134
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push dword [ebp + 0xc]
call fcn.0107ef27
test eax, eax
je 0x107f0ec
push dword [ebp + 0xc]
push eax
call fcn.0107f06b
lea eax, [ebp - 0x204]
push ebx
push eax
call edi
lea eax, [ebp - 0x204]
push eax
call esi
shl eax, 1
mov ecx, 0x1fe
sub ecx, eax
add esp, 0xc
push ecx
lea eax, [ebp - 0x204]
push eax
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x204]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x107f0ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10805de
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 4]
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0107ed99
push 0x430
push 1
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x1080623
push esi
push ebx
call fcn.0109a7b5
test ax, ax
je 0x108060f
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ebx
call fcn.01098366
mov esi, dword [ebx + 0x34]
cmp esi, edi
je 0x10807d5
push ebx
call fcn.01099dbf
push dword [esi + 0x20]
mov ebx, dword [sym.imp.msvcrt.dll_free]
jmp 0x108064c
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x78], ecx
push eax
call ebx
mov eax, dword [esi + 0x78]
cmp eax, edi
pop ecx
jne 0x1080645
lea ebx, [esi + 0x5c]
jmp 0x1080673
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20c]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
mov dword [ebx], eax
cmp dword [ebx], edi
jne 0x108065b
mov ebx, dword [ebp + 8]
push ebx
call fcn.0107eb55
cmp word [esi + 0x96], di
je 0x108068f
push ebx
call fcn.01080243
cmp word [esi + 0x92], di
je 0x10806a8
cmp dword [0x10dba44], edi
jne 0x10806a5
call fcn.0107f192
mov dword [ebp - 4], edi
cmp word [esi + 0x90], di
je 0x10806b6
call fcn.0106fe4b
mov eax, dword [ebx + 0x14]
test byte [eax + 0x9e], 0x80
je 0x1080733
cmp word [esi + 0x8e], di
je 0x1080733
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x1005e1c
mov word [ebp - 0x210], di
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x1010848
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push edi
push edi
lea eax, [ebp - 0x418]
push eax
call sub.CLUSAPI.dll_RestoreClusterDatabase
cmp eax, 0x13c0
jne 0x1080729
push edi
push 1
lea eax, [ebp - 0x418]
push eax
call sub.CLUSAPI.dll_RestoreClusterDatabase
cmp eax, edi
je 0x1080733
push ebx
call fcn.0108d0a5
push dword [esi + 0x14f0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ebx
call fcn.010994ed
push dword [esi + 0x14f4]
call fcn.01098adc
mov eax, dword [esi + 0x14f8]
cmp eax, edi
je 0x1080787
lea ebx, [esi + 0x14fc]
cmp word [ebx], di
je 0x1080787
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x54]
add eax, 4
push eax
push ebx
call sub.query.dll_SetCatalogState
mov dword [esi + 0x14f8], edi
mov word [ebx], di
cmp word [esi + 0x88], di
mov ebx, 0xfffffe40
je 0x10807a8
push edi
push 0x23f
push edi
push edi
push dword [ebp + 8]
call fcn.0107f1b8
mov dword [ebp - 4], ebx
cmp word [esi + 0x8a], di
je 0x10807d2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 0x38], edi
jne 0x10807d2
push edi
push 0x240
push edi
push edi
push dword [ebp + 8]
call fcn.0107f1b8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.01098501
push dword [ebx + 0x3c]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebx + 0x34]
call esi
mov ax, word [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1081050
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
push esi
push edi
push dword [0x10d8d80]
lea eax, [ebp - 0x650]
push 0x101087c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x650]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1081093
lea esi, [ebp - 0x650]
jmp 0x1081095
inc esi
inc esi
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10810e6
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10810b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
leave
ret

Function at 0x1081a69
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
push esi
push 0x1010898
push dword [0x10d8d80]
lea eax, [ebp - 0x650]
push 0x100fbb8
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1081ad5
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.01081694
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1081aae
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
leave
ret
Function at 0x108789f
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 8], 0
test edi, edi
jne 0x10878b1
xor ecx, ecx
jmp 0x10878e6
mov eax, dword [edi + 0x5c]
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x1c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push 0
push 1
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x10879f2
push esi
push 0x4000
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x1c], esi
jne 0x108791d
or dword [ebp - 8], 0xffffffff
jmp 0x10879e7
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x4000
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x10879d1
and dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], eax
jbe 0x108791d
add esi, 0x18
and dword [ebp - 4], 0
cmp dword [esi - 0x10], 3
lea eax, [ebp - 4]
push eax
jne 0x1087979
push dword [esi]
push dword [esi + 4]
push 4
push dword [esi - 4]
push dword [ebp + 8]
call fcn.010934f7
mov eax, dword [ebp - 4]
test eax, eax
je 0x10879bb
mov byte [eax + 0x31], 1
jmp 0x1087986
lea eax, [esi - 0x18]
push eax
push edi
push dword [ebp + 8]
call fcn.01087754
mov eax, dword [ebp - 4]
test eax, eax
je 0x10879bb
test edi, edi
jne 0x108799c
push eax
push dword [ebp + 8]
call fcn.01092f91
jmp 0x10879ad
push 0
mov dword [eax + 0x18], edi
push dword [ebp - 4]
lea eax, [edi + 0x1c]
push eax
call fcn.01083c4d
test byte [esi - 0xc], 1
je 0x10879bb
mov eax, dword [ebp - 4]
call fcn.0108740f
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
cmp eax, dword [ebp - 0x10]
jb 0x108794c
mov esi, dword [ebp - 0x1c]
jmp 0x108791d
cmp eax, 0x103
je 0x10879df
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
pop esi
jmp 0x1087a09
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x4c6
neg eax
sbb eax, eax
and eax, 0xfffffe28
mov dword [ebp - 8], eax
mov ax, word [ebp - 8]
leave
ret 0xc
Function at 0x1087a11
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [ebx + 0x34]
push esi
push edi
push 8
xor esi, esi
mov dword [ebp - 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
push 2
pop eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 0x65
push esi
call sub.NETAPI32.dll_NetServerEnum
xor edi, edi
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1087ae1
mov esi, dword [ebp - 4]
add esi, 0x14
cmp edi, dword [ebp - 8]
jae 0x1087adf
lea eax, [ebp - 0x268]
push 0x10045a8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [esi - 0x10]
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
add esp, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ebp + 8]
call fcn.01087754
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1087ad9
push 0
push eax
mov dword [eax + 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
call fcn.01083c4d
inc edi
add esi, 0x18
jmp 0x1087a7a
xor esi, esi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x1087af2
cmp dword [ebp - 0xc], esi
je 0x1087a4c
cmp dword [ebp - 4], esi
pop edi
pop esi
je 0x1087b01
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
and ax, 0xfe05
leave
ret 0xc

Function at 0x1089721
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
xor esi, esi
cmp dword [0x10dc9f0], esi
jne 0x1089797
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x100b690
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1089797
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x1010920
push dword [ebp - 4]
mov dword [ebp - 8], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x108977f
mov dword [0x10dc9f0], 1
jmp 0x108978e
lea eax, [ebp - 0x34]
push eax
call fcn.01078d24
pop ecx
mov dword [0x10dc9f0], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10dc9f0]
mov esi, 0x200
cmp eax, esi
jae 0x10897e2
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push 1
push dword [0x10cfd70]
mov dword [ebp - 8], 0x20
call fcn.0107e419
test eax, eax
pop edi
jne 0x10897d9
mov eax, dword [ebp - 0x28]
mov dword [0x10dc9f0], eax
mov eax, dword [0x10dc9f0]
cmp eax, esi
jb 0x10897f6
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x10cfd70]
call fcn.0107dc1a
pop esi
leave
ret