Function at 0x4aff68
Capabilities:
Delete file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405764
mov eax, dword [ebp - 8]
call fcn.00405764
xor eax, eax
push ebp
push 0x4b0346
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040c1f0
fstp qword [0x640078]
wait
xor edx, edx
push ebp
push 0x4b0316
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x418250]
call fcn.0041cfac
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0040a420
test al, al
je 0x4affdd
mov eax, dword [ebp - 8]
call fcn.00405774
push eax
call sub.kernel32.dll_DeleteFileA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00405774
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x418250]
call fcn.0041cfac
mov dword [ebp - 0x10], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor edx, edx
push ebp
push 0x4b0305
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0040c1f0
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [0x64007c]
push dword [0x640078]
call fcn.0047b830
cmp edx, 0
jne 0x4b005a
cmp eax, 7
jbe 0x4b007a
jmp 0x4b005c
jle 0x4b007a
mov eax, dword [0x638f9c]
mov edx, 0x4b0360
call fcn.00405338
mov eax, dword [0x638f5c]
mov edx, 0x4b036c
call fcn.00405338
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041cd24
mov eax, dword [0x638f5c]
mov eax, dword [eax]
call fcn.0040a05c
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, 8
add edx, eax
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov dword [ebp - 0x24], 0x2710
mov dword [ebp - 0x28], 0x4e20
mov ebx, 0x3caf
mov dl, 1
mov eax, dword [0x418354]
call fcn.004043d4
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x418354]
call fcn.004043d4
mov dword [ebp - 0x20], eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0041cb18
mov eax, dword [0x638f5c]
mov eax, dword [eax]
call fcn.0040a05c
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0041cd94
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0041cb18
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041cb18
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
dec esi
test esi, esi
jl 0x4b0178
inc esi
lea edx, [ebp - 0x29]
mov ecx, 1
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
movzx eax, byte [ebp - 0x29]
mov edx, ebx
shr edx, 8
xor byte [ebp - 0x29], dl
movzx eax, al
add ebx, eax
imul ebx, dword [ebp - 0x24]
add ebx, dword [ebp - 0x28]
lea edx, [ebp - 0x29]
mov ecx, 1
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x10]
dec esi
jne 0x4b013d
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041cb18
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0041cd94
mov edx, dword [ebp - 0x14]
add edx, 8
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041cd24
mov eax, dword [0x63ff9c]
call fcn.0040a05c
imul eax, eax, 0x64
mov ebx, dword [ebp - 0x18]
sub ebx, eax
mov eax, dword [0x638f5c]
mov eax, dword [eax]
call fcn.0040a05c
sub ebx, eax
mov eax, dword [0x638f9c]
mov eax, dword [eax]
call fcn.0040a05c
sub ebx, eax
sub ebx, dword [0x640044]
mov eax, dword [0x638f5c]
mov eax, dword [eax]
call fcn.0040a05c
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 8
add esi, eax
mov eax, dword [0x638f9c]
mov eax, dword [eax]
call fcn.0040a05c
add esi, eax
mov edx, esi
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [0x638f9c]
mov eax, dword [eax]
call fcn.0040a05c
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041cd94
mov eax, dword [0x638f5c]
mov eax, dword [eax]
call fcn.0040a05c
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 8
add esi, eax
mov eax, dword [0x638f9c]
mov eax, dword [eax]
call fcn.0040a05c
add esi, eax
mov edx, esi
add edx, dword [0x640044]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [0x640044]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041cd94
mov eax, dword [0x638f5c]
mov eax, dword [eax]
call fcn.0040a05c
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 8
add esi, eax
mov eax, dword [0x638f9c]
mov eax, dword [eax]
call fcn.0040a05c
add esi, eax
mov edx, esi
add edx, dword [0x640044]
add edx, ebx
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041cd94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b030c
mov eax, dword [ebp - 0x10]
call fcn.00404404
mov eax, dword [ebp - 0xc]
call fcn.00404404
mov eax, dword [ebp - 0x1c]
call fcn.00404404
mov eax, dword [ebp - 0x20]
call fcn.00404404
ret