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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x42c], 0
and dword [ebp - 0x428], 0
push ebx
push esi
push edi
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
push eax
mov ebx, 0x104
xor edi, edi
push ebx
lea eax, [ebp - 0x20c]
inc edi
push eax
mov esi, ecx
mov dword [ebp - 0x438], edi
call fcn.01007d3c
test eax, eax
jl 0x1020473
push 0x10205c8
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100fbdc
test eax, eax
jl 0x1020473
push str.KillbitList
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100fbdc
test eax, eax
jl 0x1020473
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102043a
push esi
push dword [ebp - 0x42c]
lea edi, [ebp - 0x434]
call fcn.0102047c
test eax, eax
jl 0x102043a
test dword [ebp - 0x434], 0x400
jne 0x10507d1
and dword [ebp - 0x438], 0
cmp dword [ebp - 0x42c], 0
je 0x102044f
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x428], 0
jne 0x10508fb
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100449b
leave
ret 8
mov eax, edi
jmp 0x1020462
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x102043a
and dword [ebp - 0x430], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x440], 0x4e
call fcn.01007d3c
test eax, eax
jl 0x102043a
push 0x10205c8
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0100fbdc
test eax, eax
jl 0x102043a
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0100fbdc
test eax, eax
jl 0x102043a
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push 0
push 0x20000002
push 0x105582c
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x102043a
mov esi, 0x101ef88
lea edi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x428]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x102043a
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x42c]
lea edi, [ebp - 0x434]
call fcn.0102047c
test eax, eax
jl 0x10508ce
test dword [ebp - 0x434], 0x400
je 0x10508e6
inc dword [ebp - 0x430]
cmp dword [ebp - 0x430], 0xa
jge 0x102043a
jmp 0x10507ee
mov edi, dword [ebp - 0x43c]
lea esi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x102043a
push dword [ebp - 0x428]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x102045c
Function at 0x102047c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [edi], esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x10204c8
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x105077f
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], esi
jne 0x10507c3
cmp dword [ebp - 8], esi
pop esi
je 0x10204e0
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xc]
leave
ret 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push str.Compatibility_Flags
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10204c8
cmp dword [ebp + 0xc], 4
jne 0x10204c8
mov eax, dword [ebp + 8]
mov dword [edi], eax
jmp 0x10204c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10204d1
Function at 0x102069b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
mov dword [ebp - 0x22c], eax
xor eax, eax
push eax
push 0x1020768
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x238], 1
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020730
push edi
push esi
push dword [ebp - 0x224]
lea edi, [ebp - 0x230]
call fcn.0102047c
test eax, eax
jl 0x102072f
test dword [ebp - 0x230], 0x400
jne 0x1050912
and dword [ebp - 0x238], 0
pop edi
cmp dword [ebp - 0x224], 0
pop esi
pop ebx
je 0x1020747
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 0
jne 0x1050a86
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x238]
xor ecx, ebp
call fcn.0100449b
leave
ret 0xc
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x102072f
and dword [ebp - 0x228], 0
push 0x1d
pop ecx
mov esi, 0x1020768
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push 0x192
lea eax, [ebp - 0x196]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10205c8
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x23c], 0x4e
call fcn.0100fbdc
test eax, eax
jl 0x102072f
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100fbdc
test eax, eax
jl 0x102072f
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push 0
push 0x20000002
push 0x105582c
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x102072f
mov esi, 0x101ef88
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x220]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x102072f
cmp dword [ebp - 0x22c], 0
je 0x1050a31
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x21c]
push dword [ebp - 0x234]
call fcn.0102035d
test eax, eax
jne 0x102072f
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x21c]
call fcn.010204ec
test eax, eax
jne 0x1050a71
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x224]
lea edi, [ebp - 0x230]
call fcn.0102047c
test eax, eax
jl 0x1050a59
test dword [ebp - 0x230], 0x400
je 0x1050a71
inc dword [ebp - 0x228]
cmp dword [ebp - 0x228], 0xa
jge 0x102072f
jmp 0x105092f
mov edi, dword [ebp - 0x234]
lea esi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x102072f
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1020754
Function at 0x1022178
Capabilities:
Get file attributes

Disassembly:
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x102215e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x102215e
xor ecx, ecx
mov word [eax], cx
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100fbdc
mov esi, eax
and esi, ebx
jne 0x1022166
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
test esi, esi
je 0x104ba2a
and dword [edi], 0
jmp 0x10221b3
mov esi, eax
and esi, ebx
jne 0x1022166
jmp 0x10221b3
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x10aa0b4], esi
jne 0x10221ca
push ebx
push edi
mov edi, 0x10ab4f4
mov ebx, 0xffff
xor eax, eax
cmp dword [edi - 4], eax
jne 0x10221b3
cmp dword [edi], eax
jne 0x1022106
add edi, 0x30
cmp edi, 0x10ab7c4
jl 0x10221a4
pop edi
mov dword [0x10aa0b4], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100449b
leave
ret
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.01007d3c
jmp 0x102216b
Function at 0x102a67d
Capabilities:
Get keyboard layout

Disassembly:
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100449b
leave
ret 0xc
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0xc8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc0]
push eax
mov ecx, edi
call fcn.0102a7f6
test eax, eax
je 0x102a3da
push 0x74
pop esi
push esi
lea eax, [ebp - 0x78]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push ebx
push dword [ebp + 8]
mov ecx, edi
push eax
push 0
push 0x43a
mov dword [ebp - 0x78], esi
call fcn.0102a7b9
mov eax, dword [ebp - 0xbe]
or dword [ebp - 0x74], 0x2000000
or dword [ebp - 0x74], 0x80000000
or dword [ebp - 0x74], 0x20000000
shl eax, 0xa
or eax, dword [ebp - 0xc0]
movzx esi, ax
movzx eax, si
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0xb8]
push eax
push 0x20
lea eax, [ebp - 0x5e]
push eax
call fcn.01007d3c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [ebp - 0xc8], 0
movzx eax, ax
jne 0x102a76a
cmp ax, si
je 0x10539bf
xor ecx, ecx
cmp cx, word [ebp - 0xbe]
jne 0x102a76a
xor eax, esi
test eax, 0x3ff
je 0x102a78b
push dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push ebx
push dword [ebp + 8]
mov ecx, edi
push eax
push 0x10
push 0x444
call fcn.0102a7b9
jmp 0x102a6aa
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0102a349
push dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push ebx
push dword [ebp + 8]
mov ecx, edi
push eax
push 0
push 0x444
call fcn.0102a7b9
jmp 0x102a76a
mov dword [ebp - 0xc8], 1
jmp 0x102a78b

Function at 0x103bb1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp eax, esi
je 0x103bb95
cmp word [eax], si
je 0x103bb95
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103bb95
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x103bb9c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103bb8c
cmp dword [ebp - 8], 4
jne 0x103bb8c
cmp dword [ebp - 0xc], 1
jne 0x103bb8c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x1064d65
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x109cf65
call fcn.010038c8
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString
mov byte [ebp - 4], 1
cmp dword [esi + 0xf0], ebx
jne 0x1064db9
call fcn.01080d6d
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01004490
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1064db2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1064f22
mov edi, dword [ebp + 8]
lea eax, [edi + 0xd4]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42u.dll_CString::CString_2
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp dword [eax - 8], ebx
jne 0x1064df1
push 0x80004001
call fcn.01080d78
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.01004490
jmp 0x1064d96
mov eax, dword [esi + 0xb8]
add eax, 0x5c
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.010614bd
cmp eax, ebx
je 0x1064e0f
push eax
jmp 0x1064ddc
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01007de2
push dword [ebp + 8]
call fcn.01008072
pop ecx
lea eax, [ebp - 0x14]
push eax
push 0x12
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
cmp eax, ebx
jne 0x1064e0c
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.010642ec
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.01064317
cmp dword [ebp - 0x1c], ebx
jne 0x1064e60
cmp eax, ebx
jne 0x1064e60
lea ecx, [ebp - 0x24]
jmp 0x1064e62
xor ecx, ecx
mov eax, dword [esi + 0xf4]
push ecx
push dword [ebp - 0x14]
push 1
push eax
mov eax, dword [esi + 0xb8]
push dword [eax + 0x60]
call fcn.0101f602
mov esi, eax
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.01007f44
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x1064e98
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x1064ea2
push esi
jmp 0x1064ddc
cmp dword [0x10aa454], ebx
je 0x1064ef8
mov al, byte [0x10aa458]
cmp al, 4
jae 0x1064eb7
cmp al, bl
jne 0x1064ef8
mov ecx, dword [0x10aa444]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x1064ef8
mov ecx, dword [0x10aa44c]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x10aa448]
jne 0x1064ef8
cmp eax, ecx
jne 0x1064ef8
push 0x1054460
push dword [0x10aa39c]
push dword [0x10aa398]
call fcn.01058f0b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01004490
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01004490
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1064f20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.01003910
ret 4
Function at 0x10798f8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov ecx, ebx
call sub.MFC42u.dll_CDataExchange::PrepareEditCtrl
cmp dword [ebx], 0
mov edi, eax
je 0x1079998
push 0x40
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x84], 0
je 0x1079990
push esi
lea eax, [ebp - 0x84]
mov edi, 0x10aa178
push eax
mov ecx, edi
call fcn.0107d5c1
test eax, eax
jne 0x107996b
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC42u.dll_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.dll_CDataExchange::Fail
push 2
push dword [esi]
lea eax, [ebp - 0x84]
push 0x40
push eax
mov ecx, edi
call fcn.0107d89f
push esi
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.0107d5c1
jmp 0x10799c6
mov dword [esi], 0x7fffffff
jmp 0x10799c6
mov esi, dword [esi]
cmp esi, 0x7fffffff
je 0x10799c6
push 2
push esi
push 0x40
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x10aa178
call fcn.0107d89f
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100449b
leave
ret 0xc

Function at 0x107d539
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x107d5ac
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MFC42u.dll_AfxFullPath
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
movzx eax, ax
mov dword [ebp - 0x210], eax
test ax, ax
je 0x107d5ac
lea eax, [ebp - 0x210]
push eax
push 0x107d14b
call dword [sym.imp.USER32.dll_EnumWindows]
cmp word [ebp - 0x210], 0
jne 0x107d5a0
xor eax, eax
inc eax
jmp 0x107d5ae
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100449b
leave
ret 4

Function at 0x107e2d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x107e2e8
xor eax, eax
jmp 0x107e34c
push edi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x107e30d
xor eax, eax
jmp 0x107e34b
push esi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x107e342
cmp dword [ebp - 4], 2
jne 0x107e342
mov eax, 0xfeff
cmp word [ebp + 8], ax
je 0x107e33f
mov eax, 0xfffe
cmp word [ebp + 8], ax
jne 0x107e342
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x107f990
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10aa090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push ebx
mov edi, ecx
mov dword [ebp - 0x220], eax
call esi
mov ecx, edi
mov dword [ebp - 0x21c], eax
call fcn.010228ff
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.0102118f
and dword [ebp - 0x214], 0
cmp dword [ebp - 0x21c], 0
jbe 0x107fac2
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push ebx
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x107faaa
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.01078d61
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], 1
call fcn.01080ab5
test eax, eax
je 0x107fa77
push 0
push 1
xor eax, eax
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.01099ae5
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x21c], 1
jne 0x107fa93
xor eax, eax
cmp dword [ebp - 0x218], eax
sete al
mov dword [ebp - 0x220], eax
jmp 0x107faaa
cmp dword [ebp - 0x218], 0
je 0x107faaa
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.01098286
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
jb 0x107f9f7
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.01078d61
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100449b
leave
ret 4
Function at 0x10892ba
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x43c
mov eax, 0x10a33fa
call fcn.010044ce
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x428], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
mov edi, ecx
mov dword [ebp - 0x42c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10046c8
mov ecx, esi
call fcn.0100b2e8
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1089407
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0100b314
push 0x1089414
mov ecx, esi
call fcn.01089152
lea eax, [edi + 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 0x424], eax
call fcn.0100c68a
push 0x10205c8
mov ecx, esi
call fcn.01089152
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x1089373
mov eax, dword [edi]
jmp 0x1089375
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1089399
cmp dword [esi + 0x18], 8
jb 0x108938b
mov eax, dword [edi]
jmp 0x108938d
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, ebx
jne 0x10893e1
mov eax, dword [ebp - 0x424]
cmp dword [eax + 0x18], 8
jb 0x10893aa
mov eax, dword [eax + 4]
jmp 0x10893ad
add eax, 4
cmp dword [esi + 0x18], 8
jb 0x10893b5
mov edi, dword [edi]
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x10046c8
mov ecx, esi
call fcn.0100b314
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.01089152
jmp 0x1089407
lea ecx, [ebp - 0x448]
call fcn.0100b63f
xor edi, edi
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0100b65b
push ebx
push edi
lea ecx, [ebp - 0x448]
call fcn.01008010
mov eax, esi
call fcn.0100450b
ret 4
Function at 0x108aae1
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x10a3945
call fcn.010044ce
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push 0x1055978
push eax
call fcn.0100c63e
push 0x105595c
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0108921c
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.01008010
push 0x10046c8
mov ecx, esi
call fcn.0100b4ac
test eax, eax
jne 0x108ab4d
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.01008010
mov eax, esi
call fcn.0100450b
ret
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.0100c6a4
mov edi, 0x10558f4
push edi
lea ecx, [ebp - 0x50]
call fcn.0100b2e8
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
lea ebx, [esi + 0x48]
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.010891ac
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
call fcn.01008010
mov eax, dword [esi + 0x4c]
cmp dword [ebp - 0x30], eax
je 0x108abd3
push edi
lea ecx, [ebp - 0x50]
call fcn.0100b2e8
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0108a0b6
cmp dword [eax + 0x18], 8
jb 0x108abbd
mov eax, dword [eax + 4]
jmp 0x108abc0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.01008010
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x108abdf
lea eax, [ebp - 0x28]
push eax
push 0x80000001
mov ecx, esi
call fcn.01088f61
mov esi, eax
jmp 0x108ab39