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

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.10050990
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push ebx
mov ebx, dword [ebp + 0xf94]
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x1000b92a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push eax
mov dword [ebp - 0x80], 0x800
call edi
test eax, eax
jne 0x1000b859
push dword [0x1008d3e0]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000b859
xor eax, eax
inc eax
jmp 0x1000b929
lea eax, [ebp - 0x7c]
push eax
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000b8b3
lea eax, [ebp - 0x7c]
push eax
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x1008d3e0]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [0x1008d3e0]
push 1
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor eax, eax
test edi, edi
sete al
jmp 0x1000b929
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x788]
push eax
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x788]
push eax
call fcn.100503f0
pop ecx
pop ecx
lea ecx, [ebp + 0x788]
cmp eax, ecx
jne 0x1000b900
push dword [0x1008d3e0]
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x788]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x788]
push eax
push 1
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0xf88]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005097c
add ebp, 0xf8c
leave
ret 4
Function at 0x1000cb6b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000cbd4
cmp dword [ebp + 0x10], 1
je 0x1000cbac
cmp dword [ebp + 0x10], 2
je 0x1000cbac
push 0xd
pop eax
jmp 0x1000cbd4
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000cbce
test eax, eax
je 0x1000cbc9
test al, 1
jne 0x1000cba7
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000cbce
jmp 0x1000cba7
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x1000d0c4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x103
push eax
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call fcn.10050bb0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x1000d10d
mov esi, dword [esi + 4]
jmp 0x1000d110
add esi, 4
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.100013f8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1005097c
leave
ret

Function at 0x1000df8e
Capabilities:
Create process on windows

Disassembly:
push 0x7c
mov eax, 0x100729b4
call fcn.10051104
mov dword [ebp - 0x4c], ecx
mov ebx, dword [ebp + 8]
push 7
pop esi
xor edi, edi
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], esi
call fcn.1000187c
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], esi
call fcn.1000187c
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.1000de17
test eax, eax
jne 0x1000dff9
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000166a
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.1000166a
xor eax, eax
call fcn.10051187
ret 4
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.10050bb0
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x88], esi
jae 0x1000e01f
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x28]
jae 0x1000e02e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], eax
xor esi, esi
lea eax, [ebp - 0x88]
inc esi
push eax
mov dword [ebp - 0x6c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1000e062
xor ebx, ebx
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000166a
push edi
push esi
lea ecx, [ebp - 0x48]
call fcn.1000166a
mov eax, ebx
jmp 0x1000dff1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x1000e04a
Function at 0x1000eb8d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
mov ecx, 0x1008f768
call fcn.1000f672
mov ebx, eax
test ebx, ebx
jl 0x1000eced
and dword [ebp - 0x70], 0
and dword [ebp - 0x6c], 0
push esi
push edi
mov edi, 0x2001f
push edi
push str._shellexContextMenuHandlers_
mov esi, SysReAllocStringLen
push esi
lea ecx, [ebp - 0x70]
call fcn.100094fb
test eax, eax
jne 0x1000ec1d
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x1000ebf4
cmp ebx, 2
jne 0x1000ece1
push 0x100764b4
lea ecx, [ebp - 0x70]
call fcn.1000942b
push 0x100766d0
lea ecx, [ebp - 0x70]
call fcn.1000942b
mov ebx, eax
test ebx, ebx
je 0x1000ec1d
cmp ebx, 2
jne 0x1000ece1
push edi
push str.directory_shellexContextMenuHandlers_
push esi
lea ecx, [ebp - 0x70]
call fcn.100094fb
test eax, eax
jne 0x1000ec59
push 0x100766ec
lea ecx, [ebp - 0x70]
call fcn.1000942b
push 0x10076758
lea ecx, [ebp - 0x70]
call fcn.1000942b
mov ebx, eax
test ebx, ebx
je 0x1000ec59
cmp ebx, 2
jne 0x1000ece1
push edi
push str.drive_shellexContextMenuHandlers_
push esi
lea ecx, [ebp - 0x70]
call fcn.100094fb
test eax, eax
jne 0x1000ec91
push str.KuaiyaShlExt
lea ecx, [ebp - 0x70]
call fcn.1000942b
push str.KuaiZipShlExt
lea ecx, [ebp - 0x70]
call fcn.1000942b
mov ebx, eax
test ebx, ebx
je 0x1000ec91
cmp ebx, 2
jne 0x1000ece1
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0x10077aac
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test esi, eax
jne 0x1000ece1
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
push 2
push 0x100767f8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x78]
call fcn.100094fb
test eax, eax
jne 0x1000ecd9
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x78]
call fcn.10009486
lea ecx, [ebp - 0x70]
call fcn.10009486
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005097c
leave
ret
Function at 0x10010418
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f0]
sub esp, 0x470
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x3ec], eax
mov eax, dword [ebp + 0x3f8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x3fc]
push edi
mov dword [ebp - 0x7c], eax
push ecx
lea eax, [ebp + 0x1e4]
push eax
mov dword [ebp - 0x74], ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10076b3c
lea eax, [ebp + 0x1e4]
push eax
call edi
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.10050bb0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x100104a3
xor eax, eax
jmp 0x10010517
mov dword [ebp - 0x70], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10076b38
lea eax, [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x100104f1
push 0x10076b30
lea eax, [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x100104f1
test byte [ebp - 0x6c], 0x10
jne 0x100104f1
mov ebx, dword [ebp - 0x74]
push dword [ebp - 0x74]
add ebx, 0x410
push ebx
call esi
lea eax, [ebp - 0x40]
push eax
push ebx
call edi
push ebx
push dword [ebp - 0x7c]
call dword [ebp - 0x80]
test eax, eax
jne 0x10010504
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100104a6
jmp 0x1001050b
mov dword [ebp - 0x70], 1
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 0x3ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005097c
add ebp, 0x3f0
leave
ret 8

Function at 0x1001075f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push esi
push edi
push 0x104
mov esi, ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.Lang
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov word [esi + 0x410], ax
lea edi, [esi + 0x208]
mov word [edi], ax
push 0x10085058
mov eax, 0x10076bc0
push eax
push eax
lea eax, [ebp - 0x74]
push 0x10076b9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010822
push ebx
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x80]
push eax
push 0
push str.LangModule
push ebx
mov dword [ebp - 0x78], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test ebx, ebx
je 0x10010821
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005097c
add ebp, 0x198
leave
ret 4
Function at 0x10011744
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push dword [esp + 0x10]
push esi
push dword [0x1008f808]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call edi
push esi
call edi
push 1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
cmp word [esp + 0x14], 0x6d
jne 0x100117a6
call fcn.10070920
test al, al
je 0x1001178c
push 0x100772b0
jmp 0x10011791
push 0x100772b8
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x100772c0
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x100117bc
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x100772dc
push esi
call edi
push str.KuaiZip.exe
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
ret
Function at 0x1001337c
Capabilities:
Read file via mapping

Disassembly:
push esi
push 0x10077978
push 0
push 6
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
test eax, eax
jne 0x10013397
pop esi
ret
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret

Function at 0x10013ffa
Capabilities:
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
mov ebx, dword [ebp + 0x19c]
push esi
push edi
mov edi, dword [ebp + 0x1a4]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
mov esi, ecx
mov dword [ebp - 0x7c], ebx
call fcn.10050bb0
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x78]
push eax
call edi
xor eax, eax
cmp ax, word [ebp - 0x78]
jne 0x10014061
push str..zip
lea eax, [ebp - 0x78]
push eax
call edi
cmp dword [esi + 0x2a4], 0
je 0x1001408b
push str.Archive
lea ecx, [ebp - 0x80]
call fcn.100177cd
push dword [ebp - 0x80]
push ebx
call edi
push dword [ebp - 0x80]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10014161
lea ebx, [esi + 0x38]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jbe 0x10014129
cmp dword [esi + 0x1c], 8
jb 0x100140ae
mov eax, dword [esi + 8]
jmp 0x100140b1
lea eax, [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [esi + 0x1c], 8
jb 0x100140c3
mov esi, dword [esi + 8]
jmp 0x100140c6
add esi, 8
cmp eax, esi
jne 0x10014118
push 0
mov ecx, ebx
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x100140de
mov eax, dword [eax + 4]
jmp 0x100140e1
add eax, 4
push eax
push dword [ebp - 0x7c]
call edi
push 0
mov ecx, ebx
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x100140fb
mov eax, dword [eax + 4]
jmp 0x100140fe
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x10014161
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x10014161
jmp 0x1001415c
push eax
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x10014161
push 0
mov ecx, ebx
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x1001413d
mov eax, dword [eax + 4]
jmp 0x10014140
add eax, 4
push eax
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x10014161
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 0x190]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1005097c
add ebp, 0x194
leave
ret 0xc
Function at 0x10014984
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x18
mov eax, 0x10072eca
call fcn.1005109b
mov eax, dword [ebp + 0x438]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x14]
mov edi, ecx
mov ecx, dword [ebp + 0x440]
add eax, eax
mov dword [ebp - 0x20], ecx
cmp eax, 0xbb8
jae 0x100149d0
xor eax, eax
inc eax
jmp 0x10014b3a
xor eax, eax
push 0x206
mov word [ebp + 0x224], ax
xor ebx, ebx
lea eax, [ebp + 0x226]
push ebx
push eax
call fcn.10050bb0
add esp, 0xc
lea eax, [ebp + 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.QZTMP
lea eax, [ebp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push str.w__ccsUNICODE
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10053368
add esp, 0xc
cmp dword [ebp - 0x14], ebx
jne 0x10014a48
xor eax, eax
jmp 0x10014b3a
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x10014ad7
add edi, 0x50
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.100192cd
mov ecx, dword [ebp + 0x43c]
test dword [eax], ecx
je 0x10014ad1
push ebx
mov ecx, esi
call fcn.10017818
push eax
lea ecx, [ebp]
call fcn.10001db9
and dword [ebp - 4], 0
push 0x10078368
lea ecx, [ebp]
call fcn.10012250
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10014aa8
lea eax, [ebp + 4]
push dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
push edi
push 2
push eax
call fcn.10053220
add esp, 0x10
cmp eax, edi
jne 0x10014ac1
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp]
call fcn.1000166a
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x10014a67
push dword [ebp - 0x14]
call fcn.10053042
pop ecx
test eax, eax
jne 0x10014a41
cmp dword [ebp - 0x10], eax
je 0x10014a41
push 0x1008f90c
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x20]
xor edi, edi
lea eax, [ebp - 0x10]
push str.___s_s_
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.1000cf04
mov ecx, dword [ebp - 0x18]
add esp, 0x10
call fcn.10018124
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.10012250
lea ecx, [esi - 0x10]
call fcn.10002890
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.1005097c
add ebp, 0x430
leave
ret 0xc
Function at 0x10014c1d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1040]
mov eax, 0x1040
call fcn.10050990
push 0xffffffffffffffff
push 0x10072f2d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x103c], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1048]
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x18], 7
call fcn.1000187c
push 2
lea eax, [ebp]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10014911
push 0x1007822c
push 2
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10014984
test eax, eax
je 0x10014e20
cmp dword [ebp + 0x1050], ebx
jl 0x10014e20
mov eax, dword [ebp + 0x104c]
jg 0x10014cbb
cmp eax, 2
jb 0x10014e20
cmp dword [ebp + 0x1050], ebx
jg 0x10014e20
jl 0x10014cd4
cmp eax, 0x1000
ja 0x10014e20
dec eax
dec eax
je 0x10014df0
dec eax
dec eax
je 0x10014d85
sub eax, 4
je 0x10014d97
sub eax, 8
je 0x10014d7a
sub eax, 0x1f0
je 0x10014df0
sub eax, 0xe00
jne 0x10014e20
push ebx
push 0x10
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ebx
lea ecx, [esi + 0x38]
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x10014d2e
mov ecx, dword [eax + 4]
jmp 0x10014d31
lea ecx, [eax + 4]
mov eax, 0x104
push eax
lea edx, [ebp + 0xc2c]
push edx
push eax
lea edx, [ebp + 0xe34]
push edx
push eax
lea edx, [ebp + 0xa24]
push edx
push eax
lea eax, [ebp + 0x81c]
push eax
push ecx
call fcn.100533bb
add esp, 0x24
push dword [esi + 0x2ac]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push 1
push eax
jmp 0x10014e11
lea eax, [esi + 0x9c]
cmp word [eax], bx
jne 0x10014d72
cmp dword [esi + 0x1c], 8
jb 0x10014d90
mov esi, dword [esi + 8]
jmp 0x10014d93
add esi, 8
push 1
jmp 0x10014e10
cmp dword [esi + 0x1c], 8
jb 0x10014da2
mov eax, dword [esi + 8]
jmp 0x10014da5
lea eax, [esi + 8]
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea ecx, [esi + 0x38]
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x10014dc4
mov ecx, dword [eax + 4]
jmp 0x10014dc7
lea ecx, [eax + 4]
mov eax, 0x104
push eax
lea edx, [ebp + 0x81c]
push edx
push eax
lea edx, [ebp + 0xa24]
push edx
push eax
lea edx, [ebp + 0xe34]
push edx
push eax
lea eax, [ebp + 0xc2c]
jmp 0x10014d55
lea eax, [esi + 0x9c]
cmp word [eax], bx
je 0x10014e01
push ebx
jmp 0x10014d74
cmp dword [esi + 0x1c], 8
jb 0x10014e0c
mov esi, dword [esi + 8]
jmp 0x10014e0f
add esi, 8
push ebx
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call fcn.10014b5f
add esp, 0x10
push ebx
push 1
lea ecx, [ebp]
call fcn.1000166a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x103c]
xor ecx, ebp
call fcn.1005097c
add ebp, 0x1040
leave
ret 0xc
Function at 0x10015035
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x634
lea ebp, [esp - 4]
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x634], eax
push 0xc
mov eax, 0x10072fd7
call fcn.1005109b
mov edi, dword [ebp + 0x640]
mov esi, dword [ebp + 0x644]
mov dword [ebp - 0x18], ecx
push 0
lea ecx, [ebp]
mov dword [ebp + 0x18], 7
call fcn.1000187c
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea eax, [ebp]
push eax
call fcn.10014911
mov ecx, dword [ebp - 0x18]
push 0x100782ac
push 0xffffffffffffffff
lea eax, [ebp]
push eax
call fcn.10014984
mov ecx, edi
test eax, eax
jne 0x100150de
call fcn.10018124
xor esi, esi
push 0
push 1
lea ecx, [ebp]
call fcn.1000166a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x634]
xor ecx, ebp
call fcn.1005097c
add ebp, 0x638
leave
ret 8
push 0x100782b0
call fcn.10002bf0
push str._ieml.
mov ecx, edi
call fcn.10012250
mov ebx, 0x1008f90c
push ebx
lea ecx, [ebp - 0x10]
call fcn.10002c90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
test esi, esi
je 0x1001511e
push esi
push str.______s_
push eax
call fcn.1000cf04
add esp, 0xc
jmp 0x1001512b
push 0x100782dc
push eax
call fcn.1000cf04
pop ecx
pop ecx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10012250
lea eax, [ebp + 0x1c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x42c]
push eax
push 0
push 0x100782e8
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov word [eax], cx
push ebx
lea ecx, [ebp - 0x14]
call fcn.10002c90
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.100119b2
push dword [ebp - 0x14]
lea eax, [ebp + 0x42c]
push esi
push eax
call fcn.1005215f
add esp, 0x10
push 0
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x18]
push 0
push esi
lea eax, [ebp + 0x224]
push eax
call fcn.10013ffa
lea eax, [ebp + 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x42c]
push eax
call fcn.10011691
pop ecx
mov ecx, edi
test eax, eax
je 0x10015208
push str.___a
call fcn.10012250
lea eax, [ebp + 0x42c]
push eax
mov ecx, edi
call fcn.10012250
push 0x100782f4
mov ecx, edi
jmp 0x1001520f
lea eax, [ebp + 0x42c]
push eax
call fcn.10012250
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10015220
lea eax, [ebp + 4]
push eax
push edi
call fcn.100148ad
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002890
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002890
xor esi, esi
inc esi
jmp 0x100150ab