Function at 0x594760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0138
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x692c00]
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.00449bd0
mov eax, dword [edi + 0x538]
mov dword [ebp - 4], 0
cmp eax, 0x10
ja 0x594ad5
cmp dword [edi + 0x534], 2
je 0x5947f8
push str.invalid_GCM_mode
jmp 0x594ada
lea esi, [edi + 0x4f0]
test eax, eax
je 0x59482c
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.00596b50
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 0x5948f3
lea eax, [ebp - 0x174]
push eax
push esi
push edi
call fcn.00596b50
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.00402fb0
mov edi, eax
test edi, edi
jne 0x594956
lea edi, [eax + 0x10]
jmp 0x59496c
cmp edi, 0x10
jbe 0x594962
mov edi, 0x10
jmp 0x59496c
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 0x5949fe
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 0x5949fe
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 0x5949fe
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 0x5949fe
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 0x5949a3
cmp byte [ebp + 8], 0
mov esi, dword [ebp - 0x17c]
mov byte [ebp - 0x175], 1
lea ecx, [esi + 0x6c]
je 0x594a2b
call fcn.00436dd0
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x6c]
call fcn.004354f0
jmp 0x594ae8
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.004389d0
mov byte [ebp - 0x175], al
test al, al
jne 0x594ae8
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call fcn.00434d00
push 0x10
push 0xff
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004357c0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x6c]
call fcn.00438a60
test al, al
je 0x594a92
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x175], 1
call fcn.00434f20
jmp 0x594ae8
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.004487c0
mov eax, dword [ebp - 0x17c]
mov ecx, esi
add eax, 0x6c
push eax
push str.expectedTag
call fcn.004488a0
lea ecx, [ebp - 0x3c]
call fcn.00434f20
jmp 0x594ae8
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.00449bf0
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.005b34c8
mov esp, ebp
pop ebp
ret 0x10