joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10ab1ab
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x10ab22c
push 0x100feb0
push ebx
push 6
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10ab22c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push 0x100fed8
push ebx
push 2
call edi
push 0x100ff04
push ebx
push 2
mov dword [esi + 0xc], eax
call edi
push 0x100ff30
push ebx
push 0x100000
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
cmp dword [esi + 0xc], ebx
je 0x10ab22b
cmp dword [esi + 0x10], ebx
je 0x10ab22b
push 0x80c
push ebx
push ebx
push 6
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 8], edi
cmp edi, ebx
je 0x10ab22b
xor eax, eax
stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10ab683
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x7405c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10ab6c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ab6d2
and eax, 0xffff
or eax, 0x80070000
jmp 0x10ab6d2
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 4], edx
leave
ret 8

Function at 0x10ab735
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10ab7c4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebx
jne 0x10ab7b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5a1
jmp 0x10ab7d1
cmp dword [ebp - 0x14], ebx
setne al
mov byte [esi], al
xor eax, eax
jmp 0x10ab7de
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5ad
push 0x1010114
call fcn.010a4cf0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aa5e1
leave
ret 8
Function at 0x10ab7f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push 0x100ffc8
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10ab861
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x10ab855
cmp dword [ebp - 8], 4
jne 0x10ab855
cmp dword [ebp - 0xc], eax
setne al
mov byte [esi], al
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x10abf79
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x11b7575
call fcn.010aa62e
mov ebx, dword [ebp + 8]
xor eax, eax
xor esi, esi
push 0x104
lea ecx, [ebp + 8]
mov word [ebx], ax
mov dword [ebp - 4], esi
call fcn.01081fbb
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
mov byte [ebp - 4], 1
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jne 0x10abfe4
lea ecx, [ebp + 8]
call fcn.01084449
lea ecx, [ebp + 8]
call fcn.0107cb17
test al, al
je 0x10abfd5
mov edi, 0x80004005
jmp 0x10abfe4
push esi
lea ecx, [ebp + 8]
call fcn.0108ceb4
mov ax, word [eax]
mov word [ebx], ax
lea ecx, [ebp + 8]
call fcn.0107d6e4
jmp 0x10abffe
mov eax, edi
call fcn.010aa6e2
ret 4

Function at 0x10ac107
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.010820b6
mov eax, dword [edi]
push dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10ac144
cmp eax, esi
ja 0x10ac144
mov ecx, edi
call fcn.01084449
mov ecx, edi
call fcn.010b572e
xor eax, eax
jmp 0x10ac14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
ret 4
Function at 0x10ac335
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x11b5fb3
call fcn.010aa5f6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0107f04e
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.010ac107
mov edi, eax
cmp edi, esi
je 0x10ac382
lea ecx, [ebp - 0x10]
call fcn.0107d6e4
lea ecx, [ebp - 0x24]
call fcn.01098cb1
mov eax, edi
call fcn.010aa6e2
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
push esi
push esi
lea ecx, [ebp - 0x24]
push ecx
push 0x1010498
push eax
call fcn.010a7b90
cmp eax, esi
je 0x10ac3b3
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.0107d6e4
lea ecx, [ebp - 0x24]
call fcn.01098cb1
mov eax, esi
jmp 0x10ac37c
xor edi, edi
cmp dword [ebp - 0x20], esi
je 0x10ac3ff
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp eax, esi
jbe 0x10ac3ff
add ecx, 0xfffffffc
push ecx
lea ecx, [ebp - 0x14]
call fcn.0107df5e
lea ecx, [ebp - 0x24]
call fcn.0108f390
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10ac3f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.0107d6e4
jmp 0x10ac3b5
mov esi, edi
jmp 0x10ac39f

Function at 0x10ac576
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x104
mov ecx, esi
call fcn.010820b6
mov ecx, esi
call fcn.010831c6
mov eax, dword [esi]
push dword [eax + 0xc]
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
mov ecx, esi
test ebx, ebx
jge 0x10ac5b7
call fcn.010831c6
mov eax, ebx
jmp 0x10ac5d1
call fcn.01084449
mov ecx, esi
call fcn.010abeb1
push 0x100ffa0
mov ecx, esi
call fcn.010830c4
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10ae407
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x104
mov ecx, esi
call fcn.010820b6
mov ecx, esi
call fcn.010831c6
mov eax, dword [esi]
push dword [eax + 0xc]
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
mov ecx, esi
test ebx, ebx
jge 0x10ae448
call fcn.010831c6
mov eax, ebx
jmp 0x10ae462
call fcn.01084449
mov ecx, esi
call fcn.010abeb1
push 0x1010590
mov ecx, esi
call fcn.010830c4
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10b31e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.010b3103
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov ax, bx
shr ax, 4
inc ax
movzx eax, ax
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10b3242
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.010b2fd2
push 5
pop ecx
mov esi, eax
push 0x11c3cd8
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll__CxxThrowException
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10b3252
push 2
jmp 0x10b321b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10b3262
push 3
jmp 0x10b321b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x10b3271
push 4
jmp 0x10b321b
movzx ecx, bx
and ecx, 0x8000000f
jns 0x10b3281
dec ecx
or ecx, 0xfffffff0
inc ecx
movzx ecx, cx
xor esi, esi
movzx edx, cx
movzx ecx, word [eax]
inc eax
inc eax
cmp esi, edx
je 0x10b32a8
movzx ecx, cx
inc esi
lea eax, [eax + ecx*2]
cmp esi, 0x10
jb 0x10b3289
push 0x3e7
jmp 0x10b321b
test cx, cx
jne 0x10b32b4
push 5
jmp 0x10b321b
movzx ecx, cx
cmp word [eax + ecx*2 - 2], 0
jne 0x10b32c6
pop edi
pop esi
pop ebx
leave
ret 0x10
push 6
jmp 0x10b321b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10b5610
cmp word [eax], 0
je 0x10b5610
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10b5610
and eax, 0x1010
neg eax
sbb al, al
inc al
jmp 0x10b5612
xor al, al
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10b56c4
cmp word [eax], 0
je 0x10b56c4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10b56c4
test eax, 0x1016
jne 0x10b56c4
mov al, 1
jmp 0x10b56c6
xor al, al
pop ebp
ret 4
Function at 0x10b5869
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push esi
push 0x101237c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x10b5886
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101235c
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x10b58a4
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x101233c
push dword [esi]
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x10b58bc
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x101232c
push dword [esi]
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x10b58d4
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1012318
push dword [esi]
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10b58ec
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10122f4
push dword [esi]
call edi
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x10b5b17
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x10b5b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x10b9209
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x10b9258
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x10b924d
push dword [ebp - 4]
call fcn.010a9635
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x10b9258
push edi
call fcn.010a960b
pop ecx
call ebx
jmp 0x10b92d3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
and dword [ebp + 0x10], 0
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
jbe 0x10b9291
push 0x18
xor edx, edx
lea eax, [ecx - 1]
pop ebx
div ebx
lea esi, [edi + 4]
inc eax
cmp dword [esi], 3
jne 0x10b928b
inc dword [ebp + 0x10]
add esi, 0x18
dec eax
jne 0x10b9283
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [eax], edx
test ecx, ecx
jbe 0x10b92c5
lea eax, [ecx - 1]
push 0x18
xor edx, edx
pop ecx
div ecx
lea esi, [edi + 8]
inc eax
cmp dword [esi - 4], 0
jne 0x10b92bf
inc ebx
test byte [esi], 1
je 0x10b92bf
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
add esi, 0x18
dec eax
jne 0x10b92ad
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], ebx
call fcn.010a960b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10bda0b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
push edi
mov esi, ecx
mov dword [esi + 0xe0], eax
lea eax, [ebp - 0x218]
push eax
push 4
push esi
xor ebx, ebx
push 0x10bd9ae
push ebx
push ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x10bdb02
cmp edi, ebx
je 0x10bdb02
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
test eax, eax
jne 0x10bdab2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x210]
call fcn.0107b963
mov esi, dword [esi + 0x70]
cmp esi, ebx
je 0x10bda9a
lea ebx, [esi + 0x90]
lea eax, [ebp - 0x210]
push eax
push 0xa
push 0x27d
push 0x4f8
jmp 0x10bdb35
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
cmp eax, 0xffffffff
jne 0x10bdaf6
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x210]
call fcn.0107b963
mov esi, dword [esi + 0x70]
cmp esi, ebx
je 0x10bdae1
lea ebx, [esi + 0x90]
lea eax, [ebp - 0x210]
push eax
push 0xa
push 0x27e
push 0x4ff
jmp 0x10bdb35
mov eax, dword [ebp - 0x214]
mov dword [eax], edi
xor eax, eax
jmp 0x10bdb61
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x210]
call fcn.0107b963
mov esi, dword [esi + 0x70]
cmp esi, ebx
je 0x10bdb22
lea ebx, [esi + 0x90]
lea eax, [ebp - 0x210]
push eax
push 0xa
push 0x27c
push 0x4f1
push 0x10141a0
call fcn.010b32d2
push eax
push ebx
call fcn.01084781
pop ecx
pop ecx
mov ecx, eax
call fcn.01084b7d
push eax
call fcn.01084781
push eax
call fcn.010855f6
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aa5e1
leave
ret 0xc

Function at 0x10cee6a
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push 8
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push 0x7405c
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10ceeba
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov al, 1
jmp 0x10ceebc
xor al, al
pop edi
pop esi
leave
ret
Function at 0x10cf0ac
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
mov esi, ecx
add dword [esi], eax
push edi
adc dword [esi + 4], 0
cmp dword [esi + 4], 0
jl 0x10cf195
jg 0x10cf0da
cmp dword [esi], 0x3e8
jb 0x10cf195
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jg 0x10cf19e
jl 0x10cf0fb
cmp ecx, 0x3938700
ja 0x10cf19e
push 0
push 0x3e8
push eax
push ecx
call fcn.011ab490
mov edi, eax
lea eax, [ebp - 0x10]
push eax
call ebx
test eax, eax
je 0x10cf19e
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
je 0x10cf19e
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
push 0
push 0xf4240
push ecx
push eax
call fcn.011ab190
push dword [esi + 0xc]
push dword [esi + 8]
push edx
push eax
call fcn.011ab490
test edx, edx
jg 0x10cf16e
jl 0x10cf15d
test eax, eax
jae 0x10cf161
xor eax, eax
xor edx, edx
test edx, edx
jl 0x10cf178
jg 0x10cf16e
cmp eax, 0xea60
jbe 0x10cf178
imul edi, edi, 0x3e8
mov eax, edi
xor edx, edx
sub dword [esi], eax
sbb dword [esi + 4], edx
cmp dword [esi + 4], 0
jg 0x10cf0e0
jl 0x10cf195
cmp dword [esi], 0x3e8
jae 0x10cf0e0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x10cf197
Function at 0x10cf944
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10cf980
xor al, al
jmp 0x10cf9b4
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x10cf97c
mov eax, dword [ebp - 0x214]
imul eax, dword [ebp - 0x210]
mov dword [esi], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010aa5e1
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x18]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10cf9e2
xor al, al
jmp 0x10cf9f0
mov edx, dword [ebp + 8]
mov ecx, eax
shr ecx, 0xb
mov al, 1
and cl, al
mov byte [edx], cl
pop ebp
ret 4

Function at 0x10cfc28
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10cfc41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x40], 0xffffffff
xor ebx, ebx
cmp byte [esi + 0x58], bl
je 0x10cfc54
mov eax, dword [esi + 0x18]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x18]
mov byte [esi + 0x58], bl
call fcn.010831c6
mov dword [esi + 0x48], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
pop esi
pop ebx
ret

Function at 0x10d004e
Capabilities:
Get disk information

Disassembly:
push 0x60
mov eax, 0x11b997a
call fcn.010aa5f6
push dword [ecx + 0x14]
push dword [ecx + 0x50]
lea ecx, [ebp - 0x6c]
call fcn.010cfd7d
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
test edi, edi
jne 0x10d0096
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.010cfde9
mov al, bl
call fcn.010aa6e2
ret 0x18
push 2
pop esi
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
test edi, eax
je 0x10d00ea
lea eax, [esi + 0x41]
push eax
push dword [ebp + 8]
call fcn.010d002b
push 0
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.010cfc76
test al, al
je 0x10d00ea
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x6c]
push dword [ebp + 0x18]
mov byte [ebp - 0x20], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.010cfba3
lea ecx, [ebp - 0x6c]
test al, al
jne 0x10d00f2
call fcn.010cfc28
inc esi
cmp esi, 0x1a
jb 0x10d0099
jmp 0x10d00fa
call fcn.010cfc28
mov byte [ebx], 1
mov bl, 1
jmp 0x10d0080
Function at 0x10d13e2
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10d143c
push dword [ebp + 8]
push 0x1015568
push 0x1235b98
call fcn.01084781
pop ecx
pop ecx
push eax
call fcn.01084781
push eax
call fcn.010855f6
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10d14f2
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10d1458
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10d14e9
cmp dword [ebp - 0xc], esi
mov edi, dword [ebp - 0x10]
jl 0x10d146e
jg 0x10d1467
cmp edi, 0xffffffff
jb 0x10d146e
mov esi, 0xdf
jmp 0x10d14e9
lea eax, [edi + 1]
push 0x12330b6
push eax
call fcn.010aa735
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
jne 0x10d1489
push 8
pop esi
jmp 0x10d14e9
test edi, edi
jbe 0x10d14b8
mov eax, edi
sub eax, esi
cmp eax, 0xffffffff
jbe 0x10d1499
or eax, 0xffffffff
push 0
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10d14da
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x10d148d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
mov dword [ecx], edi
mov eax, dword [eax]
mov byte [edi + eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.010a9620
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10d14d3

Function at 0x10d1c4f
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x10d1c6a
mov eax, dword [esi + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x10d1ede
Capabilities:
Copy file

Disassembly:
push 8
mov eax, 0x11b9b41
call fcn.010aa62e
mov esi, ecx
lea ecx, [ebp - 0x14]
call fcn.0107f04e
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01097a4d
push 0x101582c
lea ecx, [ebp - 0x14]
call fcn.010830c4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0xc]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10d1f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10d1f4b
mov dword [ebp + 8], edi
lea ecx, [ebp - 0x14]
call fcn.0107d6e4
mov eax, dword [ebp + 8]
call fcn.010aa6e2
ret 4