Function at 0x7ae9a0
Capabilities:
Encode data using xor
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
mov dword [esp], str.ADVAPI32.DLL
call fcn.007c60a0
mov edi, eax
test edi, edi
je 0x7aeaff
mov dword [esp], edi
mov dword [esp + 4], str.CryptAcquireContextA
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov ebx, eax
mov dword [esp], edi
mov dword [esp + 4], str.CryptReleaseContext
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [esp + 0x20], eax
mov dword [esp], edi
mov dword [esp + 4], str.CryptGenRandom
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test ebx, ebx
je 0x7aeaf4
cmp dword [esp + 0x20], 0
je 0x7aeaf4
test eax, eax
je 0x7aeaf4
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 0x10], 0xf0000020
mov dword [esp + 0xc], 1
mov dword [esp + 8], str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esp + 4], 0
call ebx
sub esp, 0x14
test eax, eax
jne 0x7aea92
mov dword [esp], esi
mov dword [esp + 0x10], 0xf0000028
mov dword [esp + 0xc], 1
mov dword [esp + 8], str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esp + 4], 0
call ebx
sub esp, 0x14
test eax, eax
je 0x7aec07
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], ecx
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [esp + 0x1c]
sub esp, 0xc
mov ebx, eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [esp + 0x20]
sub esp, 8
mov dword [esp], edi
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
cmp ebx, 1
jne 0x7aeaff
test esi, esi
je 0x7aebec
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x7aebfd
mov dword [eax], 5
jmp 0x7aebfd
mov dword [esp], edi
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
test esi, esi
je 0x7aebec
xor ecx, ecx
lea edi, [esp + 0x28]
mov edx, esi
xor eax, eax
xor esi, esi
nop word cs:[eax + eax]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], 0
mov edx, 7
nop word cs:[eax + eax]
mov dword [esp + 0x1c], edx
mov ebx, eax
nop word cs:[eax + eax]
rdtsc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 8
call fcn.007ca970
mov ecx, eax
and eax, 1
xor esi, eax
rdtsc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 8
call fcn.007ca970
mov ecx, eax
and eax, 1
xor eax, ebx
cmp esi, eax
mov ebx, esi
je 0x7aeb50
mov edx, dword [esp + 0x20]
add edx, edx
or edx, esi
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
test edx, edx
lea edx, [edx - 1]
jne 0x7aeb40
dec dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov byte [ebx], dl
mov edx, dword [esp + 0x18]
lea edx, [edx + 1]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
jne 0x7aeb20
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x7aebe7
mov dword [eax], 4
mov esi, dword [ebp + 0xc]
jmp 0x7aebfd
xor esi, esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x7aebfd
mov dword [eax], 0
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], edi
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
mov esi, dword [ebp + 0xc]
jmp 0x7aeaff