Function at 0x418800
Capabilities:
Delete file
Encode data using xor
Get common file path
Get file attributes
Move file
Set file attributes

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 0x791773
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb18
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
je 0x418bd1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41885a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41887a
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41886f
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418884
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x41889a
cmp eax, 5
jne 0x418a59
lea eax, [ebp - 0xaac]
mov ecx, esi
push eax
call fcn.004033d0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0xa60], xmm0
mov dword [ebp - 0xa5c], 0
movups xmmword [ebp - 0xa50], xmm0
mov byte [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 2
mov dword [ebp - 0xa60], 0x7d53c8
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa44], 0
push 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa48], 0
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0xa5c], 0
lea eax, [ebp - 0xb28]
push 0x220
push 0x20
push 2
push 0x7d5404
push eax
call fcn.004160c0
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0xb28]
lea ecx, [ebp - 0xa60]
push eax
call fcn.00416740
lea ecx, [ebp - 0xb28]
mov byte [ebp - 4], 1
call fcn.00416250
push 0xa
push 1
lea eax, [ebp - 0xb28]
push 0x7d5404
push eax
call fcn.004160c0
add esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0xb28]
lea ecx, [ebp - 0xa60]
push eax
call fcn.00416740
lea ecx, [ebp - 0xb28]
mov byte [ebp - 4], 1
call fcn.00416250
push 0
push 1
lea eax, [ebp - 0xb28]
push 0x7d53fc
push eax
call fcn.004160c0
add esp, 8
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb28]
lea ecx, [ebp - 0xa60]
push eax
call fcn.00416740
lea ecx, [ebp - 0xb28]
mov byte [ebp - 4], 1
call fcn.00416250
cmp dword [ebp - 0xa98], 8
lea eax, [ebp - 0xaac]
cmovae eax, dword [ebp - 0xaac]
push eax
lea eax, [ebp - 0xa40]
push 0x514
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0xa60]
push 0
call fcn.004164d0
push eax
push 0
push 0
push 4
push 1
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea ecx, [ebp - 0xa60]
call fcn.004166a0
lea ecx, [ebp - 0xaac]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418a56
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x418a70
cmp eax, 5
je 0x418a70
cmp eax, 2
jne 0x418bc2
jmp 0x418bd1
mov byte [ebp - 0xa94], 0
lea ecx, [ebp - 0xac4]
push dword [ebp - 0xa94]
mov edx, 0x83dacc
call fcn.0041c8d0
add esp, 4
lea eax, [ebp - 0xa58]
mov dword [ebp - 4], 6
push 1
push eax
call fcn.00427030
add esp, 8
push eax
lea ecx, [ebp - 0xaac]
mov byte [ebp - 4], 7
call fcn.00404120
lea eax, [ebp - 0xac4]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xaac]
call fcn.00414b80
push eax
lea ecx, [ebp - 0xa90]
call fcn.00404120
lea ecx, [ebp - 0xaac]
call fcn.00404490
lea eax, [ebp - 0xa90]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xa78]
call fcn.00404120
lea ecx, [ebp - 0xa90]
call fcn.00404490
lea ecx, [ebp - 0xa58]
call fcn.00404490
lea ecx, [ebp - 0xac4]
call fcn.00404490
mov dword [ebp - 0xa84], 3
xor ecx, ecx
mov dword [ebp - 0xa80], 0xd500db
mov dword [ebp - 0xa7c], 0xbb00d4
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xa80], ax
inc ecx
mov eax, dword [ebp - 0xa84]
cmp ecx, eax
jb 0x418b40
xor ecx, ecx
mov word [ebp + eax*2 - 0xa80], cx
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0xa64], 8
lea eax, [ebp - 0xa78]
push ecx
cmovae eax, dword [ebp - 0xa78]
lea ecx, [ebp - 0xa80]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x418bc6
lea eax, [ebp - 0x220]
push eax
call edi
cmp dword [esi + 0x14], 8
jb 0x418ba3
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418bc6
lea ecx, [ebp - 0xa78]
call fcn.00404490
mov al, 1
jmp 0x418bd3
lea ecx, [ebp - 0xa78]
call fcn.00404490
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret