Function at 0x5af3a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a7cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ecx
mov ecx, edi
movq qword [ebp - 0x1c], xmm0
call dword [eax + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], eax
cmp ecx, eax
je 0x5af4ff
lea esi, [ecx + 0x30]
lea eax, [esi - 0x30]
push eax
lea ecx, [ebp - 0x80]
call fcn.00404120
lea eax, [esi - 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x68]
call fcn.00404120
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00404120
lea eax, [esi + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x38]
call fcn.00404120
mov al, byte [esi + 0x30]
mov byte [ebp - 0x20], al
mov byte [ebp - 4], 4
test al, al
je 0x5af4c6
call fcn.00451010
mov edx, eax
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x94], 0xd800d5
xor eax, eax
mov dword [ebp - 0x90], 0xd700d3
mov dword [ebp - 0x8c], 0xcf0092
mov dword [ebp - 0x88], 0xbf00cb
nop dword [eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x94], cx
inc eax
mov ecx, dword [ebp - 0x98]
cmp eax, ecx
jb 0x5af490
xor eax, eax
mov word [ebp + ecx*2 - 0x94], ax
lea eax, [ebp - 0x50]
push eax
mov ecx, edx
call fcn.0063eb80
test al, al
jne 0x5af55e
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00404490
lea ecx, [ebp - 0x50]
call fcn.00404490
lea ecx, [ebp - 0x68]
call fcn.00404490
lea ecx, [ebp - 0x80]
call fcn.00404490
add esi, 0x64
lea eax, [esi - 0x30]
cmp eax, dword [ebp - 0xa0]
jne 0x5af407
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x81], 0
test ecx, ecx
je 0x5af61b
mov edx, dword [ebp - 0x18]
push ecx
call fcn.005b6c90
mov ecx, dword [ebp - 0x14]
mov eax, 0x51eb851f
mov esi, dword [ebp - 0x1c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x64
mov eax, esi
cmp ecx, 0x1000
jb 0x5af611
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5af611
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00404120
lea esi, [edi + 0x1c]
lea eax, [ebp - 0x9c]
cmp esi, eax
je 0x5af5b5
mov ecx, esi
call fcn.00404490
movups xmm0, xmmword [ebp - 0x9c]
xor eax, eax
mov word [ebp - 0x9c], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x8c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
lea ecx, [ebp - 0x9c]
call fcn.00404490
lea ecx, [edi + 0xa0]
lea eax, [ebp - 0x50]
cmp ecx, eax
je 0x5af5de
cmp dword [ebp - 0x3c], 8
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.004044f0
lea ecx, [ebp - 0x38]
mov byte [edi + 0xc], 1
call fcn.00404490
lea ecx, [ebp - 0x50]
call fcn.00404490
lea ecx, [ebp - 0x68]
call fcn.00404490
lea ecx, [ebp - 0x80]
call fcn.00404490
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x81], 1
jmp 0x5af506
push ecx
push esi
call fcn.0076d313
add esp, 8
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret