Function at 0x4597d0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Encode data using xor
Get file attributes
Get file size
Read file via mapping
Set file attributes
Timestomp file

Disassembly:
push 0xffffffffffffffff
push 0x5f66dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push ebp
push esi
push edi
or ebx, 0xffffffff
push str.shell32
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x4599b0
push str.SHGetFolderPathW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x4599a4
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x16c]
push eax
push edi
push edi
push 0x24
push edi
call esi
cmp eax, edi
jne 0x45999e
lea ecx, [esp + 0x16c]
push ecx
call fcn.005c2f1a
add esp, 4
cmp word [esp + eax*2 + 0x16a], 0x5c
je 0x459871
lea edx, [esp + 0x16c]
push 0x69e054
push edx
call fcn.005c3090
add esp, 8
call fcn.004406e0
test eax, eax
je 0x459889
lea eax, [esp + 0x16c]
push str.Sysnative
push eax
jmp 0x459896
lea ecx, [esp + 0x16c]
push str.System32
push ecx
call fcn.005c3090
mov edx, 0x129
mov eax, 0x13c
mov word [esp + 0x32], dx
mov word [esp + 0x3a], dx
mov word [esp + 0x2c], ax
mov word [esp + 0x34], ax
mov edx, 0x13e
mov eax, 0x13f
add esp, 8
mov word [esp + 0x34], dx
mov word [esp + 0x40], dx
mov word [esp + 0x2e], ax
mov word [esp + 0x3e], ax
mov word [esp + 0x42], ax
lea edx, [esp + 0x20]
lea eax, [esp + 0x374]
mov ecx, 0x116
push edx
push eax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], 0x12e
mov word [esp + 0x2e], 0x125
mov word [esp + 0x30], 0x138
mov word [esp + 0x38], cx
mov word [esp + 0x3e], 0x12f
mov word [esp + 0x40], cx
mov word [esp + 0x42], 0x12a
mov word [esp + 0x44], 0x123
mov word [esp + 0x4c], di
call fcn.005c30ba
lea ecx, [esp + 0x37c]
push ecx
call fcn.005c2f1a
add esp, 0xc
cmp eax, edi
jle 0x459966
lea ecx, [esp + 0x374]
mov dx, word [ecx]
add ecx, 2
xor dx, 0x4d
sub edx, 0xff
dec eax
mov word [ecx - 2], dx
jne 0x45994f
lea eax, [esp + 0x374]
lea ecx, [esp + 0x16c]
push eax
push ecx
call fcn.005c3090
add esp, 8
lea edx, [esp + 0x16c]
push edi
push edi
push 3
push edi
push 3
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
mov ebx, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 0xffffffff
jne 0x4599ba
mov eax, 1
jmp 0x45a0a1
lea eax, [esp + 0x88]
mov dword [esp + 0x4c], 1
push eax
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x90], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4599f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459bdf
mov ecx, dword [esp + 0x88]
push edi
push ebp
push ecx
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x48], esi
je 0x459bdf
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x459bd6
lea esi, [ebp + 1]
push esi
call fcn.005db95d
push esi
mov ebx, eax
call fcn.005db95d
add esp, 8
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x459bc7
test eax, eax
je 0x459bc7
lea edx, [esp + 0x50]
mov byte [esp + 0x50], 0x21
push edx
mov byte [esp + 0x55], 0x66
mov byte [esp + 0x56], 0x61
mov byte [esp + 0x57], 0x7b
mov byte [esp + 0x58], 0x6a
mov byte [esp + 0x59], 0x7d
mov byte [esp + 0x5a], 0x61
mov byte [esp + 0x5b], 0x6a
mov byte [esp + 0x5c], 0x7b
mov byte [esp + 0x5d], 0x6b
mov byte [esp + 0x5e], 0x60
mov byte [esp + 0x5f], 0x78
mov byte [esp + 0x60], 0x61
mov byte [esp + 0x61], 0x63
mov byte [esp + 0x62], 0x60
mov byte [esp + 0x63], 0x6e
mov byte [esp + 0x64], 0x6b
mov byte [esp + 0x65], 0x62
mov byte [esp + 0x66], 0x6e
mov byte [esp + 0x67], 0x61
mov byte [esp + 0x68], 0x6e
mov byte [esp + 0x69], 0x68
mov byte [esp + 0x6a], 0x6a
mov byte [esp + 0x6b], 0x7d
mov byte [esp + 0x6c], 0x21
mov byte [esp + 0x6d], 0x6c
mov byte [esp + 0x6e], 0x60
mov byte [esp + 0x6f], 0x62
mov byte [esp + 0x70], 0
call fcn.0059b310
mov ecx, ebp
mov esi, edi
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp], 0
mov al, byte [ebx]
test al, al
mov ebp, ebx
je 0x459bb0
push 0xa
push ebp
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x459b43
mov esi, dword [esp + 0x10]
mov edi, eax
sub edi, ebp
lea ecx, [edi + 1]
push ecx
push ebp
push esi
call fcn.005c3470
add esp, 0xc
mov byte [edi + esi + 1], 0
jmp 0x459b68
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
add ebp, ecx
mov al, byte [edi]
cmp al, 0x20
je 0x459b82
cmp al, 9
jne 0x459b85
inc edi
jmp 0x459b78
cmp byte [edi], 0x23
je 0x459ba6
push esi
call fcn.005c56db
lea eax, [esp + 0x54]
push eax
push edi
call fcn.005c3010
add esp, 0xc
test eax, eax
jne 0x459e95
cmp byte [ebp], 0
jne 0x459b17
mov esi, dword [esp + 0x10]
push ebx
call fcn.005db986
push esi
call fcn.005db986
mov edi, dword [esp + 0x20]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], edi
je 0x45a09d
mov eax, dword [esp + 0x484]
mov esi, 0x6cd470
cmp eax, edi
jne 0x459c05
mov esi, 0x6cd474
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005dbec0
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.0042dc30
lea ecx, [esp + 0x94]
mov dword [esp + 0x47c], edi
call fcn.005db556
cmp eax, 1
jne 0x45a043
lea ecx, [esp + 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x459c66
test al, 1
je 0x459c66
xor eax, 1
lea edx, [esp + 0x16c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push 3
push edi
push 3
lea eax, [esp + 0x180]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x8c], edi
je 0x459fe0
lea ecx, [esp + 0x48]
xor esi, esi
push ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x459cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459f77
mov edx, dword [esp + 0x48]
push esi
push ebp
push edx
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x80], ebx
je 0x459f77
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x459f6c
lea eax, [ebp + 1]
push eax
call fcn.005db95d
mov ebx, eax
lea eax, [ebp + 1]
push eax
call fcn.005db95d
add esp, 8
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x459f5e
test eax, eax
je 0x459f5e
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 1
push eax
mov byte [esp + 0x24], 0x21
mov byte [esp + 0x25], 0x66
mov byte [esp + 0x26], 0x61
mov byte [esp + 0x27], 0x7b
mov byte [esp + 0x28], 0x6a
mov byte [esp + 0x29], 0x7d
mov byte [esp + 0x2a], 0x61
mov byte [esp + 0x2b], 0x6a
mov byte [esp + 0x2c], 0x7b
mov byte [esp + 0x2d], 0x6b
mov byte [esp + 0x2e], 0x60
mov byte [esp + 0x2f], 0x78
mov byte [esp + 0x30], 0x61
mov byte [esp + 0x31], 0x63
mov byte [esp + 0x32], 0x60
mov byte [esp + 0x33], 0x6e
mov byte [esp + 0x34], 0x6b
mov byte [esp + 0x35], 0x62
mov byte [esp + 0x36], 0x6e
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 0x6e
mov byte [esp + 0x39], 0x68
mov byte [esp + 0x3a], 0x6a
mov byte [esp + 0x3b], 0x7d
mov byte [esp + 0x3c], 0x21
mov byte [esp + 0x3d], 0x6c
mov byte [esp + 0x3e], 0x60
mov byte [esp + 0x3f], 0x62
mov byte [esp + 0x40], 0
call fcn.0059b310
lea ecx, [esp + 0x74]
mov byte [esp + 0x74], 0x7d
push ecx
mov byte [esp + 0x79], 0x6a
mov byte [esp + 0x7a], 0x68
mov byte [esp + 0x7b], 0x66
mov byte [esp + 0x7c], 0x7c
mov byte [esp + 0x7d], 0x7b
mov byte [esp + 0x7e], 0x6a
mov byte [esp + 0x7f], 0x7d
mov byte [esp + 0x80], 0x66
mov byte [esp + 0x81], 0x6b
mov byte [esp + 0x82], 0x62
mov byte [esp + 0x83], 0x21
mov byte [esp + 0x84], 0x6c
mov byte [esp + 0x85], 0x60
mov byte [esp + 0x86], 0x62
mov byte [esp + 0x87], 0
call fcn.0059b310
mov ecx, ebp
mov edi, ebx
mov edx, ecx
add esp, 8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp], 0
mov al, byte [ebx]
test al, al
mov ebp, ebx
je 0x459f40
push 0xa
push ebp
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x459ea2
mov esi, dword [esp + 0x14]
mov edi, eax
sub edi, ebp
lea eax, [edi + 1]
push eax
push ebp
push esi
call fcn.005c3470
add esp, 0xc
mov byte [edi + esi + 1], 0
jmp 0x459ec7
mov dword [esp + 0x1c], 1
jmp 0x459bb4
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
add ebp, ecx
mov al, byte [edi]
cmp al, 0x20
je 0x459ee1
cmp al, 9
jne 0x459ee4
inc edi
jmp 0x459ed7
cmp byte [edi], 0x23
je 0x459f1f
push esi
call fcn.005c56db
lea eax, [esp + 0x24]
push eax
push edi
call fcn.005c3010
add esp, 0xc
test eax, eax
jne 0x459f13
lea eax, [esp + 0x70]
push eax
push edi
call fcn.005c3010
add esp, 8
test eax, eax
je 0x459f1f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov byte [edx + ecx], 0x23
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
add eax, ecx
mov dword [esp + 0x10], eax
mov al, byte [ebp]
test al, al
jne 0x459e69
push ebx
call fcn.005db986
mov eax, dword [esp + 0x18]
push eax
call fcn.005db986
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x24]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esp + 0x80]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test esi, esi
je 0x459fd5
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 0x80]
lea eax, [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x80]
mov dword [esp + 0x8c], ecx
push eax
lea ecx, [esp + 0x90]
push 0
push ecx
push edi
mov dword [esp + 0xa0], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45a047
mov eax, dword [0x6cce44]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x45a047
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x18]
push edx
push 0x6187c8
push 0x6187d8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00486140
add esp, 0x10
test eax, eax
jne 0x45a03b
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
jne 0x45a031
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x45a047
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0x168]
mov dword [esp + 0x47c], 3
call fcn.005df556
lea ecx, [esp + 0x12c]
mov byte [esp + 0x47c], 2
call fcn.005e7065
lea ecx, [esp + 0xf0]
mov byte [esp + 0x47c], 1
call fcn.005e7065
lea ecx, [esp + 0x94]
mov dword [esp + 0x47c], 0xffffffff
call fcn.005db197
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x470
ret