Function at 0x598720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], edx
test edi, edi
jne 0x598765
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x598789
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_XTS_encryptor
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ecx + 8], 2
je 0x5987af
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_is_only_possible_with_AES_encryption.
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, edi
shr ebx, 4
cmp edi, 0x10
jae 0x5987db
mov eax, dword [esi]
mov ecx, esi
push str.XTS_mode_requires_at_least_1_full_block__16_bytes_or_more_
call dword [eax + 0x14]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edx
call fcn.00402fb0
mov dword [ebp - 0x40], eax
add eax, edi
mov dword [ebp - 0x5c], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00438990
test al, al
jne 0x59881b
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_XTC_encrypt_output_buffer.
call dword [eax + 0x14]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
call fcn.00438e80
mov dword [ebp - 0x48], eax
call fcn.0040df80
mov byte [ebp - 0x58], al
mov eax, edi
and eax, 0xf
mov dword [ebp - 0x40], eax
cmp edi, 0x10
jbe 0x598846
test eax, eax
je 0x598846
mov al, 1
jmp 0x598848
xor al, al
test al, al
mov byte [ebp - 0x35], al
lea edi, [ebx - 1]
cmove edi, ebx
mov ebx, dword [ebp - 0x54]
test edi, edi
je 0x598919
mov eax, dword [ebp - 0x3c]
add eax, 0x559
mov dword [ebp - 0x50], eax
nop dword [eax]
movups xmm0, xmmword [ebx]
lea ecx, [ebp - 0x13]
mov edx, eax
mov esi, 4
movups xmmword [ebp - 0x14], xmm0
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x598881
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x33]
mov esi, 4
nop
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x5988c0
mov eax, dword [ebp - 0x3c]
movups xmm0, xmmword [ebp - 0x34]
mov esi, dword [ebp - 0x48]
add eax, 0x558
push eax
push dword [ebp - 0x58]
movups xmmword [esi], xmm0
call fcn.00597bb0
mov eax, dword [ebp - 0x50]
add esi, 0x10
add esp, 8
mov dword [ebp - 0x48], esi
add ebx, 0x10
sub edi, 1
jne 0x598870
mov al, byte [ebp - 0x35]
mov esi, dword [ebp - 0x3c]
add esi, 0x559
test al, al
je 0x598a80
movups xmm0, xmmword [ebx]
lea ecx, [ebp - 0x13]
mov edx, esi
mov edi, 4
movups xmmword [ebp - 0x14], xmm0
nop dword [eax + eax]
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub edi, 1
jne 0x598940
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x33]
mov edx, esi
mov edi, 4
nop dword [eax]
mov al, byte [edx - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea edx, [edx + 4]
mov al, byte [edx - 4]
xor byte [ecx - 4], al
mov al, byte [edx - 3]
xor byte [ecx - 3], al
mov al, byte [edx - 2]
xor byte [ecx - 2], al
sub edi, 1
jne 0x598980
mov eax, dword [ebp - 0x3c]
movups xmm0, xmmword [ebp - 0x34]
add eax, 0x558
push eax
push dword [ebp - 0x58]
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
call fcn.00597bb0
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x7c]
push edi
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x14], xmm0
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [ebp - 0x14]
add esp, 0x20
lea edx, [ebp - 0x13]
mov edi, esi
mov ecx, 4
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
mov al, byte [edi - 1]
lea edx, [edx + 4]
xor byte [edx - 5], al
lea edi, [edi + 4]
mov al, byte [edi - 4]
xor byte [edx - 4], al
mov al, byte [edi - 3]
xor byte [edx - 3], al
mov al, byte [edi - 2]
xor byte [edx - 2], al
sub ecx, 1
jne 0x598a00
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x33]
mov edx, 4
nop dword [eax + eax]
mov al, byte [esi - 1]
lea ecx, [ecx + 4]
xor byte [ecx - 5], al
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx - 4], al
mov al, byte [esi - 3]
xor byte [ecx - 3], al
mov al, byte [esi - 2]
xor byte [ecx - 2], al
sub edx, 1
jne 0x598a40
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x34]
push dword [ebp - 0x40]
movups xmmword [eax], xmm0
push ecx
add eax, 0x10
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
call fcn.0043ac90
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14