joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b750
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
xor eax, eax
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
mov eax, 0x454
or word [ebp - 0x10], ax
lea eax, [ebp - 0x127]
push 0x104
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x104
lea eax, [ebp - 0x22f]
mov byte [ebp - 0x230], 0
push 0
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x18
cmp dword [ecx + 0x14], 0x10
jb 0x1001b7bf
mov ecx, dword [ecx]
lea edx, [ebp - 0x128]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x1001b7c5
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x1001b7de
mov ecx, dword [ecx]
lea edx, [ebp - 0x230]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x1001b7e4
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x1001b822
mov eax, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001b8d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
xor eax, eax
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
mov eax, 0x454
or word [ebp - 0x10], ax
lea eax, [ebp - 0x127]
push 0x104
push 0
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp dword [ecx + 0x14], 0x10
jb 0x1001b925
mov ecx, dword [ecx]
lea edx, [ebp - 0x128]
jmp 0x1001b930
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x1001b930
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1001be60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x44], 0
push eax
call sym.KwLib.dll_int___cdecl_KwLib::Dir::GetDiskNames_class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______
mov edi, dword [esp + 0x34]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x1001bf31
xor ebx, ebx
mov esi, eax
mov dword [esp + 0xc], ebx
cmp eax, edi
je 0x1001bf31
cmp dword [esi + 0x14], 0x10
jb 0x1001bed0
mov eax, dword [esi]
jmp 0x1001bed2
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x1001bf1f
mov ecx, dword [esp + 0x14]
cmp eax, ecx
ja 0x1001bf1f
mov eax, dword [esp + 0x10]
jb 0x1001bf02
cmp ebx, eax
jae 0x1001bf1b
mov ebx, eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp ecx, esi
je 0x1001bf1f
push 0xffffffffffffffff
push 0
push esi
call fcn.100018e0
mov eax, dword [esp + 0xc]
add esi, 0x18
cmp esi, edi
jne 0x1001bec6
or ebx, eax
je 0x1001bf31
mov eax, 1
jmp 0x1001bf33
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x1001bf83
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov esi, ecx
cmp ecx, edi
je 0x1001bf79
jmp 0x1001bf50
cmp dword [esi + 0x14], 0x10
jb 0x1001bf5d
push dword [esi]
call ebx
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x1001bf50
mov ecx, dword [esp + 0x2c]
push ecx
call ebx
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001bfa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f78a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call edi
mov esi, eax
push esi
call fcn.10013326
add esp, 4
mov ebx, eax
mov dword [esp + 0x1c], ebx
push ebx
push esi
call edi
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x18], eax
test eax, eax
jle 0x1001c188
mov esi, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov al, byte [ebx]
push ecx
mov byte [esp + 0x10], al
mov word [esp + 0x11], 0x5c3a
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x1001c168
cmp byte [esp + 0xc], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jne 0x1001c052
xor eax, eax
jmp 0x1001c069
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c060
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.10001a10
mov dword [esp + 0x44], 0
lea eax, [esp + 0x20]
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x1001c0d0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
cmp eax, ecx
ja 0x1001c0d0
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [esi + 8]
jne 0x1001c0b5
push ecx
mov ecx, esi
call fcn.10004440
mov eax, dword [esi]
lea ecx, [ebx + ebx*2]
lea eax, [eax + ecx*8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1001c0ca
push eax
call fcn.100017e0
mov ebx, dword [esp + 0x10]
jmp 0x1001c146
cmp edi, dword [esi + 8]
jne 0x1001c0dd
push ecx
mov ecx, esi
call fcn.10004440
mov edi, dword [esi + 4]
test edi, edi
je 0x1001c146
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esp + 0x34], 0x10
jae 0x1001c115
mov eax, dword [esp + 0x30]
inc eax
je 0x1001c123
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1001c123
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x14], eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
add dword [esi + 4], 0x18
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x34], 0x10
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1001c168
push dword [esp + 0x20]
call edi
add esp, 4
mov ecx, dword [esp + 0x14]
add ebx, 4
add ecx, 4
mov dword [esp + 0x10], ebx
dec dword [esp + 0x18]
mov dword [esp + 0x14], ecx
jne 0x1001c010
mov ebx, dword [esp + 0x1c]
push ebx
call edi
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001cc50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004f83c
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x1006e3e8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x1001ccb6
lea eax, [esp + 0xc]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001ccac
call edi
cmp eax, 0x57
jne 0x1001ccac
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001ccb6
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x50]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x8c], 0
cmp dword [edx + 0x14], 8
jb 0x1001ccdb
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp word [edx], ax
jne 0x1001ccfb
xor ecx, ecx
jmp 0x1001cd0f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001cd00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.100026d0
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x64], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1001cd38
push dword [esp + 0x50]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
mov eax, dword [0x1006e3e8]
mov dword [esp + 0x60], 0
cmp eax, 0xffffffff
jne 0x1001cd8f
lea eax, [esp + 0xc]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001cd85
call edi
cmp eax, 0x57
jne 0x1001cd85
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001cd8f
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x68]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov byte [esp + 0x8c], 3
cmp dword [edx + 0x14], 8
jb 0x1001cdb1
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
jne 0x1001cdd1
xor ecx, ecx
jmp 0x1001cde5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001cdd6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.100026d0
cmp dword [esp + 0x7c], 8
jb 0x1001ce00
push dword [esp + 0x68]
call esi
add esp, 4
cmp dword [esp + 0x34], 8
lea ecx, [esp + 0x20]
lea eax, [esp + 0x38]
cmovae ecx, dword [esp + 0x20]
cmp dword [esp + 0x4c], 8
push ecx
cmovae eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esp + 0x34], 8
mov edi, eax
jb 0x1001ce36
push dword [esp + 0x20]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x1001ce5d
push dword [esp + 0x38]
call esi
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001eed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fac7
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x1006e3e8]
push esi
cmp eax, 0xffffffff
jne 0x1001ef33
lea eax, [esp + 4]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001ef29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001ef29
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001ef33
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x30]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x54], 0
cmp dword [edx + 0x14], 8
jb 0x1001ef55
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [edx], ax
jne 0x1001ef75
xor ecx, ecx
jmp 0x1001ef8f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001ef80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.100026d0
cmp dword [esp + 0x44], 8
jb 0x1001efae
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001efd3
test al, 2
jbe 0x1001efd3
mov esi, 1
jmp 0x1001efd5
xor esi, esi
cmp dword [esp + 0x2c], 8
jb 0x1001efe9
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fad9
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x1006e3e8]
push esi
cmp eax, 0xffffffff
jne 0x1001f063
lea eax, [esp + 4]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001f059
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001f059
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001f063
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x30]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x54], 0
cmp dword [edx + 0x14], 8
jb 0x1001f085
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [edx], ax
jne 0x1001f0a5
xor ecx, ecx
jmp 0x1001f0bf
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f0b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.100026d0
cmp dword [esp + 0x44], 8
jb 0x1001f0de
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001f103
test al, 1
jbe 0x1001f103
mov esi, 1
jmp 0x1001f105
xor esi, esi
cmp dword [esp + 0x2c], 8
jb 0x1001f119
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004faeb
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x1006e3e8]
push esi
cmp eax, 0xffffffff
jne 0x1001f193
lea eax, [esp + 4]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001f189
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001f189
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001f193
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x30]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x54], 0
cmp dword [edx + 0x14], 8
jb 0x1001f1b5
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [edx], ax
jne 0x1001f1d5
xor ecx, ecx
jmp 0x1001f1ef
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f1e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.100026d0
cmp dword [esp + 0x44], 8
jb 0x1001f20e
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001f233
test al, 4
jbe 0x1001f233
mov esi, 1
jmp 0x1001f235
xor esi, esi
cmp dword [esp + 0x2c], 8
jb 0x1001f249
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100204c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fcca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
push 0x104
lea eax, [ebp - 0x130]
mov dword [ebp - 0x28], 0
push 0
push eax
mov esi, ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1002059d
cmp byte [ebp - 0x130], 0
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
jne 0x10020537
xor ecx, ecx
jmp 0x10020549
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020540
sub ecx, edx
push ecx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001a10
push 1
push 0x10059c78
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.10001f40
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.100017e0
cmp dword [ebp - 0x10], 0x10
jb 0x100205bc
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x10053860
mov byte [esi], 0
call fcn.10001a10
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10020760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fd08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
push edi
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 0x28], 0
push 0
push eax
mov esi, edx
mov edi, ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push 1
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
js 0x10020849
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp word [ebp - 0x230], ax
jne 0x100207dc
xor ecx, ecx
jmp 0x100207f4
lea ecx, [ebp - 0x230]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100207e5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24]
call fcn.100026d0
push 1
push 0x10059c80
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.10006660
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.10002140
cmp dword [ebp - 0x10], 8
jb 0x1002085c
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021100
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fd97
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x1006e3e8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x10021166
lea eax, [esp + 0xc]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1002115c
call edi
cmp eax, 0x57
jne 0x1002115c
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10021166
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x50]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x8c], 0
cmp dword [edx + 0x14], 8
jb 0x1002118b
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp word [edx], ax
jne 0x100211ab
xor ecx, ecx
jmp 0x100211bf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100211b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.100026d0
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x64], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x100211e8
push dword [esp + 0x50]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
mov eax, dword [0x1006e3e8]
mov dword [esp + 0x60], 0
cmp eax, 0xffffffff
jne 0x1002123f
lea eax, [esp + 0xc]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10021235
call edi
cmp eax, 0x57
jne 0x10021235
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1002123f
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x68]
push eax
call fcn.10008690
add esp, 4
mov edx, eax
mov byte [esp + 0x8c], 3
cmp dword [edx + 0x14], 8
jb 0x10021261
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
jne 0x10021281
xor ecx, ecx
jmp 0x10021295
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021286
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.100026d0
cmp dword [esp + 0x7c], 8
jb 0x100212b0
push dword [esp + 0x68]
call esi
add esp, 4
cmp dword [esp + 0x34], 8
lea ecx, [esp + 0x20]
push dword [ebp + 0x10]
cmovae ecx, dword [esp + 0x24]
lea eax, [esp + 0x3c]
cmp dword [esp + 0x50], 8
push ecx
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x34], 8
mov edi, eax
jb 0x100212e9
push dword [esp + 0x20]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x10021310
push dword [esp + 0x38]
call esi
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021330
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fdb1
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x1006e3e8]
push esi
push edi
cmp eax, 0xffffffff
jne 0x10021394
lea eax, [esp + 0xc]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1002138a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1002138a
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10021394
mov eax, 0xd698
mov dword [0x1006e3e8], eax
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x38]
push eax
mov edx, esi
call fcn.10008690
add esp, 4
mov edx, eax
mov dword [esp + 0x5c], 0
cmp dword [edx + 0x14], 8
jb 0x100213b8
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
jne 0x100213d8
xor ecx, ecx
jmp 0x100213ef
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100213e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.100026d0
mov byte [esp + 0x5c], 2
cmp dword [esp + 0x4c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10021415
push dword [esp + 0x38]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
push esi
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call sym.KwLib.dll_int___cdecl_KwLib::Dir::IsAttrReadOnly_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
test eax, eax
je 0x10021453
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 0x80
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [esp + 0x34], 8
jb 0x10021480
push dword [esp + 0x20]
call edi
add esp, 4
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret