joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103e0b9
Capabilities:
Create process on windows

Disassembly:
push 0x8b8
mov eax, 0x10b4cb7
call fcn.010aac9f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x85c]
push eax
mov dword [ebp - 0x868], ecx
xor esi, esi
push 0x10071e0
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x85c], esi
call fcn.010ab83f
xor eax, eax
push 0x40e
mov word [ebp - 0x858], ax
lea eax, [ebp - 0x856]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x436
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x446]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x208
lea eax, [ebp - 0x858]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x858]
push eax
push 0x10071d4
mov edi, 0x21c
lea eax, [ebp - 0x448]
push edi
push eax
call fcn.0103d988
lea eax, [ebp - 0x448]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x103e16f
push 0x44
sub eax, ecx
pop ebx
sar eax, 1
push ebx
mov dword [ebp - 0x860], eax
lea eax, [ebp - 0x8c4]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c4], ebx
mov ebx, dword [ebp - 0x864]
add esp, 0xc
cmp ebx, esi
je 0x103e1b9
cmp eax, 4
je 0x103e1b9
cmp eax, 5
je 0x103e1b9
cmp eax, 3
jne 0x103e1da
push eax
mov eax, dword [ebp - 0x860]
mov ecx, edi
sub ecx, eax
push 0x10071c4
push ecx
lea eax, [ebp + eax*2 - 0x448]
push eax
call fcn.0103d988
add esp, 0x10
cmp ebx, esi
je 0x103e203
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x103e203
push ebx
lea eax, [ebp - 0x448]
push eax
push 0x10071b4
push edi
push eax
call fcn.0103d988
add esp, 0x14
mov ecx, dword [ebp - 0x868]
add ecx, 0xc8
call fcn.01061c62
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x8c4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x103e24c
mov dword [ebp - 0x85c], 0x80004005
jmp 0x103e275
push 0x1388
push dword [ebp - 0x880]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push esi
push dword [ebp - 0x87c]
call fcn.010acbfe
push esi
push dword [ebp - 0x880]
call fcn.010acbfe
mov esi, dword [ebp - 0x85c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x870]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 8
Function at 0x103e9df
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x10b99ca
call fcn.010aac2c
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push 0x10072ac
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esi
call fcn.010ab83f
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x103ea2c
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 0xc
mov eax, dword [ebp + 8]
mov ebx, 0x104
cmp eax, esi
je 0x103ea46
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jge 0x103ea0e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [edi], cx
cmp eax, esi
je 0x103ea64
cmp word [eax], si
je 0x103ea64
push eax
push ebx
push edi
call fcn.01035132
mov dword [ebp - 0x10], esi
cmp word [edi], si
jne 0x103ea94
cmp dword [ebp + 0xc], esi
je 0x103ea81
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
push ebx
push edi
add ecx, 0xc8
call fcn.0106156f
mov dword [ebp - 0x10], eax
jmp 0x103ea88
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp - 0x10], esi
jge 0x103ea94
xor eax, eax
mov word [edi], ax
jmp 0x103eaa5
push esi
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jge 0x103eaf5
push esi
push ebx
push edi
call fcn.010761bd
cmp eax, esi
mov dword [ebp - 0x10], eax
jl 0x103eac5
push esi
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jge 0x103eaf5
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push esi
push esi
push 5
push esi
call ebx
cmp eax, esi
mov dword [ebp - 0x10], eax
jl 0x103eaeb
push esi
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jge 0x103eaf5
push edi
push esi
push esi
push esi
push esi
call ebx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
jmp 0x103ea16
Function at 0x1040781
Capabilities:
Copy file

Disassembly:
push 0x258
mov eax, 0x10b4f44
call fcn.010aac9f
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
push 0x1007668
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x220], ebx
call fcn.010ab83f
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
jne 0x104081d
mov esi, 0x80004003
mov dword [ebp - 0x220], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 0x10
cmp edi, ebx
je 0x10407f9
cmp dword [ebp - 0x220], ebx
mov dword [edi], ebx
jl 0x1040993
mov eax, dword [esi]
push ebx
push ebx
push esi
call dword [eax + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x264]
call fcn.0103c861
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x264]
push eax
push 0x34
push 0xe851
call fcn.0103daf0
cmp eax, 6
je 0x1040872
mov dword [ebp - 0x220], 0xc6c81221
cmp dword [ebp - 0x220], ebx
jl 0x1040993
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [esi]
push 1
push ebx
push esi
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x228]
push eax
call fcn.0103f9a3
cmp eax, ebx
mov dword [ebp - 0x220], eax
jl 0x1040993
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1040905
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10408d5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x220], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1040905
test byte [eax + 0x1c], 4
je 0x1040905
push dword [ebp - 0x220]
push 0x1005ec8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
cmp dword [ebp - 0x220], ebx
jl 0x1040993
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 1
push ebx
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, eax
call fcn.0108cd32
cmp eax, ebx
mov dword [ebp - 0x220], eax
jl 0x1040993
call sub.MFC42u.dll_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov edi, dword [ebp - 0x224]
call sub.MFC42u.dll_AfxGetModuleState
push dword [ebp - 0x22c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
push esi
push dword [ebp + 0xc]
mov ecx, eax
push ebx
push edi
call fcn.0108abdc
cmp eax, ebx
mov dword [ebp - 0x220], eax
jl 0x1040993
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x1040804
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1040804
Function at 0x1041786
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x10b974a
call fcn.010aac2c
mov esi, ecx
xor edi, edi
push edi
push 0x1008044
lea ecx, [ebp - 0x18]
call fcn.010ab83f
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
cmp eax, edi
je 0x10417f9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, edi
je 0x10417f9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10417f9
xor ebx, ebx
inc ebx
push ebx
call fcn.010740c9
push 4
push esi
push edi
push edi
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
test eax, eax
jl 0x10417f3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10417f0
test bl, al
jne 0x10417f3
mov dword [ebp - 0x10], ebx
push edi
call fcn.010740c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab886
mov eax, dword [ebp - 0x10]
call fcn.010aad18
ret

Function at 0x1054a98
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
push 0x419
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
ret 4

Function at 0x10572af
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x100d300
lea ecx, [ebp - 8]
call fcn.010ab83f
add esi, 0x2ec
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10572dc
inc edi
lea ecx, [ebp - 8]
call fcn.010ab886
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x105f3fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x10b974a
call fcn.010aac2c
lea eax, [ebp - 0x10]
push eax
push 0x1011868
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x80070057
call fcn.010ab83f
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
call sub.MFC42u.dll_CString::Empty
call sub.MFC42u.dll_AfxGetModuleState
mov edi, dword [eax + 0xc]
movzx eax, word [ebp + 8]
push 0
push 0x17
push eax
push edi
call fcn.010ad490
mov ebx, eax
test ebx, ebx
je 0x105f4af
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jbe 0x105f4af
push 0
push ebx
push edi
call fcn.010ad402
test eax, eax
je 0x105f4af
push eax
mov dword [ebp - 0x10], 0x80004005
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x105f4b6
mov eax, 0xfeff
cmp word [ebx], ax
jne 0x105f484
inc ebx
inc ebx
dec esi
dec esi
mov ecx, dword [ebp + 0xc]
shr esi, 1
lea edi, [esi + 1]
push edi
call sub.MFC42u.dll_CString::GetBuffer
push esi
push ebx
push edi
push eax
call fcn.0103d8a8
test eax, eax
jl 0x105f4a3
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call sub.MFC42u.dll_CString::ReleaseBuffer
jmp 0x105f4b6
mov dword [ebp - 0x10], 0x80004005
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 8
Function at 0x10608b8
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xc
mov eax, 0x10b974a
call fcn.010aac2c
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
push 0x1013454
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x80070057
call fcn.010ab83f
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x69
jae 0x106094c
mov eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
imul eax, eax, 0x24
add eax, 0x1012318
cmp dword [eax + 8], 3
mov ecx, edi
jne 0x106091c
push dword [eax + 0xc]
call fcn.0106177c
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp + 8]
mov ecx, edi
mov esi, eax
call fcn.010602fd
jmp 0x1060937
push dword [eax + 0x10]
push dword [eax + 0xc]
call fcn.0106177c
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov esi, eax
cmp esi, 2
jne 0x1060937
xor esi, esi
test esi, esi
je 0x106094c
jle 0x1060949
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 4

Function at 0x1060e1d
Capabilities:
Delete registry key

Disassembly:
push 0x14
mov eax, 0x10b4b93
call fcn.010aac2c
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x10]
push eax
push 0x10135a0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0x80070057
call fcn.010ab83f
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, 0x69
jae 0x1060f3b
imul edi, edi, 0xc
add edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], 1
cmp dword [edi + 8], esi
jne 0x1060f3b
mov ebx, 0x80004005
mov dword [ebp - 0x10], ebx
call sub.MFC42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.dll_CWinApp::GetAppRegistryKey
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x1060f3b
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
imul esi, esi, 0x24
add esi, 0x1012318
push esi
push eax
call fcn.01060c6a
test eax, eax
jne 0x1060edd
push dword [esi + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
and eax, ebx
mov dword [ebp - 0x10], eax
jl 0x1060f2b
call sub.MFC42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.dll_CWinApp::GetAppRegistryKey
mov dword [ebp - 0x14], eax
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, ebx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1060f2b
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.01060376
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x1060f2b
mov ecx, dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
call fcn.01060cf7
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x1060f17
cmp dword [edi + 4], 4
jne 0x1060f17
mov edi, dword [edi + 8]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
jmp 0x1060f3b
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.010602fd
cmp dword [ebp - 0x10], 0
jl 0x1060f2b
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], 0
je 0x1060f3b
push 0
push dword [ebp - 0x14]
call fcn.010ac892
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 4
Function at 0x1070eee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x1070f59
cmp dword [ebp - 4], 2
jbe 0x1070f45
cmp dword [ebp - 4], 7
jne 0x1070f59
mov ecx, dword [edi]
test cl, 1
jne 0x1070f59
shr ecx, 1
cmp ecx, 2
jb 0x1070f59
cmp esi, ebx
je 0x1070f5c
cmp word [esi + ecx*2 - 2], bx
jne 0x1070f59
cmp word [esi + ecx*2 - 4], bx
jmp 0x1070f57
mov ecx, dword [edi]
test cl, 1
jne 0x1070f59
cmp esi, ebx
je 0x1070f5c
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x1070f5c
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1071750
Capabilities:
Create thread

Disassembly:
push 0x224
mov eax, 0x10bb97e
call fcn.010aac9f
xor esi, esi
push esi
push 0x10196d4
lea ecx, [ebp - 0x230]
call fcn.010ab83f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10718bc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push esi
xor ebx, ebx
mov dword [ebp - 0x228], esi
call edi
push esi
push esi
push esi
push esi
mov dword [ebp - 0x220], eax
call edi
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x220], esi
je 0x1071830
cmp eax, esi
je 0x1071830
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x220]
push eax
push 0x107168d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x1071854
mov eax, dword [section..data]
cmp eax, section..data
je 0x1071854
test byte [eax + 0x1c], 4
je 0x1071854
push 0x1018fc0
push 0x11
jmp 0x1071849
mov eax, dword [section..data]
cmp eax, section..data
je 0x1071854
test byte [eax + 0x1c], 4
je 0x1071854
push 0x1018fc0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
lea eax, [ebp - 0x218]
push eax
call fcn.010b05e5
mov dword [ebp - 0x224], eax
cmp ebx, esi
je 0x1071896
cmp eax, esi
je 0x1071876
push dword [ebp - 0x220]
jmp 0x1071887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x21c]
mov dword [0x10ce150], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], esi
je 0x10718ac
push dword [ebp - 0x220]
call edi
cmp dword [ebp - 0x21c], esi
je 0x10718bc
push dword [ebp - 0x21c]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.010ab886
mov eax, dword [ebp - 0x224]
call fcn.010aad31
ret
Function at 0x1075c51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 0x1019ff8
lea ecx, [ebp - 0xc]
call fcn.010ab83f
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSettings]
test dword [ebp - 4], 1
jne 0x1075c95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1075c95
test al, 2
je 0x1075c95
inc esi
lea ecx, [ebp - 0xc]
call fcn.010ab886
mov eax, esi
pop esi
leave
ret 4
Function at 0x1075fbc
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x21c
mov eax, 0x10b5c7d
call fcn.010aac9f
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
xor edi, edi
push 0x101a044
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.010ab83f
cmp dword [ebp + 0xc], 0x104
mov dword [ebp - 4], edi
jb 0x1076194
cmp ebx, edi
je 0x1076194
xor eax, eax
mov word [ebx], ax
cmp esi, edi
je 0x1076019
mov dword [esi], edi
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x64
push dword [ebp + 0xc]
lea ecx, [eax + 0xc8]
push ebx
call fcn.0106156f
mov dword [ebp - 0x21c], eax
cmp eax, 0xc6c81000
jne 0x107611c
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
mov dword [ebp - 0x21c], eax
jl 0x10760c3
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp + 0xc]
push ebx
push 0x9cd2
push eax
call fcn.010ac413
test eax, eax
jle 0x10760c3
push ebx
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x10760c3
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x10760da
mov esi, 0x1019d48
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0103d8a8
cmp dword [ebp - 0x21c], edi
jl 0x1076187
call sub.MFC42u.dll_AfxGetModuleState
mov esi, dword [eax + 4]
push 0x64
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
lea ecx, [esi + 0xc8]
call fcn.01061b5b
cmp eax, edi
mov dword [ebp - 0x21c], eax
jl 0x1076187
mov esi, dword [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x21c], eax
cmp eax, edi
jl 0x1076187
cmp esi, edi
je 0x107618c
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 5
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
mov dword [ebp - 0x21c], eax
jl 0x107618c
push ebx
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x107618c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
jmp 0x107618c
xor eax, eax
mov word [ebx], ax
mov esi, dword [ebp - 0x21c]
jmp 0x107619f
mov esi, 0x80070057
mov dword [ebp - 0x21c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 0xc
Function at 0x10761bd
Capabilities:
Get common file path

Disassembly:
push 0x428
mov eax, 0x10b5291
call fcn.010aac9f
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x424]
push eax
xor ebx, ebx
push 0x101a060
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], ebx
call fcn.010ab83f
mov edi, 0x104
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], edi
jb 0x107630f
cmp esi, ebx
je 0x107630f
xor eax, eax
mov word [esi], ax
mov esi, 0x206
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jl 0x10762dd
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x42c]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.01075fbc
cmp eax, ebx
mov dword [ebp - 0x424], eax
jl 0x1076307
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x1076307
mov eax, dword [section..data]
cmp eax, section..data
je 0x10762d1
test byte [eax + 0x1c], 4
je 0x10762d1
push 0x1019d30
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov dword [ebp - 0x424], 0x80010135
jmp 0x1076307
mov eax, dword [section..data]
cmp eax, section..data
je 0x1076307
test byte [eax + 0x1c], 4
je 0x1076307
push dword [ebp - 0x424]
push 0x1019d30
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov esi, dword [ebp - 0x424]
jmp 0x107631a
mov esi, 0x80070057
mov dword [ebp - 0x424], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 0xc
Function at 0x10764aa
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x10b6aa7
call fcn.010aac9f
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
xor edi, edi
push 0x101a088
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], edi
call fcn.010ab83f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
jne 0x1076524
mov esi, 0x80004003
mov dword [ebp - 0x21c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 0xc
cmp dword [ebp + 0x10], edi
jne 0x1076538
mov eax, 0x80070057
mov dword [ebp - 0x21c], eax
mov esi, eax
jmp 0x107650b
cmp ebx, edi
je 0x1076500
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1019d68
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, edi
jne 0x107656e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1076568
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], edi
jl 0x10765ae
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx - 1]
cmp eax, edx
jbe 0x1076597
mov dword [ebp - 0x21c], 0x80010135
cmp dword [ebp - 0x21c], edi
jl 0x10765ae
push ecx
lea eax, [ebp - 0x218]
push eax
push ecx
push ebx
call fcn.0103d8a8
mov esi, dword [ebp - 0x21c]
jmp 0x107650b

Function at 0x1076868
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 0x101a0b8
lea ecx, [ebp - 0x214]
call fcn.010ab83f
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x104
push eax
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0103d8a8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
cmp eax, 1
jne 0x10768ec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10768ec
inc edi
lea ecx, [ebp - 0x214]
call fcn.010ab886
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.010aac17
leave
ret 4