joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100378f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078878
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
cmp dword [0x100a05c4], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
je 0x10037a0f
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], 0
je 0x10037a0f
add eax, 2
lea ecx, [esp + 0x44]
call fcn.10007820
lea ebx, [esp + 0x34]
lea edi, [esp + 0x44]
mov dword [esp + 0x70], 0
call fcn.1000c710
mov esi, dword [eax]
mov eax, dword [eax + 4]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.1000c760
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.1000c710
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
push esi
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
push ecx
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1000e0e0
mov ebx, dword [0x100a169c]
mov edi, dword [0x100a1684]
add esp, 0x18
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x30]
push edx
mov esi, 0x100a1684
call fcn.10010150
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x100379f1
cmp eax, edi
je 0x100379f6
call fcn.1005f2e0
cmp dword [esi + 4], ebx
jne 0x10037a13
cmp dword [esp + 0x5c], 8
jb 0x10037a0f
mov eax, dword [esp + 0x48]
push eax
call fcn.1005f31a
add esp, 4
xor eax, eax
jmp 0x10037a69
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10037a30
lea esi, [esp + 0x44]
call fcn.1002fe50
xor eax, eax
jmp 0x10037a69
test al, 0x10
jne 0x10037a23
push esi
call fcn.10039f7d
test edx, edx
ja 0x10037a43
cmp eax, 1
jbe 0x10037a5c
mov esi, dword [0x100a05c4]
xor ecx, ecx
cmp edx, ecx
ja 0x10037a5c
jb 0x10037a55
cmp eax, esi
ja 0x10037a5c
mov edi, 1
jmp 0x10037a5e
xor edi, edi
lea esi, [esp + 0x44]
call fcn.1002fe50
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1005ebcb
mov esp, ebp
pop ebp
ret
Function at 0x10037eb0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007ed08
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x10099060]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push esi
mov dword [esp + 0x14], edi
call fcn.100378f0
add esp, 4
test eax, eax
je 0x10038086
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
call fcn.1004f7b2
add esp, 4
test eax, eax
je 0x10038086
cmp dword [esp + 0x10], edi
je 0x10038086
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call fcn.10037a90
add esp, 4
mov dword [esp + 0x88], edi
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x10037f4a
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10038037
xor eax, eax
lea edx, [esp + 0x14]
push edx
push edi
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10038020
cmp dword [esp + 0x74], 8
mov eax, dword [esp + 0x60]
jae 0x10037fc3
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10038020
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jbe 0x10037ffa
lea edx, [esp + 0x5c]
push edx
mov esi, ebx
call fcn.10007860
lea esi, [esp + 0x5c]
call fcn.1002fe50
jmp 0x100380a3
jne 0x10038037
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x28]
jbe 0x10038037
lea ecx, [esp + 0x5c]
push ecx
mov esi, ebx
call fcn.10007860
lea esi, [esp + 0x5c]
call fcn.1002fe50
jmp 0x100380a3
mov eax, 0x10083c60
mov ecx, ebx
call fcn.10007820
lea esi, [esp + 0x5c]
call fcn.1002fe50
jmp 0x100380a3
cmp dword [esp + 0x74], 8
mov edi, dword [esp + 0x60]
jae 0x10038046
lea edi, [esp + 0x60]
call fcn.10039e5b
mov eax, dword [esp + 0x60]
mov edi, 8
cmp dword [esp + 0x74], edi
jae 0x1003805e
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x10038073
lea eax, [esp + 0x60]
push eax
push esi
call fcn.1004f75b
add esp, 8
test eax, eax
je 0x10038020
jmp 0x10037fe0
xor eax, eax
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], edi
mov word [ebx + 4], ax
push edi
mov eax, 0x10083c60
mov esi, ebx
call fcn.10009460
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1005ebcb
mov esp, ebp
pop ebp
ret
Function at 0x10038a90
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x100a07d4]
push esi
xor esi, esi
mov dword [0x100a07d0], 1
cmp eax, esi
je 0x10038ab6
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x100a07d4], esi
cmp dword [0x100a05c0], esi
je 0x10038acd
push 0x10038970
push 0x100a05bc
call fcn.1006c510
mov dword [0x100a05c0], esi
cmp dword [0x100a05b8], esi
je 0x10038b0b
lea eax, [esp + 4]
push eax
push 0x100815ac
push 0x15
push esi
push 0x100815bc
mov dword [esp + 0x18], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10038b0b
mov ecx, dword [0x100a05b8]
mov esi, dword [esp + 4]
push ecx
call fcn.100183e0
pop esi
pop ecx
ret

Function at 0x10038e80
Capabilities:
Create thread

Disassembly:
mov eax, 0x1010
call fcn.1006a730
mov eax, dword [0x10099060]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
push str._ClearThumbnailCacheThread
push 0x107
push str.._thumbnail.cpp
push str._s._d:_s
lea eax, [esp + 0x18]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x10038c80
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10038efd
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push str.thread__d_created:__s
call fcn.1003e42d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x100c]
pop esi
xor ecx, esp
call fcn.1005ebcb
add esp, 0x1010
ret
Function at 0x10039a23
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x10039c48
test eax, eax
jne 0x10039a74
test ecx, ecx
je 0x10039c48
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x10039aca
cmp ax, 0x5c
je 0x10039aca
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.10062cf0
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10039c48
test al, 0x10
je 0x10039c48
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x100868d4
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x10039c48
mov dword [ebp - 0xa7c], 1
push 0x10087ce4
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10039c0d
push 0x10086b24
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10039c0d
cmp dword [ebp - 0xa78], 0xffffffff
je 0x10039c0d
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x10039bed
cmp dword [ebp - 0xa80], 0
je 0x10039bb1
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x10039c2a
cmp dword [ebp + 0xc], 0
je 0x10039c0d
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.10039a23
push 2
pop ecx
cmp eax, ecx
jne 0x10039c0d
mov dword [ebp - 0xa7c], ecx
jmp 0x10039c34
cmp dword [ebp - 0xa84], 0
je 0x10039c0d
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x10039c2a
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10039b2d
jmp 0x10039c34
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x10039c4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret 0x18
Function at 0x10039c5b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x10079883
call fcn.100600fa
and dword [ebp - 0x678], 0
lea eax, [ebp - 0x6a0]
mov ebx, ecx
mov edi, edx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.10008bc0
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x10039ca9
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.1000cc00
jmp 0x10039dc0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push str..________.dirty
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x10039db3
push 0x10087ce4
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10039d8c
push 0x10086b24
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10039d8c
cmp dword [ebp - 0x670], 0xffffffff
je 0x10039d8c
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x6bc]
call fcn.10007820
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea ebx, [ebp - 0x6bc]
mov byte [ebp - 4], 2
call fcn.1000d330
mov esi, ebx
mov byte [ebp - 4], 1
call fcn.1002fe50
mov ebx, dword [ebp - 0x67c]
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10039cee
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.1000cc00
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.10007fc0
mov eax, ebx
call fcn.1006017d
ret
Function at 0x10039e5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x10039f55
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10039f55
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.10062cf0
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.1003abe1
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10039ed2
shr eax, 4
not eax
and eax, 1
jmp 0x10039f57
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.10039f65
test eax, eax
je 0x10039f55
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10039f37
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x10039f3d
mov dword [ebp - 0x41c], ebx
lea ecx, [ebp - 0x420]
call fcn.10001340
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10039f57
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret
Function at 0x1003a32b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.1006a730
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x1003a509
cmp eax, ebx
je 0x1003a509
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003a383
mov dword [ebp - 0x2020], 1
jmp 0x1003a509
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, 0x80000000
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x1003a4f3
cmp esi, 0xffffffff
je 0x1003a4f3
cmp eax, ebx
je 0x1003a4f3
cmp eax, 0xffffffff
je 0x1003a4f3
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x1003a4f3
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x1003a4f3
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x1003a4f3
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x1003a4f3
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x1003a4dd
cmp dword [ebp - 0x2018], ebx
je 0x1003a4e9
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a4f3
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x1003a4f3
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1003a4bf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1003a4f3
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003a467
jmp 0x1003a4f3
mov dword [ebp - 0x2020], 1
lea ecx, [ebp - 0x2014]
call fcn.10001340
lea ecx, [ebp - 0x2010]
call fcn.10001340
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret 4

Function at 0x1003a520
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003a537
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test al, 1
je 0x1003a546
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x1003a5da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003a5f5
xor eax, eax
jmp 0x1003a5f8
and eax, 1
ret 4

Function at 0x1003a5fb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003a611
xor eax, eax
jmp 0x1003a624
or eax, dword [esp + 0xc]
not esi
and eax, esi
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret 8

Function at 0x1003a877
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1003a8a3
call fcn.10039e5b
test eax, eax
jne 0x1003a8a3
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x1003a8c3
cmp esi, 0xffffffff
jne 0x1003a8db
cmp dword [ebp - 8], ebx
jne 0x1003a8cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xc]
call fcn.10001340
mov eax, ebx
jmp 0x1003a89c
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003a8ff
cmp dword [ebp - 4], edi
jne 0x1003a8ff
xor ebx, ebx
inc ebx
jmp 0x1003a8cf
cmp dword [ebp - 8], ebx
jne 0x1003a8cf
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x1003a918
cmp esi, ebx
je 0x1003a918
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x1003a8c9

Function at 0x1003ab67
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.10062cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
call fcn.1003aad0
mov eax, 0x179b06cc
xor ecx, ecx
push esi
movzx edx, byte [ebp + ecx - 0x80]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x1009cec8]
inc ecx
cmp ecx, 0x24
jl 0x1003abaf
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
not eax
pop esi
call fcn.1005ebcb
add ebp, 0x88
leave
ret
Function at 0x1003ac44
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp - 8], eax
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
push eax
push str.__c:
lea esi, [ebp - 0x60]
call fcn.1003c51f
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1003ac76
mov eax, dword [eax + 4]
jmp 0x1003ac79
add eax, 4
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x40], ebx
call fcn.100077c0
cmp ebx, esi
je 0x1003aca4
cmp ebx, 0xffffffff
jne 0x1003acbe
lea ecx, [ebp - 0x40]
call fcn.10001340
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
leave
ret
push 0x28
pop edx
push 9
pop ecx
xor eax, eax
push esi
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003ad0a
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10001340
mov eax, esi
jmp 0x1003acaf
mov esi, dword [ebp - 0x20]
jmp 0x1003acfe

Function at 0x1003ad0f
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10099060]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
test edi, edi
je 0x1003ade6
test ebx, ebx
je 0x1003ade6
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x1003ad6b
push ebx
push 0x10087da4
push esi
mov eax, edi
call fcn.1003c239
xor eax, eax
inc eax
jmp 0x1003ade8
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x80], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x80]
test ecx, eax
je 0x1003ade0
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp + 0x194], ax
pop eax
mov word [ebp + 0x196], ax
xor eax, eax
push 0x206
lea edi, [ebp + 0x198]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.10062cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1003ade0
push dword [ebp - 0x78]
lea esi, [ebp - 0x74]
call fcn.1003c44d
test eax, eax
jne 0x1003ae00
inc ebx
cmp ebx, 0x1a
jl 0x1003ad76
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ebcb
add ebp, 0x1a0
leave
ret
push dword [ebp - 0x7c]
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
jmp 0x1003ad61