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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], ebx
jb 0x10006620
mov ecx, dword [edi]
lea eax, [ebp - 0xc]
mov edx, 0x20019
push eax
call fcn.10006360
add esp, 4
test eax, eax
jne 0x10006667
cmp dword [edi + 0x14], 8
jb 0x1000663d
mov edi, dword [edi]
lea eax, [ebp - 0xc]
push eax
call fcn.10006580
neg eax
mov ecx, edi
sbb eax, eax
and eax, 0x100
lea edx, [eax + 0x20019]
call fcn.10006360
add esp, 4
test eax, eax
je 0x100066f7
cmp dword [esi + 0x10], ebx
jne 0x10006673
mov ebx, eax
jmp 0x100066f7
cmp dword [esi + 0x14], 8
jb 0x1000667d
mov eax, dword [esi]
jmp 0x1000667f
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
jne 0x100066f7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100066f7
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x100066f7
cmp dword [esi + 0x14], 8
jb 0x100066c0
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100066e7
mov ecx, dword [ebp - 0x14]
push edi
call fcn.100032d0
mov ebx, 1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x10006705
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret

Function at 0x10006b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10279030], 0
jne 0x10006c29
push esi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push 0x1022a444
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.101a7aea
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.100077d0
mov esi, eax
test esi, esi
je 0x10006c28
push str.GetLocaleInfoEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push esi
sbb eax, eax
add eax, 2
mov dword [0x10279030], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x10279030], 1
sete al
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100074c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov ebx, edx
mov edi, ecx
mov esi, 0xfffffc18
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100076d2
cmp dword [ebp - 0x108], 2
jne 0x100076d2
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
mov dword [edi], ecx
mov dword [ebx], eax
cmp ecx, 5
jne 0x10007619
test eax, eax
jne 0x10007556
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100075f8
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.101a8209
add esp, 0xc
test eax, eax
jne 0x10007591
mov esi, 3
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.101a8209
add esp, 0xc
test eax, eax
jne 0x100075c3
mov esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.101a8209
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 5
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100076d2
mov esi, 6
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp ecx, 6
jne 0x100076c7
test eax, eax
jne 0x1000768d
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.101a8209
add esp, 0xc
test eax, eax
jne 0x10007658
mov esi, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.101a8209
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 9
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100076aa
mov esi, 0xa
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100076d2
mov esi, 0xb
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp ecx, 6
mov eax, 0x3e8
cmova esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10012b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10012b69
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10012ba4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10012ba0
lea ebx, [ebx]
cmp esi, edx
jae 0x10012ba4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10012b90
cmp esi, edx
jb 0x10012bab
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100137b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e3ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10003440
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.100136d0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x1001382d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.101a9b48
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x10013856
push dword [esp + 0x10]
call fcn.101a02f0
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10014240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001425c
test al, 0x10
je 0x1001425c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100142b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x100143cd
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100142c4
sub edx, ecx
sar edx, 1
je 0x100143cd
cmp word [ebx + 2], 0x3a
jne 0x100143cd
cmp word [ebx + 4], 0x5c
jne 0x100143cd
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100142f6
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x10014346
push 2
push 0x102285e4
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.101a96b8
mov esi, eax
add esp, 8
test esi, esi
je 0x100143ba
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001437c
test al, 0x10
jne 0x10014385
push 0
push edi
call ebx
test eax, eax
je 0x100143b3
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.101a96b8
mov esi, eax
add esp, 8
test esi, esi
jne 0x10014367
push edi
call fcn.101a1ad1
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.101a1ad1
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100143e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100144f3
movzx eax, word [ebx]
test ax, ax
je 0x100144f3
cmp word [ebx + 2], 0x3a
jne 0x10014409
cmp word [ebx + 4], 0x5c
je 0x10014412
cmp eax, 0x5c
jne 0x100144f3
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10014420
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x10014470
push 2
push 0x102285e4
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp + 8], 1
push 0x5c
push eax
call fcn.101a96b8
mov esi, eax
add esp, 8
test esi, esi
je 0x100144e2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100144a6
test al, 0x10
jne 0x100144af
push 0
push edi
call ebx
test eax, eax
je 0x100144db
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.101a96b8
mov esi, eax
add esp, 8
test esi, esi
jne 0x10014491
push edi
call fcn.101a1ad1
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [ebp + 8], 0
push edi
call fcn.101a1ad1
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10014500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014536
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100146e0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3b71
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x102683e0]
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 edi, edx
mov esi, ecx
xor eax, eax
test esi, esi
je 0x100148f4
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.101a01b0
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.101aab48
add esp, 0x18
test eax, eax
jne 0x10014755
xor eax, eax
jmp 0x100148f4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001474e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
mov dword [ebp - 0x22c], ebx
test ebx, ebx
jne 0x100148f2
test edi, edi
je 0x100148f2
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x228]
call fcn.1001adb0
push ecx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x228]
call fcn.1001af50
mov ecx, eax
call fcn.1001b030
lea ecx, [ebp - 0x224]
mov bl, al
call fcn.1001ae70
test bl, bl
je 0x100148d4
lea ecx, [ebp - 0x220]
call fcn.1001ad80
push ecx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.1001af10
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.1001afc0
mov byte [ebp - 4], 2
mov ecx, 1
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
jge 0x10014831
push 0x104
lea ecx, [ebp - 0x220]
call fcn.1001e070
mov esi, dword [ebp - 0x220]
push esi
push 0
push 0x1022a5e4
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.1001ad40
test edi, edi
jne 0x1001487a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push str._s.tmp
push eax
call fcn.1001ec90
mov esi, dword [ebp - 0x220]
add esp, 0xc
jmp 0x10014886
mov edx, 1
mov ecx, esi
call fcn.100146e0
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.101aadbb
add esp, 8
push 4
push 0
test eax, eax
jne 0x100148ad
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x22c]
jmp 0x100148bc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x224]
call fcn.1001ae70
lea ecx, [ebp - 0x220]
call fcn.1001ae70
jmp 0x100148e7
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
lea ecx, [ebp - 0x228]
call fcn.1001ae70
mov eax, ebx
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.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100153d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3c78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100154cd
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100154cd
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movdqu xmmword [ebp - 0x30], xmm0
mov eax, 0x414
lea ecx, [ebp - 0x10]
movq qword [ebp - 0x20], xmm0
push esi
mov word [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 3
mov word [ebp - 0x20], ax
call fcn.1001adb0
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1001aeb0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x10015478
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.1001cae0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1001548e
lea esi, [eax + 1]
jmp 0x10015496
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100154ba
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016d50
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x10016e02
mov edx, str.cpytemp
lea ecx, [esp + 0xc]
call fcn.10017410
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
push esi
call ebx
mov esi, eax
test esi, esi
je 0x10016ded
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0x80
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x20], 8
lea ebx, [esp + 0xc]
push 1
cmovae ebx, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
jne 0x10016ded
push 5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
cmp dword [esp + 0x20], 8
jb 0x10016e00
push dword [esp + 0xc]
call fcn.101a02f0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret

Function at 0x10017410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x418], 0
push 0x206
push eax
mov word [ebp - 0x414], ax
mov esi, edx
lea eax, [ebp - 0x412]
mov edi, ecx
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
je 0x100174cf
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100174c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10003c10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100192c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x1027a2cc]
mov dword [ebp - 0x230], 0
push esi
mov esi, dword [ebp + 8]
push edi
test al, 1
jne 0x1001931c
or eax, 1
mov dword [0x1027a288], 7
mov dword [0x1027a2cc], eax
xor eax, eax
push 0x101fb530
mov dword [0x1027a284], 0
mov word [0x1027a274], ax
call fcn.101a0420
add esp, 4
cmp dword [0x1027a284], 0
jne 0x10019404
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x214], 0
jne 0x10019367
xor ecx, ecx
jmp 0x1001937f
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019370
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x214]
mov ecx, 0x1027a274
push eax
call fcn.10003c10
lea eax, [ebp - 0x22c]
push 0x1027a274
push eax
call fcn.10018a30
mov edi, eax
add esp, 8
cmp edi, 0x1027a274
je 0x100193ed
cmp dword [0x1027a288], 8
jb 0x100193c6
push dword [0x1027a274]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [0x1027a288], 7
push edi
mov ecx, 0x1027a274
mov dword [0x1027a284], 0
mov word [0x1027a274], ax
call fcn.10003640
cmp dword [ebp - 0x218], 8
jb 0x10019404
push dword [ebp - 0x22c]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x1027a274
mov word [esi], ax
call fcn.100040d0
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret

Function at 0x10019cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, edx
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10019d75
cmp word [ebp - 0x20c], 0
jne 0x10019d2b
xor eax, eax
jmp 0x10019d43
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10019d34
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10003c10
push 1
push 0x102285e4
mov ecx, edi
call fcn.10003b30
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret