joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10c6897
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
je 0x10c68c4
cmp word [ebx], di
je 0x10c68c4
cmp esi, edi
jne 0x10c68d8
push 0x100d6c0
push 0x75c
push 0x100e694
call fcn.0107b644
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10c69be
push dword [ebp + 0x10]
lea eax, [ebp - 0xd0]
push eax
push edi
push ebx
call fcn.010c5d2a
cmp eax, edi
mov dword [ebp - 0xac], eax
jl 0x10c697a
mov edi, dword [ebp - 0xd0]
test edi, 0x400
jne 0x10c69bc
push 0x250
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xcc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc4]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0xb0]
add esp, 0xc
mov dword [esi], edi
mov dword [esi + 0x20], eax
jmp 0x10c6a4a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10c6a51
test byte [eax + 0x1c], 8
je 0x10c6a51
cmp byte [eax + 0x19], 2
jb 0x10c6a51
push dword [ebp - 0xac]
push ebx
push 0x100e684
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10c6a4c
xor edi, edi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10c69c3
sub eax, edx
sar eax, 1
mov edi, eax
je 0x10c69dd
cmp word [ebx + edi*2 - 2], 0x5c
je 0x10c69f1
push 0x100eabc
push 0x790
push 0x100e694
call fcn.0107b644
xor eax, eax
lea edi, [ebx + edi*2 - 2]
lea ecx, [ebp - 0xa8]
mov word [edi], ax
call fcn.010c815c
push 0
push dword [ebp + 0x10]
lea ecx, [ebp - 0xa8]
push esi
push ebx
call fcn.010c8a42
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
call fcn.010c814b
test eax, eax
jge 0x10c6a39
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x5c
pop eax
lea ecx, [ebp - 0xa8]
mov word [edi], ax
call fcn.010c819e
xor edi, edi
mov eax, dword [0x111024c]
cmp dword [ebp - 0xac], edi
jl 0x10c6a8e
test byte [esi], 0x10
jne 0x10c6a8e
mov dword [ebp - 0xac], 0x80070057
cmp eax, 0x111024c
je 0x10c6a8e
test byte [eax + 0x1c], 8
je 0x10c6a8e
cmp byte [eax + 0x19], 2
jb 0x10c6a8e
push ebx
push 0x100e684
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0xc
Function at 0x10c6e6b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push 0
push 0
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10c6ea1
push 0
push 0
push 1
push 0x80070057
call edi
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010c39d4
pop ecx
push dword [ebp - 4]
mov dword [ebp + 8], eax
push dword [ebp + 8]
mov eax, dword [ebx + 8]
push eax
call esi
test eax, eax
jne 0x10c6ed7
push eax
push eax
push 1
push 0x80070057
call edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.010be795
test eax, eax
jge 0x10c6eee
push 0
push 0
push 1
push eax
call edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10d2cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov byte [esi], 0
call fcn.0107ec22
mov edi, eax
test edi, edi
jl 0x10d2d12
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10d2ce6
mov byte [esi], 1
jmp 0x10d2d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d2cfa
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, 0x80070003
je 0x10d2d0c
cmp edi, 0x80070002
jne 0x10d2d0e
xor edi, edi
test edi, edi
jge 0x10d2d40
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d2d40
test byte [eax + 0x1c], 1
je 0x10d2d40
cmp byte [eax + 0x19], 2
jb 0x10d2d40
push edi
push dword [ebp + 8]
push 0x100ffa4
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
cmp dword [ebp + 0xc], 0
je 0x10d2d4f
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x10d2d5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
xor edi, edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10d2d82
test al, 0x10
jne 0x10d2dca
mov byte [esi], 1
jmp 0x10d2dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d2d96
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x10d2dca
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d2dca
test byte [eax + 0x1c], 1
je 0x10d2dca
cmp byte [eax + 0x19], 2
jb 0x10d2dca
push edi
push dword [ebp + 8]
push 0x100ffa4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x10d2dd7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [0x111024c]
mov edi, 0x111024c
mov ebx, 0x100ffa4
cmp eax, edi
je 0x10d2e0c
test byte [eax + 0x1c], 1
je 0x10d2e0c
cmp byte [eax + 0x19], 5
jb 0x10d2e0c
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x10d2e27
push 0x100fff0
push 0xa8
push 0x100ffb4
call fcn.0107b644
push dword [ebp + 8]
and dword [ebp + 0xc], 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10d2e72
test eax, 0x400
je 0x10d2eb6
mov byte [esi], 1
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10d2ed9
test byte [eax + 0x1c], 1
je 0x10d2ebb
cmp byte [eax + 0x19], 4
jb 0x10d2ebb
push dword [ebp + 8]
push ebx
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x10d2eb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d2e86
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x10d2eb6
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10d2ed9
test byte [eax + 0x1c], 1
je 0x10d2ebb
cmp byte [eax + 0x19], 2
jb 0x10d2ebb
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10d2ed9
test byte [eax + 0x1c], 1
je 0x10d2ed9
cmp byte [eax + 0x19], 5
jb 0x10d2ed9
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10d2ee8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 8]
xor esi, esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10d2f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d2f38
test byte [eax + 0x1c], 1
je 0x10d2f38
cmp byte [eax + 0x19], 2
jb 0x10d2f38
push esi
push 0x100ffa4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
test esi, esi
jle 0x10d2f51
and esi, 0xffff
or esi, 0x80070000
jmp 0x10d2f51
test al, 4
je 0x10d2f51
mov byte [edi], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10d3a47
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10d3a93
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d3a87
test byte [eax + 0x1c], 1
je 0x10d3a87
cmp byte [eax + 0x19], 4
jb 0x10d3a87
push dword [ebp + 8]
push 0x100ffa4
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov dword [ebp + 0x14], 1
jmp 0x10d3b82
mov eax, dword [0x111024c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, 0x111024c
mov esi, 0x100ffa4
cmp eax, edi
je 0x10d3ad1
test byte [eax + 0x1c], 1
je 0x10d3ad1
cmp byte [eax + 0x19], 3
jb 0x10d3ad1
call ebx
push eax
mov eax, dword [0x111024c]
push esi
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0107e515
mov dword [ebp + 0x14], eax
test eax, eax
jge 0x10d3b13
mov ecx, dword [0x111024c]
cmp ecx, edi
je 0x10d3b55
test byte [ecx + 0x1c], 1
je 0x10d3b55
cmp byte [ecx + 0x19], 2
jb 0x10d3b55
push eax
push dword [ebp + 8]
push esi
push 0x4b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10d3b4f
push 0x2000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10d3b4f
call ebx
mov ecx, dword [0x111024c]
cmp ecx, edi
je 0x10d3b55
test byte [ecx + 0x1c], 1
je 0x10d3b55
cmp byte [ecx + 0x19], 3
jb 0x10d3b55
push eax
push dword [ebp + 8]
push esi
push 0x4c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
mov ecx, dword [0x111024c]
cmp dword [ebp + 0x14], 0
jge 0x10d3b7f
cmp ecx, edi
je 0x10d3b7f
test byte [ecx + 0x1c], 1
je 0x10d3b7f
cmp byte [ecx + 0x19], 2
jb 0x10d3b7f
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
push 0x4d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
pop edi
pop esi
pop ebx
mov eax, dword [ebp + 0x14]
pop ebp
ret 0x10

Function at 0x10d3b8e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10d3bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x10d3be4
test byte [ecx + 0x1c], 1
je 0x10d3be4
cmp byte [ecx + 0x19], 3
jb 0x10d3be4
push eax
push 0x100ffa4
push 0x4e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01019fa8
jmp 0x10d3be4
test al, 0x10
je 0x10d3be4
mov byte [esi], 1
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10d4b56
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x10d4b76
mov dword [eax], ebx
mov esi, 0x250
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10d4b99
mov eax, dword [0x111024c]
mov dword [ebp - 4], 0x8007000e
jmp 0x10d4cc5
push esi
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10d4c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10d4caa
cmp esi, 3
je 0x10d4caa
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d4c02
test byte [eax + 0x1c], 1
je 0x10d4c02
cmp byte [eax + 0x19], 3
jb 0x10d4c02
push esi
push dword [ebp + 8]
push 0x100ffa4
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
test esi, esi
jg 0x10d4c0e
mov dword [ebp - 4], esi
jmp 0x10d4caf
and esi, 0xffff
or esi, 0x80070000
jmp 0x10d4c06
lea eax, [ebp - 8]
push eax
lea esi, [edi + 0x2c]
push esi
push dword [ebp + 8]
call fcn.010d4a44
mov dword [ebp - 4], eax
test eax, eax
jge 0x10d4c66
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d4c8a
test byte [eax + 0x1c], 1
je 0x10d4c8a
cmp byte [eax + 0x19], 2
jb 0x10d4c8a
push dword [ebp - 4]
push esi
push dword [ebp + 8]
push 0x100ffa4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x10d4c85
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
or ebx, 0xffffffff
test eax, eax
je 0x10d4caa
mov dword [eax], edi
xor edi, edi
mov eax, dword [0x111024c]
cmp dword [ebp - 8], 0
je 0x10d4c9e
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp ebx, 0xffffffff
je 0x10d4caf
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x111024c]
test edi, edi
je 0x10d4cbf
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 4], 0
jge 0x10d4cf0
cmp eax, 0x111024c
je 0x10d4cf0
test byte [eax + 0x1c], 1
je 0x10d4cf0
cmp byte [eax + 0x19], 3
jb 0x10d4cf0
push dword [ebp - 4]
push dword [ebp + 8]
push 0x100ffa4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10d6c1d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push edi
xor eax, eax
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call esi
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x10d6c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d6c63
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
cmp eax, 0x800700ea
jne 0x10d6ce4
push 2
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0101ae15
mov dword [ebp - 4], eax
test eax, eax
jl 0x10d6dbe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10d6d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d6cab
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d6dc3
test byte [eax + 0x1c], 1
je 0x10d6dc3
cmp byte [eax + 0x19], 2
jb 0x10d6dc3
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10103e0
push 0x33
jmp 0x10d6db3
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d6dfc
test byte [eax + 0x1c], 1
je 0x10d6dd7
cmp byte [eax + 0x19], 2
jb 0x10d6dd7
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10103e0
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10d6dd2
mov esi, dword [ebp - 8]
jmp 0x10d6d77
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d6d55
test byte [eax + 0x1c], 1
je 0x10d6d55
cmp byte [eax + 0x19], 4
jb 0x10d6d55
push esi
push 0x10103e0
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x10d6d7f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10d6d65
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x10d6d2a
jmp 0x10d6dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d6d8d
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d6dc3
test byte [eax + 0x1c], 1
je 0x10d6dc3
cmp byte [eax + 0x19], 2
jb 0x10d6dc3
push dword [ebp - 4]
push esi
push 0x10103e0
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp dword [ebp - 8], 0
je 0x10d6dd7
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d6dfc
test byte [eax + 0x1c], 1
je 0x10d6dfc
cmp byte [eax + 0x19], 4
jb 0x10d6dfc
push 0x10103e0
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10d80ff
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.010d7fb9
mov esi, eax
mov ebx, 0x111024c
mov edi, 0x10103e0
test esi, esi
jl 0x10d816f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10d816f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d8149
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d816f
test byte [eax + 0x1c], 1
je 0x10d816f
cmp byte [eax + 0x19], 2
jb 0x10d816f
push esi
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jge 0x10d81a3
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d81a3
test byte [eax + 0x1c], 1
je 0x10d81a3
cmp byte [eax + 0x19], 2
jb 0x10d81a3
push esi
push dword [ebp + 8]
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10dde4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x20], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
xor esi, esi
push 0x10031a0
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
call fcn.0107ca99
mov ebx, eax
cmp ebx, esi
jl 0x10ddf6d
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10ddeff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ddeeb
test byte [eax + 0x1c], 1
je 0x10ddeeb
cmp byte [eax + 0x19], 2
jb 0x10ddeeb
push esi
push dword [ebp - 0x18]
push 0x1010df4
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
test esi, esi
jle 0x10ddefb
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
jmp 0x10ddf72
push esi
lea ecx, [ebp - 0x28]
push ecx
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10ddf4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ddeeb
test byte [eax + 0x1c], 1
je 0x10ddeeb
cmp byte [eax + 0x19], 2
jb 0x10ddeeb
push esi
push dword [ebp - 0x18]
push 0x1010df4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10ddee6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x10ddf66
mov ebx, 0x8007000e
jmp 0x10ddf6d
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x111024c]
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x10ddf87
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x1c], esi
je 0x10ddf9e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [0x111024c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x20], 0xffffffff
je 0x10ddfb2
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp ebx, esi
jge 0x10ddfdf
cmp eax, 0x111024c
je 0x10ddfdf
test byte [eax + 0x1c], 1
je 0x10ddfdf
cmp byte [eax + 0x19], 2
jb 0x10ddfdf
push ebx
push dword [ebp - 0x24]
push 0x1010df4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 8
Function at 0x10de3b7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
xor esi, esi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10de3e4
cmp eax, 5
je 0x10de3e4
cmp eax, 2
jne 0x10de48a
push edi
cmp eax, 2
jne 0x10de483
lea eax, [ebp + 0xb]
push eax
push ebx
mov byte [ebp + 0xb], 0
call fcn.010d62a9
mov esi, eax
mov edi, 0x1010df4
test esi, esi
jge 0x10de435
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10de42f
test byte [eax + 0x1c], 1
je 0x10de42f
cmp byte [eax + 0x19], 3
jb 0x10de42f
push esi
push ebx
push edi
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov byte [ebp + 0xb], 0
xor esi, esi
cmp byte [ebp + 0xb], 0
jne 0x10de489
lea eax, [ebp - 1]
push eax
push ebx
mov byte [ebp - 1], 0
call fcn.010e587e
mov esi, eax
test esi, esi
jge 0x10de47d
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10de477
test byte [eax + 0x1c], 1
je 0x10de477
cmp byte [eax + 0x19], 3
jb 0x10de477
push esi
push ebx
push edi
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov byte [ebp - 1], 1
xor esi, esi
cmp byte [ebp - 1], 0
je 0x10de489
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8