joyce8/EMBER2024-capa huggingface dataset:
Function at 0x255ffc18
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x14
fld qword [0x25692958]
push ebx
push ebp
push esi
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
call fcn.2561c794
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
shl esi, 2
push esi
mov dword [esp + 0x28], eax
call ebx
push esi
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x24], ebp
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [edi + 8]
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add esp, 0x24
test eax, eax
lea esi, [esi + esi + 2]
mov dword [esp + 0x10], esi
je 0x255ffc7e
push eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, esi
shl eax, 2
push eax
call ebx
test eax, eax
pop ecx
mov dword [edi + 0x1c], eax
je 0x255ffd43
xor ecx, ecx
inc ecx
cmp esi, ecx
mov dword [eax], 0xb7e15163
jbe 0x255ffcb5
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edx, dword [eax - 4]
sub edx, 0x61c88647
inc ecx
cmp ecx, esi
mov dword [eax], edx
jb 0x255ffc9f
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
xor ebp, ebp
xor ebx, ebx
xor ecx, ecx
xor esi, esi
test eax, eax
jbe 0x255ffd35
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
lea eax, [eax + ebx*4]
mov edx, dword [eax]
add edx, ecx
add esi, edx
mov edx, esi
shr edx, 0x1d
shl esi, 3
or edx, esi
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov esi, dword [eax + ebx*4]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + ebp*4]
add edx, ecx
lea eax, [ecx + esi]
and eax, 0x1f
mov dword [esp + 0x18], eax
add edx, esi
push 0x20
pop ecx
sub ecx, eax
mov eax, edx
shr eax, cl
mov ecx, dword [esp + 0x18]
shl edx, cl
mov ecx, dword [esp + 0xc]
or eax, edx
mov dword [ecx + ebp*4], eax
mov ecx, eax
xor edx, edx
lea eax, [ebx + 1]
div dword [esp + 0x10]
lea eax, [ebp + 1]
mov ebx, edx
xor edx, edx
div dword [esp + 0x1c]
dec dword [esp + 0x14]
mov ebp, edx
jne 0x255ffccc
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll_free]
xor eax, eax
pop ecx
inc eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x255ffd4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x148]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x34], edx
jne 0x255ffd6b
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ecx, eax
shl eax, 5
shr ecx, 0x1b
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
push 0x14
add ecx, dword [edx]
cdq
pop edi
idiv edi
sub eax, 0
je 0x255ffdff
dec eax
je 0x255ffdea
dec eax
je 0x255ffdca
dec eax
jne 0x255ffe1a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax - 0x359d3e2a]
jmp 0x255ffe1a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edi, eax
or edi, edx
and edi, dword [ebx]
and eax, edx
or edi, eax
mov dword [ebp - 8], edx
lea ecx, [ecx + edi - 0x70e44324]
jmp 0x255ffe1a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax + 0x6ed9eba1]
jmp 0x255ffe1a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi]
mov edx, eax
not edx
and edx, dword [ebx]
and edi, eax
or edx, edi
lea ecx, [ecx + edx + 0x5a827999]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, eax
shr eax, 2
shl edi, 0x1e
or edi, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov dword [edx], edi
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [esi], ecx
jl 0x255ffd83
pop edi
pop esi
leave
ret
Function at 0x256005fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 8]
xor eax, eax
push esi
inc eax
call fcn.2561050c
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x2560062c
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x25600626
mov dword [eax], esi
pop esi
pop ebx
leave
ret 0xc
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
lea ecx, [ebx + 0x220]
add dword [ecx], edx
adc dword [ecx + 4], esi
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x2560065a
mov dword [ecx], edx
cmp eax, esi
jne 0x25600626
mov eax, dword [ebx + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x2560066c
mov dword [eax + 8], ecx
mov esi, dword [ebx + 8]
push 1
mov edi, str.xg_
call fcn.256103b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 8]
push 0
call fcn.25610dc2
push dword [ebx + 0x218]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.256108ef
push dword [ebx + 0x230]
mov esi, dword [ebx + 8]
push str._IXStream__Access__x_
call fcn.256108ef
lea esi, [ebx + 0x234]
push dword [esi]
mov ecx, edi
push 0x6d68
push dword [ebx + 8]
call fcn.2561068a
mov ecx, dword [ebx + 8]
add esp, 0x1c
push dword [esi]
push 1
call fcn.25610a11
push 0
push dword [ebx + 8]
lea esi, [ebp - 0x85]
call fcn.2547fb6a
push 0x25692ac0
mov eax, esi
push eax
call sub.MSVCRT.dll__CxxThrowException
int3
Function at 0x256006f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov ecx, dword [ebx + 8]
inc edi
mov eax, edi
call fcn.2561050c
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x25600721
mov dword [ebp - 8], edi
lea esi, [ebp - 0x10]
jmp 0x25600724
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [ebx + 0x218]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x25600789
cmp dword [ebp - 4], 0
jne 0x25600791
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x25600766
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x25600791
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
ja 0x25600746
lea eax, [ebx + 0x220]
mov dword [esi], edi
add dword [eax], edi
push 0
pop ecx
adc dword [eax + 4], ecx
cmp dword [ebp - 4], ecx
je 0x256007b8
cmp dword [ebp - 8], ecx
je 0x25600875
cmp edi, dword [ebp + 0xc]
je 0x25600875
mov eax, dword [ebx + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x256007c6
mov dword [eax + 8], ecx
mov esi, dword [ebx + 8]
push 1
mov edi, str.xg_
call fcn.256103b4
xor esi, esi
cmp dword [ebp - 4], esi
je 0x256007ed
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
lea edx, [ecx + 0x65]
push edx
mov dword [ecx + 0x61], esi
call dword [eax + 0x18]
jmp 0x256007fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [ebx + 8]
call fcn.25610dc2
push dword [ebx + 0x218]
mov esi, dword [ebx + 8]
push str._IXStream__Handle__p_
call fcn.256108ef
push dword [ebp - 8]
mov esi, dword [ebx + 8]
push str._IXStream__bExact__d_
call fcn.256108ef
push dword [ebp - 0xc]
mov esi, dword [ebx + 8]
push dword [ebp + 0xc]
push str._IXStream__A_lire__u___lu__u_
call fcn.256108ef
lea esi, [ebx + 0x234]
push dword [esi]
mov ecx, edi
push 0x6d63
push dword [ebx + 8]
call fcn.2561068a
mov ecx, dword [ebx + 8]
add esp, 0x28
push dword [esi]
push 1
call fcn.25610a11
push 0
push dword [ebx + 8]
lea esi, [ebp - 0x91]
call fcn.2547fb6a
push 0x25692ac0
mov eax, esi
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x256015b2
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [esp + 0x14], eax
call edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0xc]
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x2560161e
push 1
mov edi, str.xg_
call fcn.256103b4
push ebx
push 0x6ddb
push edi
mov ecx, esi
call fcn.2561066f
add esp, 0xc
push ebx
push 1
mov ecx, esi
call fcn.25610a11
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x25601628
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x256016ab
push 1
mov edi, str.xg_
call fcn.256103b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push 0x6ddc
push edi
call fcn.2561066f
add esp, 0x10
push dword [ebp + 0xc]
mov ecx, esi
push 1
call fcn.25610a11
push dword [ebp + 8]
mov ecx, esi
push 2
call fcn.25610a11
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x256016b3
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push 0
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x25601738
push 1
mov edi, str.xg_
call fcn.256103b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push 0x6ddd
push edi
call fcn.2561066f
add esp, 0x10
push dword [ebp + 0xc]
mov ecx, esi
push 1
call fcn.25610a11
push dword [ebp + 8]
mov ecx, esi
push 2
call fcn.25610a11
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x25601791
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp word [esi], ax
je 0x2560191b
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
push 0xffffffffffffffff
push esi
push 0x105
lea ebx, [ebp - 0x220]
mov dword [ebp - 8], eax
call fcn.2560bbc8
mov esi, ebx
call fcn.2560196c
mov esi, dword [sym.imp.MSVCRT.dll_wcschr]
lea eax, [ebp - 0x21e]
push 0x5c
push eax
call esi
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x25601891
lea eax, [ebp - 0x220]
cmp ebx, eax
jbe 0x25601811
cmp word [ebx - 2], 0x3a
je 0x25601881
lea eax, [ebp - 0x21e]
cmp ebx, eax
jne 0x2560188d
cmp word [ebp - 0x220], 0x5c
jne 0x2560188d
push 0x5c
add ebx, 2
push ebx
call esi
test eax, eax
pop ecx
pop ecx
je 0x256018c5
push 0x5c
add eax, 2
push eax
jmp 0x25601887
and word [ebx], 0
lea eax, [ebp - 0x220]
push eax
xor eax, eax
call fcn.25601771
test eax, eax
pop ecx
jne 0x2560187c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x2560187c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x2560191e
mov word [ebx], 0x5c
add ebx, 2
push 0x5c
push ebx
call esi
pop ecx
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x2560183f
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x256018be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x256018c5
push dword [ebp + 8]
xor eax, eax
call fcn.25601d51
test eax, eax
pop ecx
je 0x256018c5
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x25601916
push 1
mov edi, str.xg_
call fcn.256103b4
push dword [ebp + 8]
mov ecx, esi
push 0x6dde
push edi
call fcn.2561066f
add esp, 0xc
push dword [ebp + 8]
mov ecx, esi
push 1
call fcn.25610a11
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x220]
mov dword [ebp + 8], eax
jmp 0x256018c5
Function at 0x25601d7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov esi, eax
call edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebx], 0xffffffff
setne al
push eax
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x25601df6
push 1
mov edi, str.xg_
call fcn.256103b4
push dword [ebp + 8]
mov ecx, esi
push dword [ebx]
push 0x6de2
push edi
call fcn.2561066f
add esp, 0x10
push dword [ebp + 8]
mov ecx, esi
push 1
call fcn.25610a11
xor eax, eax
cmp dword [ebx], 0xffffffff
pop edi
setne al
pop esi
leave
ret

Function at 0x25601e02
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push 1
mov dword [esi + 8], eax
call edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
call ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi], 0xffffffff
jne 0x25601e9a
call ebx
cmp eax, 2
je 0x25601e68
call ebx
cmp eax, 0x12
je 0x25601e68
xor eax, eax
jmp 0x25601e6b
xor eax, eax
inc eax
mov esi, dword [ebp + 0x10]
push eax
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x25601e96
push 1
mov edi, str.xg_
call fcn.256103b4
push 0x6de7
push edi
mov ecx, esi
call fcn.2561066f
pop ecx
pop ecx
xor eax, eax
jmp 0x25601ec6
lea edi, [ebp - 0x254]
call fcn.25602021
test eax, eax
jne 0x25601eb6
push dword [ebp + 0x10]
push esi
call fcn.25601ecb
pop ecx
pop ecx
jmp 0x25601ec6
lea eax, [ebp - 0x254]
mov edi, esi
call fcn.25602912
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x25602181
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call edi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
jne 0x25602212
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x25602212
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 4
jne 0x25602212
cmp dword [ebp - 0x114], ebx
jne 0x25602212
cmp dword [ebp - 0x10c], 2
jne 0x25602212
mov dword [ebp - 4], 0x64
push dword [ebp + 8]
dec dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov ebx, eax
test ebx, ebx
je 0x25602212
cmp dword [ebp - 4], 0
jne 0x256021f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
setne al
mov ebx, eax
push ebx
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x25602261
push 1
mov edi, str.xg_
call fcn.256103b4
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push 0x6de6
push edi
call fcn.2561066f
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x25602309
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
je 0x2560232b
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x25602337
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x25602362
push edi
push edi
push edi
lea eax, [ebp - 0x230]
call fcn.254d2403
add esp, 0xc
lea esi, [ebp - 0x230]
call fcn.25601949
mov eax, esi
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x256023a6
cmp ebx, edi
je 0x25602395
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
cmp esi, edi
je 0x256023f8
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x256023f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x256023f8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x256023f8
cmp ebx, edi
mov eax, dword [ebp - 0x20]
je 0x256023e7
mov ecx, eax
imul ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], edi
cmp esi, edi
je 0x256023f8
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x2560244d
push 1
mov edi, str.xg_
call fcn.256103b4
push dword [ebp + 8]
mov ecx, esi
push 0x6dea
push edi
call fcn.2561066f
add esp, 0xc
push dword [ebp + 8]
mov ecx, esi
push 1
call fcn.25610a11
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret

Function at 0x2560295b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ebx, [ebp - 0x210]
push 0x105
call fcn.2560bbc8
add esp, 0xc
mov edi, ebx
call fcn.2560b9b3
mov esi, ebx
call fcn.25601949
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
mov edi, eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x25602a02
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
mov ebx, edx
call fcn.25602c7c
test eax, eax
je 0x25602ac4
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call fcn.2560295b
cmp eax, 3
pop ecx
pop ecx
je 0x25602ac4
cmp eax, 2
je 0x25602ac4
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x25602a9d
push 0x1a
lea eax, [ebp - 0x214]
push str.DeviceLanmanRedirector_
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x25602a9d
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x420]
call fcn.256029c0
test eax, eax
pop ecx
jne 0x25602aa1
xor eax, eax
jmp 0x25602ad3
push 0xffffffffffffffff
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.2560bbc8
push 0xffffffffffffffff
add esi, 4
mov eax, edi
push esi
mov edi, ebx
call fcn.2560bc48
add esp, 0x14
jmp 0x25602ad0
push 0xffffffffffffffff
push esi
push edi
call fcn.2560bbc8
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x25602ad8
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
dec eax
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
push eax
mov eax, esi
call fcn.2560138d
test eax, eax
pop ecx
je 0x25602b1b
push edi
push 1
mov edi, str.xg_
call fcn.256103b4
push 0x6e58
push edi
mov ecx, esi
call fcn.2561066f
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x25602b20
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
call fcn.25602c7c
test eax, eax
jne 0x25602b40
mov eax, 0x4b0
jmp 0x25602c52
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push 1
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x25602c52
mov eax, 0x640
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x25602b77
push 8
pop eax
jmp 0x25602c52
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
pop ecx
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, 0xea
mov dword [ebp - 0x18], eax
jne 0x25602bcb
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCRT.dll_realloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x25602b88
push 8
pop eax
jmp 0x25602c51
xor edi, edi
cmp eax, edi
jne 0x25602c3e
cmp dword [ebp - 4], edi
jle 0x25602b88
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x25602bf0
movzx eax, word [eax]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
cmp word [ebp - 0x14], ax
pop ecx
je 0x25602bfb
inc edi
add ebx, 0x20
cmp edi, dword [ebp - 4]
jl 0x25602bd9
jmp 0x25602b88
push 0xffffffffffffffff
shl edi, 5
push dword [edi + esi + 0x14]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ebx, edi
call fcn.2560bbc8
mov ebx, dword [ebp + 0x10]
add ebx, 4
add esp, 0xc
cmp word [ebx], 0x5c
je 0x25602c31
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x25687d3c
call fcn.2560bc48
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call fcn.2560bc48
pop ecx
pop ecx
push dword [ebp - 0x10]
call sub.MPR.dll_WNetCloseEnum
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 0x18]
pop ecx
pop ebx
pop edi
pop esi
leave
ret