Function at 0x52c000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af8e6
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x158], ecx
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x168], esi
call fcn.00462990
mov eax, dword [edi + 0x538]
mov dword [ebp - 4], 0
cmp eax, 0x10
jg 0x52c38c
test eax, eax
js 0x52c38c
cmp dword [edi + 0x534], 2
je 0x52c085
push str.invalid_GCM_mode
jmp 0x52c391
test eax, eax
je 0x52c0b6
cdq
shld edx, eax, 3
add eax, eax
add eax, eax
add eax, eax
add dword [edi + 0x548], eax
lea ecx, [ebp - 0x154]
push ecx
adc dword [edi + 0x54c], edx
lea esi, [edi + 0x4f0]
push edi
call fcn.00528730
add esp, 8
movzx edx, byte [edi + 0x547]
movzx ecx, byte [edi + 0x545]
movzx eax, byte [edi + 0x546]
mov byte [edi + 0x522], cl
movzx ecx, byte [edi + 0x542]
mov byte [edi + 0x520], dl
movzx edx, byte [edi + 0x544]
mov byte [edi + 0x521], al
movzx eax, byte [edi + 0x543]
mov byte [edi + 0x525], cl
movzx ecx, byte [edi + 0x54f]
mov byte [edi + 0x523], dl
movzx edx, byte [edi + 0x541]
mov byte [edi + 0x524], al
movzx eax, byte [edi + 0x540]
mov byte [edi + 0x528], cl
movzx ecx, byte [edi + 0x54c]
mov byte [edi + 0x526], dl
movzx edx, byte [edi + 0x54e]
mov byte [edi + 0x527], al
movzx eax, byte [edi + 0x54d]
mov byte [edi + 0x52b], cl
movzx ecx, byte [edi + 0x549]
mov byte [edi + 0x529], dl
movzx edx, byte [edi + 0x54b]
mov byte [edi + 0x52a], al
movzx eax, byte [edi + 0x54a]
mov byte [edi + 0x52e], cl
mov byte [edi + 0x52c], dl
movzx edx, byte [edi + 0x548]
mov ecx, 0xfffffb10
lea ebx, [edi + 0x4f0]
sub ecx, edi
mov byte [edi + 0x52d], al
mov byte [edi + 0x52f], dl
mov eax, ebx
mov dword [ebp - 0x160], ecx
mov esi, 4
movzx ecx, byte [eax + 0x30]
movzx edx, byte [eax + 0x31]
xor byte [eax], cl
xor byte [eax + 1], dl
movzx ecx, byte [eax + 0x32]
movzx edx, byte [eax + 0x33]
xor byte [eax + 2], cl
xor byte [eax + 3], dl
add eax, 4
dec esi
jne 0x52c1a0
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, ebx
call fcn.00528730
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
add esp, 8
lea eax, [edi + 0x520]
push eax
lea eax, [edi + 0x510]
push eax
call edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x6c
mov dword [ebp - 0x158], ecx
call fcn.00410b60
mov esi, eax
test esi, esi
jne 0x52c20d
lea esi, [eax + 0x10]
jmp 0x52c223
cmp esi, 0x10
jbe 0x52c219
mov esi, 0x10
jmp 0x52c223
cmp esi, 0xc
jae 0x52c223
mov esi, 0xc
mov edx, 0xfffffb11
sub edx, edi
mov dword [ebp - 0x15c], edx
mov edx, 0xfffffb12
sub edx, edi
mov dword [ebp - 0x16c], edx
mov edx, 0xfffffb13
sub edx, edi
lea ecx, [ebp - 0x1f]
mov eax, ebx
mov dword [ebp - 0x164], edx
mov edx, dword [ebp - 0x160]
add edx, eax
cmp edx, esi
jae 0x52c2c0
mov bl, byte [eax + 0x30]
xor bl, byte [eax]
mov byte [ecx - 1], bl
mov ebx, dword [ebp - 0x15c]
add ebx, eax
cmp ebx, esi
jae 0x52c2c0
mov bl, byte [edx + edi + 0x4f1]
xor bl, byte [eax + 0x31]
mov byte [ecx], bl
mov ebx, dword [ebp - 0x16c]
add ebx, eax
cmp ebx, esi
jae 0x52c2c0
mov bl, byte [edx + edi + 0x4f2]
xor bl, byte [eax + 0x32]
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 0x164]
add ebx, eax
cmp ebx, esi
jae 0x52c2c0
mov dl, byte [edx + edi + 0x4f3]
xor dl, byte [eax + 0x33]
add eax, 4
mov byte [ecx + 2], dl
mov edx, dword [ebp - 0x160]
add edx, eax
add ecx, 4
cmp edx, 0x10
jb 0x52c24f
cmp byte [ebp + 8], 0
mov edi, dword [ebp - 0x158]
mov bl, 1
je 0x52c2e6
mov ecx, edi
call fcn.00410b40
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00411e60
jmp 0x52c376
push esi
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.00411810
mov bl, al
test bl, bl
jne 0x52c376
lea ecx, [ebp - 0x188]
call fcn.00410e50
push 0x10
push 0xff
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.00411b50
lea edx, [ebp - 0x188]
push edx
mov ecx, edi
call fcn.00411760
test al, al
je 0x52c32f
mov bl, 1
jmp 0x52c367
mov edi, dword [ebp - 0x168]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.GCM_decrypt_authentication_tag_not_equal_to_the_expected_value.
mov ecx, edi
call edx
push esi
lea eax, [ebp - 0x20]
push eax
push str.decryptTag
mov ecx, edi
call fcn.0044dd30
mov ecx, dword [ebp - 0x158]
push ecx
push str.expectedTag
mov ecx, edi
call fcn.0044eec0
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0
call fcn.00411620
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0xffffffff
call fcn.004629b0
mov al, bl
jmp 0x52c3ae
push str.invalid_GCM_buflen
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0xffffffff
call fcn.004629b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059af98
mov esp, ebp
pop ebp
ret 0x10