Function at 0x497660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x4c], ecx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], edi
test edx, edx
je 0x49794b
test edi, edi
jne 0x4976bd
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_CFB_decryptor
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x80], 1
ja 0x4976e9
mov eax, dword [ebx]
push esi
push dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
mov eax, edx
xor edx, edx
div dword [ebx + 0x80]
mov dword [ebp - 0x48], eax
test edx, edx
je 0x49771b
mov eax, dword [esi]
mov ecx, esi
push str.CFB_decrypt_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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
je 0x4976a8
mov al, byte [0x58ee62]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 0x3d], al
call fcn.0040d5b0
mov dword [ebp - 0x50], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.0040d230
test al, al
jne 0x497769
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_CFB_decrypt_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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
call fcn.0040d560
cmp byte [ebp - 0x3d], 0
mov esi, eax
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x50], esi
je 0x497857
mov eax, dword [ebp - 0x4c]
add eax, 8
test ecx, ecx
je 0x4977a1
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a8910
add esp, 0xc
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov eax, dword [ebx + 0x80]
xor edx, edx
test eax, eax
je 0x4977ee
mov esi, edi
lea eax, [ebp - 0x34]
sub esi, eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x50]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov edi, eax
lea ecx, [ebp - 0x34]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edi + ecx], al
mov eax, dword [ebx + 0x80]
cmp edx, eax
jb 0x4977d0
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x50]
add esi, eax
mov dword [ebp - 0x50], esi
xor esi, esi
test eax, eax
je 0x497818
mov ebx, edi
lea ecx, [ebp - 0x24]
sub ebx, ecx
lea edx, [ebp - 0x24]
add edx, esi
inc esi
mov cl, byte [ebx + edx]
mov byte [edx], cl
cmp esi, eax
jb 0x497800
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x80]
mov esi, dword [ebp - 0x50]
add edi, eax
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x58], edi
jne 0x4977a1
xor edx, edx
test eax, eax
je 0x497940
mov ecx, dword [ebp - 0x4c]
lea esi, [ebp - 0x24]
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 0x497840
jmp 0x497940
cmp ecx, 0x10
jne 0x4978e3
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [edi]
lea esi, [esi + 0x10]
mov eax, dword [edi + 4]
lea edi, [edi + 0x10]
xor ecx, dword [ebp - 0x24]
xor eax, dword [ebp - 0x20]
mov dword [esi - 0x10], ecx
mov dword [esi - 0xc], eax
mov ecx, dword [edi - 8]
mov eax, dword [edi - 4]
xor ecx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
sub dword [ebp - 0x48], 1
mov dword [esi - 8], ecx
mov dword [esi - 4], eax
movups xmm0, xmmword [edi - 0x10]
movups xmmword [ebp - 0x14], xmm0
jne 0x497880
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
jmp 0x497940
cmp ecx, 8
jne 0x49794b
mov ecx, dword [ebp - 0x4c]
sub esi, edi
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
nop dword [eax]
mov eax, dword [ebx]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [edi]
lea edi, [edi + 8]
mov eax, dword [edi - 4]
xor ecx, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x38]
sub dword [ebp - 0x48], 1
mov dword [esi + edi - 8], ecx
mov dword [esi + edi - 4], eax
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jne 0x497900
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
call fcn.0040ddd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14