Function at 0x4987e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf543
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x174], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push 0x12c
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x168]
push 0
push eax
mov dword [ebp - 0x188], esi
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x168]
call fcn.004122e0
mov eax, dword [edi + 0x538]
mov dword [ebp - 4], 0
cmp eax, 0x10
ja 0x498b93
cmp dword [edi + 0x534], 2
je 0x498872
push str.invalid_GCM_mode
jmp 0x498b98
lea esi, [edi + 0x4f0]
test eax, eax
je 0x4988a0
mov ecx, 8
imul ecx
add dword [edi + 0x548], eax
lea eax, [ebp - 0x168]
push eax
adc dword [edi + 0x54c], edx
push esi
push edi
call fcn.0049ac00
add esp, 0xc
mov al, byte [edi + 0x547]
mov ecx, esi
mov byte [edi + 0x520], al
mov edx, 4
mov al, byte [edi + 0x546]
mov byte [edi + 0x521], al
mov al, byte [edi + 0x545]
mov byte [edi + 0x522], al
mov al, byte [edi + 0x544]
mov byte [edi + 0x523], al
mov al, byte [edi + 0x543]
mov byte [edi + 0x524], al
mov al, byte [edi + 0x542]
mov byte [edi + 0x525], al
mov al, byte [edi + 0x541]
mov byte [edi + 0x526], al
mov al, byte [edi + 0x540]
mov byte [edi + 0x527], al
mov al, byte [edi + 0x54f]
mov byte [edi + 0x528], al
mov al, byte [edi + 0x54e]
mov byte [edi + 0x529], al
mov al, byte [edi + 0x54d]
mov byte [edi + 0x52a], al
mov al, byte [edi + 0x54c]
mov byte [edi + 0x52b], al
mov al, byte [edi + 0x54b]
mov byte [edi + 0x52c], al
mov al, byte [edi + 0x54a]
mov byte [edi + 0x52d], al
mov al, byte [edi + 0x549]
mov byte [edi + 0x52e], al
mov al, byte [edi + 0x548]
mov byte [edi + 0x52f], al
mov al, byte [ecx + 0x30]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
mov al, byte [ecx + 0x2d]
xor byte [ecx - 3], al
mov al, byte [ecx + 0x2e]
xor byte [ecx - 2], al
mov al, byte [ecx + 0x2f]
xor byte [ecx - 1], al
sub edx, 1
jne 0x498967
lea eax, [ebp - 0x168]
push eax
push esi
push edi
call fcn.0049ac00
mov ecx, dword [ebp - 0x174]
lea eax, [edi + 0x520]
add esp, 0xc
mov edx, dword [ecx]
push eax
lea eax, [edi + 0x510]
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x178]
lea ecx, [ecx + 0x68]
call fcn.0040d5b0
mov ecx, eax
test ecx, ecx
jne 0x4989ca
lea ecx, [eax + 0x10]
jmp 0x4989e0
cmp ecx, 0x10
jbe 0x4989d6
mov ecx, 0x10
jmp 0x4989e0
mov eax, 0xc
cmp ecx, eax
cmovb ecx, eax
mov eax, 0xfffffb11
mov dword [ebp - 0x170], ecx
sub eax, edi
lea edx, [ebp - 0x1f]
mov dword [ebp - 0x17c], eax
mov eax, 0xfffffb12
sub eax, edi
mov dword [ebp - 0x180], eax
mov eax, 0xfffffb13
sub eax, edi
mov dword [ebp - 0x184], eax
mov eax, 0xfffffb10
sub eax, edi
mov dword [ebp - 0x174], eax
nop dword [eax]
add eax, esi
cmp eax, ecx
jae 0x498ab7
mov al, byte [esi + 0x30]
xor al, byte [esi]
mov byte [edx - 1], al
mov eax, dword [ebp - 0x17c]
add eax, esi
cmp eax, ecx
jae 0x498ab7
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x170]
add eax, esi
mov al, byte [eax + edi + 0x4f1]
xor al, byte [esi + 0x31]
mov byte [edx], al
mov eax, dword [ebp - 0x180]
add eax, esi
cmp eax, ecx
jae 0x498ab7
mov eax, dword [ebp - 0x174]
add eax, esi
mov al, byte [eax + edi + 0x4f2]
xor al, byte [esi + 0x32]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x184]
add eax, esi
cmp eax, ecx
jae 0x498ab7
mov eax, dword [ebp - 0x174]
add eax, esi
mov al, byte [eax + edi + 0x4f3]
xor al, byte [esi + 0x33]
add esi, 4
mov byte [edx + 2], al
add edx, 4
mov eax, dword [ebp - 0x174]
add eax, esi
cmp eax, 0x10
mov eax, dword [ebp - 0x174]
jb 0x498a20
cmp byte [ebp + 8], 0
mov edi, dword [ebp - 0x178]
mov byte [ebp - 0x169], 1
je 0x498ae9
lea ecx, [edi + 0x68]
call fcn.0040c7e0
push dword [ebp - 0x170]
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x68]
call fcn.0040b6b0
jmp 0x498ba6
push ecx
lea eax, [ebp - 0x20]
add edi, 0x68
push eax
mov ecx, edi
call fcn.0040d270
mov byte [ebp - 0x169], al
test al, al
jne 0x498ba6
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call fcn.0040b490
push 0x10
push 0xff
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040b870
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.0040d300
test al, al
je 0x498b54
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x169], 1
call fcn.0040b4f0
jmp 0x498ba6
mov esi, dword [ebp - 0x188]
mov ecx, esi
push str.GCM_decrypt_authentication_tag_not_equal_to_the_expected_value.
mov eax, dword [esi]
call dword [eax + 0x14]
push dword [ebp - 0x170]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push str.decryptTag
call fcn.00438030
push edi
push str.expectedTag
mov ecx, esi
call fcn.00438110
lea ecx, [ebp - 0x3c]
call fcn.0040b4f0
jmp 0x498ba6
push str.invalid_GCM_buflen
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov byte [ebp - 0x169], 0
lea ecx, [ebp - 0x168]
call fcn.00412300
mov al, byte [ebp - 0x169]
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.004a4dea
mov esp, ebp
pop ebp
ret 0x10