Function at 0x4aae50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405728
mov eax, dword [ebp - 8]
call fcn.00405728
xor eax, eax
push ebp
push 0x4ab20e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040c370
fstp qword [0x53cf70]
wait
xor edx, edx
push ebp
push 0x4ab1de
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4182cc]
call fcn.0041d028
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4ab1cd
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004a68a4
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00405738
push eax
call fcn.004a69bf
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x418254]
call fcn.0041cf64
mov dword [ebp - 0x1c], eax
call fcn.0040c370
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [0x53cf74]
push dword [0x53cf70]
call fcn.00476ab4
cmp edx, 0
jne 0x4aaf19
cmp eax, 7
jbe 0x4aaf39
jmp 0x4aaf1b
jle 0x4aaf39
mov eax, dword [0x536348]
mov edx, 0x4ab228
call fcn.004052fc
mov eax, dword [0x536308]
mov edx, 0x4ab234
call fcn.004052fc
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041cda0
mov eax, dword [0x536308]
mov eax, dword [eax]
call fcn.0040a080
mov edx, eax
mov eax, dword [ebp - 0x10]
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 - 0x28], 0x2710
mov dword [ebp - 0x2c], 0x4e20
mov ebx, 0x3caf
mov dl, 1
mov eax, dword [0x4183d0]
call fcn.00404398
mov dword [ebp - 0x20], eax
mov dl, 1
mov eax, dword [0x4183d0]
call fcn.00404398
mov dword [ebp - 0x24], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041cb94
mov eax, dword [0x536308]
mov eax, dword [eax]
call fcn.0040a080
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0041ce10
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041cb94
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0041cb94
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
dec esi
test esi, esi
jl 0x4ab037
inc esi
lea edx, [ebp - 0x2d]
mov ecx, 1
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
movzx eax, byte [ebp - 0x2d]
mov edx, ebx
shr edx, 8
xor byte [ebp - 0x2d], dl
movzx eax, al
add ebx, eax
imul ebx, dword [ebp - 0x28]
add ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov ecx, 1
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x10]
dec esi
jne 0x4aaffc
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0041cb94
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.0041ce10
mov edx, dword [ebp - 0x10]
add edx, 8
neg edx
mov cx, 2
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.0041cda0
mov eax, dword [0x53ceac]
call fcn.0040a080
imul eax, eax, 0x64
mov ebx, dword [ebp - 0x14]
sub ebx, eax
mov eax, dword [0x536308]
mov eax, dword [eax]
call fcn.0040a080
sub ebx, eax
mov eax, dword [0x536348]
mov eax, dword [eax]
call fcn.0040a080
sub ebx, eax
sub ebx, dword [0x53cf3c]
mov eax, dword [0x536308]
mov eax, dword [eax]
call fcn.0040a080
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 8
add esi, eax
mov eax, dword [0x536348]
mov eax, dword [eax]
call fcn.0040a080
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 [0x536348]
mov eax, dword [eax]
call fcn.0040a080
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0041ce10
mov eax, dword [0x536308]
mov eax, dword [eax]
call fcn.0040a080
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 8
add esi, eax
mov eax, dword [0x536348]
mov eax, dword [eax]
call fcn.0040a080
add esi, eax
mov edx, esi
add edx, dword [0x53cf3c]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [0x53cf3c]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0041ce10
mov eax, dword [0x536308]
mov eax, dword [eax]
call fcn.0040a080
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 8
add esi, eax
mov eax, dword [0x536348]
mov eax, dword [eax]
call fcn.0040a080
add esi, eax
mov edx, esi
add edx, dword [0x53cf3c]
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 - 0x1c]
call fcn.0041ce10
mov eax, dword [ebp - 0x1c]
call fcn.004043c8
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab1d4
mov eax, dword [ebp - 0xc]
call fcn.004043c8
mov eax, dword [ebp - 0x20]
call fcn.004043c8
mov eax, dword [ebp - 0x24]
call fcn.004043c8
ret