Function at 0x5908b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc038
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x68cc00]
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 - 0x180], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
push 0x138
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x174]
push 0
push eax
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x18c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x174]
call fcn.00449930
mov eax, dword [edi + 0x538]
mov dword [ebp - 4], 0
cmp eax, 0x10
ja 0x590c25
cmp dword [edi + 0x534], 2
je 0x590948
push str.invalid_GCM_mode
jmp 0x590c2a
lea esi, [edi + 0x4f0]
test eax, eax
je 0x59097c
mov ecx, 8
imul ecx
add dword [edi + 0x548], eax
lea eax, [ebp - 0x174]
push eax
adc edx, dword [edi + 0x54c]
push esi
push edi
mov dword [edi + 0x54c], edx
call fcn.00592ca0
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 0x590a43
lea eax, [ebp - 0x174]
push eax
push esi
push edi
call fcn.00592ca0
mov ecx, dword [ebp - 0x180]
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 - 0x17c]
lea ecx, [ecx + 0x6c]
call fcn.00402f80
mov edi, eax
test edi, edi
jne 0x590aa6
lea edi, [eax + 0x10]
jmp 0x590abc
cmp edi, 0x10
jbe 0x590ab2
mov edi, 0x10
jmp 0x590abc
mov eax, 0xc
cmp edi, eax
cmovb edi, eax
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x1f]
mov edx, 0xfffffb11
sub edx, eax
mov dword [ebp - 0x184], edx
mov edx, 0xfffffb12
sub edx, eax
mov dword [ebp - 0x180], edx
mov edx, 0xfffffb13
sub edx, eax
mov dword [ebp - 0x188], edx
mov edx, 0xfffffb10
sub edx, eax
lea eax, [esi + edx]
cmp eax, edi
jae 0x590b4e
mov al, byte [esi + 0x30]
xor al, byte [esi]
mov byte [ecx - 1], al
mov eax, dword [ebp - 0x184]
add eax, esi
cmp eax, edi
jae 0x590b4e
mov al, byte [esi + 0x31]
xor al, byte [esi + 1]
mov byte [ecx], al
mov eax, dword [ebp - 0x180]
add eax, esi
cmp eax, edi
jae 0x590b4e
mov al, byte [esi + 0x32]
xor al, byte [esi + 2]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x188]
add eax, esi
cmp eax, edi
jae 0x590b4e
mov al, byte [esi + 0x33]
xor al, byte [esi + 3]
add esi, 4
mov byte [ecx + 2], al
add ecx, 4
lea eax, [esi + edx]
cmp eax, 0x10
jb 0x590af3
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x17c]
mov byte [ebp - 0x175], 1
lea ecx, [esi + 0x6c]
je 0x590b7b
call fcn.00436b40
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x6c]
call fcn.00435260
jmp 0x590c38
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.00438730
mov byte [ebp - 0x175], al
test al, al
jne 0x590c38
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call fcn.00434a70
push 0x10
push 0xff
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00435530
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x6c]
call fcn.004387c0
test al, al
je 0x590be2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x175], 1
call fcn.00434c90
jmp 0x590c38
mov esi, dword [ebp - 0x18c]
mov ecx, esi
push str.GCM_decrypt_authentication_tag_not_equal_to_the_expected_value.
mov eax, dword [esi]
call dword [eax + 0x14]
push edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push str.decryptTag
call fcn.00448520
mov eax, dword [ebp - 0x17c]
mov ecx, esi
add eax, 0x6c
push eax
push str.expectedTag
call fcn.00448600
lea ecx, [ebp - 0x3c]
call fcn.00434c90
jmp 0x590c38
push str.invalid_GCM_buflen
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov byte [ebp - 0x175], 0
lea ecx, [ebp - 0x174]
call fcn.00449950
mov al, byte [ebp - 0x175]
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.005af618
mov esp, ebp
pop ebp
ret 0x10