joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000efc0
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
test ecx, ecx
je 0x1000f06c
mov eax, dword [0x101a3dec]
mov dword [ebp - 0x10], eax
mov eax, dword [0x101a3df0]
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000f056
push 0
push 0
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x1c], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000f06c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
cmp ecx, edx
ja 0x1000f06c
mov eax, dword [ebp + 0xc]
jb 0x1000f041
cmp dword [ebp - 0x1c], eax
jae 0x1000f06c
sub eax, dword [ebp - 0x1c]
sbb edx, ecx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
xor ecx, ebp
mov eax, dword [ebp - 0x24]
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011910
Capabilities:
Check if file exists
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov ebx, ecx
call fcn.1012bf20
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
test edi, edi
jne 0x100119e7
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10011a58
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.AutodeskAutodesk_Download_Manager
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100119a1
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.download.info
lea eax, [ebp - 0x20c]
push eax
call esi
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100119c0
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
lea ecx, [ebx + 4]
push edx
push eax
call fcn.10004470
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x10011a58
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100119f0
sub ecx, edx
lea esi, [ebx + 4]
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.10004470
cmp dword [esi + 0x14], 8
jb 0x10011a13
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.101397a4
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x10011a58
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebx + 0x18], 8
lea edi, [ebx + 4]
jb 0x10011a65
mov eax, dword [edi]
jmp 0x10011a67
mov eax, edi
push eax
call esi
test eax, eax
jne 0x10011add
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x210], 0xfeff
jb 0x10011a82
mov eax, dword [edi]
jmp 0x10011a84
mov eax, edi
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x214]
push 0
push eax
push 2
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x10011ac7
mov edi, dword [edi]
push edi
push 0x101a3348
push str.VERSION
push str.Preferences
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebx + 0x14], 0
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 4
Function at 0x10012620
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x1001262f
mov ecx, dword [ecx]
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0
push str.DEST_DIR
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10012ef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016d342
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101c6270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x800
mov edi, 0x400
call fcn.1010fc7d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x10012f50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x18], 8
jb 0x10012f5b
mov eax, dword [esi + 4]
jmp 0x10012f5e
lea eax, [esi + 4]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [edi - 2]
push ebx
cmp eax, ecx
jne 0x10012fb0
call fcn.1010fc86
add edi, edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010fc7d
mov ebx, eax
mov dword [ebp - 0x10], eax
add esp, 8
test ebx, ebx
jne 0x10012f50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10013078
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp - 0x14]
nop dword [eax]
push 5
push 0x101a423c
push esi
call fcn.1013a78b
add esp, 0xc
test eax, eax
je 0x10012ff8
push 6
push str.https:
push esi
call fcn.1013a78b
add esp, 0xc
test eax, eax
jne 0x10013061
push 0x220
call fcn.1010f668
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10002240
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov edx, dword [ebx]
mov ecx, ebx
push edi
push esi
mov dword [ebp - 0x14], edi
mov edx, dword [edx + 0x10]
call edx
test al, al
je 0x10013047
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.10014980
jmp 0x1001305b
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 8]
test edi, edi
je 0x1001305b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
lea esi, [esi + eax*2]
add esi, 2
push esi
call edi
test eax, eax
jg 0x10012fd0
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.1010fc86
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10014100
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x10014131
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10014120
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1001ad70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x1001ada2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x1001ae3b
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1012bf20
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1001ade8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1012bf20
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0
push 0x101a3d80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001add5
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1001add5
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1001add5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1001add5
push str._Logging_started__r_n
push esi
call fcn.1001bce0
add esp, 8
push str.AdDLMRes.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp - 4]
test eax, eax
mov dword [esi + 0x20], eax
setne al
xor ecx, ebp
pop esi
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 4
Function at 0x1001bce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016daf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
cmp dword [ebx + 4], 0xffffffff
je 0x1001be78
xor ecx, ecx
mov dword [ebp - 0x24], 0xff
mov eax, 0x100
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010fc7d
mov edi, eax
add esp, 4
test edi, edi
je 0x1001be78
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push str._d__d__d:_02d:_02d:_02d_t
push dword [ebp - 0x24]
push edi
call fcn.10004580
add esp, 0x24
lea eax, [ebp - 0x24]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], 0xff
call fcn.10001770
mov ebx, eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xff
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.10131ac5
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, ecx
jne 0x1001be4b
nop dword [eax]
mov eax, dword [ebp - 0x24]
add eax, eax
push edi
mov dword [ebp - 0x24], eax
call fcn.1010fc86
mov eax, dword [ebp - 0x24]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010fc7d
mov edi, eax
add esp, 8
test edi, edi
je 0x1001be71
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x24]
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.10131ac5
add esp, 0x20
mov ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
cmp eax, ecx
je 0x1001bdf0
push 0
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
mov eax, dword [ebp - 0x28]
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.1010fc86
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret
Function at 0x1001e390
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010fc7d
add esp, 4
mov edi, eax
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
push edi
sete bl
call fcn.1010fc86
add esp, 4
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001fa20
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016de68
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x101c6270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
push 1
mov dword [ebp - 4], 0
call fcn.1011148a
add esp, 4
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 1
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xf
mov byte [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov byte [ebp - 4], 3
push 0x34
mov word [edi + 0x48], ax
mov byte [edi + 0x4a], al
call fcn.1010f668
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c]
push 0x101a5660
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.1000c360
lea eax, [ebp - 0x48]
push eax
call fcn.101117cb
add esp, 4
lea ecx, [ebp - 0x7c]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.1000c490
push esi
mov ecx, edi
mov dword [esi], vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
mov byte [ebp - 4], 3
call fcn.100202f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10021760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e0ab
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1012bf20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x100217ac
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.101397a4
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x100217d9
xor al, al
jmp 0x100218b4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10021886
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021810
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10004470
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.10021760
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x10021869
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.10004630
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100218b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100217d2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret
Function at 0x100218d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.100041a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10021120
test al, al
je 0x100219a5
push 0x250
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.1012bf20
add esp, 0xc
lea ecx, [ebp - 0x278]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1002196c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10021974
lea ecx, [ebp - 0x28]
call fcn.100218d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100219a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100219a5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, 1
jmp 0x100219a7
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x100219bc
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10004630
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret

Function at 0x10021a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x10021a60
mov eax, dword [esi]
jmp 0x10021a62
mov eax, esi
push 4
push str.__
push eax
call fcn.1013e29d
add esp, 0xc
test eax, eax
sete al
cmp dword [esi + 0x10], 0xf8
ja 0x10021aa8
test al, al
jne 0x10021abd
cmp dword [esi + 0x14], 8
jb 0x10021a8c
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret
test al, al
jne 0x10021abd
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.1012bf20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10021adb
mov esi, dword [esi]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10021aac
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1010f54f
mov esp, ebp
pop ebp
ret
Function at 0x10022670
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e194
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101c6270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.TARStreamWriterImp.0
mov byte [edi + 0x414], 0
mov dword [edi + 0x418], 0
mov dword [edi + 0x41c], 0
mov byte [edi + 0x420], 0
mov dword [edi + 0x424], 0
mov dword [edi + 0x428], 0
mov dword [edi + 0x430], 0
mov dword [edi + 0x42c], 0x101a5730
mov dword [edi + 0x43c], 0
mov dword [edi + 0x440], 0
mov dword [edi + 0x434], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x10022740
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.CreateSymbolicLinkW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101c6d24], eax
jmp 0x1002274a
mov dword [0x101c6d24], 0x10021ce0
mov byte [ebp - 4], 1
lea esi, [edi + 0x20604]
mov dword [edi + 0x448], 0
mov dword [edi + 0x44c], 0
mov dword [edi + 0x450], 0
mov dword [edi + 0x458], 0
mov dword [edi + 0x45c], 0
mov dword [edi + 0x20460], 0
mov dword [edi + 0x20464], 0
mov dword [edi + 0x20468], 0
mov dword [edi + 0x2046c], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10025d60
mov dword [esi], eax
lea esi, [edi + 0x2060c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10025d60
mov dword [esi], eax
lea eax, [edi + 0x460]
push 0x20000
push 0
push eax
mov dword [edi + 0x20618], 0
mov dword [edi + 0x2061c], 0
mov dword [edi + 8], 1
mov dword [edi + 0x10], 0
call fcn.1012bf20
push 0xca
lea eax, [edi + 0x20470]
push 0
push eax
call fcn.1012bf20
push 0xca
lea eax, [edi + 0x2053a]
push 0
push eax
call fcn.1012bf20
add esp, 0x24
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10023270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xorps xmm0, xmm0
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movlpd qword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
test edi, edi
je 0x10023487
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
nop
cmp dword [esi + 0x450], 0
jne 0x100232e2
push dword [ebp + 8]
mov ecx, esi
call fcn.100234b0
cdq
test edx, edx
jl 0x10023497
jg 0x100232c6
test eax, eax
jb 0x10023497
sub eax, 1
push 0
push 0x200
sbb edx, 0
push edx
push eax
call fcn.10110240
lea ebx, [eax + 1]
jmp 0x100233e0
mov eax, dword [esi + 0x20460]
or eax, dword [esi + 0x20464]
jne 0x10023307
lea ecx, [esi + 0x290]
call fcn.10021b90
mov dword [esi + 0x20460], eax
mov dword [esi + 0x20464], edx
mov eax, dword [esi + 0x448]
mov ecx, dword [esi + 0x44c]
sub edi, dword [ebp - 4]
mov edx, dword [esi + 0x20460]
shld ecx, eax, 9
shl edi, 9
shl eax, 9
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 8], edx
sub dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x20464]
sbb eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp ecx, eax
ja 0x1002334b
jb 0x1002337f
cmp edi, dword [ebp - 8]
jb 0x1002337f
or edx, dword [esi + 0x20464]
jne 0x1002336a
lea ecx, [esi + 0x290]
call fcn.10021b90
mov dword [esi + 0x20460], eax
mov dword [esi + 0x20464], edx
mov edi, dword [esi + 0x20460]
sub edi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x20464]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
test ecx, ecx
jl 0x100233dd
jg 0x10023389
test edi, edi
je 0x100233dd
push dword [esi + 0x450]
push edi
push 1
push dword [ebp + 8]
call fcn.10139c36
xor ecx, ecx
add esp, 0x10
cmp ecx, dword [ebp - 0x18]
jl 0x10023490
jg 0x100233b2
cmp eax, edi
jb 0x10023490
add dword [ebp - 0x10], eax
push 0
adc dword [ebp - 0xc], ecx
sub eax, 1
push 0x200
sbb ecx, ecx
push ecx
push eax
call fcn.10110240
lea ebx, [eax + 1]
mov eax, ebx
cdq
add dword [esi + 0x448], eax
adc dword [esi + 0x44c], edx
mov edi, dword [ebp + 0xc]
add dword [ebp - 4], ebx
mov eax, ebx
shl eax, 9
add dword [ebp + 8], eax
mov eax, dword [esi + 0x20468]
or eax, dword [esi + 0x2046c]
jne 0x10023453
mov eax, dword [esi + 0x20460]
or eax, dword [esi + 0x20464]
jne 0x1002341e
lea ecx, [esi + 0x290]
call fcn.10021b90
mov dword [esi + 0x20460], eax
mov dword [esi + 0x20464], edx
mov eax, dword [esi + 0x20464]
mov ecx, dword [esi + 0x20460]
test eax, eax
jl 0x10023453
jg 0x10023434
test ecx, ecx
je 0x10023453
sub ecx, 1
sbb eax, 0
shrd ecx, eax, 9
sar eax, 9
add ecx, 1
mov dword [esi + 0x20468], ecx
adc eax, 0
mov dword [esi + 0x2046c], eax
mov eax, dword [esi + 0x44c]
cmp eax, dword [esi + 0x2046c]
jb 0x10023478
ja 0x10023471
mov eax, dword [esi + 0x448]
cmp eax, dword [esi + 0x20468]
jb 0x10023478
mov ecx, esi
call fcn.10023b80
cmp dword [ebp - 4], edi
jb 0x100232a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 4], 0x28000006
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret 8