Function at 0x537d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc016
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x68683c]
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.0046dee0
mov eax, dword [edi + 0x538]
mov dword [ebp - 4], 0
cmp eax, 0x10
jg 0x5380fc
test eax, eax
js 0x5380fc
cmp dword [edi + 0x534], 2
je 0x537df5
push str.invalid_GCM_mode
jmp 0x538101
test eax, eax
je 0x537e26
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.005344a0
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 0x537f10
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, ebx
call fcn.005344a0
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.004078c0
mov esi, eax
test esi, esi
jne 0x537f7d
lea esi, [eax + 0x10]
jmp 0x537f93
cmp esi, 0x10
jbe 0x537f89
mov esi, 0x10
jmp 0x537f93
cmp esi, 0xc
jae 0x537f93
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 0x538030
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 0x538030
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 0x538030
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 0x538030
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 0x537fbf
cmp byte [ebp + 8], 0
mov edi, dword [ebp - 0x158]
mov bl, 1
je 0x538056
mov ecx, edi
call fcn.0041b6b0
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0041ca10
jmp 0x5380e6
push esi
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call fcn.0041c360
mov bl, al
test bl, bl
jne 0x5380e6
lea ecx, [ebp - 0x188]
call fcn.0041b9a0
push 0x10
push 0xff
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 1
call fcn.0041c700
lea edx, [ebp - 0x188]
push edx
mov ecx, edi
call fcn.0041c2b0
test al, al
je 0x53809f
mov bl, 1
jmp 0x5380d7
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.00459260
mov ecx, dword [ebp - 0x158]
push ecx
push str.expectedTag
mov ecx, edi
call fcn.0045a410
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 0
call fcn.0041c170
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0xffffffff
call fcn.0046df00
mov al, bl
jmp 0x53811e
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.0046df00
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.005a6cf8
mov esp, ebp
pop ebp
ret 0x10