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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
cmp ebx, esi
jne 0x101d9f4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101dadb
cmp eax, esi
jne 0x101da02
mov dword [ebp - 0x228], 0x10117d8
push edi
mov edi, dword [ebp + 0x10]
push esi
push esi
push esi
push 0x1011e10
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
add edi, edi
call fcn.0101d287
test eax, eax
je 0x101dada
cmp dword [ebp - 0x224], 1
jne 0x101da44
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101dada
mov dword [ebp - 0x214], esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x22c], 0x104
push dword [ebp - 0x210]
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x101dab6
cmp eax, esi
jne 0x101dada
cmp dword [ebp - 0x21c], 1
jne 0x101dab6
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x228]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x101dabe
inc dword [ebp - 0x214]
jmp 0x101da4a
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x101dad0
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov dword [ebp - 0x220], 1
pop edi
cmp dword [ebp - 0x210], esi
pop esi
pop ebx
je 0x101daf1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
call fcn.0101c23d
leave
ret 0x10
Function at 0x101df19
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x24]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
xor esi, esi
xor ebx, ebx
inc ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], ebx
cmp eax, esi
je 0x101df42
mov dword [eax], esi
cmp dword [ebp + 8], esi
je 0x101e066
cmp dword [ebp + 0x10], esi
je 0x101e066
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jb 0x101e066
cmp dword [ebp + 0x18], ebx
jb 0x101e066
cmp dword [ebp + 0x20], esi
je 0x101e066
push 0x2000
push 3
push 0xc0000000
push dword [ebp + 8]
call fcn.0101dbcd
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x101e07c
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101e07c
cmp dword [ebp - 0x14], edi
je 0x101dfbd
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101e07c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x101e07c
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push esi
push 4
push dword [ebp - 4]
call fcn.0101db0a
mov dword [ebp - 8], eax
cmp eax, esi
je 0x101e07c
cmp eax, 0xffffffff
je 0x101e07c
push dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp + 0x1c], esi
push esi
sete al
push esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x101e07c
cmp dword [ebp + 0xc], esi
je 0x101e022
mov dword [ebp - 0xc], 9
cmp dword [ebp + 0x1c], esi
je 0x101e02b
or dword [ebp - 0xc], 2
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], esi
cmp eax, esi
je 0x101e04c
cmp dword [ebp + 0xc], esi
je 0x101e04c
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x101e054
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp - 0x10]
call dword [ebp + 0x20]
cmp eax, esi
je 0x101e06e
jmp 0x101e0a6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], esi
je 0x101e07c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], esi
je 0x101e090
cmp dword [ebp - 4], 0xffffffff
je 0x101e090
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x101e0a4
cmp dword [ebp - 8], 0xffffffff
je 0x101e0a4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x101e0b2
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
or dword [ebp - 0xc], 0xffffffff
push ebx
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0101cb17
test eax, eax
je 0x101e268
push ebx
push dword [ebp + 0xc]
call fcn.0101cb17
test eax, eax
je 0x101e268
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push ebx
push ebx
push 3
push ebx
push 1
mov edi, 0x80000000
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x101e266
push ebx
push ebx
push 3
push ebx
push 1
push edi
push dword [ebp + 0xc]
call esi
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x101e251
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x101e251
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
test eax, eax
je 0x101e251
cmp dword [ebp - 0x20], ebx
jne 0x101e158
cmp dword [ebp - 0x28], ebx
je 0x101e160
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 8]
call esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x101e251
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call esi
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x101e23a
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x18]
call esi
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x101e23a
push ebx
push ebx
push ebx
push 4
push dword [ebp + 0xc]
call esi
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x101e225
lea eax, [ebp - 4]
push eax
push edi
call fcn.0101cf54
mov esi, eax
cmp esi, ebx
je 0x101e1fd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
add eax, edi
add ecx, esi
cmp ecx, eax
ja 0x101e1fd
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.0101cf54
cmp eax, ebx
je 0x101e1fd
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + edi]
mov ecx, dword [ebp - 0x10]
lea edi, [ecx + eax]
cmp edi, edx
jbe 0x101e20d
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x2c]
jne 0x101e225
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
jmp 0x101e217
cmp dword [ebp - 4], ecx
jne 0x101e225
mov ecx, dword [ebp - 4]
mov edi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101e222
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call esi
cmp dword [ebp + 8], ebx
je 0x101e23a
push dword [ebp + 8]
call esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp + 0xc], ebx
je 0x101e257
push dword [ebp + 0xc]
call esi
jmp 0x101e257
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x101e266
push dword [ebp - 0x1c]
call esi
pop edi
pop esi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8
Function at 0x101e437
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
jne 0x101e466
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x101e4fa
cmp dword [ebp + 8], esi
jne 0x101e472
mov dword [ebp + 8], 0x10117d8
lea eax, [ebp - 8]
push eax
push 0x400
push dword [ebp + 0xc]
call fcn.0101e3a6
test eax, eax
jge 0x101e48b
push 0x32
jmp 0x101e459
push edi
mov edi, dword [ebp - 8]
lea edi, [edi + edi + 2]
cmp edi, 0x800
jbe 0x101e4a5
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101e4be
push ebx
push ebx
push esi
push 0x1011e10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0101d287
test eax, eax
jne 0x101e4c2
xor eax, eax
jmp 0x101e4f9
push edi
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x101e4e5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x101e4e8
mov dword [ebp - 0xc], esi
cmp dword [ebp - 4], esi
je 0x101e4f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101e505
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x14], 4
je 0x101e51e
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret 0x1c
pop ebp
jmp fcn.0101dcfb
Function at 0x101f022
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ebp - 0x418], 0xffffffff
push esi
mov dword [ebp - 0x41c], ecx
test eax, eax
jge 0x101f053
xor esi, esi
jmp 0x101f056
lea esi, [eax + 1]
test ecx, ecx
jne 0x101f062
or eax, 0xffffffff
jmp 0x101f0ff
push edi
mov edi, 0x270f
cmp esi, edi
jle 0x101f07c
cmp dword [ebp + 0x10], 0
je 0x101f078
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jg 0x101f0f8
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x101
push dword [ebp - 0x41c]
call fcn.0101ec5e
test eax, eax
je 0x101f0f7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101f0f7
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101e8c1
test eax, eax
je 0x101f0f7
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101f0f7
mov dword [ebp - 0x418], esi
inc esi
cmp esi, edi
jle 0x101f082
cmp dword [ebp + 0x10], 0
je 0x101f0f3
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jle 0x101f082
pop ebx
mov eax, dword [ebp - 0x418]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101c23d
leave
ret 0xc
Function at 0x101f113
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x670], eax
test eax, eax
jne 0x101f13d
or eax, 0xffffffff
jmp 0x101f28b
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x501
push eax
call fcn.0101e8c1
test eax, eax
jne 0x101f162
or eax, 0xffffffff
jmp 0x101f28a
push edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or edi, 0xffffffff
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x66c], edi
cmp eax, edi
je 0x101f283
push ebx
test byte [ebp - 0x664], 0x10
je 0x101f24d
push 2
lea eax, [ebp - 0x638]
push 0x10126dc
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101f24d
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x638]
push eax
call fcn.0101e8c1
test eax, eax
je 0x101f24d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x670]
lea eax, [ebp - 0x414]
push 0x1011ac0
push 0x103
push eax
call fcn.01018ea1
add esp, 0x14
test eax, eax
jl 0x101f24d
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x101f24d
push 2
xor edx, edx
pop eax
movzx ecx, word [ebp + eax*2 - 0x638]
test cx, cx
je 0x101f23f
movzx ecx, cx
lea ebx, [ecx - 0x30]
cmp bx, 9
ja 0x101f23d
imul edx, edx, 0xa
movzx ecx, cx
inc eax
cmp eax, esi
lea edx, [edx + ecx - 0x30]
jl 0x101f213
jmp 0x101f23f
mov edx, edi
cmp edx, dword [ebp - 0x66c]
jle 0x101f24d
mov dword [ebp - 0x66c], edx
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101f276
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x668], edi
cmp dword [ebp - 0x668], edi
jne 0x101f18f
pop ebx
mov eax, dword [ebp - 0x66c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101c23d
leave
ret 4

Function at 0x102096d
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
neg eax
sbb eax, eax
and eax, 3
inc eax
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], edi
call fcn.0101d1d5
cmp dword [ebp - 4], edi
jbe 0x10209da
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10209da
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
call fcn.0101d1d5
test eax, eax
jne 0x10209e3
push dword [ebp - 0xc]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
cmp dword [ebp - 0xc], edi
je 0x1020a04
push dword [ebp - 0xc]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x10209dc
Function at 0x1020a0d
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1020a6d
cmp dword [ebp + 0xc], 0
jne 0x1020a32
xor eax, eax
jmp 0x1020a7a
mov eax, dword [ebp - 0x24]
and eax, 0xfffffff8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1020a2e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1020a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101290c
call sub.msvcrt.dll_printf
pop ecx
pop ecx
jmp 0x1020a2e
xor eax, eax
inc eax
jmp 0x1020a7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret 8

Function at 0x1020a83
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1020b49
mov eax, dword [edi + 4]
test eax, eax
je 0x1020b49
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x401
push eax
call fcn.0101e8c1
test eax, eax
je 0x1020b49
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1020b48
push ebx
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x1020b44
cmp ebx, 0x80
je 0x1020b44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1012980
push ebx
call fcn.010285de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
jne 0x1020b24
push ebx
call edi
push 0x1012920
call esi
push eax
call fcn.010285de
call esi
test eax, eax
je 0x1020b47
call esi
test eax, eax
jne 0x1020b47
call esi
push eax
call edi
jmp 0x1020b47
mov dword [edi + 0x2c], esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0101c23d
leave
ret 4
Function at 0x102155d
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x68c]
push eax
push 0
push esi
mov dword [ebp - 0x668], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10215ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1021799
push esi
xor eax, eax
call fcn.0102096d
jmp 0x102177d
test byte [ebp - 0x68c], 0x10
jne 0x10215c4
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1021799
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
push esi
call fcn.0101e8c1
test eax, eax
je 0x1021799
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push eax
call fcn.01020a0d
test eax, eax
je 0x1021799
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x505
push esi
call fcn.0101e8c1
test eax, eax
je 0x1021799
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10216ba
cmp dword [ebp + 0xc], 0
je 0x1021799
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x20c]
push 0x1011ac0
push 0x103
push eax
call fcn.01018ea1
add esp, 0x14
test eax, eax
jl 0x1021799
xor eax, eax
mov word [ebp - 6], ax
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10216af
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1021633
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10216c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1021799
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1021799
push ebx
lea eax, [ebp - 0x414]
push eax
push 0x506
push dword [ebp - 0x668]
call fcn.0101e8c1
test eax, eax
je 0x1021799
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x102178e
cmp dword [ebp + 0xc], 0
je 0x1021799
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x20c]
push 0x1011ac0
push 0x103
push eax
call fcn.01018ea1
add esp, 0x14
test eax, eax
jl 0x1021799
xor eax, eax
mov word [ebp - 6], ax
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1021799
lea eax, [ebp - 0x664]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1021704
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101c23d
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x102177a
xor eax, eax
jmp 0x102177d
Function at 0x10217a2
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
push 0
push edi
mov dword [ebp - 0x210], edi
call esi
test eax, eax
jne 0x10217fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10217ed
cmp eax, 3
jne 0x1021903
xor eax, eax
push edi
inc eax
call fcn.0102096d
jmp 0x102190a
test byte [ebp - 0x234], 0x10
jne 0x102180b
push 0x32
jmp 0x10218a9
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x103
push edi
call fcn.0101e8c1
test eax, eax
je 0x1021903
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1021864
cmp dword [ebp + 0x10], 0
je 0x10218a7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1021903
jmp 0x102186f
call edi
cmp eax, 2
jne 0x1021903
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x102
push dword [ebp - 0x210]
call fcn.0101e8c1
test eax, eax
je 0x1021903
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x10218c4
cmp dword [ebp + 0x10], 0
jne 0x10218b1
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1021903
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1021903
jmp 0x10218cb
call edi
cmp eax, 2
jne 0x1021903
cmp dword [ebp + 0xc], 0
jl 0x1021907
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push 0x101
push dword [ebp - 0x210]
call fcn.0101ec5e
test eax, eax
je 0x1021903
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102155d
test eax, eax
jne 0x1021907
xor eax, eax
jmp 0x102190a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101c23d
leave
ret 0xc
Function at 0x102390f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1033f70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1034fc0]
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
cmp eax, ecx
jne 0x1023b50
mov dword [0x1034fc0], 0x1033f88
cmp dword [ebp + 8], ecx
je 0x1023b01
lea eax, [ebp - 0x21c]
push eax
call fcn.0101d3a6
test eax, eax
je 0x1023b3e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x104
mov eax, dword [ebp - 0x214]
mov ecx, dword [0x1034fc0]
imul eax, eax, 0x210
lea ebx, [eax + ecx + 4]
mov eax, dword [ebp - 0x214]
xor ecx, ecx
sub eax, ecx
je 0x1023ad7
dec eax
je 0x1023ab2
dec eax
je 0x1023a9f
dec eax
je 0x1023a4c
dec eax
je 0x1023a1b
dec eax
jne 0x10239fe
push 0x10137c0
call sub.msvcrt.dll__wgetenv
pop ecx
test eax, eax
je 0x10239d5
push eax
push 0x1012764
jmp 0x1023a8b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1023aab
push ebx
call sub.msvcrt.dll__wcsupr
mov dword [esp], 0x10137b0
push ebx
call sub.msvcrt.dll_wcsstr
pop ecx
pop ecx
test eax, eax
jne 0x1023a42
push 0x1013770
push 0x32
call fcn.010285de
call esi
test eax, eax
jne 0x1023b3e
push 0x32
jmp 0x1023b38
push ecx
push 0x26
push ebx
push ecx
call fcn.0101d534
test eax, eax
je 0x1023b15
push 0x101375c
push ebx
call sub.msvcrt.dll_wcsstr
pop ecx
pop ecx
test eax, eax
je 0x1023ae3
xor ecx, ecx
mov word [eax], cx
jmp 0x1023ae3
push 0x1013738
call sub.msvcrt.dll__wgetenv
pop ecx
test eax, eax
je 0x1023a65
push eax
push edi
push ebx
call fcn.0101e2a4
jmp 0x1023a95
push 0
push 0x26
lea eax, [ebp - 0x210]
push eax
push 0
call fcn.0101d534
test eax, eax
je 0x1023b15
lea eax, [ebp - 0x210]
push eax
push 0x1013724
push edi
push ebx
call fcn.01018ea1
add esp, 0x10
test eax, eax
jl 0x10239fe
jmp 0x1023ae3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x1023ae3
push 0x10136b0
jmp 0x1023b21
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 0x218], edi
call fcn.0101d4af
test eax, eax
jne 0x1023ae3
call esi
cmp eax, 0x78
je 0x1023ae3
push 0x1013638
jmp 0x1023b21
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1023b1c
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 6
jb 0x102397a
push dword [ebp - 0x21c]
call fcn.0101d414
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101c23d
leave
ret 4
push 0x10135c0
jmp 0x1023b21
push 0x1013548
call esi
push eax
call fcn.010285de
call esi
test eax, eax
je 0x1023b3e
call esi
test eax, eax
jne 0x1023b3e
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x1034fc0], 0
je 0x1023b73
or dword [0x1034fc0], 0xffffffff
jmp 0x1023b73
cmp eax, 0xffffffff
jne 0x1023b01
push 0x1013770
push 0x32
call fcn.010285de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1023b73
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1023b04