Function at 0x597f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], edi
test edx, edx
je 0x598254
test edi, edi
jne 0x597fba
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_OFB_encryptor
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x80], 1
ja 0x597fe6
mov eax, dword [ebx]
push esi
push dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
push edx
push edi
push ecx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx + 0x80]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x598017
mov eax, dword [esi]
mov ecx, esi
push str.OFB_input_not_a_multiple_of_the_cipher_block_size.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
mov dword [ebp - 0x50], eax
test eax, eax
je 0x597fa5
mov al, byte [0x695048]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x45], al
call fcn.00402fb0
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x5c], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00438990
test al, al
jne 0x598073
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_OFB_encrypt_output_buffer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
call fcn.00438e80
cmp byte [ebp - 0x45], 0
mov esi, eax
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x18], esi
je 0x598157
mov eax, dword [ebp - 0x54]
xor edx, edx
test ecx, ecx
je 0x5980c0
lea edi, [eax + 8]
lea eax, [ebp - 0x44]
sub edi, eax
lea eax, [ebp - 0x44]
add eax, edx
mov cl, byte [edi + eax]
mov byte [ebp + edx - 0x34], cl
inc edx
mov byte [eax], cl
cmp edx, dword [ebx + 0x80]
jb 0x5980a4
mov edi, dword [ebp - 0x58]
nop
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [ebx + 0x80]
xor eax, eax
test ecx, ecx
je 0x59811a
mov dword [ebp - 8], edi
lea ecx, [ebp - 0x34]
mov edx, esi
sub edi, esi
sub edx, ecx
mov dword [ebp - 8], edx
nop word [eax + eax]
lea esi, [ebp - 0x34]
add esi, eax
add edx, esi
movzx ecx, byte [edx + edi]
xor cl, byte [esi]
mov byte [edx], cl
movzx ecx, byte [esi]
mov edx, dword [ebp - 8]
mov byte [ebp + eax - 0x44], cl
inc eax
mov ecx, dword [ebx + 0x80]
cmp eax, ecx
jb 0x5980f0
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x18]
add edi, ecx
add esi, ecx
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x18], esi
jne 0x5980c0
xor edx, edx
test ecx, ecx
je 0x598249
mov ecx, dword [ebp - 0x54]
lea esi, [ebp - 0x34]
add ecx, 8
sub esi, ecx
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [ebx + 0x80]
jb 0x598140
jmp 0x598249
cmp ecx, 0x10
jne 0x5981f4
mov edx, dword [ebp - 0x54]
sub esi, edi
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
nop dword [eax]
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
lea edi, [edi + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, edx
xor ecx, dword [edi - 0x10]
xor eax, dword [edi - 0xc]
movups xmm0, xmmword [ebp - 0x14]
mov dword [esi + edi - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + edi - 0xc], eax
mov eax, dword [edi - 4]
xor ecx, dword [edi - 8]
xor eax, dword [ebp - 8]
sub dword [ebp - 0x50], 1
mov dword [esi + edi - 8], ecx
mov dword [esi + edi - 4], eax
movups xmmword [ebp - 0x24], xmm0
jne 0x598190
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0x14], ecx
jmp 0x598249
cmp ecx, 8
jne 0x598254
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
lea edi, [edi + 8]
mov eax, dword [edi - 4]
lea esi, [esi + 8]
xor eax, dword [ebp - 0x18]
mov ecx, edx
xor ecx, dword [edi - 8]
sub dword [ebp - 0x50], 1
mov dword [esi - 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi - 4], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
jne 0x598208
mov eax, dword [ebp - 0x54]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
call fcn.0043ac90
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14