joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10c1175
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], 0x100d598
cmp byte [ebp + 8], bl
jne 0x10c11bc
mov dword [ebp - 0x210], 0x100d510
mov esi, 0x2000
push esi
call fcn.010c82e6
pop ecx
mov dword [ebp - 0x21c], eax
cmp eax, ebx
jne 0x10c120e
mov ecx, dword [0x1111a4c]
mov eax, 0x8007000e
push 0x100ce9c
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], 0x1fa
mov dword [ebp - 0x228], edi
push 0x100cc58
jmp 0x10c1378
push esi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x111124c]
mov edi, 0x111124c
mov ebx, 0x100cee0
cmp eax, edi
je 0x10c124c
test byte [eax + 0x1c], 8
je 0x10c124c
cmp byte [eax + 0x19], 4
jb 0x10c124c
push dword [ebp - 0x210]
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push dword [ebp - 0x210]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10c12ab
mov ecx, dword [0x111124c]
cmp ecx, edi
je 0x10c1396
test byte [ecx + 0x1c], 1
je 0x10c1396
cmp byte [ecx + 0x19], 3
jb 0x10c1396
push eax
push dword [ebp - 0x210]
push ebx
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10c1396
xor edi, edi
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x218]
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
jne 0x10c1326
cmp dword [ebp - 0x210], 7
jne 0x10c12ad
push dword [ebp + 8]
mov ecx, dword [ebp - 0x224]
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call fcn.010c0ed2
and dword [ebp - 0x214], 0
jmp 0x10c12ad
cmp eax, 0x103
je 0x10c1396
test eax, eax
jle 0x10c133b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x214], eax
mov eax, dword [0x1111a4c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x224]
push 0x100d504
mov dword [ebp - 0x22c], 0x22d
mov dword [ebp - 0x228], eax
push 0x100d4c0
lea eax, [ebp - 0x238]
push 0x100cc1c
push eax
mov dword [ebp - 0x230], 0x100cf80
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const__
add esp, 0x10
cmp dword [ebp - 0x218], 0
pop edi
pop esi
pop ebx
je 0x10c13ae
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x214]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 4
Function at 0x10c6a8d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x111127c]
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 0x10c6aba
cmp word [ebx], di
je 0x10c6aba
cmp esi, edi
jne 0x10c6ace
push 0x100d6c0
push 0x75c
push 0x100e694
call fcn.0107b4be
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 0x10c6bb4
push dword [ebp + 0x10]
lea eax, [ebp - 0xd0]
push eax
push edi
push ebx
call fcn.010c5f38
cmp eax, edi
mov dword [ebp - 0xac], eax
jl 0x10c6b70
mov edi, dword [ebp - 0xd0]
test edi, 0x400
jne 0x10c6bb2
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 0x10c6c40
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10c6c47
test byte [eax + 0x1c], 8
je 0x10c6c47
cmp byte [eax + 0x19], 2
jb 0x10c6c47
push dword [ebp - 0xac]
push ebx
push 0x100e684
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10c6c42
xor edi, edi
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10c6bb9
sub eax, edx
sar eax, 1
mov edi, eax
je 0x10c6bd3
cmp word [ebx + edi*2 - 2], 0x5c
je 0x10c6be7
push 0x100eabc
push 0x790
push 0x100e694
call fcn.0107b4be
xor eax, eax
lea edi, [ebx + edi*2 - 2]
lea ecx, [ebp - 0xa8]
mov word [edi], ax
call fcn.010c8383
push 0
push dword [ebp + 0x10]
lea ecx, [ebp - 0xa8]
push esi
push ebx
call fcn.010c8c69
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
call fcn.010c8372
test eax, eax
jge 0x10c6c2f
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.010c83c5
xor edi, edi
mov eax, dword [0x111124c]
cmp dword [ebp - 0xac], edi
jl 0x10c6c84
test byte [esi], 0x10
jne 0x10c6c84
mov dword [ebp - 0xac], 0x80070057
cmp eax, 0x111124c
je 0x10c6c84
test byte [eax + 0x1c], 8
je 0x10c6c84
cmp byte [eax + 0x19], 2
jb 0x10c6c84
push ebx
push 0x100e684
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0xc
Function at 0x10c7061
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 0x10c7097
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.010c82e6
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 0x10c70cd
push eax
push eax
push 1
push 0x80070057
call edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.010be9f9
test eax, eax
jge 0x10c70e4
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 0x10d2d4a
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.0107eb70
mov edi, eax
test edi, edi
jl 0x10d2dac
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10d2d80
mov byte [esi], 1
jmp 0x10d2da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d2d94
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, 0x80070003
je 0x10d2da6
cmp edi, 0x80070002
jne 0x10d2da8
xor edi, edi
test edi, edi
jge 0x10d2dda
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2dda
test byte [eax + 0x1c], 1
je 0x10d2dda
cmp byte [eax + 0x19], 2
jb 0x10d2dda
push edi
push dword [ebp + 8]
push 0x100ffa4
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
cmp dword [ebp + 0xc], 0
je 0x10d2de9
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x10d2df6
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 0x10d2e1c
test al, 0x10
jne 0x10d2e64
mov byte [esi], 1
jmp 0x10d2e64
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d2e30
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jge 0x10d2e64
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2e64
test byte [eax + 0x1c], 1
je 0x10d2e64
cmp byte [eax + 0x19], 2
jb 0x10d2e64
push edi
push dword [ebp + 8]
push 0x100ffa4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x10d2e71
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 [0x111124c]
mov edi, 0x111124c
mov ebx, 0x100ffa4
cmp eax, edi
je 0x10d2ea6
test byte [eax + 0x1c], 1
je 0x10d2ea6
cmp byte [eax + 0x19], 5
jb 0x10d2ea6
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x10d2ec1
push 0x100fff0
push 0xa8
push 0x100ffb4
call fcn.0107b4be
push dword [ebp + 8]
and dword [ebp + 0xc], 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10d2f0c
test eax, 0x400
je 0x10d2f50
mov byte [esi], 1
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10d2f73
test byte [eax + 0x1c], 1
je 0x10d2f55
cmp byte [eax + 0x19], 4
jb 0x10d2f55
push dword [ebp + 8]
push ebx
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x10d2f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d2f20
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x10d2f50
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10d2f73
test byte [eax + 0x1c], 1
je 0x10d2f55
cmp byte [eax + 0x19], 2
jb 0x10d2f55
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp eax, edi
je 0x10d2f73
test byte [eax + 0x1c], 1
je 0x10d2f73
cmp byte [eax + 0x19], 5
jb 0x10d2f73
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10d2f82
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 0x10d2fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2fd2
test byte [eax + 0x1c], 1
je 0x10d2fd2
cmp byte [eax + 0x19], 2
jb 0x10d2fd2
push esi
push 0x100ffa4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x10d2feb
and esi, 0xffff
or esi, 0x80070000
jmp 0x10d2feb
test al, 4
je 0x10d2feb
mov byte [edi], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10d3ae1
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 0x10d3b2d
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d3b21
test byte [eax + 0x1c], 1
je 0x10d3b21
cmp byte [eax + 0x19], 4
jb 0x10d3b21
push dword [ebp + 8]
push 0x100ffa4
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov dword [ebp + 0x14], 1
jmp 0x10d3c1c
mov eax, dword [0x111124c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, 0x111124c
mov esi, 0x100ffa4
cmp eax, edi
je 0x10d3b6b
test byte [eax + 0x1c], 1
je 0x10d3b6b
cmp byte [eax + 0x19], 3
jb 0x10d3b6b
call ebx
push eax
mov eax, dword [0x111124c]
push esi
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0107e463
mov dword [ebp + 0x14], eax
test eax, eax
jge 0x10d3bad
mov ecx, dword [0x111124c]
cmp ecx, edi
je 0x10d3bef
test byte [ecx + 0x1c], 1
je 0x10d3bef
cmp byte [ecx + 0x19], 2
jb 0x10d3bef
push eax
push dword [ebp + 8]
push esi
push 0x4b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x10d3be9
push 0x2000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10d3be9
call ebx
mov ecx, dword [0x111124c]
cmp ecx, edi
je 0x10d3bef
test byte [ecx + 0x1c], 1
je 0x10d3bef
cmp byte [ecx + 0x19], 3
jb 0x10d3bef
push eax
push dword [ebp + 8]
push esi
push 0x4c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
mov ecx, dword [0x111124c]
cmp dword [ebp + 0x14], 0
jge 0x10d3c19
cmp ecx, edi
je 0x10d3c19
test byte [ecx + 0x1c], 1
je 0x10d3c19
cmp byte [ecx + 0x19], 2
jb 0x10d3c19
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
push 0x4d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
pop edi
pop esi
pop ebx
mov eax, dword [ebp + 0x14]
pop ebp
ret 0x10

Function at 0x10d3c28
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 0x10d3c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x10d3c7e
test byte [ecx + 0x1c], 1
je 0x10d3c7e
cmp byte [ecx + 0x19], 3
jb 0x10d3c7e
push eax
push 0x100ffa4
push 0x4e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010189f6
jmp 0x10d3c7e
test al, 0x10
je 0x10d3c7e
mov byte [esi], 1
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10d4c08
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 0x10d4c28
mov dword [eax], ebx
mov esi, 0x250
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10d4c4b
mov eax, dword [0x111124c]
mov dword [ebp - 4], 0x8007000e
jmp 0x10d4d77
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 0x10d4cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10d4d5c
cmp esi, 3
je 0x10d4d5c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d4cb4
test byte [eax + 0x1c], 1
je 0x10d4cb4
cmp byte [eax + 0x19], 3
jb 0x10d4cb4
push esi
push dword [ebp + 8]
push 0x100ffa4
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
test esi, esi
jg 0x10d4cc0
mov dword [ebp - 4], esi
jmp 0x10d4d61
and esi, 0xffff
or esi, 0x80070000
jmp 0x10d4cb8
lea eax, [ebp - 8]
push eax
lea esi, [edi + 0x2c]
push esi
push dword [ebp + 8]
call fcn.010d4af6
mov dword [ebp - 4], eax
test eax, eax
jge 0x10d4d18
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d4d3c
test byte [eax + 0x1c], 1
je 0x10d4d3c
cmp byte [eax + 0x19], 2
jb 0x10d4d3c
push dword [ebp - 4]
push esi
push dword [ebp + 8]
push 0x100ffa4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
jmp 0x10d4d37
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 0x10d4d5c
mov dword [eax], edi
xor edi, edi
mov eax, dword [0x111124c]
cmp dword [ebp - 8], 0
je 0x10d4d50
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp ebx, 0xffffffff
je 0x10d4d61
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x111124c]
test edi, edi
je 0x10d4d71
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 4], 0
jge 0x10d4da2
cmp eax, 0x111124c
je 0x10d4da2
test byte [eax + 0x1c], 1
je 0x10d4da2
cmp byte [eax + 0x19], 3
jb 0x10d4da2
push dword [ebp - 4]
push dword [ebp + 8]
push 0x100ffa4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10d6ccf
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 0x10d6d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d6d15
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
cmp eax, 0x800700ea
jne 0x10d6d96
push 2
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0101aed5
mov dword [ebp - 4], eax
test eax, eax
jl 0x10d6e70
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10d6dd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d6d5d
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d6e75
test byte [eax + 0x1c], 1
je 0x10d6e75
cmp byte [eax + 0x19], 2
jb 0x10d6e75
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10103e0
push 0x33
jmp 0x10d6e65
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d6eae
test byte [eax + 0x1c], 1
je 0x10d6e89
cmp byte [eax + 0x19], 2
jb 0x10d6e89
push dword [ebp - 4]
push dword [ebp + 8]
push 0x10103e0
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10d6e84
mov esi, dword [ebp - 8]
jmp 0x10d6e29
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d6e07
test byte [eax + 0x1c], 1
je 0x10d6e07
cmp byte [eax + 0x19], 4
jb 0x10d6e07
push esi
push 0x10103e0
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push esi
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x10d6e31
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10d6e17
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x10d6ddc
jmp 0x10d6e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d6e3f
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d6e75
test byte [eax + 0x1c], 1
je 0x10d6e75
cmp byte [eax + 0x19], 2
jb 0x10d6e75
push dword [ebp - 4]
push esi
push 0x10103e0
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp dword [ebp - 8], 0
je 0x10d6e89
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d6eae
test byte [eax + 0x1c], 1
je 0x10d6eae
cmp byte [eax + 0x19], 4
jb 0x10d6eae
push 0x10103e0
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10d81b2
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.010d806c
mov esi, eax
mov ebx, 0x111124c
mov edi, 0x10103e0
test esi, esi
jl 0x10d8222
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10d8222
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10d81fc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d8222
test byte [eax + 0x1c], 1
je 0x10d8222
cmp byte [eax + 0x19], 2
jb 0x10d8222
push esi
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jge 0x10d8256
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d8256
test byte [eax + 0x1c], 1
je 0x10d8256
cmp byte [eax + 0x19], 2
jb 0x10d8256
push esi
push dword [ebp + 8]
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10ddf3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x111127c]
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 0x1003198
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
call fcn.0107c90e
mov ebx, eax
cmp ebx, esi
jl 0x10de05b
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 0x10ddfed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ddfd9
test byte [eax + 0x1c], 1
je 0x10ddfd9
cmp byte [eax + 0x19], 2
jb 0x10ddfd9
push esi
push dword [ebp - 0x18]
push 0x1010cfc
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
test esi, esi
jle 0x10ddfe9
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
jmp 0x10de060
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 0x10de03b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ddfd9
test byte [eax + 0x1c], 1
je 0x10ddfd9
cmp byte [eax + 0x19], 2
jb 0x10ddfd9
push esi
push dword [ebp - 0x18]
push 0x1010cfc
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10ddfd4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x10de054
mov ebx, 0x8007000e
jmp 0x10de05b
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 [0x111124c]
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x10de075
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x1c], esi
je 0x10de08c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [0x111124c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x20], 0xffffffff
je 0x10de0a0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111124c]
cmp ebx, esi
jge 0x10de0cd
cmp eax, 0x111124c
je 0x10de0cd
test byte [eax + 0x1c], 1
je 0x10de0cd
cmp byte [eax + 0x19], 2
jb 0x10de0cd
push ebx
push dword [ebp - 0x24]
push 0x1010cfc
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8