Function at 0x491550
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, pe_nt_image_headers32
call fcn.00628320
mov eax, dword [0x70c514]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 0
test edi, edi
je 0x4915a9
cmp edi, eax
je 0x4915a5
test edx, edx
je 0x491855
test esi, esi
js 0x491855
mov dword [ebx], edi
jmp 0x4915b3
test eax, eax
je 0x491855
mov edi, eax
test byte [edi + 0xc], 2
jne 0x491855
test edx, edx
je 0x4917f9
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x134], 1
cmp eax, 0x90
jg 0x491855
cmp eax, esi
jge 0x49163e
push ecx
push edi
push dword [ebx + 4]
call fcn.00478380
add esp, 0xc
test eax, eax
je 0x491855
test esi, esi
je 0x491615
mov eax, dword [ebx + 4]
push esi
push dword [ebp - 0x130]
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x491855
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebx + 4]
call fcn.00478680
add esp, 0xc
test eax, eax
je 0x491855
mov esi, dword [ebp - 0x130]
jmp 0x49165b
cmp esi, 0x90
ja 0x491855
push esi
push edx
lea eax, [ebp - 0x9c]
push eax
call fcn.0062aed0
add esp, 0xc
cmp esi, 0x90
je 0x49167e
mov eax, 0x90
sub eax, esi
push eax
lea eax, [ebp - 0x9c]
add eax, esi
push 0
push eax
call fcn.0062b450
add esp, 0xc
movaps xmm1, xmmword [str.6666666666666666]
xor ecx, ecx
nop word [eax + eax]
movups xmm0, xmmword [ebp + ecx - 0x9c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x12c], xmm0
movups xmm0, xmmword [ebp + ecx - 0x8c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x11c], xmm0
movups xmm0, xmmword [ebp + ecx - 0x7c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x10c], xmm0
movups xmm0, xmmword [ebp + ecx - 0x6c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0xfc], xmm0
add ecx, 0x40
cmp ecx, 0x80
jl 0x491690
cmp ecx, 0x90
jge 0x491709
nop dword [eax]
mov al, byte [ebp + ecx - 0x9c]
xor al, 0x36
mov byte [ebp + ecx - 0x12c], al
inc ecx
cmp ecx, 0x90
jl 0x4916f0
mov esi, dword [ebp - 0x138]
push esi
push edi
push dword [ebx + 8]
call fcn.00478380
add esp, 0xc
test eax, eax
je 0x49181b
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x491747
mov eax, dword [ebx + 8]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x49181b
movaps xmm1, xmmword [0x6fdea0]
xor ecx, ecx
movups xmm0, xmmword [ebp + ecx - 0x9c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x12c], xmm0
movups xmm0, xmmword [ebp + ecx - 0x8c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x11c], xmm0
movups xmm0, xmmword [ebp + ecx - 0x7c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x10c], xmm0
movups xmm0, xmmword [ebp + ecx - 0x6c]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0xfc], xmm0
add ecx, 0x40
cmp ecx, 0x80
jl 0x491750
cmp ecx, 0x90
jge 0x4917c9
nop dword [eax]
mov al, byte [ebp + ecx - 0x9c]
xor al, 0x5c
mov byte [ebp + ecx - 0x12c], al
inc ecx
cmp ecx, 0x90
jl 0x4917b0
push esi
push edi
push dword [ebx + 0xc]
call fcn.00478380
add esp, 0xc
test eax, eax
je 0x49181b
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x4917f9
mov eax, dword [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push eax
mov eax, dword [eax + 0x14]
call eax
add esp, 0xc
test eax, eax
je 0x49181b
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
call fcn.00478780
xor ebx, ebx
mov ecx, 1
test eax, eax
cmovne ebx, ecx
cmp dword [ebp - 0x134], 0
je 0x491842
jmp 0x49181d
xor ebx, ebx
lea eax, [ebp - 0x9c]
push 0x90
push eax
call fcn.00401320
lea eax, [ebp - 0x12c]
push 0x90
push eax
call fcn.00401320
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.006281fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006281fa
mov esp, ebp
pop ebp
ret