joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453640
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4cf251
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x2020], eax
push esi
push edi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0x2034]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
mov edi, edx
je 0x4538ce
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x453690
sub eax, edx
sar eax, 1
je 0x4538ce
test ebx, ebx
je 0x4538ce
push 0x800
lea eax, [esp + 0x830]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push edi
push 0x400
push 0x527d38
lea edi, [esp + 0x838]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x4536f7
push 0x3ff
push esi
mov ecx, edi
push 0x400
push ecx
call fcn.004a9be0
add esp, 0x10
cmp byte [esp + 0x2044], 0
jne 0x453723
push 0x3ff
lea edx, [esp + 0x830]
push edx
push 0x400
push ebx
call fcn.004a9be0
add esp, 0x10
mov al, 1
jmp 0x4538d0
push 0x800
lea eax, [esp + 0x1830]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push 0x800
lea ecx, [esp + 0x1030]
push 0
push ecx
call fcn.004ab450
add esp, 0xc
push 0x800
lea edx, [esp + 0x30]
push 0
push edx
call fcn.004ab450
sub esp, 0x10
mov edx, str.SRC_DIR
mov eax, esp
mov dword [esp + 0x28], esp
call fcn.00411be0
mov dword [esp + 0x2058], 0
or edi, 0xffffffff
push 0x52c1fc
mov dword [esp + 0x205c], edi
lea esi, [esp + 0x30]
call fcn.00411c20
mov dword [esp + 0x203c], 1
cmp dword [eax + 0x18], 8
jb 0x4537ae
mov eax, dword [eax + 4]
jmp 0x4537b1
add eax, 4
push 0x3ff
push eax
lea eax, [esp + 0x1834]
push 0x400
push eax
call fcn.004a9be0
add esp, 0x10
mov dword [esp + 0x203c], edi
lea esi, [esp + 0x10]
call fcn.00411bb0
push 0
push 0x400
push 0
sub esp, 0x1c
mov edx, str.DEST_INST_DIR
mov eax, esp
lea esi, [esp + 0x1054]
mov dword [esp + 0x34], esp
call fcn.00411be0
mov dword [esp + 0x2064], 2
mov dword [esp + 0x2064], edi
mov edx, esi
mov ecx, 0x52c1fc
call fcn.00447ad0
mov ecx, esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push ecx
call esi
lea edx, [esp + 0x182c]
push edx
call esi
push 0x3ff
lea eax, [esp + 0x830]
push eax
lea ecx, [esp + 0x34]
push 0x400
push ecx
call fcn.004a9be0
push 0x400
lea edx, [esp + 0x1040]
push edx
lea eax, [esp + 0x1844]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004422a0
add esp, 0x20
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45389b
push 0x3ff
lea eax, [esp + 0x30]
push eax
push 0x400
push ebx
call fcn.004a9be0
add esp, 0x10
mov al, 1
jmp 0x4538d0
lea ecx, [esp + 0x2c]
push ecx
push str.Destination_Inf_is_not_valid_____s_
mov ecx, 0x527b30
call fcn.00449000
push 0x3ff
lea edx, [esp + 0x838]
push edx
push 0x400
push ebx
call fcn.004a9be0
add esp, 0x18
mov al, 1
jmp 0x4538d0
xor al, al
mov ecx, dword [esp + 0x2034]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.004a998e
add esp, 0x2034
ret 4
Function at 0x454c00
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c8de0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x454caa
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x454c53
sub eax, edx
sar eax, 1
je 0x454caa
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004ab450
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push 0x400
lea edx, [ebp]
push edx
push 1
push ebx
push ebx
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
jne 0x454ccf
push str.Get_Printer_Driver_Folder_fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x454cd5
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], 0x5c
jne 0x454d06
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x454cf2
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 2], bx
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004ab450
push edi
lea ecx, [ebp]
push ecx
push str._s3_scf.xml
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.004a9ca9
add esp, 0x20
lea eax, [ebp + 0x800]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
je 0x454d61
lea ecx, [ebp + 0x800]
push ecx
push str.___s__pre_config_file_was_deleted__
mov ecx, 0x527b30
call fcn.00449000
jmp 0x454d7f
lea edx, [ebp + 0x800]
push edx
push str.Delete___s__pre_config_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004ab450
push edi
lea ecx, [ebp]
push ecx
push str._s3_spf.xml
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.004a9ca9
add esp, 0x20
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
je 0x454de4
lea ecx, [ebp + 0x800]
push ecx
push str.___s__pre_config_file_was_deleted__
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x454caa
lea edx, [ebp + 0x800]
push edx
push str.Delete___s__pre_config_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x454caa
Function at 0x456030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6e20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x456182
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x456080
sub eax, edx
sar eax, 1
je 0x456182
cmp dword [ebp + 0xc], ebx
je 0x456182
cmp dword [ebp + 0x10], ebx
je 0x456182
cmp esi, ebx
je 0x4560ff
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4560b0
sub eax, edx
sar eax, 1
je 0x4560ff
mov eax, 0x20019
mov dword [ebp - 0x24], eax
cmp byte [ebp + 0x18], bl
je 0x4560d6
mov eax, 0x20119
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x456105
mov dword [ebp - 0x28], eax
push 0x5042a0
lea eax, [ebp - 0x28]
push eax
call fcn.004abd6e
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004993e2
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x45612f
mov dword [ebp - 0x2c], 0xe
push 0x5042a0
lea eax, [ebp - 0x2c]
push eax
call fcn.004abd6e
lea ecx, [ebp + 0x10]
push ecx
push esi
lea edx, [ebp - 0x1c]
push edx
push ebx
push edi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x14]
je 0x456164
mov dword [ebp - 0x30], 0x57
push 0x5042a0
lea edx, [ebp - 0x30]
push edx
call fcn.004abd6e
mov eax, dword [ebp + 0x10]
push eax
push esi
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a9d14
add esp, 0x10
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x4561c0
mov dword [ebp - 0x34], 0x57
push 0x5042a0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004abd6e
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4561be
ret
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4561d3
cmp eax, dword [ebp + 8]
je 0x4561d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4561e3
push eax
call fcn.004993dd
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6e00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x4566ae
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4565e0
sub eax, edx
sar eax, 1
je 0x4566ae
test ebx, ebx
je 0x4566ae
test esi, esi
je 0x456660
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456606
sub eax, edx
sar eax, 1
je 0x456660
mov eax, 0x2001f
mov dword [ebp - 0x1c], eax
cmp byte [ebp + 0x18], cl
je 0x45662c
mov eax, 0x2011f
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push 0
push 0
push 0
push esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x456666
mov dword [ebp - 0x24], eax
push 0x5042a0
lea ecx, [ebp - 0x24]
push ecx
call fcn.004abd6e
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
push eax
push ebx
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push edi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x456699
cmp eax, dword [ebp + 8]
je 0x456699
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 0x57
push 0x5042a0
lea eax, [ebp - 0x28]
push eax
call fcn.004abd6e
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4566d6
ret
Function at 0x4569e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6de0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x456ab8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456a27
sub eax, edx
sar eax, 1
je 0x456ab8
test edi, edi
jne 0x456a48
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 8], edi
test esi, esi
je 0x456a9e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456a51
sub eax, edx
sar eax, 1
je 0x456a9e
mov eax, 0xf003f
mov dword [ebp - 0x1c], eax
cmp byte [ebp + 0xc], cl
je 0x456a77
mov eax, 0xf013f
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x456aa1
mov dword [ebp - 0x20], eax
push 0x5042a0
lea edx, [ebp - 0x20]
push edx
call fcn.004abd6e
mov dword [ebp - 0x14], edi
push ebx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x456af7
mov dword [ebp - 0x24], 0x57
push 0x5042a0
lea ecx, [ebp - 0x24]
push ecx
call fcn.004abd6e
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x456af4
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x456b09
cmp eax, edi
je 0x456b09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1204]
mov eax, 0x1204
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c7590
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x120c]
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x456c8a
cmp eax, edi
je 0x456c8a
mov dword [ebp - 0x18], eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x456bc2
mov dword [ebp - 0x44], ebx
push 0x5042a0
lea ecx, [ebp - 0x44]
push ecx
call fcn.004abd6e
xor esi, esi
mov dword [ebp - 0x38], esi
cmp esi, dword [ebp - 0x28]
jge 0x456c81
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x20], 0x1000
push 0x1000
push edi
lea edx, [ebp]
push edx
call fcn.004ab450
push 0x200
push edi
lea eax, [ebp + 0x1000]
push eax
call fcn.004ab450
add esp, 0x18
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp + 0x1000]
push edx
push esi
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x456c40
mov dword [ebp - 0x40], eax
push 0x5042a0
lea ecx, [ebp - 0x40]
push ecx
call fcn.004abd6e
push edi
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push edi
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp]
lea edx, [ebp + 0x1000]
call fcn.00456590
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x456c79
mov dword [ebp - 0x34], ebx
push 0x5042a0
lea edx, [ebp - 0x34]
push edx
call fcn.004abd6e
add esi, 1
jmp 0x456bc4
mov dword [ebp - 4], 0xffffffff
jmp 0x456ccb
mov dword [ebp - 0x3c], 0x57
push 0x5042a0
lea eax, [ebp - 0x3c]
push eax
call fcn.004abd6e
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x456cc6
ret
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x456cde
cmp eax, dword [ebp - 0x30]
je 0x456cde
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 + 0x1200]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1204
mov esp, ebp
pop ebp
ret
Function at 0x45daf0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x4c8c30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x45dc3e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45db40
sub eax, edx
sar eax, 1
je 0x45dc3e
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004ab450
push edi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004a9ecb
add esp, 0x18
mov ecx, 0x4dbd14
lea edx, [ebp]
call fcn.00442540
mov ecx, 0x4dbd14
lea edx, [ebp]
call fcn.004426f0
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45dc35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x45dbdb
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
mov dword [ebp - 0x18], esi
push 0x5042a0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004abd6e
sub eax, 2
je 0x45dc30
sub eax, 3
je 0x45dc0b
sub eax, 0x1b
je 0x45dc1a
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x45dc81
push 0x80
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.0045e240
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x45dc81
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x45dc81
mov eax, 0x57
jmp 0x45dc83
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 + 0x800]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x45e070
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c8c00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x45e1fc
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45e0d0
sub eax, edx
sar eax, 1
je 0x45e1fc
cmp esi, edi
je 0x45e1fc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45e0f2
sub eax, edx
sar eax, 1
je 0x45e1fc
push 0x5c
push esi
call fcn.004a9ce4
add esp, 8
mov edi, eax
test edi, edi
jne 0x45e12d
mov dword [ebp - 0x1c], 0x57
push 0x5042a0
lea eax, [ebp - 0x1c]
push eax
call fcn.004abd6e
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.004a9be0
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.004ab450
add esp, 0x1c
lea ecx, [ebp + 0x800]
push ecx
push 0
push edi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x45e185
push esi
push str._s.tmp
lea edx, [ebp + 0x800]
call fcn.00411a00
add esp, 8
push 1
lea eax, [ebp + 0x800]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x45e1c4
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x45e1b8
push 4
push 0
lea ecx, [ebp + 0x800]
push ecx
call edi
jmp 0x45e1cd
push 1
push esi
lea edx, [ebp + 0x800]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x45e1d7
Function at 0x45e240
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c8bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x45e3e0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45e297
sub eax, edx
sar eax, 1
je 0x45e3e0
push 0x5c
push edi
call fcn.004a9ce4
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x45e3e0
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004ab450
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x45e2fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x5042a0
lea edx, [ebp - 0x1c]
push edx
call fcn.004abd6e
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004ab450
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x45e343
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x5042a0
lea eax, [ebp - 0x24]
push eax
call fcn.004abd6e
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x45e370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x5042a0
lea edx, [ebp - 0x20]
push edx
call fcn.004abd6e
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x45e397
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x5042a0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004abd6e
lea edx, [ebp + 0x800]
push edx
push edi
push str.__s__file_was_moved_to___s__and_it_will_be_deleted_after_reboot__
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x45e3bb
Function at 0x45e440
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c99c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5c
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
je 0x45e62a
mov eax, edx
lea esi, [eax + 2]
jmp 0x45e4b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45e4b0
sub eax, esi
sar eax, 1
je 0x45e62a
push edx
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004a9ecb
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.004a9696
add esp, 0x18
cmp eax, ebx
je 0x45e5fb
push eax
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.004a9ecb
push 0x4e4f30
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004aa6ad
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
call fcn.004a9696
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
cmp eax, ebx
je 0x45e5f8
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x45e540
sub ecx, esi
sar ecx, 1
je 0x45e5f8
push eax
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004aa6ad
push 0x4e4f30
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.004aa6ad
add esp, 0x18
push ebx
lea edx, [ebp + 0x800]
push edx
call edi
test eax, eax
je 0x45e5d7
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x45e5c1
mov eax, dword [ebp + 0x1010]
cmp eax, 1
je 0x45e5a9
cmp eax, 2
je 0x45e5a9
xor al, al
jmp 0x45e5ae
mov eax, 1
push 1
push eax
push 1
lea edx, [ebp + 0x800]
call fcn.004576a0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
call fcn.004a9696
add esp, 0xc
jmp 0x45e530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x45e5c1
mov dword [ebp - 0x20], eax
push 0x5042a0
lea eax, [ebp - 0x20]
push eax
call fcn.004abd6e
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x45e605